diff options
author | Anup Patel <anup.patel@wdc.com> | 2020-10-14 16:03:35 +0530 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2020-10-18 10:28:26 +0530 |
commit | 6ca096977d723f3ac50291d668719bd938a85544 (patch) | |
tree | 080b13bd140acc05ef08066dcb35586553bd90b9 /firmware/objects.mk | |
parent | af4b50f896684040dd3f56f2fdcad702f527c633 (diff) | |
download | opensbi-6ca096977d723f3ac50291d668719bd938a85544.zip opensbi-6ca096977d723f3ac50291d668719bd938a85544.tar.gz opensbi-6ca096977d723f3ac50291d668719bd938a85544.tar.bz2 |
firmware: Add common FW_FDT_PATH compile-time option
Currently, only FW_PAYLOAD has mechanism to embed external
FDT using FW_PAYLOAD_FDT_PATH compile-time option.
This patch adds a common FW_FDT_PATH compile-time option to
embed external FDT for all OpenSBI firmwares (i.e FW_JUMP,
FW_PAYLOAD, and FW_DYNAMIC).
Signed-off-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
Diffstat (limited to 'firmware/objects.mk')
-rw-r--r-- | firmware/objects.mk | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/firmware/objects.mk b/firmware/objects.mk index c980362..2eea54c 100644 --- a/firmware/objects.mk +++ b/firmware/objects.mk @@ -17,6 +17,13 @@ ifdef FW_TEXT_START firmware-genflags-y += -DFW_TEXT_START=$(FW_TEXT_START) endif +ifdef FW_FDT_PATH +firmware-genflags-y += -DFW_FDT_PATH=\"$(FW_FDT_PATH)\" +ifdef FW_FDT_PADDING +firmware-genflags-y += -DFW_FDT_PADDING=$(FW_FDT_PADDING) +endif +endif + firmware-bins-$(FW_DYNAMIC) += fw_dynamic.bin firmware-bins-$(FW_JUMP) += fw_jump.bin |