Makefile: Add support for device tree compilation
authorDamien Le Moal <damien.lemoal@wdc.com>
Fri, 18 Jan 2019 06:49:37 +0000 (15:49 +0900)
committerAnup Patel <anup@brainfault.org>
Mon, 21 Jan 2019 04:28:33 +0000 (09:58 +0530)
commit0df82694776d4497ca3bcfb662a68fd817698e89
treea0524cf1d8c2df483adb241c53bb3885c2503230
parentf4373731e386a3b410f3e8acf6620111fb339abc
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 <damien.lemoal@wdc.com>
Makefile
docs/firmware/fw_payload.md
firmware/external_deps.mk
firmware/objects.mk