aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOleksii Bidnichenko <bidnichenko.alex@gmail.com>2017-12-04 17:52:31 +0200
committerOleksii Bidnichenko <bidnichenko.alex@gmail.com>2017-12-06 13:31:36 +0200
commitdb10c02e89545f449803502cc878caa58da883ac (patch)
treef52b9fa6af2055458038012ff1185f5b6148b1db
parent5f5382f805354de39add45a9084216896b3a358c (diff)
Added a new image: agl-image-telemetry.
- added meta-agl-devel/meta-agl-telemetry for the new image type. - added layer support for the raspberrypi platform. - added a template target for the image integration. Change-Id: I60447675260e4ace6c0b756877f430e294fe95ac Signed-off-by: Oleksii Bidnichenko <bidnichenko.alex@gmail.com>
-rw-r--r--meta-agl-telemetry/COPYING.MIT17
-rw-r--r--meta-agl-telemetry/README.md14
-rw-r--r--meta-agl-telemetry/conf/include/agl_telemetry_raspberrypi2.inc8
-rw-r--r--meta-agl-telemetry/conf/include/agl_telemetry_raspberrypi3-64.inc8
-rw-r--r--meta-agl-telemetry/conf/include/agl_telemetry_raspberrypi3.inc8
-rw-r--r--meta-agl-telemetry/conf/layer.conf10
-rwxr-xr-xmeta-agl-telemetry/recipes-core/image/agl-image-telemetry.bb8
-rw-r--r--meta-agl-telemetry/recipes-core/image/agl-image-telemetry.inc5
-rw-r--r--meta-agl-telemetry/recipes-core/packagegroups/packagegroup-agl-image-telemetry.bb21
-rwxr-xr-xtemplates/feature/agl-telemetry/60_bblayers.conf.inc4
-rw-r--r--templates/feature/agl-telemetry/60_local.conf.inc2
11 files changed, 105 insertions, 0 deletions
diff --git a/meta-agl-telemetry/COPYING.MIT b/meta-agl-telemetry/COPYING.MIT
new file mode 100644
index 00000000..89de3547
--- /dev/null
+++ b/meta-agl-telemetry/COPYING.MIT
@@ -0,0 +1,17 @@
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/meta-agl-telemetry/README.md b/meta-agl-telemetry/README.md
new file mode 100644
index 00000000..6733677f
--- /dev/null
+++ b/meta-agl-telemetry/README.md
@@ -0,0 +1,14 @@
+This README file contains information on the contents of the
+meta-agl-telemetry layer.
+
+Please see the corresponding sections below for details.
+
+
+Telemetry
+=================
+meta-agl-telemetry is the layer providing the tiniest AGL image.
+The image aimed to be used in a case, when device required to have restricted
+scope of responsibilities e.g. collection of a vehicle telemetry.
+
+Maintainers:
+ Oleksii Bidnichenko<oleksii_bidnichenko@epam.com>
diff --git a/meta-agl-telemetry/conf/include/agl_telemetry_raspberrypi2.inc b/meta-agl-telemetry/conf/include/agl_telemetry_raspberrypi2.inc
new file mode 100644
index 00000000..80dcc830
--- /dev/null
+++ b/meta-agl-telemetry/conf/include/agl_telemetry_raspberrypi2.inc
@@ -0,0 +1,8 @@
+MACHINE_FEATURES_remove = " \
+ vc4graphics \
+ "
+
+CORE_IMAGE_EXTRA_INSTALL_remove = " \
+ wayland \
+ weston \
+ "
diff --git a/meta-agl-telemetry/conf/include/agl_telemetry_raspberrypi3-64.inc b/meta-agl-telemetry/conf/include/agl_telemetry_raspberrypi3-64.inc
new file mode 100644
index 00000000..80dcc830
--- /dev/null
+++ b/meta-agl-telemetry/conf/include/agl_telemetry_raspberrypi3-64.inc
@@ -0,0 +1,8 @@
+MACHINE_FEATURES_remove = " \
+ vc4graphics \
+ "
+
+CORE_IMAGE_EXTRA_INSTALL_remove = " \
+ wayland \
+ weston \
+ "
diff --git a/meta-agl-telemetry/conf/include/agl_telemetry_raspberrypi3.inc b/meta-agl-telemetry/conf/include/agl_telemetry_raspberrypi3.inc
new file mode 100644
index 00000000..80dcc830
--- /dev/null
+++ b/meta-agl-telemetry/conf/include/agl_telemetry_raspberrypi3.inc
@@ -0,0 +1,8 @@
+MACHINE_FEATURES_remove = " \
+ vc4graphics \
+ "
+
+CORE_IMAGE_EXTRA_INSTALL_remove = " \
+ wayland \
+ weston \
+ "
diff --git a/meta-agl-telemetry/conf/layer.conf b/meta-agl-telemetry/conf/layer.conf
new file mode 100644
index 00000000..c541cd5b
--- /dev/null
+++ b/meta-agl-telemetry/conf/layer.conf
@@ -0,0 +1,10 @@
+# We have a conf and classes directory, add to BBPATH
+BBPATH .= ":${LAYERDIR}"
+
+# We have recipes-* directories, add to BBFILES
+BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \
+ ${LAYERDIR}/recipes-*/*/*.bbappend"
+
+BBFILE_COLLECTIONS += "meta-agl-telemetry"
+BBFILE_PATTERN_meta-agl-telemetry = "^${LAYERDIR}/"
+BBFILE_PRIORITY_meta-agl-telemetry = "11"
diff --git a/meta-agl-telemetry/recipes-core/image/agl-image-telemetry.bb b/meta-agl-telemetry/recipes-core/image/agl-image-telemetry.bb
new file mode 100755
index 00000000..d8c4ea6c
--- /dev/null
+++ b/meta-agl-telemetry/recipes-core/image/agl-image-telemetry.bb
@@ -0,0 +1,8 @@
+SUMMARY = "The tiniest AGL image just capable of embedded command line utilities."
+require agl-image-telemetry.inc
+
+LICENSE = "MIT"
+
+IMAGE_INSTALL_append = "\
+ packagegroup-agl-image-telemetry \
+ "
diff --git a/meta-agl-telemetry/recipes-core/image/agl-image-telemetry.inc b/meta-agl-telemetry/recipes-core/image/agl-image-telemetry.inc
new file mode 100644
index 00000000..38e23371
--- /dev/null
+++ b/meta-agl-telemetry/recipes-core/image/agl-image-telemetry.inc
@@ -0,0 +1,5 @@
+require recipes-core/images/agl-image-minimal.inc
+
+RDEPENDS_${PN} += "\
+ packagegroup-agl-app-framework \
+ "
diff --git a/meta-agl-telemetry/recipes-core/packagegroups/packagegroup-agl-image-telemetry.bb b/meta-agl-telemetry/recipes-core/packagegroups/packagegroup-agl-image-telemetry.bb
new file mode 100644
index 00000000..dcb94007
--- /dev/null
+++ b/meta-agl-telemetry/recipes-core/packagegroups/packagegroup-agl-image-telemetry.bb
@@ -0,0 +1,21 @@
+DESCRIPTION = "The tiniest set of packages required by AGL"
+LICENSE = "MIT"
+
+inherit packagegroup
+
+PACKAGES = "\
+ packagegroup-agl-image-telemetry \
+ "
+
+ALLOW_EMPTY_${PN} = "1"
+
+RDEPENDS_${PN} += "\
+ packagegroup-core-boot-agl \
+ "
+
+RDEPENDS_${PN} += "\
+ packagegroup-agl-core-connectivity \
+ packagegroup-agl-core-kernel \
+ packagegroup-agl-core-os-commonlibs \
+ packagegroup-agl-core-security \
+ "
diff --git a/templates/feature/agl-telemetry/60_bblayers.conf.inc b/templates/feature/agl-telemetry/60_bblayers.conf.inc
new file mode 100755
index 00000000..246761cd
--- /dev/null
+++ b/templates/feature/agl-telemetry/60_bblayers.conf.inc
@@ -0,0 +1,4 @@
+
+BBLAYERS =+ " \
+ ${METADIR}/meta-agl-devel/meta-agl-telemetry \
+ "
diff --git a/templates/feature/agl-telemetry/60_local.conf.inc b/templates/feature/agl-telemetry/60_local.conf.inc
new file mode 100644
index 00000000..f1a7cdfa
--- /dev/null
+++ b/templates/feature/agl-telemetry/60_local.conf.inc
@@ -0,0 +1,2 @@
+#remove machine-specific features by the include
+include conf/include/agl_telemetry_${MACHINE}.inc