From 3f6dbcb2f2b9e21e7546ab456f4bcd7ca6025093 Mon Sep 17 00:00:00 2001 From: Noah Huetter Date: Wed, 27 Apr 2022 15:14:00 +0200 Subject: [PATCH] boot/opensbi: introduce BR2_TARGET_OPENSBI_ADDITIONAL_VARIABLES Signed-off-by: Noah Huetter Reviewed-by: Alistair Francis [Thomas/Arnout: change option name from BR2_TARGET_OPENSBI_CUSTOM_MAKEOPTS to BR2_TARGET_OPENSBI_ADDITIONAL_VARIABLES] Signed-off-by: Thomas Petazzoni --- boot/opensbi/Config.in | 6 ++++++ boot/opensbi/opensbi.mk | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/boot/opensbi/Config.in b/boot/opensbi/Config.in index f1443498d9..86f848f177 100644 --- a/boot/opensbi/Config.in +++ b/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 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 diff --git a/boot/opensbi/opensbi.mk b/boot/opensbi/opensbi.mk index 01f0c3ad40..06ec87b2c3 100644 --- a/boot/opensbi/opensbi.mk +++ b/boot/opensbi/opensbi.mk @@ -31,7 +31,8 @@ BR_NO_CHECK_HASH_FOR += $(OPENSBI_SOURCE) endif 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)) ifneq ($(OPENSBI_PLAT),)