diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2019-09-09 14:22:56 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-10-01 22:34:05 +0200 |
commit | 9d7a00bd45a0d7a4fc2110251916abb3dc555fd4 (patch) | |
tree | bce66690e64d9b61d675abc17a4369e61074f7d2 /scripts | |
parent | 070de908da26d7c1b2a29749be313d2b386f3645 (diff) | |
download | barebox-9d7a00bd45a0d7a4fc2110251916abb3dc555fd4.tar.gz barebox-9d7a00bd45a0d7a4fc2110251916abb3dc555fd4.tar.xz |
ARM: Compile dtbs for lowlevel code
When no PBL is used then the DTB is used in the real barebox binary. We
already have lwl-y for code which needs to be in PBL when existing and
in the real barebox binary otherwise. Do the same for the DTBs and
compile them with lwl-dtb-y.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/Makefile.lib | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index c4d307ae30..a0fd71055c 100644 --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib @@ -18,6 +18,8 @@ extra-y += $(patsubst %.dtb.o,%.dtb.S,$(obj-dtb-y)) extra-y += $(patsubst %.dtb.o,%.dtb,$(obj-dtb-y)) extra-y += $(patsubst %.dtb.o,%.dtb.S,$(pbl-dtb-y)) extra-y += $(patsubst %.dtb.o,%.dtb,$(pbl-dtb-y)) +extra-y += $(patsubst %.dtb.o,%.dtb.S,$(lwl-dtb-y)) +extra-y += $(patsubst %.dtb.o,%.dtb,$(lwl-dtb-y)) # Handle objects in subdirs # --------------------------------------------------------------------------- @@ -29,9 +31,9 @@ extra-y += $(patsubst %.dtb.o,%.dtb,$(pbl-dtb-y)) # lowlevel is present in the PBL if enabled # otherwise in barebox ifeq ($(CONFIG_PBL_IMAGE), y) -pbl-y += $(lwl-y) +pbl-y += $(lwl-y) $(lwl-dtb-y) else -obj-y += $(lwl-y) +obj-y += $(lwl-y) $(lwl-dtb-y) endif obj-y += $(obj-pbl-y) |