All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] kernel: fix the modules tarball when using usrmerge
@ 2018-05-07  0:33 Allen Wild
  0 siblings, 0 replies; only message in thread
From: Allen Wild @ 2018-05-07  0:33 UTC (permalink / raw)
  To: openembedded-core

kernel_do_deploy only uses /lib when creating the modules tarball,
creating an empty archive if usrmerge is in distro features because the
modules are in /usr/lib.

Create the modules tarball from ${D}${root_prefix}/lib instead of
${D}/lib so that it's not empty when usrmerge is enabled.

Signed-off-by: Allen Wild <allenwild93@gmail.com>
---
 meta/classes/kernel.bbclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index 78d6c30b07..bbb5dbb1b2 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -677,8 +677,8 @@ kernel_do_deploy() {
 		install -m 0644 ${KERNEL_OUTPUT_DIR}/${type} $deployDir/${base_name}.bin
 	done
 	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
+		mkdir -p ${D}${root_prefix}/lib
+		tar -cvzf $deployDir/${MODULE_TARBALL_BASE_NAME} -C ${D}${root_prefix} lib
 		ln -sf ${MODULE_TARBALL_BASE_NAME} $deployDir/${MODULE_TARBALL_SYMLINK_NAME}
 	fi
 
-- 
2.17.0



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2018-05-07  0:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-07  0:33 [PATCH] kernel: fix the modules tarball when using usrmerge Allen Wild

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.