kbuild: refactor Makefile and spl/Makefile more

This commit refactors rules of directory descending
and defines u-boot-dirs and u-boot-all-dirs.
(We will need u-boot-all-dirs when using
scripts/Makefile.clean)

Additionally, rename LIBS-y to libs-y.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
master
Masahiro Yamada 10 years ago committed by Tom Rini
parent cbce795e5e
commit 656de6b819
  1. 165
      Makefile
  2. 113
      spl/Makefile

@ -561,17 +561,7 @@ CHECKFLAGS += $(NOSTDINC_FLAGS)
cpp_flags := $(KBUILD_CPPFLAGS) $(CPPFLAGS) $(UBOOTINCLUDE) $(NOSTDINC_FLAGS) cpp_flags := $(KBUILD_CPPFLAGS) $(CPPFLAGS) $(UBOOTINCLUDE) $(NOSTDINC_FLAGS)
c_flags := $(KBUILD_CFLAGS) $(cpp_flags) c_flags := $(KBUILD_CFLAGS) $(cpp_flags)
# The "tools" are needed early, so put this first .PHONY : $(VERSION_FILE) $(TIMESTAMP_FILE)
# Don't include stuff already done in $(LIBS)
# The "examples" conditionally depend on U-Boot (say, when USE_PRIVATE_LIBGCC
# is "yes"), so compile examples after U-Boot is compiled.
SUBDIR_TOOLS = tools
SUBDIRS = $(SUBDIR_TOOLS)
.PHONY : $(SUBDIRS) $(VERSION_FILE) $(TIMESTAMP_FILE)
SUBDIR_EXAMPLES-y := examples
SUBDIRS += $(SUBDIR_EXAMPLES-y)
######################################################################### #########################################################################
# U-Boot objects....order is important (i.e. start must be first) # U-Boot objects....order is important (i.e. start must be first)
@ -580,70 +570,76 @@ head-y := $(CPUDIR)/start.o
head-$(CONFIG_4xx) += arch/powerpc/cpu/ppc4xx/resetvec.o head-$(CONFIG_4xx) += arch/powerpc/cpu/ppc4xx/resetvec.o
head-$(CONFIG_MPC85xx) += arch/powerpc/cpu/mpc85xx/resetvec.o head-$(CONFIG_MPC85xx) += arch/powerpc/cpu/mpc85xx/resetvec.o
OBJS := $(head-y)
HAVE_VENDOR_COMMON_LIB = $(if $(wildcard $(srctree)/board/$(VENDOR)/common/Makefile),y,n) HAVE_VENDOR_COMMON_LIB = $(if $(wildcard $(srctree)/board/$(VENDOR)/common/Makefile),y,n)
LIBS-y += lib/ libs-y += lib/
LIBS-$(HAVE_VENDOR_COMMON_LIB) += board/$(VENDOR)/common/ libs-$(HAVE_VENDOR_COMMON_LIB) += board/$(VENDOR)/common/
LIBS-y += $(CPUDIR)/ libs-y += $(CPUDIR)/
ifdef SOC ifdef SOC
LIBS-y += $(CPUDIR)/$(SOC)/ libs-y += $(CPUDIR)/$(SOC)/
endif endif
LIBS-$(CONFIG_IXP4XX_NPE) += drivers/net/npe/ libs-$(CONFIG_IXP4XX_NPE) += drivers/net/npe/
LIBS-$(CONFIG_OF_EMBED) += dts/ libs-$(CONFIG_OF_EMBED) += dts/
LIBS-y += arch/$(ARCH)/lib/ libs-y += arch/$(ARCH)/lib/
LIBS-y += fs/ libs-y += fs/
LIBS-y += net/ libs-y += net/
LIBS-y += disk/ libs-y += disk/
LIBS-y += drivers/ libs-y += drivers/
LIBS-y += drivers/dma/ libs-y += drivers/dma/
LIBS-y += drivers/gpio/ libs-y += drivers/gpio/
LIBS-y += drivers/i2c/ libs-y += drivers/i2c/
LIBS-y += drivers/input/ libs-y += drivers/input/
LIBS-y += drivers/mmc/ libs-y += drivers/mmc/
LIBS-y += drivers/mtd/ libs-y += drivers/mtd/
LIBS-$(CONFIG_CMD_NAND) += drivers/mtd/nand/ libs-$(CONFIG_CMD_NAND) += drivers/mtd/nand/
LIBS-y += drivers/mtd/onenand/ libs-y += drivers/mtd/onenand/
LIBS-$(CONFIG_CMD_UBI) += drivers/mtd/ubi/ libs-$(CONFIG_CMD_UBI) += drivers/mtd/ubi/
LIBS-y += drivers/mtd/spi/ libs-y += drivers/mtd/spi/
LIBS-y += drivers/net/ libs-y += drivers/net/
LIBS-y += drivers/net/phy/ libs-y += drivers/net/phy/
LIBS-y += drivers/pci/ libs-y += drivers/pci/
LIBS-y += drivers/power/ \ libs-y += drivers/power/ \
drivers/power/fuel_gauge/ \ drivers/power/fuel_gauge/ \
drivers/power/mfd/ \ drivers/power/mfd/ \
drivers/power/pmic/ \ drivers/power/pmic/ \
drivers/power/battery/ drivers/power/battery/
LIBS-y += drivers/spi/ libs-y += drivers/spi/
LIBS-$(CONFIG_FMAN_ENET) += drivers/net/fm/ libs-$(CONFIG_FMAN_ENET) += drivers/net/fm/
LIBS-$(CONFIG_SYS_FSL_DDR) += drivers/ddr/fsl/ libs-$(CONFIG_SYS_FSL_DDR) += drivers/ddr/fsl/
LIBS-y += drivers/serial/ libs-y += drivers/serial/
LIBS-y += drivers/usb/eth/ libs-y += drivers/usb/eth/
LIBS-y += drivers/usb/gadget/ libs-y += drivers/usb/gadget/
LIBS-y += drivers/usb/host/ libs-y += drivers/usb/host/
LIBS-y += drivers/usb/musb/ libs-y += drivers/usb/musb/
LIBS-y += drivers/usb/musb-new/ libs-y += drivers/usb/musb-new/
LIBS-y += drivers/usb/phy/ libs-y += drivers/usb/phy/
LIBS-y += drivers/usb/ulpi/ libs-y += drivers/usb/ulpi/
LIBS-y += common/ libs-y += common/
LIBS-y += lib/libfdt/ libs-y += lib/libfdt/
LIBS-$(CONFIG_API) += api/ libs-$(CONFIG_API) += api/
LIBS-$(CONFIG_HAS_POST) += post/ libs-$(CONFIG_HAS_POST) += post/
LIBS-y += test/ libs-y += test/
ifneq (,$(filter $(SOC), mx25 mx27 mx5 mx6 mx31 mx35 mxs vf610)) ifneq (,$(filter $(SOC), mx25 mx27 mx5 mx6 mx31 mx35 mxs vf610))
LIBS-y += arch/$(ARCH)/imx-common/ libs-y += arch/$(ARCH)/imx-common/
endif endif
LIBS-$(CONFIG_ARM) += arch/arm/cpu/ libs-$(CONFIG_ARM) += arch/arm/cpu/
LIBS-$(CONFIG_PPC) += arch/powerpc/cpu/ libs-$(CONFIG_PPC) += arch/powerpc/cpu/
libs-y += board/$(BOARDDIR)/
libs-y := $(sort $(libs-y))
LIBS-y += board/$(BOARDDIR)/ u-boot-dirs := $(patsubst %/,%,$(filter %/, $(libs-y))) tools examples
u-boot-alldirs := $(sort $(u-boot-dirs) $(patsubst %/,%,$(filter %/, $(libs-))))
libs-y := $(patsubst %/, %/built-in.o, $(libs-y))
u-boot-init := $(head-y)
u-boot-main := $(libs-y)
LIBS-y := $(patsubst %/, %/built-in.o, $(LIBS-y))
LIBS := $(sort $(LIBS-y))
.PHONY : $(LIBS)
# Add GCC lib # Add GCC lib
ifdef USE_PRIVATE_LIBGCC ifdef USE_PRIVATE_LIBGCC
@ -727,7 +723,7 @@ ifneq ($(CONFIG_SYS_TEXT_BASE),)
LDFLAGS_u-boot += -Ttext $(CONFIG_SYS_TEXT_BASE) LDFLAGS_u-boot += -Ttext $(CONFIG_SYS_TEXT_BASE)
endif endif
all: $(ALL-y) $(SUBDIR_EXAMPLES-y) all: $(ALL-y)
u-boot.dtb: checkdtc u-boot u-boot.dtb: checkdtc u-boot
$(MAKE) $(build)=dts binary $(MAKE) $(build)=dts binary
@ -774,7 +770,7 @@ u-boot.img: u-boot.bin
sed -e 's/"[ ]*$$/ for $(BOARD) board"/') \ sed -e 's/"[ ]*$$/ for $(BOARD) board"/') \
-d $< $@ -d $< $@
u-boot.imx: u-boot.bin depend u-boot.imx: u-boot.bin
$(MAKE) $(build)=arch/arm/imx-common $(objtree)/u-boot.imx $(MAKE) $(build)=arch/arm/imx-common $(objtree)/u-boot.imx
u-boot.kwb: u-boot.bin u-boot.kwb: u-boot.bin
@ -893,17 +889,17 @@ u-boot.elf: u-boot.bin
ifeq ($(CONFIG_SANDBOX),y) ifeq ($(CONFIG_SANDBOX),y)
GEN_UBOOT = \ GEN_UBOOT = \
$(CC) $(SYMS) -T u-boot.lds \ $(CC) $(SYMS) -T u-boot.lds \
-Wl,--start-group $(LIBS) -Wl,--end-group \ -Wl,--start-group $(u-boot-main) -Wl,--end-group \
$(PLATFORM_LIBS) -Wl,-Map -Wl,u-boot.map -o u-boot $(PLATFORM_LIBS) -Wl,-Map -Wl,u-boot.map -o u-boot
else else
GEN_UBOOT = \ GEN_UBOOT = \
$(LD) $(LDFLAGS) $(LDFLAGS_$(@F)) \ $(LD) $(LDFLAGS) $(LDFLAGS_$(@F)) \
$(OBJS) \ $(u-boot-init) \
--start-group $(LIBS) --end-group $(PLATFORM_LIBS) \ --start-group $(u-boot-main) --end-group $(PLATFORM_LIBS) \
-Map u-boot.map -o u-boot -Map u-boot.map -o u-boot
endif endif
u-boot: depend $(SUBDIR_TOOLS) $(OBJS) $(LIBS) u-boot.lds u-boot: $(u-boot-init) $(u-boot-main) u-boot.lds
$(GEN_UBOOT) $(GEN_UBOOT)
ifeq ($(CONFIG_KALLSYMS),y) ifeq ($(CONFIG_KALLSYMS),y)
smap=`$(call SYSTEM_MAP,u-boot) | \ smap=`$(call SYSTEM_MAP,u-boot) | \
@ -913,16 +909,27 @@ ifeq ($(CONFIG_KALLSYMS),y)
$(GEN_UBOOT) common/system_map.o $(GEN_UBOOT) common/system_map.o
endif endif
$(OBJS): # The actual objects are generated when descending,
@: # make sure no implicit rule kicks in
$(sort $(u-boot-init) $(u-boot-main)): $(u-boot-dirs) ;
$(LIBS): depend $(SUBDIR_TOOLS) scripts_basic # Handle descending into subdirectories listed in $(vmlinux-dirs)
$(Q)$(MAKE) $(build)=$(patsubst %/,%,$(dir $@)) # Preset locale variables to speed up the build process. Limit locale
# tweaks to this spot to avoid wrong language settings when running
# make menuconfig etc.
# Error messages still appears in the original language
$(SUBDIRS): scripts_basic $(TIMESTAMP_FILE) $(VERSION_FILE) PHONY += $(u-boot-dirs)
$(Q)$(MAKE) $(build)=$@ $(u-boot-dirs): depend scripts_basic
$(Q)$(MAKE) $(build)=$@
tools: $(TIMESTAMP_FILE) $(VERSION_FILE)
# The "tools" are needed early
$(filter-out tools, $(u-boot-dirs)): tools
# The "examples" conditionally depend on U-Boot (say, when USE_PRIVATE_LIBGCC
# is "yes"), so compile examples after U-Boot is compiled.
examples: $(filter-out examples, $(u-boot-dirs))
$(SUBDIR_EXAMPLES-y): u-boot
# #
# Auto-generate the autoconf.mk file (which is included by all makefiles) # Auto-generate the autoconf.mk file (which is included by all makefiles)
@ -956,10 +963,10 @@ nand_spl: $(TIMESTAMP_FILE) $(VERSION_FILE) depend scripts_basic
u-boot-nand.bin: nand_spl u-boot.bin u-boot-nand.bin: nand_spl u-boot.bin
cat nand_spl/u-boot-spl-16k.bin u-boot.bin > u-boot-nand.bin cat nand_spl/u-boot-spl-16k.bin u-boot.bin > u-boot-nand.bin
spl/u-boot-spl.bin: $(SUBDIR_TOOLS) depend scripts_basic spl/u-boot-spl.bin: tools depend scripts_basic
$(MAKE) obj=spl -f $(srctree)/spl/Makefile all $(MAKE) obj=spl -f $(srctree)/spl/Makefile all
tpl/u-boot-tpl.bin: $(SUBDIR_TOOLS) depend scripts_basic tpl/u-boot-tpl.bin: tools depend scripts_basic
$(MAKE) obj=tpl -f $(srctree)/spl/Makefile all CONFIG_TPL_BUILD=y $(MAKE) obj=tpl -f $(srctree)/spl/Makefile all CONFIG_TPL_BUILD=y
# Explicitly make _depend in subdirs containing multiple targets to prevent # Explicitly make _depend in subdirs containing multiple targets to prevent
@ -968,9 +975,7 @@ depend dep: $(TIMESTAMP_FILE) $(VERSION_FILE) \
include/generated/generic-asm-offsets.h \ include/generated/generic-asm-offsets.h \
include/generated/asm-offsets.h include/generated/asm-offsets.h
TAG_SUBDIRS = $(SUBDIRS) TAG_SUBDIRS := $(u-boot-dirs) include
TAG_SUBDIRS += $(dir $(LIBS))
TAG_SUBDIRS += include
FIND := find FIND := find
FINDFLAGS := -L FINDFLAGS := -L
@ -1155,7 +1160,7 @@ clobber: clean
@find $(OBJTREE) -type f \( -name '*.srec' \ @find $(OBJTREE) -type f \( -name '*.srec' \
-o -name '*.bin' -o -name u-boot.img \) \ -o -name '*.bin' -o -name u-boot.img \) \
-print0 | xargs -0 rm -f -print0 | xargs -0 rm -f
@rm -f $(OBJS) *.bak ctags etags TAGS \ @rm -f *.bak ctags etags TAGS \
cscope.* *.*~ cscope.* *.*~
@rm -f u-boot u-boot.map u-boot.hex $(ALL-y) @rm -f u-boot u-boot.map u-boot.hex $(ALL-y)
@rm -f u-boot.kwb @rm -f u-boot.kwb

@ -79,67 +79,65 @@ head-$(CONFIG_X86) += $(START_PATH)/start16.o $(START_PATH)/resetvec.o
head-$(CONFIG_4xx) += $(START_PATH)/resetvec.o head-$(CONFIG_4xx) += $(START_PATH)/resetvec.o
head-$(CONFIG_MPC85xx) += $(START_PATH)/resetvec.o head-$(CONFIG_MPC85xx) += $(START_PATH)/resetvec.o
LIBS-y += arch/$(ARCH)/lib/ libs-y += arch/$(ARCH)/lib/
LIBS-y += $(CPUDIR)/ libs-y += $(CPUDIR)/
ifdef SOC ifdef SOC
LIBS-y += $(CPUDIR)/$(SOC)/ libs-y += $(CPUDIR)/$(SOC)/
endif endif
LIBS-y += board/$(BOARDDIR)/ libs-y += board/$(BOARDDIR)/
LIBS-$(HAVE_VENDOR_COMMON_LIB) += board/$(VENDOR)/common/ libs-$(HAVE_VENDOR_COMMON_LIB) += board/$(VENDOR)/common/
LIBS-$(CONFIG_SPL_FRAMEWORK) += common/spl/ libs-$(CONFIG_SPL_FRAMEWORK) += common/spl/
LIBS-$(CONFIG_SPL_LIBCOMMON_SUPPORT) += common/ libs-$(CONFIG_SPL_LIBCOMMON_SUPPORT) += common/
LIBS-$(CONFIG_SPL_LIBDISK_SUPPORT) += disk/ libs-$(CONFIG_SPL_LIBDISK_SUPPORT) += disk/
LIBS-$(CONFIG_SPL_I2C_SUPPORT) += drivers/i2c/ libs-$(CONFIG_SPL_I2C_SUPPORT) += drivers/i2c/
LIBS-$(CONFIG_SPL_GPIO_SUPPORT) += drivers/gpio/ libs-$(CONFIG_SPL_GPIO_SUPPORT) += drivers/gpio/
LIBS-$(CONFIG_SPL_MMC_SUPPORT) += drivers/mmc/ libs-$(CONFIG_SPL_MMC_SUPPORT) += drivers/mmc/
LIBS-$(CONFIG_SPL_MPC8XXX_INIT_DDR_SUPPORT) += drivers/ddr/fsl/ libs-$(CONFIG_SPL_MPC8XXX_INIT_DDR_SUPPORT) += drivers/ddr/fsl/
LIBS-$(CONFIG_SPL_SERIAL_SUPPORT) += drivers/serial/ libs-$(CONFIG_SPL_SERIAL_SUPPORT) += drivers/serial/
LIBS-$(CONFIG_SPL_SPI_FLASH_SUPPORT) += drivers/mtd/spi/ libs-$(CONFIG_SPL_SPI_FLASH_SUPPORT) += drivers/mtd/spi/
LIBS-$(CONFIG_SPL_SPI_SUPPORT) += drivers/spi/ libs-$(CONFIG_SPL_SPI_SUPPORT) += drivers/spi/
LIBS-y += fs/ libs-y += fs/
LIBS-$(CONFIG_SPL_LIBGENERIC_SUPPORT) += lib/ libs-$(CONFIG_SPL_LIBGENERIC_SUPPORT) += lib/
LIBS-$(CONFIG_SPL_POWER_SUPPORT) += drivers/power/ \ libs-$(CONFIG_SPL_POWER_SUPPORT) += drivers/power/ drivers/power/pmic/
drivers/power/pmic/ libs-$(if $(CONFIG_CMD_NAND),$(CONFIG_SPL_NAND_SUPPORT)) += drivers/mtd/nand/
LIBS-$(if $(CONFIG_CMD_NAND),$(CONFIG_SPL_NAND_SUPPORT)) += drivers/mtd/nand/ libs-$(CONFIG_SPL_DRIVERS_MISC_SUPPORT) += drivers/misc/
LIBS-$(CONFIG_SPL_DRIVERS_MISC_SUPPORT) += drivers/misc/ libs-$(CONFIG_SPL_ONENAND_SUPPORT) += drivers/mtd/onenand/
LIBS-$(CONFIG_SPL_ONENAND_SUPPORT) += drivers/mtd/onenand/ libs-$(CONFIG_SPL_DMA_SUPPORT) += drivers/dma/
LIBS-$(CONFIG_SPL_DMA_SUPPORT) += drivers/dma/ libs-$(CONFIG_SPL_POST_MEM_SUPPORT) += post/drivers/
LIBS-$(CONFIG_SPL_POST_MEM_SUPPORT) += post/drivers/ libs-$(CONFIG_SPL_NET_SUPPORT) += net/
LIBS-$(CONFIG_SPL_NET_SUPPORT) += net/ libs-$(CONFIG_SPL_ETH_SUPPORT) += drivers/net/
LIBS-$(CONFIG_SPL_ETH_SUPPORT) += drivers/net/ libs-$(CONFIG_SPL_ETH_SUPPORT) += drivers/net/phy/
LIBS-$(CONFIG_SPL_ETH_SUPPORT) += drivers/net/phy/ libs-$(CONFIG_SPL_USBETH_SUPPORT) += drivers/net/phy/
LIBS-$(CONFIG_SPL_USBETH_SUPPORT) += drivers/net/phy/ libs-$(CONFIG_SPL_MUSB_NEW_SUPPORT) += drivers/usb/musb-new/
LIBS-$(CONFIG_SPL_MUSB_NEW_SUPPORT) += drivers/usb/musb-new/ libs-$(CONFIG_SPL_USBETH_SUPPORT) += drivers/usb/gadget/
LIBS-$(CONFIG_SPL_USBETH_SUPPORT) += drivers/usb/gadget/ libs-$(CONFIG_SPL_WATCHDOG_SUPPORT) += drivers/watchdog/
LIBS-$(CONFIG_SPL_WATCHDOG_SUPPORT) += drivers/watchdog/ libs-$(CONFIG_SPL_USB_HOST_SUPPORT) += drivers/usb/host/
LIBS-$(CONFIG_SPL_USB_HOST_SUPPORT) += drivers/usb/host/ libs-$(CONFIG_OMAP_USB_PHY) += drivers/usb/phy/
LIBS-$(CONFIG_OMAP_USB_PHY) += drivers/usb/phy/ libs-$(CONFIG_SPL_SATA_SUPPORT) += drivers/block/
LIBS-$(CONFIG_SPL_SATA_SUPPORT) += drivers/block/
ifneq (,$(CONFIG_MX23)$(CONFIG_MX35)$(filter $(SOC), mx25 mx27 mx5 mx6 mx31 mx35)) ifneq (,$(CONFIG_MX23)$(CONFIG_MX35)$(filter $(SOC), mx25 mx27 mx5 mx6 mx31 mx35))
LIBS-y += arch/$(ARCH)/imx-common/ libs-y += arch/$(ARCH)/imx-common/
endif endif
LIBS-$(CONFIG_ARM) += arch/arm/cpu/ libs-$(CONFIG_ARM) += arch/arm/cpu/
LIBS-$(CONFIG_PPC) += arch/powerpc/cpu/ libs-$(CONFIG_PPC) += arch/powerpc/cpu/
LIBS-y := $(patsubst %/, %/built-in.o, $(LIBS-y)) head-y := $(addprefix $(obj)/,$(head-y))
libs-y := $(addprefix $(obj)/,$(libs-y))
u-boot-spl-dirs := $(patsubst %/,%,$(filter %/, $(libs-y)))
libs-y := $(patsubst %/, %/built-in.o, $(libs-y))
# Add GCC lib # Add GCC lib
ifeq ("$(USE_PRIVATE_LIBGCC)", "yes") ifeq ("$(USE_PRIVATE_LIBGCC)", "yes")
PLATFORM_LIBS := $(SPLTREE)/arch/$(ARCH)/lib/lib.a PLATFORM_LIBS := $(SPLTREE)/arch/$(ARCH)/lib/lib.a
endif endif
LIBS-y := $(sort $(LIBS-y)) u-boot-spl-init := $(head-y)
u-boot-spl-main := $(libs-y)
__START := $(head-y)
__LIBS := $(LIBS-y)
START := $(addprefix $(obj)/,$(head-y))
LIBS := $(addprefix $(obj)/,$(LIBS-y))
# Linker Script # Linker Script
ifdef CONFIG_SPL_LDSCRIPT ifdef CONFIG_SPL_LDSCRIPT
@ -209,19 +207,20 @@ ifneq ($(CONFIG_SPL_TEXT_BASE),)
LDFLAGS_$(SPL_BIN) += -Ttext $(CONFIG_SPL_TEXT_BASE) LDFLAGS_$(SPL_BIN) += -Ttext $(CONFIG_SPL_TEXT_BASE)
endif endif
GEN_UBOOT = \ quiet_cmd_u-boot-spl = LD $@
cd $(obj) && $(LD) $(LDFLAGS) $(LDFLAGS_$(@F)) $(__START) \ cmd_u-boot-spl = cd $(obj) && $(LD) $(LDFLAGS) $(LDFLAGS_$(@F)) \
--start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \ $(patsubst $(obj)/%,%,$(u-boot-spl-init)) --start-group \
-Map $(SPL_BIN).map -o $(SPL_BIN) $(patsubst $(obj)/%,%,$(u-boot-spl-main)) --end-group \
$(PLATFORM_LIBS) -Map $(SPL_BIN).map -o $(SPL_BIN)
$(obj)/$(SPL_BIN): $(START) $(LIBS) $(obj)/u-boot-spl.lds $(obj)/$(SPL_BIN): $(u-boot-spl-init) $(u-boot-spl-main) $(obj)/u-boot-spl.lds
$(GEN_UBOOT) $(call cmd,u-boot-spl)
$(START): $(sort $(u-boot-spl-init) $(u-boot-spl-main)): $(u-boot-spl-dirs) ;
@:
$(LIBS): PHONY += $(u-boot-spl-dirs)
$(Q)$(MAKE) $(build)=$(patsubst %/,%,$(dir $@)) $(u-boot-spl-dirs):
$(Q)$(MAKE) $(build)=$@
# FIX ME # FIX ME
cpp_flags := $(KBUILD_CPPFLAGS) $(CPPFLAGS) $(UBOOTINCLUDE) $(NOSTDINC_FLAGS) cpp_flags := $(KBUILD_CPPFLAGS) $(CPPFLAGS) $(UBOOTINCLUDE) $(NOSTDINC_FLAGS)

Loading…
Cancel
Save