summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMykyta Dorokhin <mykyta.dorokhin@globallogic.com>2021-01-18 21:48:20 +0200
committerMykyta Dorokhin <mykyta.dorokhin@globallogic.com>2021-01-18 21:48:20 +0200
commit773442f56569304973118e290b2ea76a959105dc (patch)
tree492b44283f6ed896b8373d32f2ffb27d44f3eb7c
parent4a8fb99f032ec6b30718893afd6d75bc42645db6 (diff)
downloadmeta-multitech-773442f56569304973118e290b2ea76a959105dc.tar.gz
meta-multitech-773442f56569304973118e290b2ea76a959105dc.tar.bz2
meta-multitech-773442f56569304973118e290b2ea76a959105dc.zip
linux 5.4: fix mtac linking dependencies for the 5.4.81
-rw-r--r--recipes-bsp/multitech/mtac-eth_1.1.1.bb4
-rw-r--r--recipes-bsp/multitech/mtac-gpiob_1.1.2.bb4
-rw-r--r--recipes-bsp/multitech/mtac-lora_1.1.5.bb4
-rw-r--r--recipes-bsp/multitech/mtac-mfser_1.1.1.bb4
-rw-r--r--recipes-bsp/multitech/mtac-pulse_1.1.1.bb5
-rw-r--r--recipes-bsp/multitech/mtac-xdot_1.1.1.bb4
-rw-r--r--recipes-bsp/multitech/mtac_4.0.7.bb5
7 files changed, 29 insertions, 1 deletions
diff --git a/recipes-bsp/multitech/mtac-eth_1.1.1.bb b/recipes-bsp/multitech/mtac-eth_1.1.1.bb
index 94b1e5f..4000d31 100644
--- a/recipes-bsp/multitech/mtac-eth_1.1.1.bb
+++ b/recipes-bsp/multitech/mtac-eth_1.1.1.bb
@@ -21,8 +21,12 @@ S = "${WORKDIR}/git"
inherit module
+MTS_EXTRA_SYMBOLS="${STAGING_INCDIR}/mts-io/Module.symvers \
+ ${STAGING_INCDIR}/mtac/Module.symvers"
+
COMMON_OEMAKE = " -C ${STAGING_KERNEL_DIR} \
KBUILD_VERBOSE=1 \
+ KBUILD_EXTRA_SYMBOLS='${MTS_EXTRA_SYMBOLS}' \
M=${S} \
modules \
"
diff --git a/recipes-bsp/multitech/mtac-gpiob_1.1.2.bb b/recipes-bsp/multitech/mtac-gpiob_1.1.2.bb
index cfd630b..39f415d 100644
--- a/recipes-bsp/multitech/mtac-gpiob_1.1.2.bb
+++ b/recipes-bsp/multitech/mtac-gpiob_1.1.2.bb
@@ -23,8 +23,12 @@ S = "${WORKDIR}/git"
inherit module
+MTS_EXTRA_SYMBOLS="${STAGING_INCDIR}/mts-io/Module.symvers \
+ ${STAGING_INCDIR}/mtac/Module.symvers"
+
COMMON_OEMAKE = " -C ${STAGING_KERNEL_DIR} \
KBUILD_VERBOSE=1 \
+ KBUILD_EXTRA_SYMBOLS='${MTS_EXTRA_SYMBOLS}' \
M=${S} \
modules \
"
diff --git a/recipes-bsp/multitech/mtac-lora_1.1.5.bb b/recipes-bsp/multitech/mtac-lora_1.1.5.bb
index 34d402d..1e30a07 100644
--- a/recipes-bsp/multitech/mtac-lora_1.1.5.bb
+++ b/recipes-bsp/multitech/mtac-lora_1.1.5.bb
@@ -21,8 +21,12 @@ S = "${WORKDIR}/git"
inherit module
+MTS_EXTRA_SYMBOLS="${STAGING_INCDIR}/mts-io/Module.symvers \
+ ${STAGING_INCDIR}/mtac/Module.symvers"
+
COMMON_OEMAKE = " -C ${STAGING_KERNEL_DIR} \
KBUILD_VERBOSE=1 \
+ KBUILD_EXTRA_SYMBOLS='${MTS_EXTRA_SYMBOLS}' \
M=${S} \
modules \
"
diff --git a/recipes-bsp/multitech/mtac-mfser_1.1.1.bb b/recipes-bsp/multitech/mtac-mfser_1.1.1.bb
index b9f5bde..7942526 100644
--- a/recipes-bsp/multitech/mtac-mfser_1.1.1.bb
+++ b/recipes-bsp/multitech/mtac-mfser_1.1.1.bb
@@ -21,8 +21,12 @@ S = "${WORKDIR}/git"
inherit module
+MTS_EXTRA_SYMBOLS="${STAGING_INCDIR}/mts-io/Module.symvers \
+ ${STAGING_INCDIR}/mtac/Module.symvers"
+
COMMON_OEMAKE = " -C ${STAGING_KERNEL_DIR} \
KBUILD_VERBOSE=1 \
+ KBUILD_EXTRA_SYMBOLS='${MTS_EXTRA_SYMBOLS}' \
M=${S} \
modules \
"
diff --git a/recipes-bsp/multitech/mtac-pulse_1.1.1.bb b/recipes-bsp/multitech/mtac-pulse_1.1.1.bb
index 5a4c21c..d00f962 100644
--- a/recipes-bsp/multitech/mtac-pulse_1.1.1.bb
+++ b/recipes-bsp/multitech/mtac-pulse_1.1.1.bb
@@ -21,12 +21,15 @@ S = "${WORKDIR}/git"
inherit module
+MTS_EXTRA_SYMBOLS="${STAGING_INCDIR}/mts-io/Module.symvers \
+ ${STAGING_INCDIR}/mtac/Module.symvers"
+
COMMON_OEMAKE = " -C ${STAGING_KERNEL_DIR} \
KBUILD_VERBOSE=1 \
+ KBUILD_EXTRA_SYMBOLS='${MTS_EXTRA_SYMBOLS}' \
M=${S} \
modules \
"
-
EXTRA_OEMAKE_mtcdt = "${COMMON_OEMAKE} EXTRA_CFLAGS='-I${STAGING_INCDIR}/mts-kernel-headers \
-D SAM9G25'"
EXTRA_OEMAKE_mtcpmhs = "${COMMON_OEMAKE} EXTRA_CFLAGS='-I${STAGING_INCDIR}/mts-kernel-headers \
diff --git a/recipes-bsp/multitech/mtac-xdot_1.1.1.bb b/recipes-bsp/multitech/mtac-xdot_1.1.1.bb
index e41865a..65bb3c3 100644
--- a/recipes-bsp/multitech/mtac-xdot_1.1.1.bb
+++ b/recipes-bsp/multitech/mtac-xdot_1.1.1.bb
@@ -22,8 +22,12 @@ S = "${WORKDIR}/git"
inherit module
+MTS_EXTRA_SYMBOLS="${STAGING_INCDIR}/mts-io/Module.symvers \
+ ${STAGING_INCDIR}/mtac/Module.symvers"
+
COMMON_OEMAKE = " -C ${STAGING_KERNEL_DIR} \
KBUILD_VERBOSE=1 \
+ KBUILD_EXTRA_SYMBOLS='${MTS_EXTRA_SYMBOLS}' \
M=${S} \
modules \
"
diff --git a/recipes-bsp/multitech/mtac_4.0.7.bb b/recipes-bsp/multitech/mtac_4.0.7.bb
index b032a9a..ca872e2 100644
--- a/recipes-bsp/multitech/mtac_4.0.7.bb
+++ b/recipes-bsp/multitech/mtac_4.0.7.bb
@@ -27,8 +27,11 @@ S = "${WORKDIR}/git"
inherit module
+MTS_EXTRA_SYMBOLS="${STAGING_INCDIR}/mts-io/Module.symvers"
+
COMMON_OEMAKE = " -C ${STAGING_KERNEL_DIR} \
KBUILD_VERBOSE=1 \
+ KBUILD_EXTRA_SYMBOLS="${MTS_EXTRA_SYMBOLS}" \
M=${S} \
modules \
"
@@ -56,6 +59,8 @@ fakeroot do_install () {
# use cp instead of install so the driver doesn't get stripped
cp ${S}/mtac.ko ${D}${base_libdir}/modules/${KERNEL_VERSION}/extra
+ install -Dm0644 ${S}/Module.symvers ${D}${includedir}/${BPN}/Module.symvers
+
install -d ${D}${includedir}/mts-kernel-headers/linux
install -m 0644 ${S}/mtac.h ${D}${includedir}/mts-kernel-headers/linux
cp ${S}/machine/* ${D}${includedir}/mts-kernel-headers/linux