summaryrefslogtreecommitdiff
path: root/recipes/images/trdx-image-fstype.inc
diff options
context:
space:
mode:
authorMax Krummenacher <max.krummenacher@toradex.com>2012-08-15 18:11:34 +0200
committerMax Krummenacher <max.krummenacher@toradex.com>2012-08-15 18:11:34 +0200
commit755d6f51d10293a03d850db927052df35f42e23c (patch)
tree727022a33a4af5720c858028683262b64a0c5731 /recipes/images/trdx-image-fstype.inc
parent600fc07667fa1f8df560fd7f7de563b31600f145 (diff)
L4T R15, oe-core Image V2.0Beta1
Diffstat (limited to 'recipes/images/trdx-image-fstype.inc')
-rw-r--r--recipes/images/trdx-image-fstype.inc26
1 files changed, 26 insertions, 0 deletions
diff --git a/recipes/images/trdx-image-fstype.inc b/recipes/images/trdx-image-fstype.inc
new file mode 100644
index 0000000..2ffb8f4
--- /dev/null
+++ b/recipes/images/trdx-image-fstype.inc
@@ -0,0 +1,26 @@
+#create the deployment directory-tree
+
+BURNFLASH := "${THISDIR}/files/burnflash.tar.bz2"
+S = "${WORKDIR}/burnflash"
+IMAGE_ROOTFS = "${WORKDIR}/T20_LinuxImage${PV}/rootfs"
+
+do_rootfs_prepend() {
+ tar -C ${WORKDIR} -xf ${BURNFLASH}
+ mkdir -p ${IMAGE_ROOTFS}
+ cp -pPr ${S}/* ${IMAGE_ROOTFS}/../
+}
+
+do_rootfs_append() {
+ # put u-boot, kernel into the bin directories, remove the kernel from the rootfs/boot
+ rm ${IMAGE_ROOTFS}/boot/uImage*
+ cp -pP ${DEPLOY_DIR_IMAGE}/uImage* ${IMAGE_ROOTFS}/../bin/
+ mv ${IMAGE_ROOTFS}/../bin/uImage-${MACHINE}.bin ${IMAGE_ROOTFS}/../bin/uImage
+
+ cp -pP ${DEPLOY_DIR_IMAGE}/u-boot* ${IMAGE_ROOTFS}/../bin/
+ rm ${IMAGE_ROOTFS}/../bin/u-boot-hsmmc-${MACHINE}.bin
+ mv ${IMAGE_ROOTFS}/../bin/u-boot-${MACHINE}.bin ${IMAGE_ROOTFS}/../bin/u-boot.bin
+
+ #create tarball
+ DATE=`date +%Y%m%d`
+ cd ${WORKDIR}; tar -cjvf ${DEPLOY_DIR_IMAGE}/T20_LinuxImage${PV}_${DATE}.tar.bz2 T20_LinuxImage${PV}
+}