diff options
| author | Mark Hatle <mark.hatle@amd.com> | 2022-11-22 12:48:35 -0800 |
|---|---|---|
| committer | Mark Hatle <mark.hatle@amd.com> | 2023-04-07 17:50:36 -0700 |
| commit | f9a8800595ef13d5e87cac46183afa5acb493bae (patch) | |
| tree | af107ae03ba15927e41cd8a150a8a15207525d82 | |
| parent | c2c6b9e86fc030318de145c3118ba36c50f87734 (diff) | |
| download | meta-xilinx-f9a8800595ef13d5e87cac46183afa5acb493bae.tar.gz | |
image-wic-utils.bbclass: Support subdirectory parsing
Syntax for IMAGE_BOOT_FILES is <source>;<dest> where either or both
source can include a directory. In the case of:
devicetree/*.dtbo;devicetree/
The system will copy all of the contents (*.dtbo) from devicetree directory
and place it into a corresponding devicetree directory (using the same
filename) in the boot partition.
The code wasn't paying attention to this directory syntax, which caused
boot configuration errors.
Signed-off-by: Mark Hatle <mark.hatle@amd.com>
| -rw-r--r-- | meta-xilinx-core/classes/image-wic-utils.bbclass | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/meta-xilinx-core/classes/image-wic-utils.bbclass b/meta-xilinx-core/classes/image-wic-utils.bbclass index 562f3263..41ad8148 100644 --- a/meta-xilinx-core/classes/image-wic-utils.bbclass +++ b/meta-xilinx-core/classes/image-wic-utils.bbclass | |||
| @@ -21,7 +21,10 @@ def boot_files_split_expand(d): | |||
| 21 | # for all sources, yield an entry | 21 | # for all sources, yield an entry |
| 22 | for s in sources: | 22 | for s in sources: |
| 23 | if len(parts) == 2: | 23 | if len(parts) == 2: |
| 24 | yield s, parts[1].strip() | 24 | if parts[1].endswith('/'): |
| 25 | yield s, '%s%s' % (parts[1].strip(), s) | ||
| 26 | else: | ||
| 27 | yield s, parts[1].strip() | ||
| 25 | yield s, s | 28 | yield s, s |
| 26 | 29 | ||
| 27 | def boot_files_bitstream(d): | 30 | def boot_files_bitstream(d): |
