summaryrefslogtreecommitdiff
path: root/meta
diff options
context:
space:
mode:
authorJonathan Liu <net147@gmail.com>2014-02-21 15:43:38 +1100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-02-21 16:14:39 +0000
commit5ff6cb920f8be9068a23f7bf0cb1b9a9ff1eda5b (patch)
tree55672e79608d42d7dcb5fc76ec485c91eda3b0ba /meta
parentade1f3ce34489bba5a7ab23793c1d82559150583 (diff)
downloadopenembedded-core-5ff6cb920f8be9068a23f7bf0cb1b9a9ff1eda5b.tar.gz
openembedded-core-5ff6cb920f8be9068a23f7bf0cb1b9a9ff1eda5b.tar.bz2
openembedded-core-5ff6cb920f8be9068a23f7bf0cb1b9a9ff1eda5b.zip
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. Signed-off-by: Jonathan Liu <net147@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/image_types.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/image_types.bbclass b/meta/classes/image_types.bbclass
index 9577b1f2ec..602c1f046f 100644
--- a/meta/classes/image_types.bbclass
+++ b/meta/classes/image_types.bbclass
@@ -70,7 +70,7 @@ IMAGE_CMD_cpio () {
if [ ! -L ${IMAGE_ROOTFS}/init ]; then
touch ${IMAGE_ROOTFS}/init
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}"