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