mirror of
git://git.yoctoproject.org/meta-raspberrypi.git
synced 2025-07-19 12:59:03 +02:00

* bitbake is using re.match, so raspberrypi actually matches with anything ^raspberrypi.* which currently works, but it will also match with hypothetical raspberrypi-is-no-more-this-is-banana-now MACHINE which isn't intended by this COMPATIBLE_MACHINE. Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
34 lines
925 B
BlitzBasic
34 lines
925 B
BlitzBasic
DESCRIPTION = "A library to control Raspberry Pi GPIO channels"
|
|
HOMEPAGE = "https://projects.drogon.net/raspberry-pi/wiringpi/"
|
|
SECTION = "devel/libs"
|
|
LICENSE = "LGPLv3+"
|
|
LIC_FILES_CHKSUM = "file://COPYING.LESSER;md5=e6a600fd5e1d9cbde2d983680233ad02"
|
|
|
|
# tag 2.44
|
|
SRCREV = "96344ff7125182989f98d3be8d111952a8f74e15"
|
|
|
|
S = "${WORKDIR}/git"
|
|
|
|
SRC_URI = "git://git.drogon.net/wiringPi \
|
|
file://0001-Add-initial-cross-compile-support.patch \
|
|
"
|
|
|
|
COMPATIBLE_MACHINE = "^rpi$"
|
|
|
|
CFLAGS_prepend = "-I${S}/wiringPi -I${S}/devLib "
|
|
|
|
EXTRA_OEMAKE += "'INCLUDE_DIR=${D}${includedir}' 'LIB_DIR=${D}${libdir}'"
|
|
EXTRA_OEMAKE += "'DESTDIR=${D}/usr' 'PREFIX=""'"
|
|
|
|
do_compile() {
|
|
oe_runmake -C devLib
|
|
oe_runmake -C wiringPi
|
|
oe_runmake -C gpio 'LDFLAGS=${LDFLAGS} -L${S}/wiringPi -L${S}/devLib'
|
|
}
|
|
|
|
do_install() {
|
|
oe_runmake -C devLib install
|
|
oe_runmake -C wiringPi install
|
|
oe_runmake -C gpio install
|
|
}
|