--- zzzz-none-000/linux-4.9.279/arch/x86/Makefile 2021-08-08 06:38:54.000000000 +0000 +++ puma7-atom-6591-750/linux-4.9.279/arch/x86/Makefile 2023-02-08 11:43:42.000000000 +0000 @@ -249,13 +249,20 @@ head-y += arch/x86/kernel/platform-quirks.o libs-y += arch/x86/lib/ +libs-$(CONFIG_AVM_ENHANCED) += arch/x86/avm_enh/ # See arch/x86/Kbuild for content of core part of the kernel core-y += arch/x86/ # drivers-y are linked after core-y +drivers-y += arch/x86/avalanche_intd/ +drivers-y += arch/x86/pal_cppi41/ drivers-$(CONFIG_MATH_EMULATION) += arch/x86/math-emu/ drivers-$(CONFIG_PCI) += arch/x86/pci/ +drivers-$(CONFIG_NET_SUBSYSTEM) += arch/x86/NetIP_SubSystem/ +drivers-$(CONFIG_HW_MUTEXES) += arch/x86/hw_mutex/ +drivers-$(CONFIG_HW_MAILBOX) += arch/x86/hw_mailbox/ +drivers-$(CONFIG_PP_TX_INIT) += arch/x86/pp_init/ # must be linked after kernel/ drivers-$(CONFIG_OPROFILE) += arch/x86/oprofile/ @@ -276,8 +283,23 @@ PHONY += bzImage $(BOOT_TARGETS) +ifeq ($(CONFIG_OF),y) +KBUILD_DTBS := dtbs +endif + # Default kernel to build -all: bzImage +all: bzImage $(KBUILD_DTBS) + +%.dtb: | scripts + $(Q)$(MAKE) $(build)=$(boot)/dts $(boot)/dts/$@ + +PHONY += dtbs dtbs_install + +dtbs: prepare scripts + $(Q)$(MAKE) $(build)=$(boot)/dts + +dtbs_install: + $(Q)$(MAKE) $(dtbinst)=$(boot)/dts # KBUILD_IMAGE specify target image being built KBUILD_IMAGE := $(boot)/bzImage @@ -305,11 +327,14 @@ $(Q)rm -rf $(objtree)/arch/i386 $(Q)rm -rf $(objtree)/arch/x86_64 $(Q)$(MAKE) $(clean)=$(boot) + $(Q)$(MAKE) $(clean)=$(boot)/dts $(Q)$(MAKE) $(clean)=arch/x86/tools $(Q)$(MAKE) $(clean)=arch/x86/purgatory define archhelp echo '* bzImage - Compressed kernel image (arch/x86/boot/bzImage)' + echo '* dtbs - Build device tree blobs for enabled boards' + echo ' dtbs_install - Install dtbs to $(INSTALL_DTBS_PATH)' echo ' install - Install kernel using' echo ' (your) ~/bin/$(INSTALLKERNEL) or' echo ' (distribution) /sbin/$(INSTALLKERNEL) or'