diff options
author | Andrei Gherzan <andrei@gherzan.ro> | 2014-05-08 20:25:25 +0300 |
---|---|---|
committer | Andrei Gherzan <andrei@gherzan.ro> | 2014-05-08 20:25:25 +0300 |
commit | a986e168bce3ea5430ee33486ff375be669e2ee3 (patch) | |
tree | de8ddb0c67ed29ea09a782215b6ed06850e18e75 | |
parent | fbc0947e96e8989d46b1570619554cb916e24049 (diff) | |
download | meta-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.bb | 25 |
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)" | |||
8 | LICENSE = "GPLv2" | 8 | LICENSE = "GPLv2" |
9 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" | 9 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" |
10 | 10 | ||
11 | |||
12 | COMPATIBLE_MACHINE = "raspberrypi" | 11 | COMPATIBLE_MACHINE = "raspberrypi" |
13 | 12 | ||
14 | SRC_URI = "http://www.open.com.au/mikem/bcm2835/bcm2835-${PV}.tar.gz" | 13 | SRC_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" | |||
16 | SRC_URI[md5sum] = "3299ddaef60f80b7f85de3318f08dee7" | 15 | SRC_URI[md5sum] = "3299ddaef60f80b7f85de3318f08dee7" |
17 | SRC_URI[sha256sum] = "b4dfcdb453d44ba9ff55634ce7e0ddca21b96355ab61e40b4c3afb9406d4b8d2" | 16 | SRC_URI[sha256sum] = "b4dfcdb453d44ba9ff55634ce7e0ddca21b96355ab61e40b4c3afb9406d4b8d2" |
18 | 17 | ||
19 | PACKAGES += "${PN}-tests" | ||
20 | |||
21 | FILES_${PN} = "" | ||
22 | FILES_${PN}-tests = "${libdir}/${BPN}" | ||
23 | FILES_${PN}-dbg += "${libdir}/${BPN}/.debug" | ||
24 | |||
25 | inherit autotools | 18 | inherit autotools |
26 | 19 | ||
27 | do_compile_append() { | 20 | do_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 | ||
35 | do_install_append() { | 28 | do_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 | |||
36 | PACKAGES += "${PN}-tests" | ||
37 | |||
38 | FILES_${PN} = "" | ||
39 | FILES_${PN}-tests = "${libdir}/${BPN}" | ||
40 | FILES_${PN}-dbg += "${libdir}/${BPN}/.debug" | ||