From: Borislav Petkov Date: Mon, 11 Nov 2013 14:27:43 +0000 (+0100) Subject: Kbuild: Ignore GREP_OPTIONS env variable X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ab7474ea5361f5fe883feb5ae637a1c948df1507;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git Kbuild: Ignore GREP_OPTIONS env variable When building the kernel in a shell which defines GREP_OPTIONS so that grep behavior is modified, we can break the generation of the syscalls table like so: __SYSCALL_COMMON(^[[01;31m^[[K0^[[m^[[K, sys_read, sys_read) __SYSCALL_COMMON(^[[01;31m^[[K1^[[m^[[K, sys_write, sys_write) __SYSCALL_COMMON(^[[01;31m^[[K1^[[m^[[K0, sys_mprotect, sys_mprotect) ... This is just the initial breakage, later we barf when generating modules. In this case, GREP_OPTIONS contains "--color=always" which adds the shell colors markup and completely fudges the headers under ...generated/asm/. Fix that by unexporting the GREP_OPTIONS variable for the whole kernel build as we tend to use grep at a bunch of places. Signed-off-by: Borislav Petkov Signed-off-by: Michal Marek --- diff --git a/Makefile b/Makefile index c060363f11c3..2f6c0e9c684a 100644 --- a/Makefile +++ b/Makefile @@ -22,6 +22,9 @@ LC_COLLATE=C LC_NUMERIC=C export LC_COLLATE LC_NUMERIC +# Avoid interference with shell env settings +unexport GREP_OPTIONS + # We are using a recursive build, so we need to do a little thinking # to get the ordering right. #