summaryrefslogtreecommitdiff
path: root/schulung_tools/layer-building/yocto/machines
diff options
context:
space:
mode:
authorJohn Ogness <john.ogness@linutronix.de>2018-11-02 09:43:42 +0106
committerJohn Ogness <john.ogness@linutronix.de>2018-11-02 09:43:42 +0106
commit46c7ae687e7a2e94bf3f1bab42aa68ff194da3af (patch)
treeba80fd09caf78552fa835b916b5f206579857d37 /schulung_tools/layer-building/yocto/machines
parent10016deba10397bbe743ba80e602a9823483a709 (diff)
layer-building: add scripts to automatically build yocto layers
The yocto training requires a lot of data to be prebuilt/downloaded (about 15GB). These scripts can be used to automatically download/prebuild all that data and create the various layer tarballs. Signed-off-by: John Ogness <john.ogness@linutronix.de>
Diffstat (limited to 'schulung_tools/layer-building/yocto/machines')
-rw-r--r--schulung_tools/layer-building/yocto/machines/imx6qdlsabresd.source28
-rw-r--r--schulung_tools/layer-building/yocto/machines/qemuarm.source5
-rw-r--r--schulung_tools/layer-building/yocto/machines/qemux86.source5
-rw-r--r--schulung_tools/layer-building/yocto/machines/vexpress.source48
4 files changed, 86 insertions, 0 deletions
diff --git a/schulung_tools/layer-building/yocto/machines/imx6qdlsabresd.source b/schulung_tools/layer-building/yocto/machines/imx6qdlsabresd.source
new file mode 100644
index 0000000..8290e3c
--- /dev/null
+++ b/schulung_tools/layer-building/yocto/machines/imx6qdlsabresd.source
@@ -0,0 +1,28 @@
+test -d /home/devel/meta-freescale || exit 1
+
+setup_extra() {
+cat << EOF >> conf/local.conf
+IMAGE_FSTYPES += "wic"
+EOF
+
+cat << 'EOF' > conf/bblayers.conf
+# POKY_BBLAYERS_CONF_VERSION is increased each time build/conf/bblayers.conf
+# changes incompatibly
+POKY_BBLAYERS_CONF_VERSION = "2"
+
+BBPATH = "${TOPDIR}"
+BBFILES ?= ""
+
+BBLAYERS ?= " \
+ /home/devel/yocto/source/poky/meta \
+ /home/devel/yocto/source/poky/meta-poky \
+ /home/devel/yocto/source/poky/meta-yocto-bsp \
+ /home/devel/meta-freescale \
+ "
+EOF
+}
+
+build_extra() {
+bitbake core-image-weston
+bitbake -c populate_sdk core-image-weston
+}
diff --git a/schulung_tools/layer-building/yocto/machines/qemuarm.source b/schulung_tools/layer-building/yocto/machines/qemuarm.source
new file mode 100644
index 0000000..7e8b837
--- /dev/null
+++ b/schulung_tools/layer-building/yocto/machines/qemuarm.source
@@ -0,0 +1,5 @@
+setup_extra() {
+cat << EOF >> conf/local.conf
+EXTRA_IMAGE_FEATURES = "debug-tweaks eclipse-debug"
+EOF
+}
diff --git a/schulung_tools/layer-building/yocto/machines/qemux86.source b/schulung_tools/layer-building/yocto/machines/qemux86.source
new file mode 100644
index 0000000..7e8b837
--- /dev/null
+++ b/schulung_tools/layer-building/yocto/machines/qemux86.source
@@ -0,0 +1,5 @@
+setup_extra() {
+cat << EOF >> conf/local.conf
+EXTRA_IMAGE_FEATURES = "debug-tweaks eclipse-debug"
+EOF
+}
diff --git a/schulung_tools/layer-building/yocto/machines/vexpress.source b/schulung_tools/layer-building/yocto/machines/vexpress.source
new file mode 100644
index 0000000..3f6f63d
--- /dev/null
+++ b/schulung_tools/layer-building/yocto/machines/vexpress.source
@@ -0,0 +1,48 @@
+test -d /home/prebuilt/meta-schulung || exit 1
+
+metapath=/home/devel/meta-schulung
+wkspath=$metapath/scripts/lib/wic/canned-wks
+bbfile=$metapath/recipes-core/busybox/busybox_1.29.3.bb
+
+setup_extra() {
+cat << EOF >> conf/local.conf
+DISTRO = "schulung"
+SCHULUNG_FEATURES = "devel"
+CORE_IMAGE_EXTRA_INSTALL = "hello"
+#CORE_IMAGE_EXTRA_INSTALL += "simplehello"
+IMAGE_FSTYPES += "wic"
+EOF
+
+if [ ! -d $metapath ]; then
+ cd `dirname $metapath`
+ cp -a /home/prebuilt/meta-schulung .
+ cd -
+fi
+
+cp $wkspath/core-image-schulung.$MACHINE.wks \
+ $wkspath/core-image-minimal.$MACHINE.wks
+
+mv $bbfile $bbfile.orig || true
+
+cat << 'EOF' > conf/bblayers.conf
+# POKY_BBLAYERS_CONF_VERSION is increased each time build/conf/bblayers.conf
+# changes incompatibly
+POKY_BBLAYERS_CONF_VERSION = "2"
+
+BBPATH = "${TOPDIR}"
+BBFILES ?= ""
+
+BBLAYERS ?= " \
+ /home/devel/yocto/source/poky/meta \
+ /home/devel/yocto/source/poky/meta-poky \
+ /home/devel/yocto/source/poky/meta-yocto-bsp \
+ /home/devel/meta-schulung \
+ "
+EOF
+}
+
+build_extra() {
+mv $bbfile.orig $bbfile || true
+bitbake core-image-schulung
+bitbake -c populate_sdk core-image-schulung
+}