linux: Support multiple device tree build

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
Maxime Ripard 2012-12-19 22:48:09 +00:00 committed by Peter Korsgaard
parent 2a27ad3d79
commit dd1aa62cce
2 changed files with 8 additions and 4 deletions

View File

@ -261,11 +261,12 @@ config BR2_LINUX_KERNEL_USE_CUSTOM_DTS
endchoice endchoice
config BR2_LINUX_KERNEL_INTREE_DTS_NAME config BR2_LINUX_KERNEL_INTREE_DTS_NAME
string "Device Tree Source file name" string "Device Tree Source file names"
depends on BR2_LINUX_KERNEL_USE_INTREE_DTS depends on BR2_LINUX_KERNEL_USE_INTREE_DTS
help help
Name of the device tree source file, without Name of the device tree source file, without
the trailing .dts the trailing .dts. You can provide a list of
dts files to build, separated by spaces.
config BR2_LINUX_KERNEL_CUSTOM_DTS_PATH config BR2_LINUX_KERNEL_CUSTOM_DTS_PATH
string "Device Tree Source file path" string "Device Tree Source file path"

View File

@ -187,10 +187,13 @@ endef
ifeq ($(BR2_LINUX_KERNEL_DTS_SUPPORT),y) ifeq ($(BR2_LINUX_KERNEL_DTS_SUPPORT),y)
ifeq ($(BR2_LINUX_KERNEL_DTB_IS_SELF_BUILT),) ifeq ($(BR2_LINUX_KERNEL_DTB_IS_SELF_BUILT),)
define LINUX_BUILD_DTB define LINUX_BUILD_DTB
$(TARGET_MAKE_ENV) $(MAKE) $(LINUX_MAKE_FLAGS) -C $(@D) $(KERNEL_DTS_NAME).dtb $(TARGET_MAKE_ENV) $(MAKE) $(LINUX_MAKE_FLAGS) -C $(@D) \
$(addsuffix .dtb, $(call qstrip, $(KERNEL_DTS_NAME)))
endef endef
define LINUX_INSTALL_DTB define LINUX_INSTALL_DTB
cp $(KERNEL_ARCH_PATH)/boot/$(KERNEL_DTS_NAME).dtb $(BINARIES_DIR)/ cp $(addprefix $(KERNEL_ARCH_PATH)/boot/, \
$(addsuffix .dtb, $(call qstrip, $(KERNEL_DTS_NAME)))) \
$(BINARIES_DIR)/
endef endef
endif endif
endif endif