diff options
author | Samuel Holland <samuel@sholland.org> | 2020-10-21 21:12:08 -0500 |
---|---|---|
committer | Jagan Teki <jagan@amarulasolutions.com> | 2020-10-22 11:43:43 +0530 |
commit | 509978e5d2cdfc2faff1721de035c1f4f14fbcae (patch) | |
tree | be6d272d4d70b91610829ecf8ddeb1b07a8c9c07 /Makefile | |
parent | 0e3160b72323c819e7d48c0ae6eb047eb0fe4648 (diff) | |
download | u-boot-509978e5d2cdfc2faff1721de035c1f4f14fbcae.tar.gz |
Makefile: Only define u-boot.itb rule when applicable
If neither CONFIG_SPL_FIT_SOURCE nor CONFIG_USE_SPL_FIT_GENERATOR is
enabled, U_BOOT_ITS will be undefined, and attempting to make u-boot.itb
will pass invalid arguments to mkimage, causing it to print its help
message.
Remove the rule in that case, so it is more obvious that u-boot.itb is
not something that can be made. This will reduce confusion as platforms
move away from CONFIG_USE_SPL_FIT_GENERATOR, as u-boot.itb was
previously a valid goal for those platforms.
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Samuel Holland <samuel@sholland.org>
Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1440,11 +1440,13 @@ else MKIMAGEFLAGS_u-boot.itb = -E endif +ifdef U_BOOT_ITS u-boot.itb: u-boot-nodtb.bin \ $(if $(CONFIG_OF_SEPARATE)$(CONFIG_OF_EMBED)$(CONFIG_OF_HOSTFILE),dts/dt.dtb) \ $(U_BOOT_ITS) FORCE $(call if_changed,mkfitimage) $(BOARD_SIZE_CHECK) +endif u-boot-spl.kwb: u-boot.img spl/u-boot-spl.bin FORCE $(call if_changed,mkimage) |