[yocto] [meta-raspberrypi][PATCH 1/1] bcm2835: Compile examples correct LDFLAGS to avoid HASH errors

Andrei Gherzan andrei at gherzan.ro
Wed Sep 21 03:39:33 PDT 2016


On Fri, Sep 16, 2016 at 05:54:36PM +0100, Andrei Gherzan wrote:
> ERROR: bcm2835-1.50-r0 do_package_qa: QA Issue: No GNU_HASH in the elf binary:
> 'build-rpi-master/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/bcm2835/1.50-r0/packages-split/bcm2835-tests/usr/lib/bcm2835/spi'
> No GNU_HASH in the elf binary:
> 'build-rpi-master/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/bcm2835/1.50-r0/packages-split/bcm2835-tests/usr/lib/bcm2835/event'
> No GNU_HASH in the elf binary:
> 'build-rpi-master/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/bcm2835/1.50-r0/packages-split/bcm2835-tests/usr/lib/bcm2835/gpio'
> No GNU_HASH in the elf binary:
> 'build-rpi-master/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/bcm2835/1.50-r0/packages-split/bcm2835-tests/usr/lib/bcm2835/i2c'
> No GNU_HASH in the elf binary:
> 'build-rpi-master/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/bcm2835/1.50-r0/packages-split/bcm2835-tests/usr/lib/bcm2835/blink'
> No GNU_HASH in the elf binary:
> 'build-rpi-master/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/bcm2835/1.50-r0/packages-split/bcm2835-tests/usr/lib/bcm2835/spin'
> No GNU_HASH in the elf binary:
> 'build-rpi-master/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/bcm2835/1.50-r0/packages-split/bcm2835-tests/usr/lib/bcm2835/input'
> No GNU_HASH in the elf binary:
> 'build-rpi-master/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/bcm2835/1.50-r0/packages-split/bcm2835-tests/usr/lib/bcm2835/pwm'
> [ldflags]
>
> Signed-off-by: Andrei Gherzan <andrei at gherzan.ro>
> ---
>  recipes-devtools/bcm2835/bcm2835_1.50.bb | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/recipes-devtools/bcm2835/bcm2835_1.50.bb b/recipes-devtools/bcm2835/bcm2835_1.50.bb
> index 634dac8..9cf6f48 100644
> --- a/recipes-devtools/bcm2835/bcm2835_1.50.bb
> +++ b/recipes-devtools/bcm2835/bcm2835_1.50.bb
> @@ -21,7 +21,7 @@ do_compile_append() {
>      # Now compiling the examples provided by the package
>      mkdir -p ${B}/examples
>      for file in `ls ${S}/examples`; do
> -        ${CC} ${S}/examples/${file}/${file}.c -o ${B}/examples/${file} -Bstatic -L${B}/src -lbcm2835 -I${S}/src
> +        ${CC} ${LDFLAGS} ${S}/examples/${file}/${file}.c -o ${B}/examples/${file} -Bstatic -L${B}/src -lbcm2835 -I${S}/src
>      done
>  }
>
> --
> 2.9.3
>

Merged to master.

--
Andrei Gherzan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20160921/cb00e179/attachment.pgp>


More information about the yocto mailing list