summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorNishanth Menon <nm@ti.com>2016-10-14 01:13:57 +0000
committerNishanth Menon <nm@ti.com>2017-09-19 21:16:35 -0500
commit03b397a828299eba573f7a46dd74410b45f50ee1 (patch)
treebe2638f9835132df79d9283eae4934735ebcf5d9 /common
parentea12986b879b4b7faa4771d0a098e6b38f5ec6fe (diff)
Makefile: Add ability to build dtb
This is a revamp of the original approach in: https://github.com/ARM-software/arm-trusted-firmware/pull/747 Current build system has no means to automatically generate dtbs from dts, instead, stores the dtbs in the fdts/ folder. While this makes perfect sense for many reference platforms, this becomes a minor breakage in development flow for newer platforms. However, this can be solved by providing a rule for the dtbs while building the ATF binaries by purely describing which dts sources we need. For example, with this change, we will now be able to describe the dtbs we need for the platform in the corresponding platform.mk file: FDT_SOURCES += fdts/abc.dts This should be able to generate the abc.dtb appropriately. Since device trees are specification of hardware, we don't tie the rule to any specific BL, instead a generic rule is introduced. Further, this approach allows us to generate appropriate dtbs which may be need to be regenerated when a common dtsi gets updated, by just restricting changes to the dtsi alone, instead of synchronizing all the dtbs as well. If dtc is not available in default paths, but is available in an alternate location, it can be chosen by overriding the DTC variable such as 'make DTC=~/dtc/dtc ....` NOTE: dtbs are built only with the explicit make dtbs command. The rule is only available if the platform defines a FDT_SOURCES variable. Signed-off-by: Benjamin Fair <b-fair@ti.com> Signed-off-by: Nishanth Menon <nm@ti.com>
Diffstat (limited to 'common')
0 files changed, 0 insertions, 0 deletions