[oe-commits] [openembedded-core] 27/31: kernel: fitimage: support device tree compiler options
git at git.openembedded.org
git at git.openembedded.org
Fri Apr 29 08:24:34 UTC 2016
rpurdie pushed a commit to branch master-next
in repository openembedded-core.
commit a1b7367a9292cbc5aadd7003b74997736dbe0cc4
Author: Yannick Gicquel <yannick.gicquel at iot.bzh>
AuthorDate: Wed Apr 27 16:20:55 2016 +0200
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"
Signed-off-by: Yannick Gicquel <yannick.gicquel at iot.bzh>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
meta/classes/kernel-fitimage.bbclass | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/meta/classes/kernel-fitimage.bbclass b/meta/classes/kernel-fitimage.bbclass
index e5b75ed..62e0017 100644
--- a/meta/classes/kernel-fitimage.bbclass
+++ b/meta/classes/kernel-fitimage.bbclass
@@ -17,6 +17,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
#
@@ -209,7 +212,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
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list