blob: 744e782064d9bebdcff4430cdb5e677679b381e4 [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
Brad Bishop26bdd442019-08-16 17:08:17 -04008SRC_URI = "https://www.kernel.org/pub/linux/utils/net/hdlc/${BP}.tar.gz \
Patrick Williamsb48b7b42016-08-17 15:04:38 -05009 file://sethdlc-fix-host-contamination.patch \
10"
11SRC_URI[md5sum] = "9016878156a5eadb06c0bae71cc5c9ab"
12SRC_URI[sha256sum] = "21b1e2e1cb0e288b0ec8fcfd9fed449914e0f8e6fc273706bd5b3d4f6ab6b04e"
13
14
Patrick Williamsb48b7b42016-08-17 15:04:38 -050015PACKAGE_ARCH = "${MACHINE_ARCH}"
16DEPENDS = "virtual/kernel"
17
18EXTRA_OEMAKE="CROSS_COMPILE=${TARGET_PREFIX} CC='${CC} ${LDFLAGS}' \
19 KERNEL_DIR=${STAGING_KERNEL_DIR} "
20
Patrick Williams213cb262021-08-07 19:21:33 -050021do_compile:prepend () {
Patrick Williamsb48b7b42016-08-17 15:04:38 -050022 oe_runmake clean
23}
24
25
26do_install() {
27 install -d ${D}/${bindir}
28 install sethdlc ${D}/${bindir}/
29}
30
Patrick Williams213cb262021-08-07 19:21:33 -050031FILES:${PN} += "${bindir}/sethdlc"