]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - arch/mips/kernel/Makefile
kbuild: enable 'make CFLAGS=...' to add additional options to CC
[net-next-2.6.git] / arch / mips / kernel / Makefile
index 7851b4b447d05e9755d5b32a082748aca58670e7..95a356ef39106d2e0b5693f805bdbf2ca193d5e4 100644 (file)
@@ -65,12 +65,13 @@ obj-$(CONFIG_PROC_FS)               += proc.o
 
 obj-$(CONFIG_64BIT)            += cpu-bugs64.o
 
+obj-$(CONFIG_I8253)            += i8253.o
 obj-$(CONFIG_PCSPEAKER)                += pcspeaker.o
 
 obj-$(CONFIG_KEXEC)            += machine_kexec.o relocate_kernel.o
 obj-$(CONFIG_EARLY_PRINTK)     += early_printk.o
 
-CFLAGS_cpu-bugs64.o    = $(shell if $(CC) $(CFLAGS) -Wa,-mdaddi -c -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo "-DHAVE_AS_SET_DADDI"; fi)
+CFLAGS_cpu-bugs64.o    = $(shell if $(CC) $(KBUILD_CFLAGS) -Wa,-mdaddi -c -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo "-DHAVE_AS_SET_DADDI"; fi)
 
 obj-$(CONFIG_HAVE_STD_PC_SERIAL_PORT)  += 8250-platform.o