diff options
author | Andrii Pientsov <andrii.pientsov@globallogic.com> | 2020-05-14 09:59:04 +0300 |
---|---|---|
committer | Andrii Pientsov <andrii.pientsov@globallogic.com> | 2020-05-14 09:59:04 +0300 |
commit | 9bac1651d3ba174bdc9dc4c812a0850f88db6839 (patch) | |
tree | 5835d3c7a721a4b292bfd9b26a81bcda613c62a0 /recipes-bsp/multitech/mts-id-eeprom.inc | |
parent | f4c4ef82ffe60c960337e20024cc2d73989decb0 (diff) | |
download | meta-multitech-9bac1651d3ba174bdc9dc4c812a0850f88db6839.tar.gz meta-multitech-9bac1651d3ba174bdc9dc4c812a0850f88db6839.tar.bz2 meta-multitech-9bac1651d3ba174bdc9dc4c812a0850f88db6839.zip |
Move mts-id-eeprom 0.4.7 from arch/common branch multiarch5-thud
Diffstat (limited to 'recipes-bsp/multitech/mts-id-eeprom.inc')
-rw-r--r-- | recipes-bsp/multitech/mts-id-eeprom.inc | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/recipes-bsp/multitech/mts-id-eeprom.inc b/recipes-bsp/multitech/mts-id-eeprom.inc index f149f40..6b7b262 100644 --- a/recipes-bsp/multitech/mts-id-eeprom.inc +++ b/recipes-bsp/multitech/mts-id-eeprom.inc @@ -8,9 +8,19 @@ INC_PR = "r2" DEPENDS = "mts-io openssl" RDEPENDS_${PN} =+ "bash" +# mts-id-eeprom has been machine dependent since 3.3.12 +# This is a new Yocto requirement. +PACKAGE_ARCH = "${MACHINE_ARCH}" + +DEPENDS_append_mtcdt3 = " mtcdt3b" +DEPENDS_append_mtcdt3hs = " mtcdt3b" + +TARGET_CFLAGS_append_mtcdt3 = " -D MTCDT3B" +TARGET_CFLAGS_append_mtcdt3hs = " -D MTCDT3B" + SRCREV = "${PV}" -SRC_URI = "git://git.multitech.net/mts-id-eeprom.git;protocol=git" +SRC_URI = "git://git@gitlab.multitech.net/mirrors/mts-id-eeprom.git;protocol=ssh" SRC_URI_append_mtcdt = " file://mtcdt-fpga-v31.hex file://mtcdt-fpga-v33.hex" SRC_URI_append_mtcap = " file://mtcap-fpga-v31.hex file://mtcap-fpga-v33.hex" @@ -41,3 +51,13 @@ fakeroot do_install_append_mtcdt() { install -m 0444 ${WORKDIR}/${MACHINE}-fpga-v33.hex ${D}${libdir}/mts-flash-binaries } + +fakeroot do_install_append_mtcdt3() { + # adjust u-boot partition name (nand -> mmc) + sed -i 's/^.*fgrep.*$/if false; then/g' ${D}/${base_sbindir}/mts-ubpasswd +} + +fakeroot do_install_append_mtcdt3hs() { + # adjust u-boot partition name (nand -> mmc) + sed -i 's/^.*fgrep.*$/if false; then/g' ${D}/${base_sbindir}/mts-ubpasswd +} |