mirror of
https://git.yoctoproject.org/poky
synced 2026-09-19 18:49:32 +02:00
kernel.bbclass: We dont want to tar lib/ if we dont have any modules
This commit is contained in:
@@ -452,7 +452,9 @@ do_deploy() {
|
|||||||
install -d ${DEPLOY_DIR_IMAGE}
|
install -d ${DEPLOY_DIR_IMAGE}
|
||||||
install -m 0644 arch/${ARCH}/boot/${KERNEL_IMAGETYPE} ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGE_BASE_NAME}.bin
|
install -m 0644 arch/${ARCH}/boot/${KERNEL_IMAGETYPE} ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGE_BASE_NAME}.bin
|
||||||
package_stagefile_shell ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGE_BASE_NAME}.bin
|
package_stagefile_shell ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGE_BASE_NAME}.bin
|
||||||
tar -cvzf ${DEPLOY_DIR_IMAGE}/modules-${KERNEL_VERSION}-${PR}-${MACHINE}.tgz -C ${D} lib
|
if (grep -q -i -e '^CONFIG_MODULES=y$' .config); then
|
||||||
|
tar -cvzf ${DEPLOY_DIR_IMAGE}/modules-${KERNEL_VERSION}-${PR}-${MACHINE}.tgz -C ${D} lib
|
||||||
|
fi
|
||||||
|
|
||||||
if test "x${KERNEL_IMAGETYPE}" = "xuImage" ; then
|
if test "x${KERNEL_IMAGETYPE}" = "xuImage" ; then
|
||||||
if test -e arch/${ARCH}/boot/compressed/vmlinux ; then
|
if test -e arch/${ARCH}/boot/compressed/vmlinux ; then
|
||||||
|
|||||||
Reference in New Issue
Block a user