From eb8dc40360f0cfef56fb6947cc817a547d6d9bc6 Mon Sep 17 00:00:00 2001 From: Dave Cobbley Date: Tue, 14 Aug 2018 10:05:37 -0700 Subject: [Subtree] Removing import-layers directory As part of the move to subtrees, need to bring all the import layers content to the top level. Change-Id: I4a163d10898cbc6e11c27f776f60e1a470049d8f Signed-off-by: Dave Cobbley Signed-off-by: Brad Bishop --- poky/bitbake/lib/toaster/orm/fixtures/README | 30 +++ .../orm/fixtures/custom_toaster_append.sh_sample | 49 +++++ poky/bitbake/lib/toaster/orm/fixtures/oe-core.xml | 97 +++++++++ poky/bitbake/lib/toaster/orm/fixtures/poky.xml | 234 +++++++++++++++++++++ poky/bitbake/lib/toaster/orm/fixtures/settings.xml | 33 +++ 5 files changed, 443 insertions(+) create mode 100644 poky/bitbake/lib/toaster/orm/fixtures/README create mode 100755 poky/bitbake/lib/toaster/orm/fixtures/custom_toaster_append.sh_sample create mode 100644 poky/bitbake/lib/toaster/orm/fixtures/oe-core.xml create mode 100644 poky/bitbake/lib/toaster/orm/fixtures/poky.xml create mode 100644 poky/bitbake/lib/toaster/orm/fixtures/settings.xml (limited to 'poky/bitbake/lib/toaster/orm/fixtures') diff --git a/poky/bitbake/lib/toaster/orm/fixtures/README b/poky/bitbake/lib/toaster/orm/fixtures/README new file mode 100644 index 0000000000..1b1c660aac --- /dev/null +++ b/poky/bitbake/lib/toaster/orm/fixtures/README @@ -0,0 +1,30 @@ +# Fixtures directory + +Fixtures are data dumps that can be loaded into Toaster's database to provide +configuration and data. + +In this directory we have the fixtures which are loaded the first time you start Toaster. +This is to provide useful default values and metadata to Toaster. + + - settings.xml This Contains Toaster wide settings, such as the default values for + certain bitbake variables. + + - poky.xml This is the default release data for supported poky based setup + + - oe-core.xml This is the default release data for supported oe-core based setups + +# Custom data/configuration + + - custom.xml + +To add custom initial data/configuration to Toaster place a file called +"custom.xml" in this directory. If present it will be loaded into the database. +We suggest that this is used to overlay any configuration already done. +All objects loaded with the same primary keys overwrite the existing data. +Data can be provided in XML, JSON and if installed YAML formats. + +# To load data at any point in time + +Use the django management command manage.py loaddata +For further information see the Django command documentation at: +https://docs.djangoproject.com/en/1.8/ref/django-admin/#django-admin-loaddata diff --git a/poky/bitbake/lib/toaster/orm/fixtures/custom_toaster_append.sh_sample b/poky/bitbake/lib/toaster/orm/fixtures/custom_toaster_append.sh_sample new file mode 100755 index 0000000000..8c4e163161 --- /dev/null +++ b/poky/bitbake/lib/toaster/orm/fixtures/custom_toaster_append.sh_sample @@ -0,0 +1,49 @@ +#!/bin/bash + +# Copyright (C) 2017 Intel Corp. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License version 2 as +# published by the Free Software Foundation. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +# See the GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +# This is sample software. Rename it to 'custom_toaster_append.sh' and +# enable the respective custom sections. + +verbose=0 +if [ $verbose -ne 0 ] ; then + echo "custom_toaster_append.sh:$*" +fi + +if [ "toaster_prepend" = "$1" ] ; then + echo "Add custom actions here when Toaster script is started" +fi + +if [ "web_start_postpend" = "$1" ] ; then + echo "Add custom actions here after Toaster web service is started" +fi + +if [ "web_stop_postpend" = "$1" ] ; then + echo "Add custom actions here after Toaster web service is stopped" +fi + +if [ "noweb_start_postpend" = "$1" ] ; then + echo "Add custom actions here after Toaster (no web) service is started" +fi + +if [ "noweb_stop_postpend" = "$1" ] ; then + echo "Add custom actions here after Toaster (no web) service is stopped" +fi + +if [ "toaster_postpend" = "$1" ] ; then + echo "Add custom actions here after Toaster script is done" +fi + diff --git a/poky/bitbake/lib/toaster/orm/fixtures/oe-core.xml b/poky/bitbake/lib/toaster/orm/fixtures/oe-core.xml new file mode 100644 index 0000000000..d7ea78dc29 --- /dev/null +++ b/poky/bitbake/lib/toaster/orm/fixtures/oe-core.xml @@ -0,0 +1,97 @@ + + + + + DEFCONF_DISTRO + nodistro + + + + + sumo + git://git.openembedded.org/bitbake + 1.38 + + + HEAD + git://git.openembedded.org/bitbake + HEAD + + + master + git://git.openembedded.org/bitbake + master + + + rocko + git://git.openembedded.org/bitbake + 1.36 + + + + + rocko + Openembedded Sumo + 1 + sumo + Toaster will run your builds using the tip of the <a href=\"http://cgit.openembedded.org/openembedded-core/log/?h=sumo\">OpenEmbedded Sumo</a> branch. + + + local + Local Openembedded + 2 + HEAD + Toaster will run your builds with the version of OpenEmbedded that you have cloned or downloaded to your computer. + + + master + OpenEmbedded core master + 3 + master + Toaster will run your builds using the tip of the <a href=\"http://cgit.openembedded.org/openembedded-core/log/\">OpenEmbedded master</a> branch. + + + rocko + Openembedded Rocko + 1 + rocko + Toaster will run your builds using the tip of the <a href=\"http://cgit.openembedded.org/openembedded-core/log/?h=rocko\">OpenEmbedded Rocko</a> branch. + + + + + 1 + openembedded-core + + + 2 + openembedded-core + + + 3 + openembedded-core + + + 4 + openembedded-core + + + + + + openembedded-core + git://git.openembedded.org/openembedded-core + http://cgit.openembedded.org/openembedded-core + http://cgit.openembedded.org/openembedded-core/tree/%path%?h=%branch% + http://cgit.openembedded.org/openembedded-core/tree/%path%?h=%branch% + + + 1 + 2 + OE-CORE-LAYER-DIR + HEAD + meta + 0 + + + diff --git a/poky/bitbake/lib/toaster/orm/fixtures/poky.xml b/poky/bitbake/lib/toaster/orm/fixtures/poky.xml new file mode 100644 index 0000000000..6c966da4a9 --- /dev/null +++ b/poky/bitbake/lib/toaster/orm/fixtures/poky.xml @@ -0,0 +1,234 @@ + + + + + DEFCONF_DISTRO + poky + + + + + sumo + git://git.yoctoproject.org/poky + sumo + bitbake + + + HEAD + git://git.yoctoproject.org/poky + HEAD + bitbake + + + master + git://git.yoctoproject.org/poky + master + bitbake + + + rocko + git://git.yoctoproject.org/poky + rocko + bitbake + + + + + + sumo + Yocto Project 2.5 "Sumo" + 1 + sumo + Toaster will run your builds using the tip of the <a href="http://git.yoctoproject.org/cgit/cgit.cgi/poky/log/?h=sumo">Yocto Project Sumo branch</a>. + + + local + Local Yocto Project + 2 + HEAD + Toaster will run your builds with the version of the Yocto Project you have cloned or downloaded to your computer. + + + master + Yocto Project master + 3 + master + Toaster will run your builds using the tip of the <a href="http://git.yoctoproject.org/cgit/cgit.cgi/poky/log/">Yocto Project Master branch</a>. + + + rocko + Yocto Project 2.4 "Rocko" + 1 + rocko + Toaster will run your builds using the tip of the <a href="http://git.yoctoproject.org/cgit/cgit.cgi/poky/log/?h=rocko">Yocto Project Rocko branch</a>. + + + + + 1 + openembedded-core + + + 1 + meta-poky + + + 1 + meta-yocto-bsp + + + 2 + openembedded-core + + + 2 + meta-poky + + + 2 + meta-yocto-bsp + + + 3 + openembedded-core + + + 3 + meta-poky + + + 3 + meta-yocto-bsp + + + 4 + openembedded-core + + + 4 + meta-poky + + + 4 + meta-yocto-bsp + + + + + openembedded-core + + git://git.yoctoproject.org/poky + http://git.yoctoproject.org/cgit/cgit.cgi/poky + http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/%path%?h=%branch% + http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/%path%?h=%branch% + + + 1 + 0 + 1 + sumo + meta + + + 1 + 0 + 2 + HEAD + HEAD + meta + + + 1 + 0 + 3 + master + meta + + + 1 + 0 + 4 + rocko + meta + + + + meta-poky + + git://git.yoctoproject.org/poky + http://git.yoctoproject.org/cgit/cgit.cgi/poky + http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/%path%?h=%branch% + http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/%path%?h=%branch% + + + 2 + 0 + 1 + sumo + meta-poky + + + 2 + 0 + 2 + HEAD + HEAD + meta-poky + + + 2 + 0 + 3 + master + meta-poky + + + 2 + 0 + 4 + rocko + meta-poky + + + + meta-yocto-bsp + + git://git.yoctoproject.org/poky + http://git.yoctoproject.org/cgit/cgit.cgi/poky + http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/%path%?h=%branch% + http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/%path%?h=%branch% + + + 3 + 0 + 1 + sumo + meta-yocto-bsp + + + 3 + 0 + 2 + HEAD + HEAD + meta-yocto-bsp + + + 3 + 0 + 3 + master + meta-yocto-bsp + + + 3 + 0 + 4 + rocko + meta-yocto-bsp + + diff --git a/poky/bitbake/lib/toaster/orm/fixtures/settings.xml b/poky/bitbake/lib/toaster/orm/fixtures/settings.xml new file mode 100644 index 0000000000..78c0fdca7f --- /dev/null +++ b/poky/bitbake/lib/toaster/orm/fixtures/settings.xml @@ -0,0 +1,33 @@ + + + + + + DEFAULT_RELEASE + master + + + DEFCONF_PACKAGE_CLASSES + package_rpm + + + DEFCONF_MACHINE + qemux86 + + + DEFCONF_SSTATE_DIR + ${TOPDIR}/../sstate-cache + + + DEFCONF_IMAGE_INSTALL_append + + + + DEFCONF_IMAGE_FSTYPES + ext3 jffs2 tar.bz2 + + + DEFCONF_DL_DIR + ${TOPDIR}/../downloads + + -- cgit v1.2.3