summaryrefslogtreecommitdiffstats
path: root/meta-boot2qt/classes
diff options
context:
space:
mode:
authorSamuli Piippo <samuli.piippo@qt.io>2018-09-26 11:09:11 +0300
committerSamuli Piippo <samuli.piippo@qt.io>2018-09-28 08:58:09 +0000
commitc10a157aeee4b5d6ddb9dfc4945c8a533ce00150 (patch)
tree20bf4541eef085cb70d4d237716672db4bbbe7b7 /meta-boot2qt/classes
parent4fba985f5877320a2354f85646ec145804fe8c28 (diff)
downloadmeta-boot2qt-c10a157aeee4b5d6ddb9dfc4945c8a533ce00150.tar.gz
emulator: adapt to sumo
- Use WIC for image creation - Update VirtualBox components Change-Id: I48d76906a66477ec844cbdc37c919079a9bd949b Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
Diffstat (limited to 'meta-boot2qt/classes')
-rw-r--r--meta-boot2qt/classes/image-hdd.bbclass48
-rw-r--r--meta-boot2qt/classes/image_types_sdcard.bbclass10
2 files changed, 5 insertions, 53 deletions
diff --git a/meta-boot2qt/classes/image-hdd.bbclass b/meta-boot2qt/classes/image-hdd.bbclass
deleted file mode 100644
index bceb1b1..0000000
--- a/meta-boot2qt/classes/image-hdd.bbclass
+++ /dev/null
@@ -1,48 +0,0 @@
1############################################################################
2##
3## Copyright (C) 2016 The Qt Company Ltd.
4## Contact: https://www.qt.io/licensing/
5##
6## This file is part of the Boot to Qt meta layer.
7##
8## $QT_BEGIN_LICENSE:GPL$
9## Commercial License Usage
10## Licensees holding valid commercial Qt licenses may use this file in
11## accordance with the commercial license agreement provided with the
12## Software or, alternatively, in accordance with the terms contained in
13## a written agreement between you and The Qt Company. For licensing terms
14## and conditions see https://www.qt.io/terms-conditions. For further
15## information use the contact form at https://www.qt.io/contact-us.
16##
17## GNU General Public License Usage
18## Alternatively, this file may be used under the terms of the GNU
19## General Public License version 3 or (at your option) any later version
20## approved by the KDE Free Qt Foundation. The licenses are as published by
21## the Free Software Foundation and appearing in the file LICENSE.GPL3
22## included in the packaging of this file. Please review the following
23## information to ensure the GNU General Public License requirements will
24## be met: https://www.gnu.org/licenses/gpl-3.0.html.
25##
26## $QT_END_LICENSE$
27##
28############################################################################
29
30VM_ROOTFS_TYPE = "ext3"
31ROOT_VM = "root=/dev/hda2"
32LABELS_VM = "boot"
33AUTO_SYSLINUXMENU = "0"
34SYSLINUX_DEFAULT_CONSOLE = "console=ttyS0,115200"
35
36inherit image_types image-vm
37
38create_hdd_image () {
39 cd ${IMGDEPLOYDIR}
40 rm -f ${IMGDEPLOYDIR}/${IMAGE_LINK_NAME}.hdd
41 ln -s ${IMAGE_NAME}.hdddirect ${IMGDEPLOYDIR}/${IMAGE_LINK_NAME}.hdd
42}
43
44python do_hddimg() {
45 bb.build.exec_func('create_hdd_image', d)
46}
47
48addtask hddimg after do_bootdirectdisk before do_image_complete
diff --git a/meta-boot2qt/classes/image_types_sdcard.bbclass b/meta-boot2qt/classes/image_types_sdcard.bbclass
index 3258dbd..4ec38e5 100644
--- a/meta-boot2qt/classes/image_types_sdcard.bbclass
+++ b/meta-boot2qt/classes/image_types_sdcard.bbclass
@@ -34,14 +34,14 @@ IMAGE_CMD_wic_append() {
34 ln -s ${IMAGE_NAME}.rootfs.wic ${IMGDEPLOYDIR}/${IMAGE_LINK_NAME}.img 34 ln -s ${IMAGE_NAME}.rootfs.wic ${IMGDEPLOYDIR}/${IMAGE_LINK_NAME}.img
35} 35}
36 36
37IMAGE_CMD_rpi-sdimg_append() { 37IMAGE_CMD_wic_append_emulator() {
38 rm -f ${IMGDEPLOYDIR}/${IMAGE_LINK_NAME}.img 38 rm -f ${IMGDEPLOYDIR}/${IMAGE_LINK_NAME}.hdd
39 ln -s ${IMAGE_NAME}.rootfs.rpi-sdimg ${IMGDEPLOYDIR}/${IMAGE_LINK_NAME}.img 39 ln -s ${IMAGE_NAME}.rootfs.wic ${IMGDEPLOYDIR}/${IMAGE_LINK_NAME}.hdd
40} 40}
41 41
42build_hddimg_append() { 42IMAGE_CMD_rpi-sdimg_append() {
43 rm -f ${IMGDEPLOYDIR}/${IMAGE_LINK_NAME}.img 43 rm -f ${IMGDEPLOYDIR}/${IMAGE_LINK_NAME}.img
44 ln -s ${IMAGE_NAME}.hddimg ${IMGDEPLOYDIR}/${IMAGE_LINK_NAME}.img 44 ln -s ${IMAGE_NAME}.rootfs.rpi-sdimg ${IMGDEPLOYDIR}/${IMAGE_LINK_NAME}.img
45} 45}
46 46
47do_image_tegraflash[depends] += "parted-native:do_populate_sysroot" 47do_image_tegraflash[depends] += "parted-native:do_populate_sysroot"