From patchwork Sat Apr 25 00:06:29 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiko Stuebner X-Patchwork-Id: 1276735 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=sntech.de Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 498BD73fvyz9sSG for ; Sat, 25 Apr 2020 10:06:46 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 2424787927; Sat, 25 Apr 2020 00:06:44 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pWPz3QN+IYU1; Sat, 25 Apr 2020 00:06:42 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 9EE6C87985; Sat, 25 Apr 2020 00:06:42 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 0E4381BF83B for ; Sat, 25 Apr 2020 00:06:41 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 0B3A585D95 for ; Sat, 25 Apr 2020 00:06:41 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 40173xcvnNLI for ; Sat, 25 Apr 2020 00:06:39 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 77DBA851CC for ; Sat, 25 Apr 2020 00:06:39 +0000 (UTC) Received: from p5b127dea.dip0.t-ipconnect.de ([91.18.125.234] helo=phil.fritz.box) by gloria.sntech.de with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jS8L5-0007EK-JY; Sat, 25 Apr 2020 02:06:35 +0200 From: Heiko Stuebner To: buildroot@buildroot.org Date: Sat, 25 Apr 2020 02:06:29 +0200 Message-Id: <20200425000629.2068191-1-heiko@sntech.de> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [Buildroot] [PATCH] boot/uboot: add option to define custom dependencies X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Heiko Stuebner , heiko@sntech.de, christoph.muellner@theobroma-systems.com Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Heiko Stuebner 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 --- 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