diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2022-07-25 14:04:41 +0200 |
---|---|---|
committer | Robert Schwebel <r.schwebel@pengutronix.de> | 2022-09-05 16:27:24 +0200 |
commit | a1c037a9fbad8aaecbc9a188707896b55ad84102 (patch) | |
tree | 8b921e50898ca77c56f9a14b9420c0edcd2604a9 /configs/platform-v7a/rules | |
parent | e6802be10ccdc83876b69042e77287ad00d38cd3 (diff) | |
download | DistroKit-a1c037a9fbad8aaecbc9a188707896b55ad84102.tar.gz DistroKit-a1c037a9fbad8aaecbc9a188707896b55ad84102.tar.xz |
v7a: barebox-stm32mp: start collecting device tree blobs
FIP images are passed along a device tree via r2 (called hardware
config). As we want barebox to be booted with the barebox DT to
decouple kernel and bootloader updates, install the relevant barebox
DTs, but with a barebox- prefix as they would conflict with kernel
device tree blobs otherwise.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.pengutronix.de/20220725120445.1295669-4-a.fatoum@pengutronix.de
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
Diffstat (limited to 'configs/platform-v7a/rules')
-rw-r--r-- | configs/platform-v7a/rules/barebox-stm32mp.make | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/configs/platform-v7a/rules/barebox-stm32mp.make b/configs/platform-v7a/rules/barebox-stm32mp.make index f120a09..aeb141f 100644 --- a/configs/platform-v7a/rules/barebox-stm32mp.make +++ b/configs/platform-v7a/rules/barebox-stm32mp.make @@ -49,7 +49,14 @@ BAREBOX_STM32MP_IMAGES := \ images/barebox-stm32mp15x-ev1.img \ images/barebox-stm32mp157c-lxa-mc1.img +BAREBOX_STM32MP_FIP_DTBS := \ + stm32mp157c-dk2.dtb \ + stm32mp157c-ev1.dtb \ + stm32mp157c-lxa-mc1.dtb + BAREBOX_STM32MP_IMAGES := $(addprefix $(BAREBOX_STM32MP_BUILD_DIR)/,$(BAREBOX_STM32MP_IMAGES)) +BAREBOX_STM32MP_FIP_DTBS := \ + $(addprefix $(BAREBOX_STM32MP_BUILD_DIR)/arch/arm/dts/,$(BAREBOX_STM32MP_FIP_DTBS)) ifdef PTXCONF_BAREBOX_STM32MP $(BAREBOX_STM32MP_CONFIG): @@ -87,6 +94,9 @@ $(STATEDIR)/barebox-stm32mp.targetinstall: @$(foreach image, $(BAREBOX_STM32MP_IMAGES), \ install -m 644 \ $(image) $(IMAGEDIR)/$(notdir $(image));) + @$(foreach dtb, $(BAREBOX_STM32MP_FIP_DTBS), \ + install -m 644 \ + $(dtb) $(IMAGEDIR)/barebox-$(notdir $(dtb));) @$(call touch) # ---------------------------------------------------------------------------- @@ -98,6 +108,8 @@ $(STATEDIR)/barebox-stm32mp.clean: @$(call clean_pkg, BAREBOX_STM32MP) @$(foreach image, $(BAREBOX_STM32MP_IMAGES), \ rm -fv $(IMAGEDIR)/$(notdir $(image))$(ptx/nl)) + @$(foreach dtb, $(BAREBOX_STM32MP_FIP_DTBS), \ + rm -fv $(IMAGEDIR)/barebox-$(notdir $(dtb))$(ptx/nl)) # ---------------------------------------------------------------------------- # oldconfig / menuconfig |