]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - arch/parisc/Makefile
kbuild: enable 'make CFLAGS=...' to add additional options to CC
[mirror_ubuntu-artful-kernel.git] / arch / parisc / Makefile
index 9b7e42490dd1f147fc6a1002f13767a49a81467f..f3d0d7c7097782bb43bf2e93d5e0eead251274bc 100644 (file)
@@ -35,12 +35,8 @@ FINAL_LD=$(CROSS_COMPILE)ld --warn-common --warn-section-align
 
 OBJCOPY_FLAGS =-O binary -R .note -R .comment -S
 
-GCC_VERSION     := $(call cc-version)
-ifneq ($(shell if [ -z $(GCC_VERSION) ] ; then echo "bad"; fi ;),)
-$(error Sorry, couldn't find ($(cc-version)).)
-endif
-ifneq ($(shell if [ $(GCC_VERSION) -lt 0303 ] ; then echo "bad"; fi ;),)
-$(error Sorry, your compiler is too old ($(GCC_VERSION)).  GCC v3.3 or above is required.)
+ifneq ($(call cc-ifversion, -lt, 0303, "bad"),)
+$(error Sorry, GCC v3.3 or above is required.)
 endif
 
 cflags-y       := -pipe
@@ -67,7 +63,7 @@ cflags-$(CONFIG_PA8X00)               += -march=2.0 -mschedule=8000
 
 head-y                 := arch/parisc/kernel/head.o 
 
-CFLAGS += $(cflags-y)
+KBUILD_CFLAGS  += $(cflags-y)
 
 kernel-y                       := mm/ kernel/ math-emu/ kernel/init_task.o
 kernel-$(CONFIG_HPUX)          += hpux/