From 5730988c791db3b17b01fb81aeddb767fe9ed29a Mon Sep 17 00:00:00 2001 From: Joachim Foerster Date: Thu, 14 Oct 2021 13:01:09 +0200 Subject: [PATCH] meta-corundum/: Add PetaLinux/Yocto meta layer, include recipe for mqnic kernel module and support tools For now, this layer is marked compatible with the Yocto version which PetaLinux v2021.1 is based on (codename "gatesgarth"), only. Other version might be added as needed (space separated). Incompatibilities with older versions are not known at this point in time. Signed-off-by: Joachim Foerster --- meta-corundum/conf/layer.conf | 6 +++++ .../mqnic-tools/files/modules | 1 + .../recipes-devtools/mqnic-tools/files/utils | 1 + .../mqnic-tools/mqnic-tools.bb | 22 +++++++++++++++++++ .../kernel-module-mqnic/files/mqnic | 1 + .../kernel-module-mqnic.bb | 14 ++++++++++++ 6 files changed, 45 insertions(+) create mode 100644 meta-corundum/conf/layer.conf create mode 120000 meta-corundum/recipes-devtools/mqnic-tools/files/modules create mode 120000 meta-corundum/recipes-devtools/mqnic-tools/files/utils create mode 100644 meta-corundum/recipes-devtools/mqnic-tools/mqnic-tools.bb create mode 120000 meta-corundum/recipes-modules/kernel-module-mqnic/files/mqnic create mode 100644 meta-corundum/recipes-modules/kernel-module-mqnic/kernel-module-mqnic.bb diff --git a/meta-corundum/conf/layer.conf b/meta-corundum/conf/layer.conf new file mode 100644 index 000000000..311fc241e --- /dev/null +++ b/meta-corundum/conf/layer.conf @@ -0,0 +1,6 @@ +BBPATH .= ":${LAYERDIR}" +BBFILES += "${LAYERDIR}/recipes-*/*/*.bb ${LAYERDIR}/recipes-*/*/*.bbappend" +BBFILE_COLLECTIONS += "meta-corundum" +BBFILE_PATTERN_meta-corundum = "^${LAYERDIR}/" +BBFILE_PRIORITY_meta-corundum = "5" +LAYERSERIES_COMPAT_meta-corundum = "gatesgarth" diff --git a/meta-corundum/recipes-devtools/mqnic-tools/files/modules b/meta-corundum/recipes-devtools/mqnic-tools/files/modules new file mode 120000 index 000000000..9bbbca0dc --- /dev/null +++ b/meta-corundum/recipes-devtools/mqnic-tools/files/modules @@ -0,0 +1 @@ +../../../../modules \ No newline at end of file diff --git a/meta-corundum/recipes-devtools/mqnic-tools/files/utils b/meta-corundum/recipes-devtools/mqnic-tools/files/utils new file mode 120000 index 000000000..23cef9612 --- /dev/null +++ b/meta-corundum/recipes-devtools/mqnic-tools/files/utils @@ -0,0 +1 @@ +../../../../utils \ No newline at end of file diff --git a/meta-corundum/recipes-devtools/mqnic-tools/mqnic-tools.bb b/meta-corundum/recipes-devtools/mqnic-tools/mqnic-tools.bb new file mode 100644 index 000000000..35fd8bb71 --- /dev/null +++ b/meta-corundum/recipes-devtools/mqnic-tools/mqnic-tools.bb @@ -0,0 +1,22 @@ +SUMMARY = "Corundum mqnic driver support tools" +SECTION = "devel" +LICENSE = "MIT & GPLv2" +LIC_FILES_CHKSUM = " \ + file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302 \ + file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6" + +SRC_URI = " \ + file://utils \ + file://modules \ +" + +S = "${WORKDIR}/utils" + +do_compile() { + make +} + +do_install() { + # NOTE: Makefile currently defaults to PREFIX=/usr/local ! + make DESTDIR=${D} PREFIX=/usr install +} diff --git a/meta-corundum/recipes-modules/kernel-module-mqnic/files/mqnic b/meta-corundum/recipes-modules/kernel-module-mqnic/files/mqnic new file mode 120000 index 000000000..47b97f767 --- /dev/null +++ b/meta-corundum/recipes-modules/kernel-module-mqnic/files/mqnic @@ -0,0 +1 @@ +../../../../modules/mqnic \ No newline at end of file diff --git a/meta-corundum/recipes-modules/kernel-module-mqnic/kernel-module-mqnic.bb b/meta-corundum/recipes-modules/kernel-module-mqnic/kernel-module-mqnic.bb new file mode 100644 index 000000000..efa8b2727 --- /dev/null +++ b/meta-corundum/recipes-modules/kernel-module-mqnic/kernel-module-mqnic.bb @@ -0,0 +1,14 @@ +SUMMARY = "Corundum mqnic driver kernel module" +SECTION = "kernel" +LICENSE = "MIT & GPLv2" +LIC_FILES_CHKSUM = " \ + file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302 \ + file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6" + +inherit module + +SRC_URI = " \ + file://mqnic \ +" + +S = "${WORKDIR}/mqnic"