diff options
author | Michal Marek <mmarek@suse.com> | 2015-07-16 18:23:53 +0200 |
---|---|---|
committer | Michal Marek <mmarek@suse.com> | 2015-07-22 17:44:04 +0200 |
commit | 6dd3f13e4239a8c2b1e60687d7321bc0df614f33 (patch) | |
tree | 7d148e25d689adf8f5633fc7f73a2c565cc0f915 /Makefile | |
parent | d770e558e21961ad6cfdf0ff7df0eb5d7d4f0754 (diff) | |
download | op-kernel-dev-6dd3f13e4239a8c2b1e60687d7321bc0df614f33.zip op-kernel-dev-6dd3f13e4239a8c2b1e60687d7321bc0df614f33.tar.gz |
kbuild: Do not pick up ARCH_{CPP,A,C}FLAGS from the environment
Initialize the ARCH_* overrides before including the arch Makefile, to
avoid picking up the values from the environment. The variables can
still be overriden on the make command line, but this won't happen
by accident.
Signed-off-by: Michal Marek <mmarek@suse.com>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -597,6 +597,11 @@ endif # $(dot-config) # Defaults to vmlinux, but the arch makefile usually adds further targets all: vmlinux +# The arch Makefile can set ARCH_{CPP,A,C}FLAGS to override the default +# values of the respective KBUILD_* variables +ARCH_CPPFLAGS := +ARCH_AFLAGS := +ARCH_CFLAGS := include arch/$(SRCARCH)/Makefile KBUILD_CFLAGS += $(call cc-option,-fno-delete-null-pointer-checks,) |