summaryrefslogtreecommitdiffstats
path: root/platforms
diff options
context:
space:
mode:
authorMichael Riesch <michael.riesch@wolfvision.net>2022-01-29 08:03:29 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2022-01-30 13:17:03 +0100
commit6684c552fbd7d96842dcf489647648718a076c1b (patch)
treea71dcbf3f8991eedc0e7fec0443c425d0fdd10be /platforms
parent3ca92677df5bbde0fb01c396acb0ffc64f26fc2b (diff)
downloadptxdist-6684c552fbd7d96842dcf489647648718a076c1b.tar.gz
ptxdist-6684c552fbd7d96842dcf489647648718a076c1b.tar.xz
barebox: add integration of firmware blobs
In some cases barebox requires firmware blobs, which may be provided in binary form by the vendor or compiled in a preceding step. Add the possibility to specify files (in separate rule files) which are injected in the barebox source directory during preparation. The virtual symbol BAREBOX_DEPENDENCIES is introduced in this patch to allow for the addition of dependencies on e.g., firmware packages. Signed-off-by: Michael Riesch <michael.riesch@wolfvision.net> Message-Id: <20220129070330.2601433-5-michael.riesch@wolfvision.net> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'platforms')
-rw-r--r--platforms/barebox.firmware.in7
-rw-r--r--platforms/barebox.in13
2 files changed, 20 insertions, 0 deletions
diff --git a/platforms/barebox.firmware.in b/platforms/barebox.firmware.in
new file mode 100644
index 000000000..c7275e6d3
--- /dev/null
+++ b/platforms/barebox.firmware.in
@@ -0,0 +1,7 @@
+## SECTION=barebox_firmware
+
+#
+# This file does only exist to create a defined entry in the "barebox_firmware"
+# section, so that the toplevel Kconfig can include generated/barebox_firmware.in
+# even if no package is in that category.
+#
diff --git a/platforms/barebox.in b/platforms/barebox.in
index d35d16501..245b272a3 100644
--- a/platforms/barebox.in
+++ b/platforms/barebox.in
@@ -8,7 +8,12 @@ config BAREBOX_ARCH_STRING
default "ppc" if ARCH_PPC
default "x86" if ARCH_X86
+config BAREBOX_DEPENDENCIES
+ tristate
+ select VIRTUAL
+
menuconfig BAREBOX
+ select BAREBOX_DEPENDENCIES
select BOOTLOADER
select HOST_LIBUSB if BAREBOX_NEEDS_HOST_LIBUSB
select HOST_OPENSSL if BAREBOX_NEEDS_HOST_OPENSSL
@@ -55,6 +60,14 @@ config BAREBOX_CONFIG
This entry specifies the .config file used to compile
barebox.
+menuconfig BAREBOX_FIRMWARE
+ bool
+ prompt "integrate firmware blobs "
+
+if BAREBOX_FIRMWARE
+source "generated/barebox_firmware.in"
+endif
+
config BAREBOX_EXTRA_ENV
prompt "extend the builtin barebox environment"
bool