* [ptxdist] Newbie: Howto add luajit 2.x as a new package in ptxdist @ 2017-06-17 23:10 Michael Deiters 2017-06-19 13:03 ` Roland Hieber 0 siblings, 1 reply; 5+ messages in thread From: Michael Deiters @ 2017-06-17 23:10 UTC (permalink / raw) To: ptxdist Hi, I'm a newbie on ptxdist. I successfully managed to build my 1st BSP based on Generic-arm recently. I'm getting lost on how to add luajit including the libluajit-5.1-dev as package to ptxdist. I understand the approach to add an autotoolized package, but for the desired luajit-5.1-dev, I can only find the apt-get source on my host. I'm wondering if there isn't an easy way to let ptxdisk know about the required package. I searched the web, but didn't found enlightenment... I would be grateful if somebody could point me the right direction. Many thanks in advance! Kind regards Michael _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [ptxdist] Newbie: Howto add luajit 2.x as a new package in ptxdist 2017-06-17 23:10 [ptxdist] Newbie: Howto add luajit 2.x as a new package in ptxdist Michael Deiters @ 2017-06-19 13:03 ` Roland Hieber 2017-06-19 15:53 ` Michael Deiters 0 siblings, 1 reply; 5+ messages in thread From: Roland Hieber @ 2017-06-19 13:03 UTC (permalink / raw) To: Michael Deiters; +Cc: ptxdist Hi Michael, there is no need to add a -dev package for luajit, at least not for installing on the target. When crosscompiling, the install stage of your rules/luajit.make effectively calls `make install` in the luajit source folder, which should install the development headers to <your-platform>/sysroot-target/. When other packages depend on luajit, they will look there for the includes and libraries to link against. What is installed into the target root file system is different from that; your `targetinstall` stage is responsible for that and should copy all the files needed on the target to <your-platform>/root (e.g. by using $(call install_lib), $(call install_alternative) etc., see Section 5.2 in the PTXdist manual [1]). Hope that helps! - Roland [1]: http://www.pengutronix.de/software/ptxdist/appnotes/OSELAS.BSP-Pengutronix-Generic-arm-Quickstart.pdf On 18.06.2017 01:10, Michael Deiters wrote: > Hi, > > I'm a newbie on ptxdist. I successfully managed to build my 1st BSP > based on Generic-arm recently. > > I'm getting lost on how to add luajit including the libluajit-5.1-dev as > package to ptxdist. I understand the approach to add an autotoolized > package, but for the desired luajit-5.1-dev, I can only find the apt-get > source on my host. > > I'm wondering if there isn't an easy way to let ptxdisk know about the > required package. I searched the web, but didn't found enlightenment... > > I would be grateful if somebody could point me the right direction. > > Many thanks in advance! > > Kind regards > Michael > > _______________________________________________ > ptxdist mailing list > ptxdist@pengutronix.de -- Pengutronix e.K. | Roland Hieber | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim | Phone: +49-5121-206917-5086 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [ptxdist] Newbie: Howto add luajit 2.x as a new package in ptxdist 2017-06-19 13:03 ` Roland Hieber @ 2017-06-19 15:53 ` Michael Deiters 2017-06-19 16:12 ` Guillermo Rodriguez Garcia 0 siblings, 1 reply; 5+ messages in thread From: Michael Deiters @ 2017-06-19 15:53 UTC (permalink / raw) To: ptxdist Hi Roland, many thanks for the swift reply. My disconnect starts already at the first stage. My BSP has no information that I need luajit in my project. I understand I need to create the "rules" files to instruct PTXdist to compile luajit. My question is, how do the rule file(s) look like, if I (simply) would like to include a source package from a debian distro. I'm afraid I'm either far away from the correct approach or very close... Thank you for your patience. Kind regards Michael On Mon, 19 Jun 2017, Roland Hieber wrote: > Hi Michael, > > there is no need to add a -dev package for luajit, at least not for > installing on the target. When crosscompiling, the install stage of your > rules/luajit.make effectively calls `make install` in the luajit source > folder, which should install the development headers to > <your-platform>/sysroot-target/. When other packages depend on luajit, > they will look there for the includes and libraries to link against. > > What is installed into the target root file system is different from > that; your `targetinstall` stage is responsible for that and should copy > all the files needed on the target to <your-platform>/root (e.g. by > using $(call install_lib), $(call install_alternative) etc., see Section > 5.2 in the PTXdist manual [1]). > > Hope that helps! > > - Roland > > [1]: > http://www.pengutronix.de/software/ptxdist/appnotes/OSELAS.BSP-Pengutronix-Generic-arm-Quickstart.pdf > > On 18.06.2017 01:10, Michael Deiters wrote: >> Hi, >> >> I'm a newbie on ptxdist. I successfully managed to build my 1st BSP >> based on Generic-arm recently. >> >> I'm getting lost on how to add luajit including the libluajit-5.1-dev as >> package to ptxdist. I understand the approach to add an autotoolized >> package, but for the desired luajit-5.1-dev, I can only find the apt-get >> source on my host. >> >> I'm wondering if there isn't an easy way to let ptxdisk know about the >> required package. I searched the web, but didn't found enlightenment... >> >> I would be grateful if somebody could point me the right direction. >> >> Many thanks in advance! >> >> Kind regards >> Michael >> >> _______________________________________________ >> ptxdist mailing list >> ptxdist@pengutronix.de > > -- > Pengutronix e.K. | Roland Hieber | > Industrial Linux Solutions | http://www.pengutronix.de/ | > Peiner Str. 6-8, 31137 Hildesheim | Phone: +49-5121-206917-5086 | > Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | > > _______________________________________________ > ptxdist mailing list > ptxdist@pengutronix.de _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [ptxdist] Newbie: Howto add luajit 2.x as a new package in ptxdist 2017-06-19 15:53 ` Michael Deiters @ 2017-06-19 16:12 ` Guillermo Rodriguez Garcia 2017-06-19 17:02 ` Clemens Gruber 0 siblings, 1 reply; 5+ messages in thread From: Guillermo Rodriguez Garcia @ 2017-06-19 16:12 UTC (permalink / raw) To: ptxdist Hi Michael, Have a look at the manual that Roland linked in his answer: http://www.pengutronix.de/software/ptxdist/appnotes/OSELAS.BSP-Pengutronix-Generic-arm-Quickstart.pdf Specifically chapter 4, PTXdist Developer’s Manual, and section 4.2, Adding new Packages. Best regards, Guillermo 2017-06-19 17:53 GMT+02:00 Michael Deiters <michael@deiters.net>: > Hi Roland, > > many thanks for the swift reply. > > My disconnect starts already at the first stage. My BSP has no information > that I need luajit in my project. I understand I need to create the "rules" > files to instruct PTXdist to compile luajit. My question is, how do the rule > file(s) look like, if I (simply) would like to include a source package from > a debian distro. I'm afraid I'm either far away from the correct approach or > very close... > > Thank you for your patience. > > Kind regards > Michael > > On Mon, 19 Jun 2017, Roland Hieber wrote: > >> Hi Michael, >> >> there is no need to add a -dev package for luajit, at least not for >> installing on the target. When crosscompiling, the install stage of your >> rules/luajit.make effectively calls `make install` in the luajit source >> folder, which should install the development headers to >> <your-platform>/sysroot-target/. When other packages depend on luajit, they >> will look there for the includes and libraries to link against. >> >> What is installed into the target root file system is different from that; >> your `targetinstall` stage is responsible for that and should copy all the >> files needed on the target to <your-platform>/root (e.g. by using $(call >> install_lib), $(call install_alternative) etc., see Section 5.2 in the >> PTXdist manual [1]). >> >> Hope that helps! >> >> - Roland >> >> [1]: >> http://www.pengutronix.de/software/ptxdist/appnotes/OSELAS.BSP-Pengutronix-Generic-arm-Quickstart.pdf >> >> On 18.06.2017 01:10, Michael Deiters wrote: >>> >>> Hi, >>> >>> I'm a newbie on ptxdist. I successfully managed to build my 1st BSP >>> based on Generic-arm recently. >>> >>> I'm getting lost on how to add luajit including the libluajit-5.1-dev as >>> package to ptxdist. I understand the approach to add an autotoolized >>> package, but for the desired luajit-5.1-dev, I can only find the apt-get >>> source on my host. >>> >>> I'm wondering if there isn't an easy way to let ptxdisk know about the >>> required package. I searched the web, but didn't found enlightenment... >>> >>> I would be grateful if somebody could point me the right direction. >>> >>> Many thanks in advance! >>> >>> Kind regards >>> Michael >>> >>> _______________________________________________ >>> ptxdist mailing list >>> ptxdist@pengutronix.de >> >> >> -- >> Pengutronix e.K. | Roland Hieber | >> Industrial Linux Solutions | http://www.pengutronix.de/ | >> Peiner Str. 6-8, 31137 Hildesheim | Phone: +49-5121-206917-5086 | >> Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | >> >> _______________________________________________ >> ptxdist mailing list >> ptxdist@pengutronix.de > > > _______________________________________________ > ptxdist mailing list > ptxdist@pengutronix.de -- Guillermo Rodriguez Garcia guille.rodriguez@gmail.com _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [ptxdist] Newbie: Howto add luajit 2.x as a new package in ptxdist 2017-06-19 16:12 ` Guillermo Rodriguez Garcia @ 2017-06-19 17:02 ` Clemens Gruber 0 siblings, 0 replies; 5+ messages in thread From: Clemens Gruber @ 2017-06-19 17:02 UTC (permalink / raw) To: ptxdist On Mon, Jun 19, 2017 at 06:12:47PM +0200, Guillermo Rodriguez Garcia wrote: > Hi Michael, > > Have a look at the manual that Roland linked in his answer: > http://www.pengutronix.de/software/ptxdist/appnotes/OSELAS.BSP-Pengutronix-Generic-arm-Quickstart.pdf > > Specifically chapter 4, PTXdist Developer’s Manual, and section 4.2, > Adding new Packages. Hi Michael, LuaJIT is not Autotools-based and cross-compilation is complicated: According to the Makefile, you can only cross-compile from 64-bit host systems to 32-bit target systems with multilib-libraries. (gcc -m32) But maybe it's enough to advise the user in the HELP text, that he needs to have multilib libraries installed on his host system.. You have to pass custom variables in LUAJIT_MAKE_ENV. Also have a look at Buildroot, how they did it: https://github.com/buildroot/buildroot/blob/master/package/luajit Cheers, Clemens _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2017-06-19 17:02 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2017-06-17 23:10 [ptxdist] Newbie: Howto add luajit 2.x as a new package in ptxdist Michael Deiters 2017-06-19 13:03 ` Roland Hieber 2017-06-19 15:53 ` Michael Deiters 2017-06-19 16:12 ` Guillermo Rodriguez Garcia 2017-06-19 17:02 ` Clemens Gruber
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox