diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2019-02-05 19:56:10 +0100 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2019-02-07 14:04:53 +0100 |
commit | e48002cbb15d85bb721373b2dbf8ffd527293e21 (patch) | |
tree | 1f8cfa8902d5b90f12d3799713b41e91ba5d0e1d | |
parent | 22995723ebbfc521da0faba9e4f31625591867ce (diff) | |
download | ptxdist-e48002cbb15d85bb721373b2dbf8ffd527293e21.tar.gz ptxdist-e48002cbb15d85bb721373b2dbf8ffd527293e21.tar.xz |
u-boot: Add u-boot{-dtb, -with-spl-pbl}.bin image installation options
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Alexander Dahl <ada@thorsis.com>
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r-- | platforms/u-boot.in | 14 | ||||
-rw-r--r-- | rules/u-boot.make | 9 |
2 files changed, 23 insertions, 0 deletions
diff --git a/platforms/u-boot.in b/platforms/u-boot.in index 6239a5369..e63830171 100644 --- a/platforms/u-boot.in +++ b/platforms/u-boot.in @@ -128,5 +128,19 @@ config U_BOOT_INSTALL_U_BOOT_IMX image directory. Say yes if you are building for freescale i.MX SOCs and are not using SPL. +config U_BOOT_INSTALL_U_BOOT_DTB + prompt "install u-boot-dtb.bin" + bool + help + Installing the U-Boot binary concatenated with the device tree + into platform image directory. + +config U_BOOT_INSTALL_U_BOOT_WITH_SPL_PBL + prompt "install u-boot-with-spl-pbl.bin" + bool + help + Installing the U-Boot binary which contains as well the SPL and PBL. + Say yes if you are building for Layerscape SoCs + endif diff --git a/rules/u-boot.make b/rules/u-boot.make index 5668f8f89..c72a2ea09 100644 --- a/rules/u-boot.make +++ b/rules/u-boot.make @@ -113,6 +113,14 @@ endif ifdef PTXCONF_U_BOOT_INSTALL_U_BOOT_IMX @install -v -D -m644 $(U_BOOT_DIR)/u-boot.imx $(IMAGEDIR)/u-boot.imx endif +ifdef PTXCONF_U_BOOT_INSTALL_U_BOOT_DTB + @install -v -D -m644 $(U_BOOT_DIR)/u-boot-dtb.bin \ + $(IMAGEDIR)/u-boot-dtb.bin +endif +ifdef PTXCONF_U_BOOT_INSTALL_U_BOOT_WITH_SPL_PBL + @install -v -D -m644 $(U_BOOT_DIR)/u-boot-with-spl-pbl.bin \ + $(IMAGEDIR)/u-boot-with-spl-pbl.bin +endif @$(call touch) # ---------------------------------------------------------------------------- @@ -125,6 +133,7 @@ $(STATEDIR)/u-boot.clean: @rm -vf $(IMAGEDIR)/u-boot.bin $(IMAGEDIR)/u-boot.srec $(IMAGEDIR)/u-boot.elf @rm -vf $(IMAGEDIR)/u-boot.img $(IMAGEDIR)/SPL $(IMAGEDIR)/MLO @rm -vf $(IMAGEDIR)/u-boot.imx + @rm -vf $(IMAGEDIR)/u-boot-dtb.bin $(IMAGEDIR)/u-boot-with-spl-pbl.bin # ---------------------------------------------------------------------------- # oldconfig / menuconfig |