mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Clemens Gruber <clemens.gruber@pqgruber.com>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] Newbie: Howto add luajit 2.x as a new package in ptxdist
Date: Mon, 19 Jun 2017 19:02:22 +0200	[thread overview]
Message-ID: <20170619170222.GA27176@archie.localdomain> (raw)
In-Reply-To: <CABDcavaESUBLdFygfUeGHMfaKOjMKx=q41AHADR1aBLiqhRcMg@mail.gmail.com>

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

      reply	other threads:[~2017-06-19 17:02 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-17 23:10 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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170619170222.GA27176@archie.localdomain \
    --to=clemens.gruber@pqgruber.com \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox