diff options
| author | Mark Hatle <mark.hatle@xilinx.com> | 2021-09-16 19:34:24 -0700 |
|---|---|---|
| committer | Sai Hari Chandana Kalluri <chandana.kalluri@xilinx.com> | 2021-09-28 08:21:02 -0700 |
| commit | 851f9dd5718ab518aad44590007167cddc32e252 (patch) | |
| tree | 45a4c82e31d21692768f87a12ae30bea9187208d /meta-xilinx-standalone-experimental | |
| parent | 91646fb0fe45c1c7a6223048556361c54380f9f4 (diff) | |
| download | meta-xilinx-851f9dd5718ab518aad44590007167cddc32e252.tar.gz | |
device-tree: rework prestep integration
All configurations are expected to pass in a pre-processed device tree. Use
this version unconditionally.
In order to allow a Linux build, without 'system-top.dtb', we need to prepend
the components in do_deploy as they expect some level of processing to have
happened.
Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
Diffstat (limited to 'meta-xilinx-standalone-experimental')
| -rw-r--r-- | meta-xilinx-standalone-experimental/recipes-bsp/device-tree/device-tree.bbappend | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/meta-xilinx-standalone-experimental/recipes-bsp/device-tree/device-tree.bbappend b/meta-xilinx-standalone-experimental/recipes-bsp/device-tree/device-tree.bbappend index 6aadcb48..a38c1386 100644 --- a/meta-xilinx-standalone-experimental/recipes-bsp/device-tree/device-tree.bbappend +++ b/meta-xilinx-standalone-experimental/recipes-bsp/device-tree/device-tree.bbappend | |||
| @@ -1,12 +1,14 @@ | |||
| 1 | CONFIG_DTFILE ?= "" | 1 | CONFIG_DTFILE ?= "" |
| 2 | 2 | ||
| 3 | do_install_append_xilinx-standalone() { | 3 | do_install_prepend() { |
| 4 | for DTB_FILE in ${CONFIG_DTFILE}; do | 4 | for DTB_FILE in ${CONFIG_DTFILE}; do |
| 5 | install -Dm 0644 ${DTB_FILE} ${D}/boot/devicetree/$(basename ${DTB_FILE}) | 5 | install -Dm 0644 ${DTB_FILE} ${D}/boot/devicetree/$(basename ${DTB_FILE}) |
| 6 | done | 6 | done |
| 7 | } | 7 | } |
| 8 | 8 | ||
| 9 | do_deploy_append_xilinx-standalone() { | 9 | # This needs to run BEFORE the device tree version, otherwise it can error with |
| 10 | # Expected filename ${DTB_FILE_NAME} doesn't exist in ${DEPLOYDIR}/devicetree | ||
| 11 | devicetree_do_deploy_prepend() { | ||
| 10 | for DTB_FILE in ${CONFIG_DTFILE}; do | 12 | for DTB_FILE in ${CONFIG_DTFILE}; do |
| 11 | install -Dm 0644 ${DTB_FILE} ${DEPLOYDIR}/devicetree/$(basename ${DTB_FILE}) | 13 | install -Dm 0644 ${DTB_FILE} ${DEPLOYDIR}/devicetree/$(basename ${DTB_FILE}) |
| 12 | done | 14 | done |
