mirror of
https://git.yoctoproject.org/poky
synced 2026-06-02 01:19:52 +00:00
image_types.bbclass: fix cpio IMAGE_CMD to preserve working directory
The working directory is changed in a subshell when executing cpio to preserve the working directory for any subsequent commands. This is to keep the working directory consistent when generating multiple image types. (From OE-Core rev: 5ff6cb920f8be9068a23f7bf0cb1b9a9ff1eda5b) Signed-off-by: Jonathan Liu <net147@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
6ffc156550
commit
8d7dd9ae47
@@ -70,7 +70,7 @@ IMAGE_CMD_cpio () {
|
|||||||
if [ ! -L ${IMAGE_ROOTFS}/init ]; then
|
if [ ! -L ${IMAGE_ROOTFS}/init ]; then
|
||||||
touch ${IMAGE_ROOTFS}/init
|
touch ${IMAGE_ROOTFS}/init
|
||||||
fi
|
fi
|
||||||
cd ${IMAGE_ROOTFS} && (find . | cpio -o -H newc >${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.cpio)
|
(cd ${IMAGE_ROOTFS} && find . | cpio -o -H newc >${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.cpio)
|
||||||
}
|
}
|
||||||
|
|
||||||
ELF_KERNEL ?= "${STAGING_DIR_HOST}/usr/src/kernel/${KERNEL_IMAGETYPE}"
|
ELF_KERNEL ?= "${STAGING_DIR_HOST}/usr/src/kernel/${KERNEL_IMAGETYPE}"
|
||||||
|
|||||||
Reference in New Issue
Block a user