diff options
author | Andrei Gherzan <andrei@gherzan.ro> | 2017-05-24 13:24:53 +0100 |
---|---|---|
committer | Andrei Gherzan <andrei@gherzan.ro> | 2017-05-24 13:24:56 +0100 |
commit | d563d57332d32246917bbdd0232a3381feb1dff7 (patch) | |
tree | 053fc2def4f6274ee0842f2d1aa0cc78757d3174 | |
parent | 45ece9cd0a1974747535d7b811ff31be18eded4b (diff) | |
download | meta-raspberrypi-bcm2835-fix.tar.gz |
bcm2835: Remove dependency of bcm2835-dev on bcm2835bcm2835-fix
By default, the ${PN}-dev package of a recipe depends on the ${PN}
package. However, since the bcm2835 package contains no file, it is not
generated. As a result, when trying to include bcm2835-dev in an image
(or another package that depends on bcm2835-dev, such as
bcm2835-staticdev), we receive an error message saying that the bcm2835
package is not found.
A solution would be to define ALLOW_EMPTY for bcm2835, so that an empty
package is generated. However, that would causes a useless package to
be installed on the target. This patch uses another solution, which is
to empty the RDEPENDS variable of bcm2835-dev, so that it doesn't pull
in bcm2835.
Fixes #22
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
-rw-r--r-- | recipes-devtools/bcm2835/bcm2835_1.52.bb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/recipes-devtools/bcm2835/bcm2835_1.52.bb b/recipes-devtools/bcm2835/bcm2835_1.52.bb index c0334fe..8e41c61 100644 --- a/recipes-devtools/bcm2835/bcm2835_1.52.bb +++ b/recipes-devtools/bcm2835/bcm2835_1.52.bb | |||
@@ -35,6 +35,8 @@ do_install_append() { | |||
35 | 35 | ||
36 | PACKAGES += "${PN}-tests" | 36 | PACKAGES += "${PN}-tests" |
37 | 37 | ||
38 | RDEPENDS_${PN}-dev = "" | ||
39 | |||
38 | FILES_${PN} = "" | 40 | FILES_${PN} = "" |
39 | FILES_${PN}-tests = "${libdir}/${BPN}" | 41 | FILES_${PN}-tests = "${libdir}/${BPN}" |
40 | FILES_${PN}-dbg += "${libdir}/${BPN}/.debug" | 42 | FILES_${PN}-dbg += "${libdir}/${BPN}/.debug" |