From a3d37334b9911fcea5a824c2f2f56b3cdbd57efd Mon Sep 17 00:00:00 2001 From: Anton Gerasimov Date: Tue, 22 Nov 2016 17:56:49 +0100 Subject: Add distro configuration and AGL templates --- README.md | 4 ++++ conf/distro/sota.conf.inc | 12 ++++++++++++ templates/README.md | 10 ++++++++++ templates/feature/agl-sota/50_bblayers.conf.inc | 7 +++++++ templates/feature/agl-sota/50_local.conf.inc | 15 +++++++++++++++ 5 files changed, 48 insertions(+) create mode 100644 conf/distro/sota.conf.inc create mode 100644 templates/README.md create mode 100644 templates/feature/agl-sota/50_bblayers.conf.inc create mode 100644 templates/feature/agl-sota/50_local.conf.inc diff --git a/README.md b/README.md index 4ea5da5..3665db9 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,10 @@ OSTree. Build ----- +### Build with OpenIVI ### +### Build from scratch ### +### Build in AGL ### + With AGL you can just add agl-sota feature while configuring your build environment as in diff --git a/conf/distro/sota.conf.inc b/conf/distro/sota.conf.inc new file mode 100644 index 0000000..c7f8cde --- /dev/null +++ b/conf/distro/sota.conf.inc @@ -0,0 +1,12 @@ +IMAGE_INSTALL_append_sota = " rvi-sota-client" + +# live image for OSTree-enabled systems +IMAGE_CLASSES_append_sota = "image_types_ostree image_types_ota" +IMAGE_FSTYPES += "ostreepush otaimg" + +# Please redefine OSTREE_REPO in order to have a persistent OSTree repo +OSTREE_REPO ?= "${DEPLOY_DIR_IMAGE}/ostree_repo" +OSTREE_BRANCHNAME ?= "ota-${MACHINE}" +OSTREE_OSNAME ?= "poky" +OSTREE_INITRAMFS_IMAGE ?= "initramfs-ostree-image" + diff --git a/templates/README.md b/templates/README.md new file mode 100644 index 0000000..f43a67e --- /dev/null +++ b/templates/README.md @@ -0,0 +1,10 @@ +AGL templates +============= + +This directory contains templates for integration with AGL's aglsetup.sh. +To use meta-updater with AGL, 'agl-sota' to the list of features as in: + + source meta-agl/scripts/aglsetup.sh -m raspberrypi3 agl-demo agl-netboot agl-appfw-smack agl-sota + +For more information see [AGL documentation](https://wiki.automotivelinux.org/subsystem/agl-sota/ostree) + diff --git a/templates/feature/agl-sota/50_bblayers.conf.inc b/templates/feature/agl-sota/50_bblayers.conf.inc new file mode 100644 index 0000000..0a5440b --- /dev/null +++ b/templates/feature/agl-sota/50_bblayers.conf.inc @@ -0,0 +1,7 @@ +BBLAYERS =+ " \ + ${METADIR}/meta-agl-extra/meta-sota \ + ${METADIR}/meta-openembedded/meta-filesystems \ + ${METADIR}/meta-openembedded/meta-ruby \ + ${METADIR}/meta-rust \ + " + diff --git a/templates/feature/agl-sota/50_local.conf.inc b/templates/feature/agl-sota/50_local.conf.inc new file mode 100644 index 0000000..8d21c17 --- /dev/null +++ b/templates/feature/agl-sota/50_local.conf.inc @@ -0,0 +1,15 @@ +DISTRO_FEATURES_append = " agl-ota" +OVERRIDES .= ":sota" + +IMAGE_INSTALL_append = " ostree" + +# live image for OSTree-enabled systems +IMAGE_CLASSES += "image_types_ostree image_types_ota" +IMAGE_FSTYPES += "ostreepush otaimg" + +# Please redefine OSTREE_REPO in order to have a persistent OSTree repo +OSTREE_REPO ?= "${DEPLOY_DIR_IMAGE}/ostree_repo" +OSTREE_BRANCHNAME ?= "ota-${MACHINE}" +OSTREE_OSNAME ?= "ota" +OSTREE_INITRAMFS_IMAGE ?= "initramfs-ostree-image" + -- cgit v1.2.3-54-g00ecf