@@ -, +, @@ --- eclass/kernel-2.eclass | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) --- a/eclass/kernel-2.eclass +++ a/eclass/kernel-2.eclass @@ -1490,17 +1490,13 @@ kernel-2_src_unpack() { fi # fix a problem on ppc where TOUT writes to /usr/src/linux breaking sandbox - # only do this for kernel < 2.6.27 since this file does not exist in later - # kernels + local ppc_makefile="${S}"/arch/powerpc/Makefile if [[ -n ${KV_MINOR} && ${KV_MAJOR}.${KV_MINOR}.${KV_PATCH} < 2.6.27 ]] ; then - sed -i \ - -e 's|TOUT := .tmp_gas_check|TOUT := $(T).tmp_gas_check|' \ - "${S}"/arch/ppc/Makefile - else - sed -i \ - -e 's|TOUT := .tmp_gas_check|TOUT := $(T).tmp_gas_check|' \ - "${S}"/arch/powerpc/Makefile + ppc_makefile="${S}"/arch/ppc/Makefile fi + sed -i \ + -e 's|^\(TOUT.*:= \)\(\.tmp_gas_check\)|\1$(addsuffix /,$(T))\2|' \ + "${ppc_makefile}" } # @FUNCTION: kernel-2_src_prepare --