[oe-commits] [openembedded-core] 03/04: kernel-devicetree.bbclass: Rework to use tasks
git at git.openembedded.org
git at git.openembedded.org
Tue Sep 12 23:05:28 UTC 2017
This is an automated email from the git hooks/post-receive script.
rpurdie pushed a commit to branch master-next
in repository openembedded-core.
commit 189c396ce7771d7604dc7959381103f867540817
Author: Otavio Salvador <otavio at ossystems.com.br>
AuthorDate: Tue Sep 12 17:36:07 2017 -0300
kernel-devicetree.bbclass: Rework to use tasks
This reworks the compile and install in tasks as well as run the build
of the Device Tree files in parallel, if possible.
Signed-off-by: Otavio Salvador <otavio at ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
meta/classes/kernel-devicetree.bbclass | 16 +++++++++++-----
1 file changed, 11 insertions(+), 5 deletions(-)
diff --git a/meta/classes/kernel-devicetree.bbclass b/meta/classes/kernel-devicetree.bbclass
index 72814ca..8723f24 100644
--- a/meta/classes/kernel-devicetree.bbclass
+++ b/meta/classes/kernel-devicetree.bbclass
@@ -20,14 +20,19 @@ get_real_dtb_path_in_kernel () {
echo "${DTB_PATH}"
}
-do_compile_append() {
- for DTB in ${KERNEL_DEVICETREE}; do
- DTB=`normalize_dtb "${DTB}"`
- oe_runmake ${DTB}
+do_compile_devicetree() {
+ DTBS=""
+ for dtb in ${KERNEL_DEVICETREE}; do
+ dtb=`normalize_dtb "${dtb}"`
+ DTBS="$DTBS $dtb"
done
+ oe_runmake -C ${B} ${PARALLEL_MAKE} ${DTBS}
}
+addtask compile_devicetree after do_compile before do_compile_kernelmodules do_install
-do_install_append() {
+do_install_devicetree[dirs] = "${B}"
+do_install_devicetree[umask] = "022"
+fakeroot do_install_devicetree() {
for DTB in ${KERNEL_DEVICETREE}; do
DTB=`normalize_dtb "${DTB}"`
DTB_EXT=${DTB##*.}
@@ -41,6 +46,7 @@ do_install_append() {
done
done
}
+addtask install_devicetree after do_install before do_deploy
do_deploy_append() {
for DTB in ${KERNEL_DEVICETREE}; do
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list