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
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 "
+++ /dev/null
-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"
-
-
# 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}"
+
CONFDIR = "${sysconfdir}/basesystem"
LOCALDIR = "/var/local/lib/basesystem"
-BASESYSTEM_REVISION = "7ab637d7f01e712488deab0d318443ed9a81d5ae"
-
+BASESYSTEM_REVISION = "71afcd09b0f210e7da5ae6adc1b914fa02d412ff"
# 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}/"
--- /dev/null
+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"
--- /dev/null
+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 \
+"
--- /dev/null
+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 \
+"
--- /dev/null
+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"
--- /dev/null
+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"
PACKAGES = "\
packagegroup-agl-basesystem-apis \
- "
-
-RDEPENDS_${PN} += " \
- "
+"
inherit packagegroup
PACKAGES = "\
- packagegroup-agl-basesystem-core \
- "
-
-RDEPENDS_${PN} += "\
- "
+ packagegroup-agl-basesystem-core \
+"
inherit packagegroup
PACKAGES = "\
- packagegroup-agl-basesystem-hal \
- "
-
-RDEPENDS_${PN} += " \
- "
+ packagegroup-agl-basesystem-hal \
+"
inherit packagegroup
PACKAGES = "\
- packagegroup-agl-basesystem-service \
- "
+ packagegroup-agl-basesystem-service \
+"
RDEPENDS_${PN} += " \
- "
+ ns-commonlibrary \
+ ns-frameworkunified \
+ ns-loglibrary \
+ os-posixbasedos001legacylibrary \
+ os-rpclibrary \
+"
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 \
- "
-
-
+"
--- /dev/null
+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}/* \
+"
--- /dev/null
+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}/* \
+"
--- /dev/null
+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 \
+"
--- /dev/null
+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}/* \
+"
--- /dev/null
+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"
--- /dev/null
+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 \
+"