diff options
| author | Damien Le Moal <[email protected]> | 2019-01-18 15:49:37 +0900 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2019-01-21 09:58:33 +0530 |
| commit | 0df82694776d4497ca3bcfb662a68fd817698e89 (patch) | |
| tree | a0524cf1d8c2df483adb241c53bb3885c2503230 /firmware/objects.mk | |
| parent | f4373731e386a3b410f3e8acf6620111fb339abc (diff) | |
Makefile: Add support for device tree compilation
Add rules to compile dts files into dtb files using the device tree
compiler (dtc). A platform can specify the DTS file to compile using
the platform-dtb-y variable. The flattened device tree binary file to be
used for building the final polatform firmware can be specified using
the new FW_PAYLOAD_FDT firmware configuration option to point to the
automatically compiled FDT file. Using the existing FW_PAYLOAD_FDT_PATH
configuration option is still possible and will take precedence over
the FW_PAYLOAD_FDT definition.
Signed-off-by: Damien Le Moal <[email protected]>
Diffstat (limited to 'firmware/objects.mk')
| -rw-r--r-- | firmware/objects.mk | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/firmware/objects.mk b/firmware/objects.mk index b579ba6e..1c7cc691 100644 --- a/firmware/objects.mk +++ b/firmware/objects.mk @@ -39,6 +39,11 @@ 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=$(build_dir)/$(platform_subdir)/$(FW_PAYLOAD_FDT) +endif +endif ifdef FW_PAYLOAD_FDT_PATH firmware-genflags-$(FW_PAYLOAD) += -DFW_PAYLOAD_FDT_PATH=$(FW_PAYLOAD_FDT_PATH) endif |
