[dylan] kernel.bbclass: Optionally create lib dir during deploy

Submitted by Khem Raj on April 12, 2013, 8:12 a.m. | Patch ID: 47995


Message ID 1365754375-6322-1-git-send-email-raj.khem@gmail.com
State Accepted
Commit 3f501204f375cc40a14597a25cb09faaba9ff802
Headers show

Commit Message

Khem Raj April 12, 2013, 8:12 a.m.
when we have multilib and a 64bit machine and initramfs then image/lib
directory will not be created and it will end up with errors like

| DEBUG: Executing python function sstate_task_prefunc
| DEBUG: Python function sstate_task_prefunc finished
| DEBUG: Executing shell function do_deploy
| tar: lib: Cannot stat: No such file or directory
| tar: Exiting with failure status due to previous errors

So in order to overcome this shortcoming lets mkdir -p the
lib directory so the modules can be happily installed.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
 meta/classes/kernel.bbclass |    1 +
 1 file changed, 1 insertion(+)

Patch hide | download patch | download mbox

diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index f3a5553..8c8c95b 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -372,6 +372,7 @@  addtask uboot_mkimage before do_install after do_compile
 kernel_do_deploy() {
 	if [ ${MODULE_TARBALL_DEPLOY} = "1" ] && (grep -q -i -e '^CONFIG_MODULES=y$' .config); then
+		mkdir -p ${D}/lib
 		tar -cvzf ${DEPLOYDIR}/${MODULE_TARBALL_BASE_NAME} -C ${D} lib