DESCRIPTION = "ID EEPROM tool for MTCDP" HOMEPAGE = "http://www.multitech.net/" SECTION = "console/utils" PRIORITY = "optional" LICENSE = "GPLv2+" LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" INC_PR = "r0" DEPENDS = "mts-io openssl" DEPENDS_append_mtcdt3 = " mtcdt3b" DEPENDS_append_mtcdt3hs = " mtcdt3b" DEPENDS_append_mtcpmhs = " mtcdt3b" 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" 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 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 " fakeroot do_install_append_mtcap() { install -d -m 0755 ${D}${libdir}/mts-flash-binaries install -m 0444 ${WORKDIR}/${MACHINE}-fpga-v31.hex ${D}${libdir}/mts-flash-binaries install -m 0444 ${WORKDIR}/${MACHINE}-fpga-v35.hex ${D}${libdir}/mts-flash-binaries } fakeroot do_install_append_mtcdt() { install -d -m 0755 ${D}${libdir}/mts-flash-binaries install -m 0444 ${WORKDIR}/${MACHINE}-fpga-v31.hex ${D}${libdir}/mts-flash-binaries install -m 0444 ${WORKDIR}/${MACHINE}-fpga-v35.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 } 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 }