summaryrefslogtreecommitdiffstats
path: root/classes/bootfs-image.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'classes/bootfs-image.bbclass')
-rw-r--r--classes/bootfs-image.bbclass26
1 files changed, 13 insertions, 13 deletions
diff --git a/classes/bootfs-image.bbclass b/classes/bootfs-image.bbclass
index 7203b01..ccc995f 100644
--- a/classes/bootfs-image.bbclass
+++ b/classes/bootfs-image.bbclass
@@ -26,24 +26,24 @@ BOOTFS_LINK_NAME = "${IMAGE_BASENAME}-boot-${MACHINE}"
26BOOTFS_DEPENDS ?= "" 26BOOTFS_DEPENDS ?= ""
27 27
28fakeroot do_bootfs () { 28fakeroot do_bootfs () {
29 if [ -z "${BOOTFS_CONTENT}" ]; then 29 if [ -z "${BOOTFS_CONTENT}" ]; then
30 exit 0 30 exit 0
31 fi 31 fi
32 32
33 mkdir -p ${S}/bootfs 33 mkdir -p ${S}/bootfs
34 34
35 for item in ${BOOTFS_CONTENT}; do 35 for item in ${BOOTFS_CONTENT}; do
36 src=`echo $item | awk -F':' '{ print $1 }'` 36 src=`echo $item | awk -F':' '{ print $1 }'`
37 dst=`echo $item | awk -F':' '{ print $2 }'` 37 dst=`echo $item | awk -F':' '{ print $2 }'`
38 38
39 install -D -m 0755 ${DEPLOY_DIR_IMAGE}/$src ${S}/bootfs/$dst 39 install -D -m 0755 ${DEPLOY_DIR_IMAGE}/$src ${S}/bootfs/$dst
40 done 40 done
41 41
42 cd ${S}/bootfs 42 cd ${S}/bootfs
43 rm -f ${DEPLOY_DIR_IMAGE}/${BOOTFS_NAME}.tar.gz ${DEPLOY_DIR_IMAGE}/${BOOTFS_LINK_NAME}.tar.gz 43 rm -f ${DEPLOY_DIR_IMAGE}/${BOOTFS_NAME}.tar.gz ${DEPLOY_DIR_IMAGE}/${BOOTFS_LINK_NAME}.tar.gz
44 44
45 tar czvf ${DEPLOY_DIR_IMAGE}/${BOOTFS_NAME}.tar.gz . 45 tar czvf ${DEPLOY_DIR_IMAGE}/${BOOTFS_NAME}.tar.gz .
46 ln -s ${BOOTFS_NAME}.tar.gz ${DEPLOY_DIR_IMAGE}/${BOOTFS_LINK_NAME}.tar.gz 46 ln -s ${BOOTFS_NAME}.tar.gz ${DEPLOY_DIR_IMAGE}/${BOOTFS_LINK_NAME}.tar.gz
47} 47}
48 48
49addtask bootfs before do_rootfs 49addtask bootfs before do_rootfs