blob: 3ffbf6f597fe6fb98bd3b6344e85229b37894489 [file] [log] [blame]
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08001SUMMARY = "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
8DEPENDS = "udev sysfsutils flex-native bison-native"
Patrick Williams213cb262021-08-07 19:21:33 -05009RDEPENDS:${PN} = "udev module-init-tools"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080010
11PR = "r1"
12
13SRC_URI = "${KERNELORG_MIRROR}/linux/utils/kernel/pcmcia/${BP}.tar.xz \
14 file://makefile_fix.patch \
15 file://makefile_race.patch \
16 file://lex_sys_types.patch \
17"
18
19SRC_URI[md5sum] = "885431c3cefb76ffdad8cb985134e996"
20SRC_URI[sha256sum] = "57c27be8f04ef4d535bcfa988567316cc57659fe69068327486dab53791e6558"
21
22inherit pkgconfig
23
24export HOSTCC = "${BUILD_CC}"
25export etcdir = "${sysconfdir}"
26export sbindir = "${base_sbindir}"
27export pcmciaconfdir = "${sysconfdir}/pcmcia"
28export udevdir = "`pkg-config --variable=udevdir udev`"
29export udevrulesdir = "`pkg-config --variable=udevdir udev`/rules.d"
30export UDEV = "1"
31LD = "${CC}"
32CFLAGS =+ "-I${S}/src"
33CFLAGS =+ "-DPCMCIAUTILS_VERSION=\\"${PV}\\""
34
35EXTRA_OEMAKE = "-e 'STRIP=echo' 'LIB_OBJS=-lc -lsysfs' 'LEX=flex'"
36
37do_install () {
38 oe_runmake 'DESTDIR=${D}' install
39}
40
Patrick Williams213cb262021-08-07 19:21:33 -050041CONFFILES:${PN} += "${sysconfdir}/pcmcia/config.opts"