This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

bitbake perl modules question

How can I get perl modules deployed with bitbake? I see them in .../work/arm7a-angstrom-linux-gnueabi/perl-5.8.8. However, I do not know how to get them fully deployed into the final image. I'm sure there is a recipe/file that requires modifying but I do not know what it is.

Thanks!

  • Hi,

    Do you see the ipk files in deploy? The ipk for perl need to be copied over to the target and installed using opkg. There may be dependent ipk files that you would need to copy over.

    --Sid

  • Hi Sid,

    Yes, the individual perl module ipk files are in the deploy. I need to create a single root filesystem image (jffs2 or tarball) with many of these in it automatically. Do you know of a way to include them?

     

    --Dave

  • Hi Dave,

    David Johnson said:
    Yes, the individual perl module ipk files are in the deploy. I need to create a single root filesystem image (jffs2 or tarball) with many of these in it automatically. Do you know of a way to include them?

    You would need to create a recipe for an image. You need to add perl to the list of items to be present in the image. Have a look at recipes/images for examples that you could take and modify.  Once that's done, you could just bitbake that image. It will create both a jffs2 image and tarball of the filesystem. 

    --Sid

  • Hi Sid,

    A base image of Perl is installed into the image. What is not are the individual modules such as perl-cgi. These are being left. out.

    --Dave

  • Hi Dave,

    I'm guessing that you would also need to add them to the image recipe. Its possible that the perl recipe does not include perl-cgi or any such module in RDEPENDS.

    Since this is pretty much a OE issue, you could also ask the question on #oe IRC channel on freenode or the OE mailing list.  You should find more help on OE in general on them.

    --Sid

  • The solution was simpler (and not obvious). Despite not having an explicit recipe for perl-modules, it can be included on the extra libraries such as:

    ANGSTROM_EXTRA_INSTALL ?= "... perl ... perl-modules"

    This will correctly deploy the modules to /usr/share/perl/5.8.8 (depending on version).

    As I said, this was hardly obvious.