[meta-freescale] ][PATCH 02/31] add fsl-utils.bbclass
Zhenhua Luo
zhenhua.luo at freescale.com
Wed Aug 12 07:42:13 PDT 2015
The fsl-utils.bbclass includes rootfs_copy_image function which is used
for copying specified image into rootfs image
Signed-off-by: Zhenhua Luo <zhenhua.luo at freescale.com>
---
classes/fsl-utils.bbclass | 9 +++++++++
1 file changed, 9 insertions(+)
create mode 100644 classes/fsl-utils.bbclass
diff --git a/classes/fsl-utils.bbclass b/classes/fsl-utils.bbclass
new file mode 100644
index 0000000..7e80998
--- /dev/null
+++ b/classes/fsl-utils.bbclass
@@ -0,0 +1,9 @@
+ROOTFS_IMAGE ?= ""
+
+# Add specified rootfs image in current rootfs image
+rootfs_copy_image() {
+ if [ ! -z "${ROOTFS_IMAGE}" ] && [ -e "${DEPLOY_DIR_IMAGE}/${ROOTFS_IMAGE}" ]; then
+ mkdir -p ${IMAGE_ROOTFS}/boot
+ cp ${DEPLOY_DIR_IMAGE}/${ROOTFS_IMAGE} ${IMAGE_ROOTFS}/boot/
+ fi
+}
--
2.4.3
More information about the meta-freescale
mailing list