summaryrefslogtreecommitdiffstats
path: root/classes/bootfs-image.bbclass
diff options
context:
space:
mode:
authorKalle Viironen <kalle.viironen@digia.com>2014-04-15 15:13:33 +0300
committerKalle Viironen <kalle.viironen@digia.com>2014-04-15 15:13:40 +0300
commitbfb97bc3cc517c42647f5f8b1308bb7b1f4c76f1 (patch)
tree534bfaffc99f288f395297c625e284fea6e50401 /classes/bootfs-image.bbclass
parenta68e1ea9b2904f7c69330e534da877cf19376219 (diff)
parent03be9b83d45659d0d98fa1bf69853e0aa297ed32 (diff)
downloadmeta-boot2qt-bfb97bc3cc517c42647f5f8b1308bb7b1f4c76f1.tar.gz
Merge branch 'stable' into releaseQtEE_v2.1.0
* stable: wpa-supplicant: include headers and sources for external usage bootfs: need to use fakeroot for tar'ing sdk: include bluez4-dev package to sdk Create boot.tar.gz as part of the image build image: include CA certificates to image adbd: use network connection in imx53qsb sdk: libcap is required for QtWebEngine Include licenses to the image adbd: make switching between usb and ethernet easier use package groups for image content Create only tar.gz image type Change from dylan to dora brach in README mkcard: remove recipe for mkcard Change-Id: Id56ca219d05f2f833a4de3fc3ca057c5cf50a562
Diffstat (limited to 'classes/bootfs-image.bbclass')
-rw-r--r--classes/bootfs-image.bbclass51
1 files changed, 51 insertions, 0 deletions
diff --git a/classes/bootfs-image.bbclass b/classes/bootfs-image.bbclass
new file mode 100644
index 0000000..5292965
--- /dev/null
+++ b/classes/bootfs-image.bbclass
@@ -0,0 +1,51 @@
1#############################################################################
2##
3## Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
4##
5## This file is part of the Qt Enterprise Embedded Scripts of the Qt
6## framework.
7##
8## $QT_BEGIN_LICENSE$
9## Commercial License Usage Only
10## Licensees holding valid commercial Qt license agreements with Digia
11## with an appropriate addendum covering the Qt Enterprise Embedded Scripts,
12## may use this file in accordance with the terms contained in said license
13## agreement.
14##
15## For further information use the contact form at
16## http://qt.digia.com/contact-us.
17##
18##
19## $QT_END_LICENSE$
20##
21#############################################################################
22
23BOOTFS_NAME = "${IMAGE_BASENAME}-boot-${MACHINE}-${DATETIME}"
24BOOTFS_LINK_NAME = "${IMAGE_BASENAME}-boot-${MACHINE}"
25
26BOOTFS_DEPENDS ?= ""
27
28fakeroot do_bootfs () {
29 if [ -n ${BOOTFS_CONTENT} ]; then
30 exit 0
31 fi
32
33 mkdir -p ${S}/bootfs
34
35 for item in ${BOOTFS_CONTENT}; do
36 src=`echo $item | awk -F':' '{ print $1 }'`
37 dst=`echo $item | awk -F':' '{ print $2 }'`
38
39 install -m 0755 ${DEPLOY_DIR_IMAGE}/$src ${S}/bootfs/$dst
40 done
41
42 cd ${S}/bootfs
43 rm -f ${DEPLOY_DIR_IMAGE}/${BOOTFS_NAME}.tar.gz ${DEPLOY_DIR_IMAGE}/${BOOTFS_LINK_NAME}.tar.gz
44
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
47}
48
49addtask bootfs before do_rootfs
50
51do_bootfs[depends] += "${BOOTFS_DEPENDS}"