[meta-freescale] [meta-fsl-arm][for-danny][PATCH] fsl-mm-flv-codeclib: fix package creation

Otavio Salvador otavio at ossystems.com.br
Tue Jan 8 05:06:30 PST 2013


On Tue, Jan 8, 2013 at 9:38 AM, Javier Viguera <javier.viguera at digi.com> wrote:
> On 01/08/2013 11:25 AM, Daiane Angolini wrote:
>> Could you, please, apply it to master in order to make sure it's
>> applicable? I will test it on master.
>>
>> How do you test this package?
>
> Hi Daiane,
>
> Yes the patch applies to master as well without problems.

Daiane has asked for it to be tested and applied in master as we don't
do fixes in danny without doing those in master before. So all
development and fixes need to be done in master *before*. After it has
been done in master fixes can be backported to danny.

> About the testing. I have not tested it at run time yet. We plan to
> use it with gst-fsl plugin. At build time the package is not compiled
> because it's not a dependence of anything (for a 'imx53qsb' configured
> project). But you can build the recipe with bitbake:

Right. Your patch is not fully complete so I prepared a new one which
should work fine for you but also fix other problems.

> $ bitbake fsl-mm-flv-codeclib
>
> You can see then, that the normal package is not created (it only
> creates the -dev and -dbg packages):
>
> $ ls -l tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/fsl-mm-flv-codeclib-2.0.3-r1/deploy-ipks/armv7a-vfp-neon/
>    792 Jan  8 12:15 fsl-mm-flv-codeclib-dbg_2.0.3-r1_armv7a-vfp-neon.ipk
>  54578 Jan  8 12:15 fsl-mm-flv-codeclib-dev_2.0.3-r1_armv7a-vfp-neon.ipk
>
> Looking at the log we see the reason. There are no files to be added
> to the package and that's why it's not created.
>
> $ less tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/fsl-mm-flv-codeclib-2.0.3-r1/temp/log.do_package_write_ipk
> ...
> NOTE: Not creating empty archive for fsl-mm-flv-codeclib-2.0.3-r1
> ...
>
> And there are no files because the name of the library files in the
> source package does not follow the naming rule the bitbake recipe
> expects in the 'do_install' function and in the FILES variable.

Your analisys is right but some other issues need fix as well:

   * The pkgconfig file provided is the same provided by
      fsl-mm-codeclib-dev so we cannot duplicate this file, instead we add a
      depends on fsl-mm-codeclib-dev to provide a single pkgconfig file;

    * Disable debug split as the binaries are stripped;

    * Set PACKAGE_ARCH to MACHINE_ARCH as this binaries are machine
      specific;

So I will send a patch to the mailing list and I will Cc you. Please
give this a try and confirm if it works for you.

Regards,

--
Otavio Salvador                             O.S. Systems
E-mail: otavio at ossystems.com.br  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br



More information about the meta-freescale mailing list