ソースを参照

boot/opensbi: introduce BR2_TARGET_OPENSBI_ADDITIONAL_VARIABLES

Signed-off-by: Noah Huetter <noahhuetter@gmail.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
[Thomas/Arnout: change option name from
BR2_TARGET_OPENSBI_CUSTOM_MAKEOPTS to
BR2_TARGET_OPENSBI_ADDITIONAL_VARIABLES]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Noah Huetter 3 年 前
コミット
3f6dbcb2f2
2 ファイル変更8 行追加1 行削除
  1. 6 0
      boot/opensbi/Config.in
  2. 2 1
      boot/opensbi/opensbi.mk

+ 6 - 0
boot/opensbi/Config.in

@@ -119,4 +119,10 @@ config BR2_TARGET_OPENSBI_FW_FDT_PATH
 	  must be set in the U-Boot configuration for this file to be
 	  must be set in the U-Boot configuration for this file to be
 	  produced.
 	  produced.
 
 
+config BR2_TARGET_OPENSBI_ADDITIONAL_VARIABLES
+	string "Additional build variables"
+	help
+	  Additional parameters for the build, which will be passed on
+	  the make command line. E.g: BUILD_INFO=1.
+
 endif
 endif

+ 2 - 1
boot/opensbi/opensbi.mk

@@ -31,7 +31,8 @@ BR_NO_CHECK_HASH_FOR += $(OPENSBI_SOURCE)
 endif
 endif
 
 
 OPENSBI_MAKE_ENV = \
 OPENSBI_MAKE_ENV = \
-	CROSS_COMPILE=$(TARGET_CROSS)
+	CROSS_COMPILE=$(TARGET_CROSS) \
+	$(call qstrip,$(BR2_TARGET_OPENSBI_ADDITIONAL_VARIABLES))
 
 
 OPENSBI_PLAT = $(call qstrip,$(BR2_TARGET_OPENSBI_PLAT))
 OPENSBI_PLAT = $(call qstrip,$(BR2_TARGET_OPENSBI_PLAT))
 ifneq ($(OPENSBI_PLAT),)
 ifneq ($(OPENSBI_PLAT),)