Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [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 | |
Brad Bishop | d5ae7d9 | 2018-06-14 09:52:03 -0700 | [diff] [blame] | 8 | DEPENDS = "udev sysfsutils flex-native bison-native" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 9 | RDEPENDS_${PN} = "udev module-init-tools" |
| 10 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 11 | SRC_URI = "${KERNELORG_MIRROR}/linux/utils/kernel/pcmcia/${BP}.tar.xz" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 12 | |
| 13 | S = "${WORKDIR}/pcmciautils-${PV}" |
| 14 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 15 | inherit pkgconfig |
| 16 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 17 | export HOSTCC = "${BUILD_CC}" |
| 18 | export etcdir = "${sysconfdir}" |
| 19 | export sbindir = "${base_sbindir}" |
| 20 | export pcmciaconfdir = "${sysconfdir}/pcmcia" |
| 21 | export udevdir = "`pkg-config --variable=udevdir udev`" |
| 22 | export udevrulesdir = "`pkg-config --variable=udevdir udev`/rules.d" |
| 23 | export UDEV = "1" |
| 24 | LD = "${CC}" |
| 25 | CFLAGS =+ "-I${S}/src" |
| 26 | CFLAGS =+ "-DPCMCIAUTILS_VERSION=\\"${PV}\\"" |
| 27 | |
| 28 | EXTRA_OEMAKE = "-e 'STRIP=echo' 'LIB_OBJS=-lc -lsysfs' 'LEX=flex'" |
| 29 | |
| 30 | do_install () { |
| 31 | oe_runmake 'DESTDIR=${D}' install |
| 32 | } |
| 33 | |
| 34 | CONFFILES_${PN} += "${sysconfdir}/pcmcia/config.opts" |