Adding custom executable in Rootfs for T1040RDB

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Adding custom executable in Rootfs for T1040RDB

1,032 Views
pratik_vadher
Contributor II

Hi, 

I am trying to build my own customized rootfs using Yocto. I created a custom executable of Helloworld using extracted toolchain from SDK using command powerpc-fsl-linux-gcc --sysroot=$SDKTARGETSYSROOT helloworld.c. 

Now as instructed in several discussions I included the executable in mergefile folder in source files. And added IMAGE_INSTALL += "merge-files" in the recipe file. 

However when I try to compile the image using bitbake I get the following error:

ERROR: QA Issue: merge-files: Recipe inherits the allarch class, but has packaged architecture-specific binaries [arch]
WARNING: QA Issue: /home/root/a.out_merge-files contained in package merge-files requires libc.so.6(GLIBC_2.4), but no providers found in its RDEPENDS [file-rdeps]
ERROR: QA run found fatal errors. Please consider fixing them.
ERROR: Function failed: do_package_qa
ERROR: Logfile of failure stored in: /home/architech/QoRIQ_SDK/QorIQ-SDK-V2.0-20160527-yocto/build_t1040d4rdb/tmp/work/all-fsl-linux/merge-files/1.0-r0/temp/log.do_package_qa.22548
ERROR: Task 371 (/home/architech/QoRIQ_SDK/QorIQ-SDK-V2.0-20160527-yocto/sources/meta-freescale/recipes-extended/merge-files/merge-files_1.0.bb, do_package_qa) failed with exit code '1'

3 Replies

947 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello Pratik Vadher,

I didn't reproduce your problem. 

Please put a.out_merge-files in sources/meta-freescale/recipes-extended/merge-files/merge-files/merge, add 'IMAGE_INSTALL += "merge-files"' into rootfs recipe, then run the following commands.

$ bitbake merge-files

$bitbake <rootfs_image_type>

If your problem remains, please add the following in /home/yiping.wang/QorIQ-SDK-V2.0-20160527-yocto/sources/meta-freescale/recipes-extended/merge-files/merge-files_1.0.bb.

do_package_qa (){
}

Then run 

$ bitbake merge-files

$bitbake <rootfs_image_type>

Thanks,

Yiping

947 Views
pratik_vadher
Contributor II

Thanks Yiping, it worked adding 

do_package_qa (){

worked. May I know the reason why it was not working before and why it worked now?

0 Kudos

947 Views
yipingwang
NXP TechSupport
NXP TechSupport

Add function do_package_qa to do nothing to override the original one.

0 Kudos