Skip to content
Snippets Groups Projects
Commit d2a64c24 authored by Samuli Piippo's avatar Samuli Piippo
Browse files

Generate deploy conf for flashing wizard


Change-Id: I23cc54e51b7d10db0fd64d6676bd86cdf029beda
Reviewed-by: default avatarRainer Keller <rainer.keller@theqtcompany.com>
Reviewed-by: default avatarTeemu Holappa <teemu.holappa@theqtcompany.com>
parent 4c29f9a6
No related branches found
No related tags found
No related merge requests found
Showing
with 75 additions and 2 deletions
#############################################################################
##
## Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
##
## This file is part of the Qt Enterprise Embedded Scripts of the Qt
## framework.
##
## $QT_BEGIN_LICENSE$
## Commercial License Usage Only
## Licensees holding valid commercial Qt license agreements with Digia
## with an appropriate addendum covering the Qt Enterprise Embedded Scripts,
## may use this file in accordance with the terms contained in said license
## agreement.
##
## For further information use the contact form at
## http://www.qt.io/contact-us.
##
##
## $QT_END_LICENSE$
##
#############################################################################
inherit image_types
DEPLOY_CONF_NAME ?= "${MACHINE}"
DEPLOY_CONF_TYPE ?= "Boot2Qt"
IMAGE_CMD_conf() {
cat > ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.conf <<EOF
[${DEPLOY_CONF_TYPE} | ${DEPLOY_CONF_NAME}]
platform=${MACHINE}
os=linux
board=
imagefile=${IMAGE_LINK_NAME}.img
asroot=true
EOF
}
......@@ -57,8 +57,8 @@ MACHINE_EXTRA_INSTALL ?= ""
MACHINE_EXTRA_INSTALL_SDK ?= ""
MACHINE_EXTRA_INSTALL_SDK_HOST ?= ""
IMAGE_FSTYPES = "tar.gz"
IMAGE_CLASSES += "image_types_sdcard"
IMAGE_FSTYPES = "tar.gz conf"
IMAGE_CLASSES += "image_types_sdcard deploy-conf"
LICENSE_CREATE_PACKAGE = "1"
COPY_LIC_MANIFEST = "1"
......
......@@ -22,6 +22,8 @@
include conf/distro/include/ti.inc
DEPLOY_CONF_NAME = "Sitara AM335x Starter Kit"
BOOTFS_CONTENT = "\
u-boot-${MACHINE}.img:u-boot.img \
MLO-${MACHINE}:MLO \
......
......@@ -23,6 +23,8 @@
include conf/distro/include/toradex.inc
include conf/distro/include/imx6.inc
DEPLOY_CONF_NAME = "Toradex Apalis iMX6"
KERNEL_IMAGETYPE = "uImage"
BOOTFS_CONTENT = "\
......
......@@ -22,6 +22,8 @@
include conf/distro/include/ti.inc
DEPLOY_CONF_NAME = "BeagleBoard"
BOOTFS_CONTENT = "\
u-boot-${MACHINE}.img:u-boot.img \
MLO-${MACHINE}:MLO \
......
......@@ -18,6 +18,8 @@
include conf/distro/include/ti.inc
DEPLOY_CONF_NAME = "BeagleBone Black"
BOOTFS_CONTENT = "\
u-boot-${MACHINE}.img:u-boot.img \
MLO-${MACHINE}:MLO \
......
......@@ -23,6 +23,8 @@
include conf/distro/include/toradex.inc
include conf/distro/include/imx6.inc
DEPLOY_CONF_NAME = "Toradex Colibri iMX6"
KERNEL_IMAGETYPE = "uImage"
BOOTFS_CONTENT = "\
......
......@@ -22,6 +22,8 @@
include conf/distro/include/toradex.inc
DEPLOY_CONF_NAME = "Toradex Colibri VF"
IMAGE_FSTYPES += "ext3 sdcard"
BOOTFS_CONTENT = "\
......
......@@ -22,6 +22,8 @@
include conf/distro/include/imx6.inc
DEPLOY_CONF_NAME = "Freescale iMX53 Quick Start Board"
BOOTFS_CONTENT = "\
u-boot-${MACHINE}.${UBOOT_SUFFIX}:u-boot.${UBOOT_SUFFIX} \
${KERNEL_IMAGETYPE}:${KERNEL_IMAGETYPE} \
......
......@@ -21,3 +21,5 @@
#############################################################################
require imx6qsabresd.conf
DEPLOY_CONF_NAME = "Freescale SABRE SD i.MX6Dual"
......@@ -22,6 +22,8 @@
include conf/distro/include/imx6.inc
DEPLOY_CONF_NAME = "Freescale SABRE SD i.MX6Quad"
BOOTFS_CONTENT = "\
${KERNEL_IMAGETYPE}:${KERNEL_IMAGETYPE} \
${KERNEL_IMAGETYPE}-imx6q-sabresd.dtb:imx6q-sabresd.dtb \
......
......@@ -22,6 +22,8 @@
include conf/distro/include/imx6.inc
DEPLOY_CONF_NAME = "Boundary Devices i.MX6"
BOOTFS_CONTENT = "\
${KERNEL_IMAGETYPE}:${KERNEL_IMAGETYPE} \
${KERNEL_IMAGETYPE}-imx6q-${MACHINE}.dtb:imx6q-${MACHINE}.dtb \
......
......@@ -20,6 +20,8 @@
##
#############################################################################
DEPLOY_CONF_NAME = "Intel NUC"
DISTRO_FEATURES_DEFAULT += "wayland weston"
DISTRO_FEATURES_remove = "usbgadget"
......
......@@ -20,6 +20,8 @@
##
#############################################################################
DEPLOY_CONF_NAME = "Raspberry Pi"
IMAGE_FSTYPES += "ext3 rpi-sdimg"
BOOTFS_CONTENT = "\
......
......@@ -20,6 +20,8 @@
##
#############################################################################
DEPLOY_CONF_NAME = "Raspberry Pi 2"
IMAGE_FSTYPES += "ext3 rpi-sdimg"
BOOTFS_CONTENT = "\
......
......@@ -22,6 +22,8 @@
include conf/distro/include/imx6.inc
DEPLOY_CONF_NAME = "Kontron SMARC-sAMX6i"
KERNEL_IMAGETYPE = "uImage"
BOOTFS_CONTENT = " "
......
......@@ -22,6 +22,8 @@
include conf/distro/include/imx6.inc
DEPLOY_CONF_NAME = "ArchiTech Tibidabo"
KERNEL_IMAGETYPE = "uImage"
BOOTFS_CONTENT = "\
......
......@@ -25,6 +25,8 @@ LICENSE = "QtEnterprise"
LIC_FILES_CHKSUM = "file://${QT_LICENCE};md5=7bc9c54e450006250a60e96604c186c9"
PR = "r0"
DEPLOY_CONF_TYPE = "Automotive"
IMAGE_FEATURES += "\
package-management \
ssh-server-dropbear \
......
......@@ -25,6 +25,8 @@ LICENSE = "QtEnterprise"
LIC_FILES_CHKSUM = "file://${QT_LICENCE};md5=7bc9c54e450006250a60e96604c186c9"
PR = "r0"
DEPLOY_CONF_TYPE = "Boot2Qt"
IMAGE_FEATURES += "\
package-management \
ssh-server-dropbear \
......
......@@ -33,6 +33,7 @@ if [ ${AUTOMOTIVE} = "true" ]; then
scp tmp/deploy/images/${MACHINE}/b2qt-automotive-qt5-image-${MACHINE}.hdd ${UPLOADPATH}/
elif [ -e tmp/deploy/images/${MACHINE}/b2qt-automotive-qt5-image-${MACHINE}.img ]; then
scp tmp/deploy/images/${MACHINE}/b2qt-automotive-qt5-image-${MACHINE}.img ${UPLOADPATH}/
scp tmp/deploy/images/${MACHINE}/b2qt-automotive-qt5-image-${MACHINE}.conf ${UPLOADPATH}/
fi
exit 0
fi
......@@ -63,4 +64,5 @@ if [ -e tmp/deploy/images/${MACHINE}/b2qt-embedded-qt5-image-${MACHINE}.hdd ]; t
scp tmp/deploy/images/${MACHINE}/b2qt-embedded-qt5-image-${MACHINE}.hdd ${UPLOADPATH}/
elif [ -e tmp/deploy/images/${MACHINE}/b2qt-embedded-qt5-image-${MACHINE}.img ]; then
scp tmp/deploy/images/${MACHINE}/b2qt-embedded-qt5-image-${MACHINE}.img ${UPLOADPATH}/
scp tmp/deploy/images/${MACHINE}/b2qt-embedded-qt5-image-${MACHINE}.conf ${UPLOADPATH}/
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment