summaryrefslogtreecommitdiff
path: root/firmware/external_deps.mk
diff options
context:
space:
mode:
authorAnup Patel <anup.patel@wdc.com>2019-04-04 09:19:43 +0300
committerAnup Patel <anup@brainfault.org>2019-04-09 06:44:09 +0300
commit54f31e82093969eaca9f7ebab06c92fa044dd076 (patch)
tree4bdf1b0287726485a17525b59919cca799449354 /firmware/external_deps.mk
parent40086daa6275889d55829501ae926a95c9349701 (diff)
downloadopensbi-54f31e82093969eaca9f7ebab06c92fa044dd076.tar.xz
TOP: Allow building platform out-of-tree
This patch extends our current build-system for building platform sources which are not part of OpenSBI sources. For example: Let's say we have out-of-tree ABC platform sources. We place these sources under <XYZ>/ABC directory along with its config.mk and objects.mk. To build out-of-tree ABC platform from OpenSBI directory: $ make PLATFORM_DIR=<XYZ>/ABC OR $ make PLATFORM_DIR=<XYZ> PLATFORM=ABC To build out-of-tree ABC platform from <XYZ>/ABC directory: $ make PLATFORM_DIR=<XYZ>/ABC -C <path_to_opensbi> OR $ make PLATFORM_DIR=<XYZ> PLATFORM=ABC -C <path_to_opensbi> Signed-off-by: Anup Patel <anup.patel@wdc.com> Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Diffstat (limited to 'firmware/external_deps.mk')
-rw-r--r--firmware/external_deps.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/external_deps.mk b/firmware/external_deps.mk
index d2346ab..2b8f9f6 100644
--- a/firmware/external_deps.mk
+++ b/firmware/external_deps.mk
@@ -7,5 +7,5 @@
# Anup Patel <anup.patel@wdc.com>
#
-$(build_dir)/$(platform_subdir)/firmware/fw_payload.o: $(FW_PAYLOAD_PATH_FINAL)
-$(build_dir)/$(platform_subdir)/firmware/fw_payload.o: $(FW_PAYLOAD_FDT_PATH)
+$(platform_build_dir)/firmware/fw_payload.o: $(FW_PAYLOAD_PATH_FINAL)
+$(platform_build_dir)/firmware/fw_payload.o: $(FW_PAYLOAD_FDT_PATH)