[yocto] [PATCH] Added missing CPPFLAGS/CFLAGS/LDFLAGS in sample recipe for morty branch
Thomas A. F. Thorne MEng AUS MIET
Thomas.Thorne at Net2Edge.com
Mon Jul 17 03:25:30 PDT 2017
I am not sure about this change:
On 17/07/17 09:00, Pierre FICHEUX wrote:
> This problem causes the following error :
>
> ERROR: example-0.1-r0 do_package_qa: QA Issue: No GNU_HASH in the elf binary
>
>
> Signed-off-by: Pierre FICHEUX <pierre.ficheux at smile.fr>
> ---
> .../target/arch/layer/recipes-example/example/example-recipe-0.1.bb | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/scripts/lib/bsp/substrate/target/arch/layer/recipes-example/example/example-recipe-0.1.bb b/scripts/lib/bsp/substrate/target/arch/layer/recipes-example/example/example-recipe-0.1.bb
> index 5fbf594..2c478ad 100644
> --- a/scripts/lib/bsp/substrate/target/arch/layer/recipes-example/example/example-recipe-0.1.bb
> +++ b/scripts/lib/bsp/substrate/target/arch/layer/recipes-example/example/example-recipe-0.1.bb
> @@ -14,7 +14,8 @@ SRC_URI = "file://helloworld.c"
> S = "${WORKDIR}"
>
> do_compile() {
> - ${CC} helloworld.c -o helloworld
> + ${CC} ${CPPFLAGS} ${CFLAGS} -c helloworld.c -o helloworld.o
> + ${CC} ${LDFLAGS} helloworld.o -o helloworld
> }
>
> do_install() {
helloworld.c is a C file, not a C++ file. ${CC} should give you a C
Compiler. CPPFLAGS should not be used or necessary for a C compilation.
Thomas Thorne Software Engineer Net2Edge Limited
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20170717/76bdf95a/attachment.pgp>
More information about the yocto
mailing list