From: Jagan Teki <jagan@amarulasolutions.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 2/2] Kconfig: Add u-boot.itb BUILD_TARGET for Rockchip
Date: Fri, 18 Jan 2019 12:53:41 +0530 [thread overview]
Message-ID: <20190118072341.20227-1-jagan@amarulasolutions.com> (raw)
Add u-boot.itb BUILD_TARGET for Rockchip platform when SPL_LOAD_FIT
is being used. This can get rid of building itb explicitly with
'make u-boot.itb' all required images will now build just by make.
Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
---
Changes for v2:
- build target type 'u-boot.itb' when SPL_LOAD_FIT being used
Kconfig | 2 +-
board/rockchip/evb_rk3399/README | 1 -
board/theobroma-systems/lion_rk3368/README | 9 ++-------
board/theobroma-systems/puma_rk3399/README | 1 -
board/vamrs/rock960_rk3399/README | 1 -
5 files changed, 3 insertions(+), 11 deletions(-)
diff --git a/Kconfig b/Kconfig
index 15b79259a8..cf175ef33f 100644
--- a/Kconfig
+++ b/Kconfig
@@ -229,7 +229,7 @@ config BUILD_TARGET
default "u-boot-with-spl.sfp" if ARCH_SOCFPGA
default "u-boot-spl.kwb" if ARCH_MVEBU && SPL_BUILD
default "u-boot-elf.srec" if RCAR_GEN3
- default "u-boot.itb" if SPL_LOAD_FIT && ARCH_SUNXI
+ default "u-boot.itb" if SPL_LOAD_FIT && (ARCH_ROCKCHIP || ARCH_SUNXI)
help
Some SoCs need special image types (e.g. U-Boot binary
with a special header) as build targets. By defining
diff --git a/board/rockchip/evb_rk3399/README b/board/rockchip/evb_rk3399/README
index 8321467046..c388f269c1 100644
--- a/board/rockchip/evb_rk3399/README
+++ b/board/rockchip/evb_rk3399/README
@@ -58,7 +58,6 @@ Compile the U-Boot
for firefly-rk3399, use below instead:
> make firefly-rk3399_defconfig
> make
- > make u-boot.itb
Get spl/u-boot-spl.bin and u-boot.itb in this step.
diff --git a/board/theobroma-systems/lion_rk3368/README b/board/theobroma-systems/lion_rk3368/README
index 83e4332984..241d4d9ec8 100644
--- a/board/theobroma-systems/lion_rk3368/README
+++ b/board/theobroma-systems/lion_rk3368/README
@@ -14,18 +14,13 @@ Configure U-Boot
> cd ../u-boot
> make lion-rk3368_defconfig
-Build the TPL/SPL stage
-=======================
+Build the TPL/SPL, U-Boot proper and a FIT image including the ATF
+==================================================================
> make CROSS_COMPILE=aarch64-unknown-elf- ARCH=arm
> tools/mkimage -n rk3368 -T rksd -d tpl/u-boot-tpl.bin spl-3368.img
> cat spl/u-boot-spl-dtb.bin >> spl-3368.img
-Build the full U-Boot and a FIT image including the ATF
-=======================================================
-
- > make CROSS_COMPILE=aarch64-unknown-elf- ARCH=arm u-boot.itb
-
Flash the image
===============
diff --git a/board/theobroma-systems/puma_rk3399/README b/board/theobroma-systems/puma_rk3399/README
index f67dfb451f..c06c9650b8 100644
--- a/board/theobroma-systems/puma_rk3399/README
+++ b/board/theobroma-systems/puma_rk3399/README
@@ -60,7 +60,6 @@ Creating a SPL image for SD-Card/eMMC
Creating a SPL image for SPI-NOR
> tools/mkimage -n rk3399 -T rkspi -d spl/u-boot-spl.bin spl_nor.img
Create the FIT image containing U-Boot proper, ATF, M0 Firmware, devicetree
- > make CROSS_COMPILE=aarch64-linux-gnu- u-boot.itb
Flash the image
===============
diff --git a/board/vamrs/rock960_rk3399/README b/board/vamrs/rock960_rk3399/README
index d14399090e..c5c675c4ea 100644
--- a/board/vamrs/rock960_rk3399/README
+++ b/board/vamrs/rock960_rk3399/README
@@ -61,7 +61,6 @@ Compile the U-Boot
> export CROSS_COMPILE=aarch64-linux-gnu-
> make rock960-rk3399_defconfig
> make
- > make u-boot.itb
Compile the rkdeveloptool
=========================
--
2.18.0.321.gffc6fa0e3
next reply other threads:[~2019-01-18 7:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-18 7:23 Jagan Teki [this message]
2019-02-02 3:35 ` [U-Boot] [U-Boot, v2, 2/2] Kconfig: Add u-boot.itb BUILD_TARGET for Rockchip Tom Rini
2019-04-18 6:10 ` Jagan Teki
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190118072341.20227-1-jagan@amarulasolutions.com \
--to=jagan@amarulasolutions.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.