diff options
author | Yannick Gicquel <yannick.gicquel@iot.bzh> | 2016-04-27 17:20:55 +0300 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2017-01-11 18:53:23 +0300 |
commit | d5813b4bc57e83259ff601f015ccacce70adacd5 (patch) | |
tree | de2e8b392bc5b8f0814ba4e88465154e2a3b410b /import-layers/yocto-poky/meta | |
parent | c16a37d6921841040aed2ff9c906c7bd6198ce83 (diff) | |
download | openbmc-d5813b4bc57e83259ff601f015ccacce70adacd5.tar.xz |
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>
(cherry picked from commit cb565d5b4009432be2d10568aa07367ca7912770)
Change-Id: I65b0fe78c515089069fd94c34548fa45195830b4
Signed-off-by: Rick Altherr <raltherr@google.com>
Diffstat (limited to 'import-layers/yocto-poky/meta')
-rw-r--r-- | import-layers/yocto-poky/meta/classes/kernel-fitimage.bbclass | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/import-layers/yocto-poky/meta/classes/kernel-fitimage.bbclass b/import-layers/yocto-poky/meta/classes/kernel-fitimage.bbclass index 526df9be0..80dfc15cc 100644 --- a/import-layers/yocto-poky/meta/classes/kernel-fitimage.bbclass +++ b/import-layers/yocto-poky/meta/classes/kernel-fitimage.bbclass @@ -19,6 +19,9 @@ python __anonymous () { d.appendVarFlag('do_assemble_fitimage', 'depends', ' ${INITRAMFS_IMAGE}:do_image_complete') } +# Options for the device tree compiler passed to mkimage '-D' feature: +UBOOT_MKIMAGE_DTCOPTS ??= "" + # # Emit the fitImage ITS header # @@ -212,7 +215,10 @@ do_assemble_fitimage() { # # Step 4: Assemble the image # - uboot-mkimage -f fit-image.its arch/${ARCH}/boot/fitImage + uboot-mkimage \ + ${@'-D "${UBOOT_MKIMAGE_DTCOPTS}"' if len('${UBOOT_MKIMAGE_DTCOPTS}') else ''} \ + -f fit-image.its \ + arch/${ARCH}/boot/fitImage fi } |