summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Pretzsch <apr@cn-eng.de>2019-07-01 18:57:53 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2019-07-03 19:28:53 +0200
commitd7c75330a2e672b55e21fd7c6c24d5eb34a1bcd9 (patch)
tree45095e2f180c62238d9fc6efd464eefbd841c375
parent583e9dd0b319948bb07d9d7e2421dac661503083 (diff)
downloadptxdist-d7c75330a2e672b55e21fd7c6c24d5eb34a1bcd9.tar.gz
ptxdist-d7c75330a2e672b55e21fd7c6c24d5eb34a1bcd9.tar.xz
rauc: select on-target tools depending on bootloader
RAUC relies on tools on the target to interact with the bootloader. As the bootloader selection is not part of ptxconfig, but platformconfig, have the user select the bootloader used on the target. Based on this, auto-select the appropriate package: barebox: dt-utils (barebox-state) U-Boot: u-boot-tools (fw_printenv, fw_setenv) EFI: efibootmgr (efibootmgr) Regarding GRUB support, grub-editenv from GRUB2 is required. Currently, there is no "GRUB2" package in ptxdist, so no active option for it. Signed-off-by: Andreas Pretzsch <apr@cn-eng.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--rules/rauc.in35
1 files changed, 33 insertions, 2 deletions
diff --git a/rules/rauc.in b/rules/rauc.in
index 213a1211e..078c75bff 100644
--- a/rules/rauc.in
+++ b/rules/rauc.in
@@ -8,12 +8,16 @@ menuconfig RAUC
select GLIB_LIBMOUNT
select HOST_GLIB
select BUSYBOX_FEATURE_TAR_LONG_OPTIONS if BUSYBOX_TAR
- select BUSYBOX_FEATURE_TAR_AUTODETECT if BUSYBOX_TAR
- select BUSYBOX_FEATURE_SEAMLESS_XZ if BUSYBOX_TAR
+ select BUSYBOX_FEATURE_TAR_AUTODETECT if BUSYBOX_TAR
+ select BUSYBOX_FEATURE_SEAMLESS_XZ if BUSYBOX_TAR
select LIBCURL if RAUC_NETWORK
select JSON_GLIB if RAUC_JSON
select SQUASHFS_TOOLS if RUNTIME
select SQUASHFS_TOOLS_UNSQUASHFS if RUNTIME
+ select DT_UTILS if RUNTIME && RAUC_BAREBOX
+ select U_BOOT_TOOLS if RUNTIME && RAUC_U_BOOT
+ #select GRUB2 if RUNTIME && RAUC_GRUB
+ select EFIBOOTMGR if RUNTIME && RAUC_EFI
help
Robust Auto-Update Controller. RAUC controls the update process on embedded linux systems.
@@ -78,4 +82,31 @@ config RAUC_BUNDLE_VERSION
endif
+config RAUC_BAREBOX
+ bool "barebox support"
+ help
+ To interact with barebox, barebox-state from dt-utils is used.
+ Auto-select this package for installation on the target.
+
+config RAUC_U_BOOT
+ bool "U-Boot support"
+ help
+ To interact with U-Boot, fw_printenv and fw_setenv from
+ u-boot-tools are used.
+ Auto-select this package for installation on the target.
+
+config RAUC_GRUB
+ bool "GRUB support"
+ # needs grub2
+ depends on BROKEN
+ help
+ To interact with GRUB2, grub-editenv from grub is used.
+ Auto-select this package for installation on the target.
+
+config RAUC_EFI
+ bool "EFI support"
+ help
+ To interact with EFI, efibootmgr from efibootmgr is used.
+ Auto-select this package for installation on the target.
+
endif