blob: 26c6d75d4b757233fd822d7e5a5ac0808cf5c646 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001SUMMARY = "Linux kernel userland utilities for the PCMCIA subsystem"
2HOMEPAGE = "https://www.kernel.org/pub/linux/utils/kernel/pcmcia/"
3SECTION = "kernel/userland"
4
5LICENSE = "GPLv2"
6LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
7
Brad Bishopd5ae7d92018-06-14 09:52:03 -07008DEPENDS = "udev sysfsutils flex-native bison-native"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05009RDEPENDS_${PN} = "udev module-init-tools"
10
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050011SRC_URI = "${KERNELORG_MIRROR}/linux/utils/kernel/pcmcia/${BP}.tar.xz"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050012
13S = "${WORKDIR}/pcmciautils-${PV}"
14
Brad Bishop6e60e8b2018-02-01 10:27:11 -050015inherit pkgconfig
16
Patrick Williamsc124f4f2015-09-15 14:41:29 -050017export HOSTCC = "${BUILD_CC}"
18export etcdir = "${sysconfdir}"
19export sbindir = "${base_sbindir}"
20export pcmciaconfdir = "${sysconfdir}/pcmcia"
21export udevdir = "`pkg-config --variable=udevdir udev`"
22export udevrulesdir = "`pkg-config --variable=udevdir udev`/rules.d"
23export UDEV = "1"
24LD = "${CC}"
25CFLAGS =+ "-I${S}/src"
26CFLAGS =+ "-DPCMCIAUTILS_VERSION=\\"${PV}\\""
27
28EXTRA_OEMAKE = "-e 'STRIP=echo' 'LIB_OBJS=-lc -lsysfs' 'LEX=flex'"
29
30do_install () {
31 oe_runmake 'DESTDIR=${D}' install
32}
33
34CONFFILES_${PN} += "${sysconfdir}/pcmcia/config.opts"