Hi Thomas,
Thomas Chou wrote:
Follow the patch from Sam Ravnborg <[EMAIL PROTECTED]>,
The variable AFLAGS is a wellknown variable and the usage by
kbuild may result in unexpected behaviour.
On top of that several people over time has asked for a way to
pass in additional flags to gcc.
This patch replace use of AFLAGS with KBUILD_AFLAGS all over
the tree.
Signed-off-by: Thomas Chou <[EMAIL PROTECTED]>
---
linux-2.6.x/arch/nios2nommu/Makefile | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/linux-2.6.x/arch/nios2nommu/Makefile
b/linux-2.6.x/arch/nios2nommu/Makefile
index 114ef77..fe0afb7 100644
--- a/linux-2.6.x/arch/nios2nommu/Makefile
+++ b/linux-2.6.x/arch/nios2nommu/Makefile
@@ -73,8 +73,8 @@ KBUILD_CFLAGS += -DUTS_SYSNAME=\"uClinux\"
CFLAGS_GCC_INC := $(shell $(CC) -print-file-name=include)
KBUILD_CFLAGS += -I$(CFLAGS_GCC_INC)
-AFLAGS += -DNO_MM -g
^^^^^
NO_MM should not be used at all in 2.6 kernels.
The only define to use now is CONFIG_MMU.
Regards
Greg
-#AFLAGS += -DNO_MM -g -save-temps
+KBUILD_AFLAGS += -DNO_MM -g
+#KBUILD_AFLAGS += -DNO_MM -g -save-temps
# vic - add this to get name of nios gcc library
LIBGCC_CFLAGS = $(if $(CONFIG_NIOS2_HW_MUL_OFF),-mno-hw-mul)
--
------------------------------------------------------------------------
Greg Ungerer -- Chief Software Dude EMAIL: [EMAIL PROTECTED]
Secure Computing Corporation PHONE: +61 7 3435 2888
825 Stanley St, FAX: +61 7 3891 3630
Woolloongabba, QLD, 4102, Australia WEB: http://www.SnapGear.com
_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev