diff options
author | Anup Patel <anup.patel@wdc.com> | 2020-05-25 12:43:31 +0300 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2020-06-05 06:33:05 +0300 |
commit | 51f0e4a0533fe8b5d713379ab3a6cb676add82da (patch) | |
tree | 24ce214ae56448b85f5e024d94ac385dff87322e | |
parent | 72019ee2020fbc196a730dc4f52309e39d6b764a (diff) | |
download | opensbi-51f0e4a0533fe8b5d713379ab3a6cb676add82da.tar.xz |
firmware: Remove FW_PAYLOAD_FDT and related documentation
Now that no platform is using FW_PAYLOAD_FDT mechanism, we
remove related code from Makefile and related documentation.
Signed-off-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | docs/firmware/fw_payload.md | 16 | ||||
-rw-r--r-- | firmware/objects.mk | 5 | ||||
-rw-r--r-- | platform/template/config.mk | 1 | ||||
-rw-r--r-- | platform/template/objects.mk | 8 |
5 files changed, 6 insertions, 26 deletions
@@ -130,7 +130,6 @@ libsbi-objs-path-y=$(foreach obj,$(libsbi-objs-y),$(build_dir)/lib/sbi/$(obj)) libsbiutils-objs-path-y=$(foreach obj,$(libsbiutils-objs-y),$(build_dir)/lib/utils/$(obj)) ifdef PLATFORM platform-objs-path-y=$(foreach obj,$(platform-objs-y),$(platform_build_dir)/$(obj)) -platform-dtb-path-y=$(foreach obj,$(platform-dtb-y),$(platform_build_dir)/$(obj)) firmware-bins-path-y=$(foreach bin,$(firmware-bins-y),$(platform_build_dir)/firmware/$(bin)) endif firmware-elfs-path-y=$(firmware-bins-path-y:.bin=.elf) @@ -301,7 +300,6 @@ targets-y = $(build_dir)/lib/libsbi.a targets-y += $(build_dir)/lib/libsbiutils.a ifdef PLATFORM targets-y += $(platform_build_dir)/lib/libplatsbi.a -targets-y += $(platform-dtb-path-y) endif targets-y += $(firmware-bins-path-y) diff --git a/docs/firmware/fw_payload.md b/docs/firmware/fw_payload.md index d950eb6..bc712d2 100644 --- a/docs/firmware/fw_payload.md +++ b/docs/firmware/fw_payload.md @@ -57,17 +57,8 @@ file. The parameters currently defined are as follows: * **FW_PAYLOAD_FDT_PATH** - Path to an external flattened device tree binary file to be embedded in the *.text* section of the final firmware. If this - option is not provided and no internal device tree file is specified by the - platform (c.f. *FW_PAYLOAD_FDT*), then the firmware will expect the FDT to - be passed as an argument by the prior booting stage. - -* **FW_PAYLOAD_FDT** - Path to an internal flattened device tree binary file - defined by the platform code. The file name must match the DTB file name - specified in the platform *objects.mk* file with the *platform-dtb-y* entry. - This option results in *FW_PAYLOAD_FDT_PATH* to be automatically set. - Specifying *FW_PAYLOAD_FDT_PATH* on the `make` command line disables - *FW_PAYLOAD_FDT* and the command line specified device tree binary file is - used for building the final firmware. + option is not provided then the firmware will expect the FDT to be passed + as an argument by the prior booting stage. * **FW_PAYLOAD_FDT_ADDR** - Address where the FDT passed by the prior booting stage or specified by the *FW_PAYLOAD_FDT_PATH* parameter and embedded in @@ -83,7 +74,4 @@ The *[qemu/virt]* platforms illustrate how to configure and use a *FW_PAYLOAD* firmware. Detailed information regarding these platforms can be found in the platform documentation files. -The *kendryte/k210* platform also enables a build of a *FW_PAYLOAD* using an -internally defined device tree file (*FW_PAYLOAD_FDT*). - [qemu/virt]: ../platform/qemu_virt.md diff --git a/firmware/objects.mk b/firmware/objects.mk index e8969e6..c980362 100644 --- a/firmware/objects.mk +++ b/firmware/objects.mk @@ -41,11 +41,6 @@ ifdef FW_PAYLOAD_ALIGN firmware-genflags-$(FW_PAYLOAD) += -DFW_PAYLOAD_ALIGN=$(FW_PAYLOAD_ALIGN) endif -ifndef FW_PAYLOAD_FDT_PATH -ifdef FW_PAYLOAD_FDT -FW_PAYLOAD_FDT_PATH=$(platform_build_dir)/$(FW_PAYLOAD_FDT) -endif -endif ifdef FW_PAYLOAD_FDT_PATH firmware-genflags-$(FW_PAYLOAD) += -DFW_PAYLOAD_FDT_PATH=\"$(FW_PAYLOAD_FDT_PATH)\" endif diff --git a/platform/template/config.mk b/platform/template/config.mk index 70f2db8..7bcf937 100644 --- a/platform/template/config.mk +++ b/platform/template/config.mk @@ -72,5 +72,4 @@ endif # FW_PAYLOAD_ALIGN=0x1000 # FW_PAYLOAD_PATH="path to next boot stage binary image file" # FW_PAYLOAD_FDT_PATH="path to platform flattened device tree file" -# FW_PAYLOAD_FDT="name of the platform defined flattened device tree file" # FW_PAYLOAD_FDT_ADDR=0x82200000 diff --git a/platform/template/objects.mk b/platform/template/objects.mk index b9ba231..caaec2b 100644 --- a/platform/template/objects.mk +++ b/platform/template/objects.mk @@ -8,8 +8,8 @@ platform-objs-y += platform.o # -# If the platform support requires a device tree file, the name of the device -# tree compiled file should be specified here. The device tree source file -# be in the form <dt file name>.dts +# If the platform support requires a builtin device tree file, the name of +# the device tree compiled file should be specified here. The device tree +# source file be in the form <dt file name>.dts # -# platform-dtb-y += <dt file name>.dtb +# platform-objs-y += <dt file name>.o |