Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 1 | DESCRIPTION = "set Linux HDLC packet radio modem driver port information" |
| 2 | HOMEPAGE = "https://www.kernel.org/pub/linux/utils/net/hdlc" |
| 3 | SECTION = "comm" |
| 4 | LICENSE = "GPLv2 & GPLv2+ " |
| 5 | LIC_FILES_CHKSUM = "file://sethdlc.c;endline=10;md5=90f936879e9f8b755a138aeb348782eb" |
| 6 | |
| 7 | |
| 8 | SRC_URI = "https://www.kernel.org/pub/linux/utils/net/hdlc/${BPN}-1.18.tar.gz \ |
| 9 | file://sethdlc-fix-host-contamination.patch \ |
| 10 | " |
| 11 | SRC_URI[md5sum] = "9016878156a5eadb06c0bae71cc5c9ab" |
| 12 | SRC_URI[sha256sum] = "21b1e2e1cb0e288b0ec8fcfd9fed449914e0f8e6fc273706bd5b3d4f6ab6b04e" |
| 13 | |
| 14 | |
| 15 | S = "${WORKDIR}/${BPN}-1.18" |
| 16 | |
| 17 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
| 18 | DEPENDS = "virtual/kernel" |
| 19 | |
| 20 | EXTRA_OEMAKE="CROSS_COMPILE=${TARGET_PREFIX} CC='${CC} ${LDFLAGS}' \ |
| 21 | KERNEL_DIR=${STAGING_KERNEL_DIR} " |
| 22 | |
| 23 | do_compile_prepend () { |
| 24 | oe_runmake clean |
| 25 | } |
| 26 | |
| 27 | |
| 28 | do_install() { |
| 29 | install -d ${D}/${bindir} |
| 30 | install sethdlc ${D}/${bindir}/ |
| 31 | } |
| 32 | |
| 33 | FILES_${PN} += "${bindir}/sethdlc" |