aboutsummaryrefslogtreecommitdiff
path: root/firmware/objects.mk
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2019-03-27 22:57:20 +0800
committerAnup Patel <anup@brainfault.org>2019-03-29 15:49:11 +0530
commit132f3e024b3c773000ef4dac3f6cae57eb335e1b (patch)
tree0ab5b55ffa38f5b92c112dff4d91f682fcfd9372 /firmware/objects.mk
parente921fc26911bd27cf715483b60c22920812aab21 (diff)
firmware: Introduce "options" in "struct sbi_scratch"
Introduce "options" in "struct sbi_scratch" and firmware can update it based on optional compile time flags before calling sbi_init(). Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'firmware/objects.mk')
-rw-r--r--firmware/objects.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/objects.mk b/firmware/objects.mk
index b8f6e88..72581eb 100644
--- a/firmware/objects.mk
+++ b/firmware/objects.mk
@@ -50,3 +50,7 @@ endif
ifdef FW_PAYLOAD_FDT_ADDR
firmware-genflags-$(FW_PAYLOAD) += -DFW_PAYLOAD_FDT_ADDR=$(FW_PAYLOAD_FDT_ADDR)
endif
+
+ifdef FW_OPTIONS
+firmware-genflags-y += -DFW_OPTIONS=$(FW_OPTIONS)
+endif