I had run the command and it prints out that: nInvaders: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=73d88937de4f28a243ba40001af8dbd5c1ca3ac8, not stripped
the ${CC} in makefile is defined as CC=gcc ________________________________ From: Burton, Ross <ross.bur...@intel.com> Sent: Thursday, September 20, 2018 11:28 AM To: mohamedyous...@outlook.com Cc: Yocto-mailing-list Subject: Re: [yocto] Adding nInvaders game package recipe On Thu, 20 Sep 2018 at 10:01, Mohamed Youseif <mohamedyous...@outlook.com> wrote: > I had changed the source of my package, and create a new recipe for my > package so it fetches from SourceForge, the new recipe does not inherit > Autotools and modify the do_compile, do_install as following: > do_compile () { > oe_runmake > } > > do_install () { > : > } > > but i had modified the do_install task to add it to my image and now it is > like this > do_install () { > > install -d ${D}${bindir} > install -m 0755 nInvaders ${D}${bindir} > } > > then i run "bitbake ninvaders" to check that all tasks will be passed but i > got that error for do_package task > > arm-poky-linux-gnueabi-objcopy:/home/yusuf/rpi/build/tmp_sumo_RPI/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/ninvaders/0.1.1-r0/package/usr/bin/nInvaders: > File format not recognized Run 'file' on that binary. It's possible that your hand-coded makefile isn't respecting $CC and it built using the host native compiler. Ross
-- _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto