Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 1 | SUMMARY = "Linux kernel userland utilities for the PCMCIA subsystem" |
| 2 | HOMEPAGE = "https://www.kernel.org/pub/linux/utils/kernel/pcmcia/" |
| 3 | SECTION = "kernel/userland" |
| 4 | |
| 5 | LICENSE = "GPLv2" |
| 6 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" |
| 7 | |
| 8 | DEPENDS = "udev sysfsutils flex-native bison-native" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame^] | 9 | RDEPENDS:${PN} = "udev module-init-tools" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 10 | |
| 11 | PR = "r1" |
| 12 | |
| 13 | SRC_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 | |
| 19 | SRC_URI[md5sum] = "885431c3cefb76ffdad8cb985134e996" |
| 20 | SRC_URI[sha256sum] = "57c27be8f04ef4d535bcfa988567316cc57659fe69068327486dab53791e6558" |
| 21 | |
| 22 | inherit pkgconfig |
| 23 | |
| 24 | export HOSTCC = "${BUILD_CC}" |
| 25 | export etcdir = "${sysconfdir}" |
| 26 | export sbindir = "${base_sbindir}" |
| 27 | export pcmciaconfdir = "${sysconfdir}/pcmcia" |
| 28 | export udevdir = "`pkg-config --variable=udevdir udev`" |
| 29 | export udevrulesdir = "`pkg-config --variable=udevdir udev`/rules.d" |
| 30 | export UDEV = "1" |
| 31 | LD = "${CC}" |
| 32 | CFLAGS =+ "-I${S}/src" |
| 33 | CFLAGS =+ "-DPCMCIAUTILS_VERSION=\\"${PV}\\"" |
| 34 | |
| 35 | EXTRA_OEMAKE = "-e 'STRIP=echo' 'LIB_OBJS=-lc -lsysfs' 'LEX=flex'" |
| 36 | |
| 37 | do_install () { |
| 38 | oe_runmake 'DESTDIR=${D}' install |
| 39 | } |
| 40 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame^] | 41 | CONFFILES:${PN} += "${sysconfdir}/pcmcia/config.opts" |