summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrei Gherzan <andrei@gherzan.ro>2014-05-08 20:25:25 +0300
committerAndrei Gherzan <andrei@gherzan.ro>2014-05-08 20:25:25 +0300
commita986e168bce3ea5430ee33486ff375be669e2ee3 (patch)
treede8ddb0c67ed29ea09a782215b6ed06850e18e75
parentfbc0947e96e8989d46b1570619554cb916e24049 (diff)
downloadmeta-raspberrypi-a986e168bce3ea5430ee33486ff375be669e2ee3.tar.gz
bcm2835: Fix recipe when using separate build directory
Change-Id: I18f41c1cd3a0b1158e96e6d2d4455268700d3496 Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
-rw-r--r--recipes-bcm/bcm2835/bcm2835_1.36.bb25
1 files changed, 12 insertions, 13 deletions
diff --git a/recipes-bcm/bcm2835/bcm2835_1.36.bb b/recipes-bcm/bcm2835/bcm2835_1.36.bb
index b5d9992..6997565 100644
--- a/recipes-bcm/bcm2835/bcm2835_1.36.bb
+++ b/recipes-bcm/bcm2835/bcm2835_1.36.bb
@@ -8,7 +8,6 @@ AUTHOR = "Mike McCauley (mikem@open.com.au)"
8LICENSE = "GPLv2" 8LICENSE = "GPLv2"
9LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" 9LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
10 10
11
12COMPATIBLE_MACHINE = "raspberrypi" 11COMPATIBLE_MACHINE = "raspberrypi"
13 12
14SRC_URI = "http://www.open.com.au/mikem/bcm2835/bcm2835-${PV}.tar.gz" 13SRC_URI = "http://www.open.com.au/mikem/bcm2835/bcm2835-${PV}.tar.gz"
@@ -16,26 +15,26 @@ SRC_URI = "http://www.open.com.au/mikem/bcm2835/bcm2835-${PV}.tar.gz"
16SRC_URI[md5sum] = "3299ddaef60f80b7f85de3318f08dee7" 15SRC_URI[md5sum] = "3299ddaef60f80b7f85de3318f08dee7"
17SRC_URI[sha256sum] = "b4dfcdb453d44ba9ff55634ce7e0ddca21b96355ab61e40b4c3afb9406d4b8d2" 16SRC_URI[sha256sum] = "b4dfcdb453d44ba9ff55634ce7e0ddca21b96355ab61e40b4c3afb9406d4b8d2"
18 17
19PACKAGES += "${PN}-tests"
20
21FILES_${PN} = ""
22FILES_${PN}-tests = "${libdir}/${BPN}"
23FILES_${PN}-dbg += "${libdir}/${BPN}/.debug"
24
25inherit autotools 18inherit autotools
26 19
27do_compile_append() { 20do_compile_append() {
28 #Now compiling the examples provided by the package 21 # Now compiling the examples provided by the package
29 for file in examples/* 22 mkdir -p ${B}/examples
30 do 23 for file in `ls ${S}/examples`; do
31 ${CC} ${file}/${file##*/}.c -o ${file}/${file##*/} -Bstatic -L${S}/src -lbcm2835 -I${S}/src 24 ${CC} ${S}/examples/${file}/${file}.c -o ${B}/examples/${file} -Bstatic -L${B}/src -lbcm2835 -I${S}/src
32 done 25 done
33} 26}
34 27
35do_install_append() { 28do_install_append() {
36 install -d ${D}/${libdir}/${BPN} 29 install -d ${D}/${libdir}/${BPN}
37 for file in examples/* 30 for file in ${B}/examples/*
38 do 31 do
39 install -m 0755 ${file}/${file##*/} ${D}/${libdir}/${BPN} 32 install -m 0755 ${file} ${D}/${libdir}/${BPN}
40 done 33 done
41} 34}
35
36PACKAGES += "${PN}-tests"
37
38FILES_${PN} = ""
39FILES_${PN}-tests = "${libdir}/${BPN}"
40FILES_${PN}-dbg += "${libdir}/${BPN}/.debug"