--- zzzz-none-000/linux-2.6.39.4/Makefile 2011-08-03 19:43:28.000000000 +0000 +++ puma6-atom-6490-729/linux-2.6.39.4/Makefile 2021-11-10 13:38:14.000000000 +0000 @@ -150,13 +150,16 @@ endif srctree := $(if $(KBUILD_SRC),$(KBUILD_SRC),$(CURDIR)) +TOPDIR := $(srctree) +HPATH = $(TOPDIR)/include + objtree := $(CURDIR) src := $(srctree) obj := $(objtree) VPATH := $(srctree)$(if $(KBUILD_EXTMOD),:$(KBUILD_EXTMOD)) -export srctree objtree VPATH +export srctree objtree VPATH TOPDIR # SUBARCH tells the usermode build what the underlying arch is. That is set @@ -237,7 +240,7 @@ HOSTCC = gcc HOSTCXX = g++ -HOSTCFLAGS = -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer +HOSTCFLAGS = -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fno-omit-frame-pointer #-fomit-frame-pointer HOSTCXXFLAGS = -O2 # Decide whether to build built-in, modular, or both. @@ -351,15 +354,21 @@ # Needed to be compatible with the O= option LINUXINCLUDE := -I$(srctree)/arch/$(hdr-arch)/include -Iinclude \ $(if $(KBUILD_SRC), -I$(srctree)/include) \ - -include include/generated/autoconf.h + $(LINUXINCLUDE_AVM_SUBPROJECTS) \ + -I$(srctree)/include/uapi \ + -I$(objtree)/include/generated/uapi \ + $(USERINCLUDE_AVM_SUBPROJECTS) \ + -include $(srctree)/include/linux/kconfig.h \ + $(EXTRALINUXINCLUDE) -KBUILD_CPPFLAGS := -D__KERNEL__ +KBUILD_CPPFLAGS := -D__KERNEL__ $(LINUXINCLUDE) -DNEW_CONFIG -I$(HPATH) KBUILD_CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \ -fno-strict-aliasing -fno-common \ -Werror-implicit-function-declaration \ -Wno-format-security \ - -fno-delete-null-pointer-checks + -fno-delete-null-pointer-checks \ + -Wno-missing-field-initializers KBUILD_AFLAGS_KERNEL := KBUILD_CFLAGS_KERNEL := KBUILD_AFLAGS := -D__ASSEMBLY__ @@ -568,7 +577,7 @@ # incompatible with -fomit-frame-pointer with current GCC, so we don't use # -fomit-frame-pointer with FUNCTION_TRACER. ifndef CONFIG_FUNCTION_TRACER -KBUILD_CFLAGS += -fomit-frame-pointer +KBUILD_CFLAGS += -fno-omit-frame-pointer #-fomit-frame-pointer endif endif @@ -1033,6 +1042,10 @@ $(if $(wildcard $(srctree)/arch/$(hdr-arch)/include/asm/Kbuild),, \ $(error Headers not exportable for the $(SRCARCH) architecture)) $(Q)$(MAKE) $(hdr-inst)=include + # AVM/TMA 20180320: avm_pa requires uapi/linux/if_ether.h so + # linux/if_ether.h was split. For user space it must override linux/if_ether.h + # installed above + $(Q)$(MAKE) $(hdr-inst)=include/uapi dst=include $(Q)$(MAKE) $(hdr-inst)=arch/$(hdr-arch)/include/asm $(hdr-dst) PHONY += headers_check_all @@ -1530,6 +1543,7 @@ # $(Q)$(MAKE) $(clean)=dir clean := -f $(if $(KBUILD_SRC),$(srctree)/)scripts/Makefile.clean obj +-include $(srctree)/avm/make/generated/linux.make endif # skip-makefile PHONY += FORCE @@ -1538,3 +1552,8 @@ # Declare the contents of the .PHONY variable as phony. We keep that # information in a variable so we can use it in if_changed and friends. .PHONY: $(PHONY) + + + +install_inango: + cp -rfv arch/arm/boot/zImage ../../../../build/dsdk/images/Image.bin