summaryrefslogtreecommitdiffstats
path: root/meta-oem-production-readiness/meta-agl-basesystem/classes
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oem-production-readiness/meta-agl-basesystem/classes')
-rw-r--r--meta-oem-production-readiness/meta-agl-basesystem/classes/agl-basesystem-common.bbclass7
-rw-r--r--meta-oem-production-readiness/meta-agl-basesystem/classes/agl-basesystem-hal.bbclass9
-rw-r--r--meta-oem-production-readiness/meta-agl-basesystem/classes/bshalmake.bbclass10
-rw-r--r--meta-oem-production-readiness/meta-agl-basesystem/classes/bsmake.bbclass13
4 files changed, 39 insertions, 0 deletions
diff --git a/meta-oem-production-readiness/meta-agl-basesystem/classes/agl-basesystem-common.bbclass b/meta-oem-production-readiness/meta-agl-basesystem/classes/agl-basesystem-common.bbclass
new file mode 100644
index 00000000..f944de5b
--- /dev/null
+++ b/meta-oem-production-readiness/meta-agl-basesystem/classes/agl-basesystem-common.bbclass
@@ -0,0 +1,7 @@
+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
new file mode 100644
index 00000000..9db2f26a
--- /dev/null
+++ b/meta-oem-production-readiness/meta-agl-basesystem/classes/agl-basesystem-hal.bbclass
@@ -0,0 +1,9 @@
+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"
+
+
diff --git a/meta-oem-production-readiness/meta-agl-basesystem/classes/bshalmake.bbclass b/meta-oem-production-readiness/meta-agl-basesystem/classes/bshalmake.bbclass
new file mode 100644
index 00000000..2deac96f
--- /dev/null
+++ b/meta-oem-production-readiness/meta-agl-basesystem/classes/bshalmake.bbclass
@@ -0,0 +1,10 @@
+# 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
diff --git a/meta-oem-production-readiness/meta-agl-basesystem/classes/bsmake.bbclass b/meta-oem-production-readiness/meta-agl-basesystem/classes/bsmake.bbclass
new file mode 100644
index 00000000..6e5caba9
--- /dev/null
+++ b/meta-oem-production-readiness/meta-agl-basesystem/classes/bsmake.bbclass
@@ -0,0 +1,13 @@
+# poky's base.bbclass must be named Makefile, makefile, or GNUmakefile to be processed.
+# The names of the basesystem Makefile are Makefile.client and Makefile.server,so you
+# need to define a do_compile to process the Makefile.
+bsmake_do_compile (){
+ oe_runmake -f ${BSMAKE_FILE}
+}
+
+# base_do_install under poky's base.bbclass is empty so definition is needed.
+bsmake_do_install (){
+ oe_runmake -f ${BSMAKE_FILE} DESTDIR=${D} install
+}
+
+EXPORT_FUNCTIONS do_compile do_install