--- zzzz-none-000/linux-2.6.28.10/arch/arm/Makefile 2009-05-02 18:54:43.000000000 +0000 +++ fusiv-7390-686/linux-2.6.28.10/arch/arm/Makefile 2013-02-01 09:37:10.000000000 +0000 @@ -85,8 +85,21 @@ endif # Need -Uarm for gcc < 3.x -KBUILD_CFLAGS +=$(CFLAGS_ABI) $(arch-y) $(tune-y) $(call cc-option,-mshort-load-bytes,$(call cc-option,-malignment-traps,)) -msoft-float -Uarm -KBUILD_AFLAGS +=$(CFLAGS_ABI) $(arch-y) $(tune-y) -msoft-float +KBUILD_CFLAGS += $(CFLAGS_ABI) $(arch-y) $(tune-y) $(call cc-option,-mshort-load-bytes,$(call cc-option,-malignment-traps,)) -msoft-float -Uarm +KBUILD_AFLAGS += $(CFLAGS_ABI) $(arch-y) $(tune-y) -msoft-float + +ifeq ($(FRITZ_BOX_GCC_VERSION),040800) +KBUILD_CFLAGS += -fstrict-volatile-bitfields -mno-unaligned-access +KBUILD_AFLAGS += -fstrict-volatile-bitfields +endif +ifeq ($(FRITZ_BOX_GCC_VERSION),040702) +KBUILD_CFLAGS += -fstrict-volatile-bitfields -mno-unaligned-access +KBUILD_AFLAGS += -fstrict-volatile-bitfields +endif +ifeq ($(FRITZ_BOX_GCC_VERSION),040703) +KBUILD_CFLAGS += -fstrict-volatile-bitfields -mno-unaligned-access +KBUILD_AFLAGS += -fstrict-volatile-bitfields +endif CHECKFLAGS += -D__arm__ @@ -144,6 +157,7 @@ machine-$(CONFIG_ARCH_MSM) := msm machine-$(CONFIG_ARCH_LOKI) := loki machine-$(CONFIG_ARCH_MV78XX0) := mv78xx0 + machine-$(CONFIG_ARCH_PUMA5) := puma5 ifeq ($(CONFIG_ARCH_EBSA110),y) # This is what happens if you forget the IOCS16 line. @@ -205,10 +219,29 @@ # them changed. We use .arch to indicate when they were updated # last, otherwise make uses the target directory mtime. +include/asm-arm/.arch: $(wildcard include/config/arch/*.h) include/config/auto.conf + @echo ' SYMLINK $(MACHINE)include/mach -> include/asm-arm/arch' +ifneq ($(KBUILD_SRC),) + mkdir -p include/asm-arm + ln -fsn $(srctree)/$(MACHINE)include/mach include/asm-arm/arch +else + mkdir -p include/asm-arm + ln -fsn ../../$(MACHINE)include/mach include/asm-arm/arch +endif + @touch $@ + +ifeq ($(KBUILD_SRC),) +KBUILD_CPPFLAGS += -Iinclude/asm-arm/arch +KBUILD_CPPFLAGS += -Iinclude/asm-arm/arch/generic +else +KBUILD_CPPFLAGS += -I$(srctree)/include/asm-arm/arch +KBUILD_CPPFLAGS += -I$(srctree)/include/asm-arm/arch/generic +endif + archprepare: maketools PHONY += maketools FORCE -maketools: include/linux/version.h FORCE +maketools: include/linux/version.h include/asm-arm/.arch FORCE $(Q)$(MAKE) $(build)=arch/arm/tools include/asm-arm/mach-types.h # Convert bzImage to zImage