diff options
author | Yannick Gicquel <yannick.gicquel@iot.bzh> | 2016-04-27 16:20:55 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-05-06 10:31:13 +0100 |
commit | cb565d5b4009432be2d10568aa07367ca7912770 (patch) | |
tree | 435293a7bedff5587f22562447db9b2e36c33793 /meta/classes | |
parent | 858ddd508b93c3940a7d2fc22a3896cb58e39544 (diff) | |
download | poky-cb565d5b4009432be2d10568aa07367ca7912770.tar.gz |
kernel: fitimage: support device tree compiler options
This introduces a new variable to set the device tree compiler options while
calling mkimage ('-D' option). By default, this variable is not set but it can
be defined in a configuration file, as following example:
UBOOT_MKIMAGE_DTCOPTS = "-I dts -O dtb -p 2000"
(From OE-Core rev: 9a3f541da305c75418c2eec75ade902717a01b69)
Signed-off-by: Yannick Gicquel <yannick.gicquel@iot.bzh>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/kernel-fitimage.bbclass | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/meta/classes/kernel-fitimage.bbclass b/meta/classes/kernel-fitimage.bbclass index e5b75edf5b..62e0017617 100644 --- a/meta/classes/kernel-fitimage.bbclass +++ b/meta/classes/kernel-fitimage.bbclass | |||
@@ -17,6 +17,9 @@ python __anonymous () { | |||
17 | d.appendVarFlag('do_assemble_fitimage', 'depends', ' ${INITRAMFS_IMAGE}:do_image_complete') | 17 | d.appendVarFlag('do_assemble_fitimage', 'depends', ' ${INITRAMFS_IMAGE}:do_image_complete') |
18 | } | 18 | } |
19 | 19 | ||
20 | # Options for the device tree compiler passed to mkimage '-D' feature: | ||
21 | UBOOT_MKIMAGE_DTCOPTS ??= "" | ||
22 | |||
20 | # | 23 | # |
21 | # Emit the fitImage ITS header | 24 | # Emit the fitImage ITS header |
22 | # | 25 | # |
@@ -209,7 +212,10 @@ do_assemble_fitimage() { | |||
209 | # | 212 | # |
210 | # Step 4: Assemble the image | 213 | # Step 4: Assemble the image |
211 | # | 214 | # |
212 | uboot-mkimage -f fit-image.its arch/${ARCH}/boot/fitImage | 215 | uboot-mkimage \ |
216 | ${@'-D "${UBOOT_MKIMAGE_DTCOPTS}"' if len('${UBOOT_MKIMAGE_DTCOPTS}') else ''} \ | ||
217 | -f fit-image.its \ | ||
218 | arch/${ARCH}/boot/fitImage | ||
213 | fi | 219 | fi |
214 | } | 220 | } |
215 | 221 | ||