[PATCH v2 03/18] Makefile: Tidy up SPL dtb production

Simon Glass sjg at chromium.org
Mon Dec 28 17:26:09 CET 2020


Use the SPL_NAME variable to simplify the rules. Drop the SPL targets
clean-files since the SPL and TPL dts/ directories are removed by
existing rules. Move the SPL rules into a new spl_dtbs to avoid the
complicated $(if) construct.

Also drop unused pieces from the 'targets' variable.

With this, SPL and TPL have separate dtbs which respect the various
u-boot,dm-spl / u-boot,dm-tpl tags.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

(no changes since v1)

 dts/Makefile         | 18 +++++++++---------
 scripts/Makefile.spl |  7 ++++---
 2 files changed, 13 insertions(+), 12 deletions(-)

Applied to u-boot-dm/next, thanks!


More information about the U-Boot mailing list