[PATCH] Make kbuild CONFIG_DEBUG_INFO usage consistent From: Grant Coady This trivial patch restores consistent build flags usage to Makefile in arch/arm26 and arch/x86_64 Signed-off-by: Grant Coady Signed-off-by: Alexey Dobriyan Index: linux-kj/arch/arm26/Makefile =================================================================== --- linux-kj.orig/arch/arm26/Makefile +++ linux-kj/arch/arm26/Makefile @@ -13,7 +13,7 @@ CPPFLAGS_vmlinux.lds = -DTEXTADDR=$(TEXT OBJCOPYFLAGS :=-O binary -R .note -R .comment -S GZFLAGS :=-9 -ifeq ($(CONFIG_FRAME_POINTER),y) +ifdef CONFIG_FRAME_POINTER CFLAGS +=-fno-omit-frame-pointer -mno-sched-prolog endif @@ -21,7 +21,7 @@ CFLAGS_BOOT :=-mapcs-26 -mcpu=arm3 -msof CFLAGS +=-mapcs-26 -mcpu=arm3 -msoft-float -Uarm AFLAGS +=-mapcs-26 -mcpu=arm3 -msoft-float -ifeq ($(CONFIG_XIP_KERNEL),y) +ifdef CONFIG_XIP_KERNEL TEXTADDR := 0x03880000 DATAADDR := 0x02080000 else Index: linux-kj/arch/x86_64/Makefile =================================================================== --- linux-kj.orig/arch/x86_64/Makefile +++ linux-kj/arch/x86_64/Makefile @@ -38,7 +38,7 @@ CFLAGS += -pipe # actually it makes the kernel smaller too. CFLAGS += -fno-reorder-blocks CFLAGS += -Wno-sign-compare -ifneq ($(CONFIG_DEBUG_INFO),y) +ifndef CONFIG_DEBUG_INFO CFLAGS += -fno-asynchronous-unwind-tables # -fweb shrinks the kernel a bit, but the difference is very small # it also messes up debugging, so don't use it for now.