How to remove unit_tests from rootfs using yacto

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

How to remove unit_tests from rootfs using yacto

Jump to solution
3,551 Views
vasudhevan
Contributor V

Yacto = YoctoKrogoth

Processor = IMX6ULL

Uboot = 2016.03

Kernel = Linux 4.1.15

I want to remove unit_tests from rootfs using yacto.

I am tried some thing but nothing is working.

conf->local.conf i added IMAGE_INSTALL_remove +="imx-test" after that compiled core-image-minimal but imx-test is not removed from rootfs.

if i remove also bitbake -c cleanall imx-text next time compiling bitbake core-image-minimal imx-test added automatically in rootfs.

Later i come to know meta-fsl-bsp-release,meta-fsl-demo is using imx-test.

How to remove unit_tests from rootfs using yacto ?

Anyone help me to solve this issue.

Labels (4)
0 Kudos
Reply
1 Solution
3,250 Views
vasudhevan
Contributor V

Hi Karan Gajjar,

Thank you for your response,

  I found the issue.

  deleteded line containing packagegroup-fsl-tools-testapps in fsl-image-machine-test.bb

  conf->local.conf i added line

  IMAGE_INSTALL_remove += "imx-test \
                                                    packagegroup-fsl-tools-testapps \
                                                   "
 After that compiled bitbake core-image-minimal this time rootfs does not containing unit_test folder.

Regards,

  Vasu

View solution in original post

0 Kudos
Reply
5 Replies
3,250 Views
ankitr_patel
Senior Contributor II

Hi vasu dhevan,

You need to remove the package of unit test from the test file that .bb file that you are building.

For example:

unit_test package is build by  packagegroup-fsl-tools-testapps.

So we can remove above package group from the image we are building, let's say it is fsl-image-machine-test.bb

From CORE_IMAGE_EXTRA_INSTALL,

delete the line containing packagegroup-fsl-tools-testapps.

After that cleaning and building new image won't contain unit_tests in rootfs.

Regards,

Ankit Patel

0 Kudos
Reply
3,250 Views
vasudhevan
Contributor V

Hi Ankit Patel,

Thank you for your response,

I tried already but again it fetching and place into the rootfs.

bitbake -c cleanall imx-test

deleteded line containing packagegroup-fsl-tools-testapps in fsl-image-machine-test.bb

bitbake core-image-minimal

Again fetching compiling and placed into rootfs.

i did any mistake ?

Yacto some other place using imx-test ?

Where mentioned rootfs to create folder called unit_test and place compiled file into this folder in yacto ?

Regards,

 Vasu

0 Kudos
Reply
3,250 Views
karangajjar
Senior Contributor II

Hi vasu dhevan,

We build core-image-minimal, however we cannot find any unit_tests in rootfs.

Here are our contents of rootfs:

bin  boot  dev  etc  home  lib  lost+found  media  mnt  proc  run  sbin  sys  tmp  usr  var

You need to check the bb file of the image you are using to check what all modules are being build and appended in the image. Ideally you should no see unit_tests getting created in rootfs for core-image-minimal. Can you tell us the version of yocto that you are using?

Regards,

Karan Gajjar

0 Kudos
Reply
3,251 Views
vasudhevan
Contributor V

Hi Karan Gajjar,

Thank you for your response,

  I found the issue.

  deleteded line containing packagegroup-fsl-tools-testapps in fsl-image-machine-test.bb

  conf->local.conf i added line

  IMAGE_INSTALL_remove += "imx-test \
                                                    packagegroup-fsl-tools-testapps \
                                                   "
 After that compiled bitbake core-image-minimal this time rootfs does not containing unit_test folder.

Regards,

  Vasu

0 Kudos
Reply
3,250 Views
karangajjar
Senior Contributor II

Hi vasu dhevan,

Glad to know things worked for you. Thank you for letting us know.

Regards,

Karan Gajjar

0 Kudos
Reply