oem-pr-bs: add core services and libraries 47/25647/30
authorRiku Nomoto <riku.nomoto@woven-planet.global>
Thu, 26 Nov 2020 14:09:02 +0000 (23:09 +0900)
committerRiku Nomoto <riku.nomoto@woven-planet.global>
Tue, 12 Jan 2021 06:29:21 +0000 (15:29 +0900)
This is the second commit of agl-basesystem.
IPC/RPC library group binding each modules

v14 (jsmoeller): update BASESYSTEM_REVISION to fix libinput-hal build
v16 (jsmoeller): update BASESYSTEM_REVISION
v17 (taniakwa): fix os-rpclibrary-tool-native build
       - fix invalid path to LICENSE to use devtool
       - fix error when rebuild (clean generated files first)
v19 (nomoto): fix to set host only tool in class-native
v20 (nomoto): update subpath, branch and S to make recipes simple
v21 (nomoto): fix EXTRA_OEMAKE to set default value
v25 (nomoto): change mail address and author
v29 (nomoto): remove agl-basesystem-hal.bbclass

Bug-AGL: SPEC-3670

Signed-off-by: Riku Nomoto <riku.nomoto@woven-planet.global>
Change-Id: I5da43003d8a976912d183474aea884ec1b81a708

21 files changed:
meta-oem-production-readiness/meta-agl-basesystem/classes/agl-basesystem-common.bbclass
meta-oem-production-readiness/meta-agl-basesystem/classes/agl-basesystem-hal.bbclass [deleted file]
meta-oem-production-readiness/meta-agl-basesystem/classes/bshalmake.bbclass
meta-oem-production-readiness/meta-agl-basesystem/conf/include/agl-basesystem-base.inc
meta-oem-production-readiness/meta-agl-basesystem/conf/layer.conf
meta-oem-production-readiness/meta-agl-basesystem/recipes-core/agl-basefiles/agl-basefiles_1.0.0.bb [new file with mode: 0644]
meta-oem-production-readiness/meta-agl-basesystem/recipes-core/ns-frameworkunified/ns-frameworkunified-library_1.0.0.bb [new file with mode: 0644]
meta-oem-production-readiness/meta-agl-basesystem/recipes-core/ns-frameworkunified/ns-frameworkunified_1.0.0.bb [new file with mode: 0644]
meta-oem-production-readiness/meta-agl-basesystem/recipes-kernel/kernel-module-evklib/evklib-headers.bb [new file with mode: 0644]
meta-oem-production-readiness/meta-agl-basesystem/recipes-platform/images/agl-image-boot-basesystem.bb [new file with mode: 0644]
meta-oem-production-readiness/meta-agl-basesystem/recipes-platform/packagegroups/packagegroup-agl-basesystem-apis.bb
meta-oem-production-readiness/meta-agl-basesystem/recipes-platform/packagegroups/packagegroup-agl-basesystem-core.bb
meta-oem-production-readiness/meta-agl-basesystem/recipes-platform/packagegroups/packagegroup-agl-basesystem-hal.bb
meta-oem-production-readiness/meta-agl-basesystem/recipes-platform/packagegroups/packagegroup-agl-basesystem-service.bb
meta-oem-production-readiness/meta-agl-basesystem/recipes-platform/packagegroups/packagegroup-agl-basesystem.bb
meta-oem-production-readiness/meta-agl-basesystem/recipes-support/ns-commonlibrary/ns-commonlibrary_1.0.0.bb [new file with mode: 0644]
meta-oem-production-readiness/meta-agl-basesystem/recipes-support/ns-loglibrary/ns-loglibrary_1.0.0.bb [new file with mode: 0644]
meta-oem-production-readiness/meta-agl-basesystem/recipes-support/os-eventlibrary/os-eventlibrary_1.0.0.bb [new file with mode: 0644]
meta-oem-production-readiness/meta-agl-basesystem/recipes-support/os-posixbasedos001legacylibrary/os-posixbasedos001legacylibrary_1.0.0.bb [new file with mode: 0644]
meta-oem-production-readiness/meta-agl-basesystem/recipes-support/os-rpclibrary/os-rpclibrary-tool_1.0.0.bb [new file with mode: 0644]
meta-oem-production-readiness/meta-agl-basesystem/recipes-support/os-rpclibrary/os-rpclibrary_1.0.0.bb [new file with mode: 0644]

index f944de5..fa6211b 100644 (file)
@@ -1,7 +1,3 @@
 inherit bsmake
 
 DEPENDS_append = " agl-basefiles"
-
-EXTRA_OEMAKE = "'CXX=${CXX} ${CODINGRULES_CPP_21MM}' 'CC=${CC} ${CODINGRULES_C_21MM}' 'RANLIB=${RANLIB}' 'AR=${AR}' 'DESTDIR=${D}' 'SDKTARGETSYSROOT=${STAGING_DIR_HOST}'"
-
-RDEPENDS_${PN} += " agl-basefiles "
diff --git a/meta-oem-production-readiness/meta-agl-basesystem/classes/agl-basesystem-hal.bbclass b/meta-oem-production-readiness/meta-agl-basesystem/classes/agl-basesystem-hal.bbclass
deleted file mode 100644 (file)
index 9db2f26..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-inherit bshalmake
-
-FILES_${PN}-dev_remove = "${FILES_SOLIBSDEV}" 
-
-EXTRA_OEMAKE = "'CXX=${CXX}' 'CC=${CC}' 'RANLIB=${RANLIB}' 'AR=${AR}' 'DESTDIR=${D}' 'SDKTARGETSYSROOT=${STAGING_DIR_HOST}'"
-
-DEPENDS_append = " agl-basefiles"
-
-
index 2deac96..bd2fd9c 100644 (file)
@@ -1,10 +1,12 @@
 # base_do_install under poky's base.bbclass is empty so definition is needed.
 bshalmake_do_install (){
     oe_runmake install
-    
+
     install -d ${D}${includedir}/basesystem
     install -D -m 644 ${S}/hal_api/*.h ${D}${includedir}/basesystem
-
 }
 
 EXPORT_FUNCTIONS do_install
+
+FILES_${PN}-dev_remove = "${FILES_SOLIBSDEV}"
+
index 9ffd16a..2ae25ad 100644 (file)
@@ -7,5 +7,4 @@ INCLUDEDIR = "${includedir}/basesystem"
 CONFDIR = "${sysconfdir}/basesystem"
 LOCALDIR = "/var/local/lib/basesystem"
 
-BASESYSTEM_REVISION = "7ab637d7f01e712488deab0d318443ed9a81d5ae"
-
+BASESYSTEM_REVISION = "71afcd09b0f210e7da5ae6adc1b914fa02d412ff"
index 806408a..811fd23 100644 (file)
@@ -3,7 +3,7 @@ BBPATH .= ":${LAYERDIR}"
 
 # We have a recipes directory, add to BBFILES
 BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \
-       ${LAYERDIR}/recipes-*/*/*.bbappend"
+    ${LAYERDIR}/recipes-*/*/*.bbappend"
 
 BBFILE_COLLECTIONS += "agl-basesystem"
 BBFILE_PATTERN_agl-basesystem := "^${LAYERDIR}/"
diff --git a/meta-oem-production-readiness/meta-agl-basesystem/recipes-core/agl-basefiles/agl-basefiles_1.0.0.bb b/meta-oem-production-readiness/meta-agl-basesystem/recipes-core/agl-basefiles/agl-basefiles_1.0.0.bb
new file mode 100644 (file)
index 0000000..27b2cae
--- /dev/null
@@ -0,0 +1,27 @@
+SUMMARY = "base-files for AGL software"
+DESCRIPTION = "install base-files to build AGL software"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=2ee41112a44fe7014dce33e26468ba93"
+
+PV = "1.0.0+gitr${SRCPV}"
+SRC_URI = "git://gerrit.automotivelinux.org/gerrit/staging/basesystem.git;protocol=https;branch=${AGL_BRANCH}"
+SRCREV := "${BASESYSTEM_REVISION}"
+
+S = "${WORKDIR}/git/agl-basefiles"
+
+do_configure[noexec] = "1"
+do_compile[noexec] = "1"
+
+do_install() {
+    install -d ${D}${includedir}/basesystem
+    install -m 644 -D ${S}/include/* ${D}${includedir}/basesystem/
+}
+
+do_install_class-native() {
+    install -d ${D}${bindir}
+    install -m 755 -D ${S}/bin/launch_xml2cfg.sh ${D}${bindir}/
+}
+
+RDEPENDS_${PN} += "bash"
+
+BBCLASSEXTEND = "native"
diff --git a/meta-oem-production-readiness/meta-agl-basesystem/recipes-core/ns-frameworkunified/ns-frameworkunified-library_1.0.0.bb b/meta-oem-production-readiness/meta-agl-basesystem/recipes-core/ns-frameworkunified/ns-frameworkunified-library_1.0.0.bb
new file mode 100644 (file)
index 0000000..baaa431
--- /dev/null
@@ -0,0 +1,30 @@
+SUMMARY = "ns-frameworkunified library for AGL software"
+DESCRIPTION = "ns-frameworkunified library to build AGL software"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=2ee41112a44fe7014dce33e26468ba93"
+
+DEPENDS += " \
+    ns-loglibrary \
+    libxml2 \
+    ns-frameworkunified \
+"
+
+PV = "1.0.0+gitr${SRCPV}"
+SRC_URI = "git://gerrit.automotivelinux.org/gerrit/staging/basesystem.git;protocol=https;branch=${AGL_BRANCH}"
+SRCREV := "${BASESYSTEM_REVISION}"
+
+S = "${WORKDIR}/git/service/native/framework_unified"
+
+inherit agl-basesystem-common
+
+BSMAKE_FILE = "Makefile.library"
+
+FILES_${PN} += " \
+    ${libdir}/* \
+"
+
+RDEPENDS_${PN} += " \
+    os-posixbasedos001legacylibrary \
+    ns-loglibrary \
+    ns-commonlibrary \
+"
diff --git a/meta-oem-production-readiness/meta-agl-basesystem/recipes-core/ns-frameworkunified/ns-frameworkunified_1.0.0.bb b/meta-oem-production-readiness/meta-agl-basesystem/recipes-core/ns-frameworkunified/ns-frameworkunified_1.0.0.bb
new file mode 100644 (file)
index 0000000..25ac7b9
--- /dev/null
@@ -0,0 +1,32 @@
+SUMMARY = "ns-frameworkunified for AGL software"
+DESCRIPTION = "ns-frameworkunified to build AGL software"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=2ee41112a44fe7014dce33e26468ba93"
+
+DEPENDS += " \
+    os-posixbasedos001legacylibrary \
+    ns-loglibrary \
+    ns-commonlibrary \
+    boost \
+"
+
+PV = "1.0.0+gitr${SRCPV}"
+SRC_URI = "git://gerrit.automotivelinux.org/gerrit/staging/basesystem.git;protocol=https;branch=${AGL_BRANCH}"
+SRCREV := "${BASESYSTEM_REVISION}"
+
+S = "${WORKDIR}/git/service/native/framework_unified"
+
+inherit agl-basesystem-common
+
+BSMAKE_FILE = "Makefile.client"
+
+FILES_${PN} += " \
+    ${libdir}/* \
+"
+
+RDEPENDS_${PN} += " \
+    os-posixbasedos001legacylibrary \
+    ns-loglibrary \
+    ns-commonlibrary \
+    ns-frameworkunified-library \
+"
diff --git a/meta-oem-production-readiness/meta-agl-basesystem/recipes-kernel/kernel-module-evklib/evklib-headers.bb b/meta-oem-production-readiness/meta-agl-basesystem/recipes-kernel/kernel-module-evklib/evklib-headers.bb
new file mode 100644 (file)
index 0000000..078f157
--- /dev/null
@@ -0,0 +1,24 @@
+SUMMARY = "evklib-headers for AGL software"
+DESCRIPTION = "install evklib-header files to build AGL software"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=2ee41112a44fe7014dce33e26468ba93"
+
+PV = "1.0.0+gitr${SRCPV}"
+SRC_URI = "git://gerrit.automotivelinux.org/gerrit/staging/basesystem.git;protocol=https;branch=${AGL_BRANCH}"
+SRCREV := "${BASESYSTEM_REVISION}"
+
+S = "${WORKDIR}/git/agl-basefiles"
+
+do_configure[noexec] = "1"
+do_compile[noexec] = "1"
+
+do_install() {
+    install -d ${D}${includedir}/basesystem/agldd
+    install -m 644 -D ${S}/agldd/* ${D}${includedir}/basesystem/agldd/
+}
+
+FILES_${PN}-dev += " \
+    ${includedir}/basesystem/agldd/* \
+"
+
+BBCLASSEXTEND = "native"
diff --git a/meta-oem-production-readiness/meta-agl-basesystem/recipes-platform/images/agl-image-boot-basesystem.bb b/meta-oem-production-readiness/meta-agl-basesystem/recipes-platform/images/agl-image-boot-basesystem.bb
new file mode 100644 (file)
index 0000000..5d12cc7
--- /dev/null
@@ -0,0 +1,13 @@
+SUMMARY = "An AGL small image just capable of allowing a device to boot."
+
+require recipes-platform/images/agl-image-boot.inc
+
+LICENSE = "MIT"
+
+IMAGE_INSTALL := " \
+    packagegroup-core-boot \
+    packagegroup-agl-basesystem \
+"
+
+# limit images built ...
+IMAGE_FSTYPES := "ext4 tar"
index 788b97f..0e46b45 100644 (file)
@@ -4,8 +4,13 @@ LICENSE = "Apache-2.0"
 inherit packagegroup
 
 PACKAGES = "\
-        packagegroup-agl-basesystem-service \
-        "
+    packagegroup-agl-basesystem-service \
+"
 
 RDEPENDS_${PN} += " \
-    "
+    ns-commonlibrary \
+    ns-frameworkunified \
+    ns-loglibrary \
+    os-posixbasedos001legacylibrary \
+    os-rpclibrary \
+"
index 0b4e0eb..2f13587 100644 (file)
@@ -5,19 +5,17 @@ inherit packagegroup
 
 PACKAGES = "\
     packagegroup-agl-basesystem \
-    "
+"
 
 ALLOW_EMPTY_${PN} = "1"
 
 RDEPENDS_${PN} += "\
     packagegroup-agl-image-minimal \
-    "
+"
 
 RDEPENDS_${PN}  += "\
     packagegroup-agl-basesystem-core \
     packagegroup-agl-basesystem-apis \
     packagegroup-agl-basesystem-service \
     packagegroup-agl-basesystem-hal \
-    "
-
-
+"
diff --git a/meta-oem-production-readiness/meta-agl-basesystem/recipes-support/ns-commonlibrary/ns-commonlibrary_1.0.0.bb b/meta-oem-production-readiness/meta-agl-basesystem/recipes-support/ns-commonlibrary/ns-commonlibrary_1.0.0.bb
new file mode 100644 (file)
index 0000000..1fdf7ef
--- /dev/null
@@ -0,0 +1,18 @@
+SUMMARY = "ns-commonlibrary for AGL software"
+DESCRIPTION = "ns-commonlibrary to build AGL software"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=2ee41112a44fe7014dce33e26468ba93"
+
+PV = "1.0.0+gitr${SRCPV}"
+SRC_URI = "git://gerrit.automotivelinux.org/gerrit/staging/basesystem.git;protocol=https;branch=${AGL_BRANCH}"
+SRCREV := "${BASESYSTEM_REVISION}"
+
+S = "${WORKDIR}/git/service/native/common_library"
+
+inherit agl-basesystem-common
+
+BSMAKE_FILE = "Makefile.client"
+
+FILES_${PN} += " \
+    ${libdir}/* \
+"
diff --git a/meta-oem-production-readiness/meta-agl-basesystem/recipes-support/ns-loglibrary/ns-loglibrary_1.0.0.bb b/meta-oem-production-readiness/meta-agl-basesystem/recipes-support/ns-loglibrary/ns-loglibrary_1.0.0.bb
new file mode 100644 (file)
index 0000000..c59ba5a
--- /dev/null
@@ -0,0 +1,18 @@
+SUMMARY = "ns-loglibrary for AGL software"
+DESCRIPTION = "ns-loglibrary to build AGL software"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=2ee41112a44fe7014dce33e26468ba93"
+
+PV = "1.0.0+gitr${SRCPV}"
+SRC_URI = "git://gerrit.automotivelinux.org/gerrit/staging/basesystem.git;protocol=https;branch=${AGL_BRANCH}"
+SRCREV := "${BASESYSTEM_REVISION}"
+
+S = "${WORKDIR}/git/service/native/log_library"
+
+inherit agl-basesystem-common
+
+BSMAKE_FILE = "Makefile.client"
+
+FILES_${PN} += " \
+    ${libdir}/* \
+"
diff --git a/meta-oem-production-readiness/meta-agl-basesystem/recipes-support/os-eventlibrary/os-eventlibrary_1.0.0.bb b/meta-oem-production-readiness/meta-agl-basesystem/recipes-support/os-eventlibrary/os-eventlibrary_1.0.0.bb
new file mode 100644 (file)
index 0000000..8dc4b29
--- /dev/null
@@ -0,0 +1,25 @@
+SUMMARY = "os-eventlibrary for AGL software"
+DESCRIPTION = "os-eventlibrary to build AGL software"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=2ee41112a44fe7014dce33e26468ba93"
+
+DEPENDS += " \
+    evklib-headers \
+"
+
+PV = "1.0.0+gitr${SRCPV}"
+SRC_URI = "git://gerrit.automotivelinux.org/gerrit/staging/basesystem.git;protocol=https;branch=${AGL_BRANCH}"
+SRCREV := "${BASESYSTEM_REVISION}"
+
+S = "${WORKDIR}/git/service/other/event_library"
+
+inherit agl-basesystem-common
+
+BSMAKE_FILE = "Makefile.client"
+
+FILES_${PN} += " \
+    ${libdir}/* \
+"
+RDEPENDS_${PN} += " \
+    kernel-module-evklib \
+"
diff --git a/meta-oem-production-readiness/meta-agl-basesystem/recipes-support/os-posixbasedos001legacylibrary/os-posixbasedos001legacylibrary_1.0.0.bb b/meta-oem-production-readiness/meta-agl-basesystem/recipes-support/os-posixbasedos001legacylibrary/os-posixbasedos001legacylibrary_1.0.0.bb
new file mode 100644 (file)
index 0000000..ff87835
--- /dev/null
@@ -0,0 +1,18 @@
+SUMMARY = "os-posixbasedos001legacylibrary for AGL software"
+DESCRIPTION = "os-posixbasedos001legacylibrary to build AGL software"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=2ee41112a44fe7014dce33e26468ba93"
+
+PV = "1.0.0+gitr${SRCPV}"
+SRC_URI = "git://gerrit.automotivelinux.org/gerrit/staging/basesystem.git;protocol=https;branch=${AGL_BRANCH}"
+SRCREV := "${BASESYSTEM_REVISION}"
+
+S = "${WORKDIR}/git/service/other/posix_based_os001_legacy_library"
+
+inherit agl-basesystem-common
+
+BSMAKE_FILE = "Makefile.client"
+
+FILES_${PN} += " \
+    ${libdir}/* \
+"
diff --git a/meta-oem-production-readiness/meta-agl-basesystem/recipes-support/os-rpclibrary/os-rpclibrary-tool_1.0.0.bb b/meta-oem-production-readiness/meta-agl-basesystem/recipes-support/os-rpclibrary/os-rpclibrary-tool_1.0.0.bb
new file mode 100644 (file)
index 0000000..573207a
--- /dev/null
@@ -0,0 +1,29 @@
+SUMMARY = "librpc tools for AGL software"
+DESCRIPTION = "install librpc tool"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://../LICENSE;md5=2ee41112a44fe7014dce33e26468ba93"
+
+DEPENDS += " \
+    agl-basefiles-native \
+    bison-native \
+"
+
+PV = "1.0.0+gitr${SRCPV}"
+SRC_URI = "git://gerrit.automotivelinux.org/gerrit/staging/basesystem.git;protocol=https;branch=${AGL_BRANCH}"
+SRCREV := "${BASESYSTEM_REVISION}"
+
+S = "${WORKDIR}/git/service/other/rpc_library/tool"
+
+do_compile_prepend () {
+    oe_runmake clean
+}
+
+do_install () {
+    install -D -m 755 ${S}/rpc_apidef ${D}${bindir}/rpc_apidef
+}
+
+FILES_${PN} += " \
+    ${bindir}/rpc_apidef \
+"
+
+BBCLASSEXTEND = "native"
diff --git a/meta-oem-production-readiness/meta-agl-basesystem/recipes-support/os-rpclibrary/os-rpclibrary_1.0.0.bb b/meta-oem-production-readiness/meta-agl-basesystem/recipes-support/os-rpclibrary/os-rpclibrary_1.0.0.bb
new file mode 100644 (file)
index 0000000..95631dc
--- /dev/null
@@ -0,0 +1,29 @@
+SUMMARY = "os-rpclibrary for AGL software"
+DESCRIPTION = "os-rpclibrary to build AGL software"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=2ee41112a44fe7014dce33e26468ba93"
+
+DEPENDS += " \
+    ns-commonlibrary \
+    ns-loglibrary \
+    bison-native \
+"
+
+PV = "1.0.0+gitr${SRCPV}"
+SRC_URI = "git://gerrit.automotivelinux.org/gerrit/staging/basesystem.git;protocol=https;branch=${AGL_BRANCH}"
+SRCREV := "${BASESYSTEM_REVISION}"
+
+S = "${WORKDIR}/git/service/other/rpc_library"
+
+inherit agl-basesystem-common
+
+BSMAKE_FILE = "Makefile.client"
+
+FILES_${PN} += " \
+    /usr/lib/basesystem/librpc.so \
+"
+
+RDEPENDS_${PN} += " \
+    ns-commonlibrary \
+    ns-loglibrary \
+"