summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarsh Sharma <harsh.sharma@multitech.com>2021-08-05 14:33:15 -0500
committerHarsh Sharma <harsh.sharma@multitech.com>2021-08-05 14:33:15 -0500
commita2ed28833708c66c7ecb7655e56d91be1660a486 (patch)
treea49cbed6a87220bd65eb9fcd9c28c80f70e66916
parent95f68427919d5050db1d0ef1b489c8adcb9eae9f (diff)
downloadmeta-multitech-a2ed28833708c66c7ecb7655e56d91be1660a486.tar.gz
meta-multitech-a2ed28833708c66c7ecb7655e56d91be1660a486.tar.bz2
meta-multitech-a2ed28833708c66c7ecb7655e56d91be1660a486.zip
Fixed mts-fpga loader being missing for mtcpmhs
-rw-r--r--recipes-bsp/multitech/mts-id-eeprom.inc11
1 files changed, 9 insertions, 2 deletions
diff --git a/recipes-bsp/multitech/mts-id-eeprom.inc b/recipes-bsp/multitech/mts-id-eeprom.inc
index 3e838cf..dda5c68 100644
--- a/recipes-bsp/multitech/mts-id-eeprom.inc
+++ b/recipes-bsp/multitech/mts-id-eeprom.inc
@@ -25,11 +25,11 @@ TARGET_CFLAGS_append_mtcpmhs = " -D MTCDT3B"
TARGET_CFLAGS_append_mtre = " -D MTRE"
SRCREV = "${PV}"
-
+FILESEXTRAPATHS_prepend_mtcpmhs := "${THISDIR}/mts-id-eeprom/mtcdt:"
SRC_URI = "git://git@gitlab.multitech.net/mirrors/mts-id-eeprom;protocol=ssh;branch=master"
SRC_URI_append_mtcdt = " file://mtcdt-fpga-v31.hex file://mtcdt-fpga-v35.hex"
+SRC_URI_append_mtcpmhs = " file://mtcdt-fpga-v31.hex file://mtcdt-fpga-v35.hex"
SRC_URI_append_mtcap = " file://mtcap-fpga-v31.hex file://mtcap-fpga-v35.hex"
-
S = "${WORKDIR}/git"
inherit autotools
@@ -38,8 +38,11 @@ PARALLEL_MAKE = ""
FILES_${PN}_append_mtcap += "${sbindir}/mts-fpga-loader-1_5"
FILES_${PN}_append_mtcdt += "${sbindir}/mts-fpga-loader-1_5"
+FILES_${PN}_append_mtcpmhs += "${sbindir}/mts-fpga-loader-1_5"
+
FILES_${PN}_append_mtcap += "${libdir}/mts-flash-binaries/mtcap-fpga-v31.hex ${libdir}/mts-flash-binaries/mtcap-fpga-v35.hex "
FILES_${PN}_append_mtcdt += "${libdir}/mts-flash-binaries/mtcdt-fpga-v31.hex ${libdir}/mts-flash-binaries/mtcdt-fpga-v35.hex "
+FILES_${PN}_append_mtcpmhs += "${libdir}/mts-flash-binaries/mtcdt-fpga-v31.hex ${libdir}/mts-flash-binaries/mtcdt-fpga-v35.hex "
@@ -69,4 +72,8 @@ fakeroot do_install_append_mtcdt3hs() {
fakeroot do_install_append_mtcpmhs() {
# adjust u-boot partition name (nand -> mmc)
sed -i 's/^.*fgrep.*$/if false; then/g' ${D}/${base_sbindir}/mts-ubpasswd
+ install -d -m 0755 ${D}${libdir}/mts-flash-binaries
+ install -m 0444 ${WORKDIR}/mtcdt-fpga-v31.hex ${D}${libdir}/mts-flash-binaries
+ install -m 0444 ${WORKDIR}/mtcdt-fpga-v35.hex ${D}${libdir}/mts-flash-binaries
+
}