diff options
author | Jesse Gilles <jgilles@multitech.com> | 2015-01-23 15:35:47 -0600 |
---|---|---|
committer | Jesse Gilles <jgilles@multitech.com> | 2015-01-23 15:35:47 -0600 |
commit | 3bb0e9740d8f9ffd8f5e6618d2965712258c2eaa (patch) | |
tree | ffbd729b689b6e73ba70bb917feab71a6fd26252 /recipes-extended/multitech/set-rs485_0.1.bb | |
parent | d138f76cd8cb1dee1bb0318ee029f9c078de6196 (diff) | |
download | meta-mlinux-3bb0e9740d8f9ffd8f5e6618d2965712258c2eaa.tar.gz meta-mlinux-3bb0e9740d8f9ffd8f5e6618d2965712258c2eaa.tar.bz2 meta-mlinux-3bb0e9740d8f9ffd8f5e6618d2965712258c2eaa.zip |
recipes-extended/multitech: add set-rs485
Add simple utility to enable RS-485 half-duplex mode for a given tty device
Diffstat (limited to 'recipes-extended/multitech/set-rs485_0.1.bb')
-rw-r--r-- | recipes-extended/multitech/set-rs485_0.1.bb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/recipes-extended/multitech/set-rs485_0.1.bb b/recipes-extended/multitech/set-rs485_0.1.bb new file mode 100644 index 0000000..09fe9f9 --- /dev/null +++ b/recipes-extended/multitech/set-rs485_0.1.bb @@ -0,0 +1,18 @@ +DESCRIPTION = "Enables RS485 mode for a serial tty device" +HOMEPAGE = "http://www.multitech.net/" +PRIORITY = "optional" +LICENSE = "GPLv2+" +LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6" +PR = "r0" + +SRC_URI = "file://set-rs485.c" +S = "${WORKDIR}" + +do_compile() { + ${CC} ${CFLAGS} ${LDFLAGS} -o set-rs485 set-rs485.c +} + +do_install() { + install -d ${D}${bindir} + install -m 0755 set-rs485 ${D}${bindir}/ +} |