summaryrefslogtreecommitdiffstats
path: root/rules
diff options
context:
space:
mode:
authorMarco Felsch <m.felsch@pengutronix.de>2023-02-10 20:36:08 +0100
committerRobert Schwebel <r.schwebel@pengutronix.de>2023-02-11 17:19:20 +0100
commit1e3e1fc761dcfc709c541c508c263a6de09c00ac (patch)
treea8ea9ad32ce551ddd42582762812f977167ecc90 /rules
parent9b2d00e413c5ff166e60be82d107be3ea8883334 (diff)
downloadDistroKit-1e3e1fc761dcfc709c541c508c263a6de09c00ac.tar.gz
DistroKit-1e3e1fc761dcfc709c541c508c263a6de09c00ac.tar.xz
blspec-entry: add linux-appendroot support
Add the option to add the 'linux-appendroot true' to blspec config file which is very useful in case of using barebox as bootlaoder. Signed-off-by: Marco Felsch <m.felsch@pengutronix.de> Link: https://lore.pengutronix.de/20230210193612.2143905-11-m.felsch@pengutronix.de Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
Diffstat (limited to 'rules')
-rw-r--r--rules/blspec-entry.make10
1 files changed, 9 insertions, 1 deletions
diff --git a/rules/blspec-entry.make b/rules/blspec-entry.make
index f393b1b..7523009 100644
--- a/rules/blspec-entry.make
+++ b/rules/blspec-entry.make
@@ -35,6 +35,12 @@ else
BLSPEC_KERNEL_IMAGE = $(KERNEL_IMAGE)
endif
+ifdef PTXCONF_BLSPEC_ENTRY_APPENDROOT
+BLSPEC_APPENDROOT = linux-appendroot\ttrue
+else
+BLSPEC_APPENDROOT =
+endif
+
$(STATEDIR)/blspec-entry.targetinstall:
@$(call targetinfo)
@@ -56,7 +62,9 @@ $(STATEDIR)/blspec-entry.targetinstall:
$(call install_replace, blspec-entry, /loader/entries/$(name).conf, \
@KERNEL@,'/boot/$(BLSPEC_KERNEL_IMAGE)')$(ptx/nl) \
$(call install_replace, blspec-entry, /loader/entries/$(name).conf, \
- @DEVICETREE@,'$(call blspec/devicetree,$(name))')$(ptx/nl))
+ @DEVICETREE@,'$(call blspec/devicetree,$(name))')$(ptx/nl) \
+ $(call install_replace, blspec-entry, /loader/entries/$(name).conf, \
+ @LINUXAPPENDROOT@,'$(BLSPEC_APPENDROOT)')$(ptx/nl))
@$(call install_finish,blspec-entry)