summaryrefslogtreecommitdiffstats
path: root/meta-rcar-gen3/recipes-kernel/kernel-module-adsp/kernel-module-xtensa-hifi.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-rcar-gen3/recipes-kernel/kernel-module-adsp/kernel-module-xtensa-hifi.bb')
-rw-r--r--meta-rcar-gen3/recipes-kernel/kernel-module-adsp/kernel-module-xtensa-hifi.bb32
1 files changed, 32 insertions, 0 deletions
diff --git a/meta-rcar-gen3/recipes-kernel/kernel-module-adsp/kernel-module-xtensa-hifi.bb b/meta-rcar-gen3/recipes-kernel/kernel-module-adsp/kernel-module-xtensa-hifi.bb
new file mode 100644
index 0000000..6d659ed
--- /dev/null
+++ b/meta-rcar-gen3/recipes-kernel/kernel-module-adsp/kernel-module-xtensa-hifi.bb
@@ -0,0 +1,32 @@
+DESCRIPTION = "ADSP Driver for Linux"
+LICENSE = "GPLv2 & MIT"
+
+LIC_FILES_CHKSUM = " \
+ file://COPYING;md5=55979d94ccbb973fdea772250e0c54d6 \
+ file://MIT-COPYING;md5=f932f6ad0feea4f97b6e8316e172070e \
+"
+
+require include/adsp-control.inc
+inherit module
+
+FILESEXTRAPATHS_prepend := "${THISDIR}/xtensa-hifi:"
+
+SRC_URI = "${@base_conditional('USE_ADSP', '1', 'file://RCG3AHPDL4001ZDO.tar.gz', '', d)}"
+
+S = "${WORKDIR}/RCG3AHPDL4001ZDO"
+
+# Define the extra config for using module.bbclass to build ADSP driver
+EXTRA_OEMAKE_append = " KDIR=${STAGING_KERNEL_DIR}"
+
+do_install_append(){
+ # Create install directories
+ install -d ${D}/${includedir}
+ install -d ${D}/${includedir}/sys/xt-shmem
+
+ # Install shared header files
+ install -m 644 ${S}/include/*.h ${D}/${includedir}/
+ install -m 644 ${S}/include/sys/xt-shmem/*.h ${D}/${includedir}/sys/xt-shmem/
+}
+
+# The ADSP driver need adsp firmware for running
+RDEPENDS_${PN}_append = " adsp-fw-module"