diff options
| author | Mark Hatle <mark.hatle@amd.com> | 2023-02-21 17:30:59 -0600 |
|---|---|---|
| committer | Mark Hatle <mark.hatle@amd.com> | 2023-02-22 07:35:15 -0600 |
| commit | 6ad9836940fa9c3541b5339c84d6d86e36734e24 (patch) | |
| tree | 6a915f00684a846d420e0df0fddbe6eb317a5063 | |
| parent | e9f1a0e4bc0ece047fc990b1b7b43d4ca86b55dd (diff) | |
| download | meta-xilinx-6ad9836940fa9c3541b5339c84d6d86e36734e24.tar.gz | |
machine-xilinx-default: Implement default FIT_CONF_DEFAULT_DTB
When using a system device tree build there will be more then one device-tree
that is constructed. If a fit image is constructed, then an DTB needs to be
selected. We use the CONFIG_DTFILE as the default, which should inherit
from the SYSTEM_DTFILE. The default for SYSTEM_DTFILE is empty as a fallback
which should restore the default behavior of first DTB found is the one used.
This also has ramifications for other recipes that use DTB files and unifies
everything.
Signed-off-by: Mark Hatle <mark.hatle@amd.com>
| -rw-r--r-- | meta-xilinx-core/conf/machine/include/machine-xilinx-default.inc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/meta-xilinx-core/conf/machine/include/machine-xilinx-default.inc b/meta-xilinx-core/conf/machine/include/machine-xilinx-default.inc index e5437792..105e3f57 100644 --- a/meta-xilinx-core/conf/machine/include/machine-xilinx-default.inc +++ b/meta-xilinx-core/conf/machine/include/machine-xilinx-default.inc | |||
| @@ -57,6 +57,13 @@ XSERVER ?= " \ | |||
| 57 | ${XSERVER_EXT} \ | 57 | ${XSERVER_EXT} \ |
| 58 | " | 58 | " |
| 59 | 59 | ||
| 60 | # If the user generates a fit-image, there may be more then one DTB to choose from | ||
| 61 | # define a reasonable default that should work for most cases. If the default | ||
| 62 | # does not work, the user will need to define their own value for FIT_CONF_DEFAULT_DTB | ||
| 63 | SYSTEM_DTFILE ??= "" | ||
| 64 | CONFIG_DTFILE ??= "${SYSTEM_DTFILE}" | ||
| 65 | FIT_CONF_DEFAULT_DTB ?= "${@d.getVar('CONFIG_DTFILE').replace('.dts', '.dtb')}" | ||
| 66 | |||
| 60 | # Define to avoid parsse errors below if undefind elsewhere | 67 | # Define to avoid parsse errors below if undefind elsewhere |
| 61 | INITRAMFS_IMAGE ??= "" | 68 | INITRAMFS_IMAGE ??= "" |
| 62 | 69 | ||
