* [Buildroot] [PATCH] Add Device Tree and simpleImage support
@ 2012-02-19 20:31 Spenser Gilliland
2012-02-19 20:34 ` Spenser Gilliland
0 siblings, 1 reply; 3+ messages in thread
From: Spenser Gilliland @ 2012-02-19 20:31 UTC (permalink / raw)
To: buildroot
This patch adds device tree and simpleImage support to buildroot. When the simpleImage Kernel binary image type is selected, the user has can select either an in tree device tree source file or an out of tree device tree source file.
This triggers the kernel to build the simpleImage.<dt> target and copy the resulting binary to the output/images directory. Additionally, if the install dtb option is selected the <dt>.dtb file is copied to the output directory.
Signed-off-by: Spenser Gilliland <Spenser309@gmail.com>
---
linux/Config.in | 39 +++++++++++++++++++++++++++++++++++++++
linux/linux.mk | 40 ++++++++++++++++++++++++++++++++++++++++
2 files changed, 79 insertions(+), 0 deletions(-)
diff --git a/linux/Config.in b/linux/Config.in
index 26032fd..0caf1e5 100644
--- a/linux/Config.in
+++ b/linux/Config.in
@@ -150,6 +150,10 @@ config BR2_LINUX_KERNEL_VMLINUZ
bool "vmlinuz"
depends on BR2_mips || BR2_mipsel
+config BR2_LINUX_KERNEL_SIMPLEIMAGE
+ bool "simpleImage"
+ depends on BR2_microblaze
+
config BR2_LINUX_KERNEL_IMAGE_TARGET_CUSTOM
bool "custom target"
help
@@ -163,6 +167,41 @@ config BR2_LINUX_KERNEL_IMAGE_TARGET_CUSTOM
endchoice
+#
+# Device Tree Support
+#
+
+choice
+ prompt "Device Tree Blob"
+ default BR2_LINUX_KERNEL_USE_DTS
+ depends on BR2_LINUX_KERNEL_SIMPLEIMAGE
+
+config BR2_LINUX_KERNEL_USE_DTS
+ bool "Use an in kernel device tree"
+
+config BR2_LINUX_KERNEL_USE_CUSTOM_DTS
+ bool "Use a custom device tree"
+
+endchoice
+
+config BR2_LINUX_KERNEL_MAKE_DTB
+ bool
+ default y if BR2_LINUX_KERNEL_USE_DTS || BR2_LINUX_KERNEL_USE_CUSTOM_DTS
+
+config BR2_LINUX_KERNEL_DTS
+ string "Dts Name"
+ depends on BR2_LINUX_KERNEL_USE_DTS
+ help
+ Name of device tree source file in tree to use
+ without the trailing .dts
+
+config BR2_LINUX_KERNEL_CUSTOM_DTS
+ string "Dts file path"
+ depends on BR2_LINUX_KERNEL_USE_CUSTOM_DTS
+ help
+ Path to the custom dts file.
+
+
config BR2_LINUX_KERNEL_IMAGE_TARGET_NAME
string "Kernel image target name"
depends on BR2_LINUX_KERNEL_IMAGE_TARGET_CUSTOM
diff --git a/linux/linux.mk b/linux/linux.mk
index ae236d4..490c770 100644
--- a/linux/linux.mk
+++ b/linux/linux.mk
@@ -67,6 +67,9 @@ else ifeq ($(BR2_LINUX_KERNEL_VMLINUX),y)
LINUX_IMAGE_NAME=vmlinux
else ifeq ($(BR2_LINUX_KERNEL_VMLINUZ),y)
LINUX_IMAGE_NAME=vmlinuz
+else ifeq ($(BR2_LINUX_KERNEL_SIMPLEIMAGE),y)
+# Image name is set once the dts is known
+LINUX_DEPENDENCIES+=host-uboot-tools
endif
endif
@@ -118,6 +121,35 @@ endef
LINUX_POST_PATCH_HOOKS += LINUX_APPLY_PATCHES
+ifneq ($(BR2_LINUX_KERNEL_CUSTOM_DTS),)
+LINUX_KERNEL_CUSTOM_DTS = $(call qstrip, $(BR2_LINUX_KERNEL_CUSTOM_DTS))
+DTS_NAME = $(shell export file=`basename $(LINUX_KERNEL_CUSTOM_DTS)` && echo $${file%.*})
+define LINUX_COPY_DTS
+ echo "LINUX_KERNEL_CUSTOM_DTS=$(LINUX_KERNEL_CUSTOM_DTS) and DTS_NAME=$(DTS_NAME)" && \
+ mkdir -p $(KERNEL_ARCH_PATH)/boot/dts && \
+ cp $(BR2_LINUX_KERNEL_CUSTOM_DTS) $(KERNEL_ARCH_PATH)/boot/dts/
+endef
+endif
+
+ifeq ($(BR2_LINUX_KERNEL_USE_DTS),y)
+DTS_NAME = $(call qstrip, $(BR2_LINUX_KERNEL_DTS))
+endif
+
+ifeq ($(BR2_LINUX_KERNEL_MAKE_DTB),y)
+define LINUX_MAKE_DTB
+ $(TARGET_MAKE_ENV) $(MAKE) $(LINUX_MAKE_FLAGS) -C $(@D) scripts/dtc/ && \
+ scripts/dtc/dtc -O dtb -o $(KERNEL_ARCH_PATH)/boot/$(DTS_NAME).dtb \
+ -b 0 -p 1024 $(KERNEL_ARCH_PATH)/boot/dts/$(DTS_NAME).dts
+endef
+define LINUX_INSTALL_DTB
+ cp $(KERNEL_ARCH_PATH)/boot/$(DTS_NAME).dtb $(BINARIES_DIR)
+endef
+endif
+
+ifeq ($(BR2_LINUX_KERNEL_SIMPLEIMAGE),y)
+LINUX_IMAGE_NAME = simpleImage.$(DTS_NAME)
+endif
+
ifeq ($(BR2_LINUX_KERNEL_USE_DEFCONFIG),y)
KERNEL_SOURCE_CONFIG = $(KERNEL_ARCH_PATH)/configs/$(call qstrip,$(BR2_LINUX_KERNEL_DEFCONFIG))_defconfig
else ifeq ($(BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG),y)
@@ -125,6 +157,8 @@ KERNEL_SOURCE_CONFIG = $(BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE)
endif
define LINUX_CONFIGURE_CMDS
+ $(if $(BR2_LINUX_KERNEL_USE_CUSTOM_DTS),
+ $(call LINUX_COPY_DTS))
cp $(KERNEL_SOURCE_CONFIG) $(KERNEL_ARCH_PATH)/configs/buildroot_defconfig
$(TARGET_MAKE_ENV) $(MAKE1) $(LINUX_MAKE_FLAGS) -C $(@D) buildroot_defconfig
rm $(KERNEL_ARCH_PATH)/configs/buildroot_defconfig
@@ -158,6 +192,8 @@ define LINUX_BUILD_CMDS
@if grep -q "CONFIG_MODULES=y" $(@D)/.config; then \
$(TARGET_MAKE_ENV) $(MAKE) $(LINUX_MAKE_FLAGS) -C $(@D) modules ; \
fi
+ $(if $(BR2_LINUX_KERNEL_MAKE_DTB),
+ $(call LINUX_MAKE_DTB))
endef
@@ -169,6 +205,8 @@ endif
define LINUX_INSTALL_IMAGES_CMDS
cp $(LINUX_IMAGE_PATH) $(BINARIES_DIR)
+ $(if $(BR2_LINUX_KERNEL_MAKE_DTB),
+ $(call LINUX_INSTALL_DTB))
endef
define LINUX_INSTALL_TARGET_CMDS
@@ -215,6 +253,8 @@ $(LINUX_DIR)/.stamp_initramfs_rebuilt: $(LINUX_DIR)/.stamp_target_installed $(LI
$(TARGET_MAKE_ENV) $(MAKE) $(LINUX_MAKE_FLAGS) -C $(@D) $(LINUX_IMAGE_NAME)
# Copy the kernel image to its final destination
cp $(LINUX_IMAGE_PATH) $(BINARIES_DIR)
+ # If there is a .ub file copy it to the final destination
+ test -f $(LINUX_IMAGE_PATH).ub && cp $(LINUX_IMAGE_PATH).ub $(BINARIES_DIR)
$(Q)touch $@
# The initramfs building code must make sure this target gets called
--
1.7.9
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH] Add Device Tree and simpleImage support
2012-02-19 20:31 Spenser Gilliland
@ 2012-02-19 20:34 ` Spenser Gilliland
0 siblings, 0 replies; 3+ messages in thread
From: Spenser Gilliland @ 2012-02-19 20:34 UTC (permalink / raw)
To: buildroot
Please ignore this patch. Some small changes were not committed when
it was sent.
Spenser
On Sun, Feb 19, 2012 at 2:31 PM, Spenser Gilliland <spenser309@gmail.com> wrote:
> This patch adds device tree and simpleImage support to buildroot. ?When the simpleImage Kernel binary image type is selected, the user has can select either an in tree device tree source file or an out of tree device tree source file.
>
> This triggers the kernel to build the simpleImage.<dt> target and copy the resulting binary to the output/images directory. ?Additionally, if the install dtb option is selected the <dt>.dtb file is copied to the output directory.
>
> Signed-off-by: Spenser Gilliland <Spenser309@gmail.com>
> ---
> ?linux/Config.in | ? 39 +++++++++++++++++++++++++++++++++++++++
> ?linux/linux.mk ?| ? 40 ++++++++++++++++++++++++++++++++++++++++
> ?2 files changed, 79 insertions(+), 0 deletions(-)
>
> diff --git a/linux/Config.in b/linux/Config.in
> index 26032fd..0caf1e5 100644
> --- a/linux/Config.in
> +++ b/linux/Config.in
> @@ -150,6 +150,10 @@ config BR2_LINUX_KERNEL_VMLINUZ
> ? ? ? ?bool "vmlinuz"
> ? ? ? ?depends on BR2_mips || BR2_mipsel
>
> +config BR2_LINUX_KERNEL_SIMPLEIMAGE
> + ? ? ? bool "simpleImage"
> + ? ? ? depends on BR2_microblaze
> +
> ?config BR2_LINUX_KERNEL_IMAGE_TARGET_CUSTOM
> ? ? ? ?bool "custom target"
> ? ? ? ?help
> @@ -163,6 +167,41 @@ config BR2_LINUX_KERNEL_IMAGE_TARGET_CUSTOM
>
> ?endchoice
>
> +#
> +# Device Tree Support
> +#
> +
> +choice
> + ? ? ? prompt "Device Tree Blob"
> + ? ? ? default BR2_LINUX_KERNEL_USE_DTS
> + ? ? ? depends on BR2_LINUX_KERNEL_SIMPLEIMAGE
> +
> +config BR2_LINUX_KERNEL_USE_DTS
> + ? ? ? bool "Use an in kernel device tree"
> +
> +config BR2_LINUX_KERNEL_USE_CUSTOM_DTS
> + ? ? ? bool "Use a custom device tree"
> +
> +endchoice
> +
> +config BR2_LINUX_KERNEL_MAKE_DTB
> + ? ? ? bool
> + ? ? ? default y if BR2_LINUX_KERNEL_USE_DTS || BR2_LINUX_KERNEL_USE_CUSTOM_DTS
> +
> +config BR2_LINUX_KERNEL_DTS
> + ? ? ? string "Dts Name"
> + ? ? ? depends on BR2_LINUX_KERNEL_USE_DTS
> + ? ? ? help
> + ? ? ? ? Name of device tree source file in tree to use
> + ? ? ? ? without the trailing .dts
> +
> +config BR2_LINUX_KERNEL_CUSTOM_DTS
> + ? ? ? string "Dts file path"
> + ? ? ? depends on BR2_LINUX_KERNEL_USE_CUSTOM_DTS
> + ? ? ? help
> + ? ? ? ? Path to the custom dts file.
> +
> +
> ?config BR2_LINUX_KERNEL_IMAGE_TARGET_NAME
> ? ? ? ?string "Kernel image target name"
> ? ? ? ?depends on BR2_LINUX_KERNEL_IMAGE_TARGET_CUSTOM
> diff --git a/linux/linux.mk b/linux/linux.mk
> index ae236d4..490c770 100644
> --- a/linux/linux.mk
> +++ b/linux/linux.mk
> @@ -67,6 +67,9 @@ else ifeq ($(BR2_LINUX_KERNEL_VMLINUX),y)
> ?LINUX_IMAGE_NAME=vmlinux
> ?else ifeq ($(BR2_LINUX_KERNEL_VMLINUZ),y)
> ?LINUX_IMAGE_NAME=vmlinuz
> +else ifeq ($(BR2_LINUX_KERNEL_SIMPLEIMAGE),y)
> +# Image name is set once the dts is known
> +LINUX_DEPENDENCIES+=host-uboot-tools
> ?endif
> ?endif
>
> @@ -118,6 +121,35 @@ endef
> ?LINUX_POST_PATCH_HOOKS += LINUX_APPLY_PATCHES
>
>
> +ifneq ($(BR2_LINUX_KERNEL_CUSTOM_DTS),)
> +LINUX_KERNEL_CUSTOM_DTS = $(call qstrip, $(BR2_LINUX_KERNEL_CUSTOM_DTS))
> +DTS_NAME = $(shell export file=`basename $(LINUX_KERNEL_CUSTOM_DTS)` && echo $${file%.*})
> +define LINUX_COPY_DTS
> + ? echo "LINUX_KERNEL_CUSTOM_DTS=$(LINUX_KERNEL_CUSTOM_DTS) and DTS_NAME=$(DTS_NAME)" && \
> + ? ? ? mkdir -p $(KERNEL_ARCH_PATH)/boot/dts && \
> + ? ? ? cp $(BR2_LINUX_KERNEL_CUSTOM_DTS) $(KERNEL_ARCH_PATH)/boot/dts/
> +endef
> +endif
> +
> +ifeq ($(BR2_LINUX_KERNEL_USE_DTS),y)
> +DTS_NAME = $(call qstrip, $(BR2_LINUX_KERNEL_DTS))
> +endif
> +
> +ifeq ($(BR2_LINUX_KERNEL_MAKE_DTB),y)
> +define LINUX_MAKE_DTB
> + ? ? ? $(TARGET_MAKE_ENV) $(MAKE) $(LINUX_MAKE_FLAGS) -C $(@D) scripts/dtc/ && \
> + ? ?scripts/dtc/dtc -O dtb -o $(KERNEL_ARCH_PATH)/boot/$(DTS_NAME).dtb \
> + ? ? ?-b 0 -p 1024 $(KERNEL_ARCH_PATH)/boot/dts/$(DTS_NAME).dts
> +endef
> +define LINUX_INSTALL_DTB
> + ? ? ? cp $(KERNEL_ARCH_PATH)/boot/$(DTS_NAME).dtb $(BINARIES_DIR)
> +endef
> +endif
> +
> +ifeq ($(BR2_LINUX_KERNEL_SIMPLEIMAGE),y)
> +LINUX_IMAGE_NAME = simpleImage.$(DTS_NAME)
> +endif
> +
> ?ifeq ($(BR2_LINUX_KERNEL_USE_DEFCONFIG),y)
> ?KERNEL_SOURCE_CONFIG = $(KERNEL_ARCH_PATH)/configs/$(call qstrip,$(BR2_LINUX_KERNEL_DEFCONFIG))_defconfig
> ?else ifeq ($(BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG),y)
> @@ -125,6 +157,8 @@ KERNEL_SOURCE_CONFIG = $(BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE)
> ?endif
>
> ?define LINUX_CONFIGURE_CMDS
> + ? ? ? $(if $(BR2_LINUX_KERNEL_USE_CUSTOM_DTS),
> + ? ? ? ? ? ? ? $(call LINUX_COPY_DTS))
> ? ? ? ?cp $(KERNEL_SOURCE_CONFIG) $(KERNEL_ARCH_PATH)/configs/buildroot_defconfig
> ? ? ? ?$(TARGET_MAKE_ENV) $(MAKE1) $(LINUX_MAKE_FLAGS) -C $(@D) buildroot_defconfig
> ? ? ? ?rm $(KERNEL_ARCH_PATH)/configs/buildroot_defconfig
> @@ -158,6 +192,8 @@ define LINUX_BUILD_CMDS
> ? ? ? ?@if grep -q "CONFIG_MODULES=y" $(@D)/.config; then ? ? ?\
> ? ? ? ? ? ? ? ?$(TARGET_MAKE_ENV) $(MAKE) $(LINUX_MAKE_FLAGS) -C $(@D) modules ; ? ? ? \
> ? ? ? ?fi
> + ? ? ? $(if $(BR2_LINUX_KERNEL_MAKE_DTB),
> + ? ? ? ? ? ? ? $(call LINUX_MAKE_DTB))
> ?endef
>
>
> @@ -169,6 +205,8 @@ endif
>
> ?define LINUX_INSTALL_IMAGES_CMDS
> ? ? ? ?cp $(LINUX_IMAGE_PATH) $(BINARIES_DIR)
> + ? ? ? $(if $(BR2_LINUX_KERNEL_MAKE_DTB),
> + ? ? ? ? ? ? ? $(call LINUX_INSTALL_DTB))
> ?endef
>
> ?define LINUX_INSTALL_TARGET_CMDS
> @@ -215,6 +253,8 @@ $(LINUX_DIR)/.stamp_initramfs_rebuilt: $(LINUX_DIR)/.stamp_target_installed $(LI
> ? ? ? ?$(TARGET_MAKE_ENV) $(MAKE) $(LINUX_MAKE_FLAGS) -C $(@D) $(LINUX_IMAGE_NAME)
> ? ? ? ?# Copy the kernel image to its final destination
> ? ? ? ?cp $(LINUX_IMAGE_PATH) $(BINARIES_DIR)
> + ? ? ? # If there is a .ub file copy it to the final destination
> + ? ? ? test -f $(LINUX_IMAGE_PATH).ub && cp $(LINUX_IMAGE_PATH).ub $(BINARIES_DIR)
> ? ? ? ?$(Q)touch $@
>
> ?# The initramfs building code must make sure this target gets called
> --
> 1.7.9
>
--
Spenser Gilliland
Computer Engineer
Illinois Institute of Technology
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH] Add Device Tree and simpleImage support
@ 2012-02-19 20:34 Spenser Gilliland
0 siblings, 0 replies; 3+ messages in thread
From: Spenser Gilliland @ 2012-02-19 20:34 UTC (permalink / raw)
To: buildroot
This patch adds device tree and simpleImage support to buildroot. When the simpleImage Kernel binary image type is selected, the user has can select either an in tree device tree source file or an out of tree device tree source file.
This triggers the kernel to build the simpleImage.<dt> target and copy the resulting binary to the output/images directory. Additionally, if the install dtb option is selected the <dt>.dtb file is copied to the output directory.
Signed-off-by: Spenser Gilliland <Spenser309@gmail.com>
---
linux/Config.in | 39 +++++++++++++++++++++++++++++++++++++++
linux/linux.mk | 40 ++++++++++++++++++++++++++++++++++++++++
2 files changed, 79 insertions(+), 0 deletions(-)
diff --git a/linux/Config.in b/linux/Config.in
index 26032fd..0caf1e5 100644
--- a/linux/Config.in
+++ b/linux/Config.in
@@ -150,6 +150,10 @@ config BR2_LINUX_KERNEL_VMLINUZ
bool "vmlinuz"
depends on BR2_mips || BR2_mipsel
+config BR2_LINUX_KERNEL_SIMPLEIMAGE
+ bool "simpleImage"
+ depends on BR2_microblaze
+
config BR2_LINUX_KERNEL_IMAGE_TARGET_CUSTOM
bool "custom target"
help
@@ -163,6 +167,41 @@ config BR2_LINUX_KERNEL_IMAGE_TARGET_CUSTOM
endchoice
+#
+# Device Tree Support
+#
+
+choice
+ prompt "Device Tree Blob"
+ default BR2_LINUX_KERNEL_USE_DTS
+ depends on BR2_LINUX_KERNEL_SIMPLEIMAGE
+
+config BR2_LINUX_KERNEL_USE_DTS
+ bool "Use an in kernel device tree"
+
+config BR2_LINUX_KERNEL_USE_CUSTOM_DTS
+ bool "Use a custom device tree"
+
+endchoice
+
+config BR2_LINUX_KERNEL_MAKE_DTB
+ bool
+ default y if BR2_LINUX_KERNEL_USE_DTS || BR2_LINUX_KERNEL_USE_CUSTOM_DTS
+
+config BR2_LINUX_KERNEL_DTS
+ string "Dts Name"
+ depends on BR2_LINUX_KERNEL_USE_DTS
+ help
+ Name of device tree source file in tree to use
+ without the trailing .dts
+
+config BR2_LINUX_KERNEL_CUSTOM_DTS
+ string "Dts file path"
+ depends on BR2_LINUX_KERNEL_USE_CUSTOM_DTS
+ help
+ Path to the custom dts file.
+
+
config BR2_LINUX_KERNEL_IMAGE_TARGET_NAME
string "Kernel image target name"
depends on BR2_LINUX_KERNEL_IMAGE_TARGET_CUSTOM
diff --git a/linux/linux.mk b/linux/linux.mk
index ae236d4..490c770 100644
--- a/linux/linux.mk
+++ b/linux/linux.mk
@@ -67,6 +67,9 @@ else ifeq ($(BR2_LINUX_KERNEL_VMLINUX),y)
LINUX_IMAGE_NAME=vmlinux
else ifeq ($(BR2_LINUX_KERNEL_VMLINUZ),y)
LINUX_IMAGE_NAME=vmlinuz
+else ifeq ($(BR2_LINUX_KERNEL_SIMPLEIMAGE),y)
+# Image name is set once the dts is known
+LINUX_DEPENDENCIES+=host-uboot-tools
endif
endif
@@ -118,6 +121,35 @@ endef
LINUX_POST_PATCH_HOOKS += LINUX_APPLY_PATCHES
+ifneq ($(BR2_LINUX_KERNEL_CUSTOM_DTS),)
+LINUX_KERNEL_CUSTOM_DTS = $(call qstrip, $(BR2_LINUX_KERNEL_CUSTOM_DTS))
+DTS_NAME = $(shell export file=`basename $(LINUX_KERNEL_CUSTOM_DTS)` && echo $${file%.*})
+define LINUX_COPY_DTS
+ echo "LINUX_KERNEL_CUSTOM_DTS=$(LINUX_KERNEL_CUSTOM_DTS) and DTS_NAME=$(DTS_NAME)" && \
+ mkdir -p $(KERNEL_ARCH_PATH)/boot/dts && \
+ cp $(BR2_LINUX_KERNEL_CUSTOM_DTS) $(KERNEL_ARCH_PATH)/boot/dts/
+endef
+endif
+
+ifeq ($(BR2_LINUX_KERNEL_USE_DTS),y)
+DTS_NAME = $(call qstrip, $(BR2_LINUX_KERNEL_DTS))
+endif
+
+ifeq ($(BR2_LINUX_KERNEL_MAKE_DTB),y)
+define LINUX_MAKE_DTB
+ $(TARGET_MAKE_ENV) $(MAKE) $(LINUX_MAKE_FLAGS) -C $(@D) scripts/dtc/ && \
+ scripts/dtc/dtc -O dtb -o $(KERNEL_ARCH_PATH)/boot/$(DTS_NAME).dtb \
+ -b 0 -p 1024 $(KERNEL_ARCH_PATH)/boot/dts/$(DTS_NAME).dts
+endef
+define LINUX_INSTALL_DTB
+ cp $(KERNEL_ARCH_PATH)/boot/$(DTS_NAME).dtb $(BINARIES_DIR)
+endef
+endif
+
+ifeq ($(BR2_LINUX_KERNEL_SIMPLEIMAGE),y)
+LINUX_IMAGE_NAME = simpleImage.$(DTS_NAME)
+endif
+
ifeq ($(BR2_LINUX_KERNEL_USE_DEFCONFIG),y)
KERNEL_SOURCE_CONFIG = $(KERNEL_ARCH_PATH)/configs/$(call qstrip,$(BR2_LINUX_KERNEL_DEFCONFIG))_defconfig
else ifeq ($(BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG),y)
@@ -125,6 +157,8 @@ KERNEL_SOURCE_CONFIG = $(BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE)
endif
define LINUX_CONFIGURE_CMDS
+ $(if $(BR2_LINUX_KERNEL_USE_CUSTOM_DTS),
+ $(call LINUX_COPY_DTS))
cp $(KERNEL_SOURCE_CONFIG) $(KERNEL_ARCH_PATH)/configs/buildroot_defconfig
$(TARGET_MAKE_ENV) $(MAKE1) $(LINUX_MAKE_FLAGS) -C $(@D) buildroot_defconfig
rm $(KERNEL_ARCH_PATH)/configs/buildroot_defconfig
@@ -158,6 +192,8 @@ define LINUX_BUILD_CMDS
@if grep -q "CONFIG_MODULES=y" $(@D)/.config; then \
$(TARGET_MAKE_ENV) $(MAKE) $(LINUX_MAKE_FLAGS) -C $(@D) modules ; \
fi
+ $(if $(BR2_LINUX_KERNEL_MAKE_DTB),
+ $(call LINUX_MAKE_DTB))
endef
@@ -169,6 +205,8 @@ endif
define LINUX_INSTALL_IMAGES_CMDS
cp $(LINUX_IMAGE_PATH) $(BINARIES_DIR)
+ $(if $(BR2_LINUX_KERNEL_MAKE_DTB),
+ $(call LINUX_INSTALL_DTB))
endef
define LINUX_INSTALL_TARGET_CMDS
@@ -215,6 +253,8 @@ $(LINUX_DIR)/.stamp_initramfs_rebuilt: $(LINUX_DIR)/.stamp_target_installed $(LI
$(TARGET_MAKE_ENV) $(MAKE) $(LINUX_MAKE_FLAGS) -C $(@D) $(LINUX_IMAGE_NAME)
# Copy the kernel image to its final destination
cp $(LINUX_IMAGE_PATH) $(BINARIES_DIR)
+ # If there is a .ub file copy it to the final destination
+ test -f $(LINUX_IMAGE_PATH).ub && cp $(LINUX_IMAGE_PATH).ub $(BINARIES_DIR)
$(Q)touch $@
# The initramfs building code must make sure this target gets called
--
1.7.9
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-02-19 20:34 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-19 20:34 [Buildroot] [PATCH] Add Device Tree and simpleImage support Spenser Gilliland
-- strict thread matches above, loose matches on Subject: below --
2012-02-19 20:31 Spenser Gilliland
2012-02-19 20:34 ` Spenser Gilliland
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox