Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] boot/uboot: add option to define custom dependencies
@ 2020-04-25  0:06 Heiko Stuebner
  2020-04-25 13:38 ` Thomas Petazzoni
  2022-01-08 19:40 ` Thomas Petazzoni
  0 siblings, 2 replies; 11+ messages in thread
From: Heiko Stuebner @ 2020-04-25  0:06 UTC (permalink / raw)
  To: buildroot

From: Heiko Stuebner <heiko.stuebner@theobroma-systems.com>

A custom uboot version my depend on additional unspecified packages
to be built before the uboot build is attempted.

One example is an additional config fragment referencing things
from other packages, so add an option similar to the config fragments
where these can be defined.

Signed-off-by: Heiko Stuebner <heiko.stuebner@theobroma-systems.com>
---
 boot/uboot/Config.in | 8 ++++++++
 boot/uboot/uboot.mk  | 1 +
 2 files changed, 9 insertions(+)

diff --git a/boot/uboot/Config.in b/boot/uboot/Config.in
index 7a6f5053fd..310c6e8a80 100644
--- a/boot/uboot/Config.in
+++ b/boot/uboot/Config.in
@@ -62,6 +62,14 @@ config BR2_TARGET_UBOOT_CUSTOM_SVN
 
 endchoice
 
+config BR2_TARGET_UBOOT_CUSTOM_DEPENDENCIES
+	string "Additional dependencies"
+	help
+	  Specify here package names that are additionally needed.
+	  This can be for example packages that provide things
+	  referenced by additional config fragments or custom u-boot
+	  sources.
+
 config BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE
 	string "U-Boot version"
 	depends on BR2_TARGET_UBOOT_CUSTOM_VERSION
diff --git a/boot/uboot/uboot.mk b/boot/uboot/uboot.mk
index 2bfa50779b..639be3e520 100644
--- a/boot/uboot/uboot.mk
+++ b/boot/uboot/uboot.mk
@@ -259,6 +259,7 @@ endif # BR2_TARGET_UBOOT_USE_DEFCONFIG
 
 UBOOT_KCONFIG_FRAGMENT_FILES = $(call qstrip,$(BR2_TARGET_UBOOT_CONFIG_FRAGMENT_FILES))
 UBOOT_KCONFIG_EDITORS = menuconfig xconfig gconfig nconfig
+UBOOT_DEPENDENCIES += $(call qstrip,$(BR2_TARGET_UBOOT_CUSTOM_DEPENDENCIES))
 
 # UBOOT_MAKE_OPTS overrides HOSTCC / HOSTLDFLAGS to allow the build to
 # find our host-openssl. However, this triggers a bug in the kconfig
-- 
2.25.1

^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2022-01-08 19:40 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-25  0:06 [Buildroot] [PATCH] boot/uboot: add option to define custom dependencies Heiko Stuebner
2020-04-25 13:38 ` Thomas Petazzoni
2020-04-25 21:13   ` Yann E. MORIN
2020-04-25 21:22     ` Thomas Petazzoni
2020-04-25 21:31       ` Heiko Stübner
2020-04-25 21:45         ` Yann E. MORIN
2020-04-27  8:31     ` Arnout Vandecappelle
2020-04-27 15:41       ` Thomas Petazzoni
2020-04-27 16:59         ` Arnout Vandecappelle
     [not found]           ` <794007695.ejsOJfsjEF@diego>
2020-04-27 19:08             ` Thomas Petazzoni
2022-01-08 19:40 ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox