kbuild: enable 'make CFLAGS=...' to add additional options to CC
[linux-block.git] / arch / x86 / boot / compressed / Makefile_64
index dc6b3380cc45c27933cd76b740aaf9aefa105701..3013ad01fe69dfa025811c797296d8de82962a9a 100644 (file)
@@ -6,11 +6,11 @@
 
 targets                := vmlinux vmlinux.bin vmlinux.bin.gz head_64.o misc_64.o piggy.o
 
-CFLAGS := -m64 -D__KERNEL__ $(LINUXINCLUDE) -O2  \
+KBUILD_CFLAGS := -m64 -D__KERNEL__ $(LINUXINCLUDE) -O2  \
          -fno-strict-aliasing -fPIC -mcmodel=small \
           $(call cc-option, -ffreestanding) \
           $(call cc-option, -fno-stack-protector)
-AFLAGS  := $(CFLAGS) -D__ASSEMBLY__
+AFLAGS  := $(KBUILD_CFLAGS) -D__ASSEMBLY__
 LDFLAGS := -m elf_x86_64
 
 LDFLAGS_vmlinux := -T