From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [UNSURE]Re: [PATCH 1/4] add host arch detection and Kconfig BR2_HOSTARCH
Date: Fri, 20 Jul 2012 20:41:46 +0200 [thread overview]
Message-ID: <20120720204146.21143421@skate> (raw)
In-Reply-To: <CAB0FRsvT83vy8tVVo7iXcZeBbyYAhsy+30sJRXZzee9AMFoJfA@mail.gmail.com>
Le Fri, 20 Jul 2012 20:24:27 +0200,
Fran?ois Perrad <francois.perrad@gadz.org> a ?crit :
> LuaJIT was designed to operate with modules compiled with Lua 5.1 includes.
>
> But LuaJIT supplies also its own set of includes (in /usr/include/luajit-2.0).
So apparently, we could see lua and luajit as two mutually exclusive
packages.
> So, each Lua module could be modified with the following pattern :
> ifeq ($(BR2_PACKAGE_LUA),y)
> LUAFOO_DEPENDENCIES = lua
> LUAFOO_INCLUDES = $(STAGING_DIR)/usr/include
> else
> LUAFOO_DEPENDENCIES = luajit
> LUAFOO_INCLUDES = $(STAGING_DIR)/usr/include/luajit-2.0
> endif
>
> instead of the current : LUAFOO_DEPENDENCIES = lua
Or we could do something like:
(*) lua and luajit are mutually exclusive packages
(*) Some common .mk file does something like:
ifeq ($(BR2_PACKAGE_LUA),y)
LUA_INTERPRETER = lua
else ifeq ($(BR2_PACKAGE_LUAJIT),y)
LUA_INTERPRETER = luajit
endif
(*) luajit would install its headers in $(STAGING_DIR)/usr/include, so
that it is transparent whether lua or luajit is used, from the modules
point of view
(*) Lua modules would do LUAFOO_DEPENDENCIES = $(LUA_INTERPRETER)
Or something along those lines.
Essentially, we have a similar sort of problem for jpeg-turbo, which is
a drop-in replacement for libjpeg, and we don't really know how to
handle that properly in BR today.
Best regards,
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
prev parent reply other threads:[~2012-07-20 18:41 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-18 13:59 [Buildroot] [PATCH 1/4] add host arch detection and Kconfig BR2_HOSTARCH Francois Perrad
2012-07-18 13:59 ` [Buildroot] [PATCH 2/4] luajit: new package Francois Perrad
2012-07-18 13:59 ` [Buildroot] [PATCH 3/4] luajit: fix dependencies of Lua modules Francois Perrad
2012-07-18 13:59 ` [Buildroot] [PATCH 4/4] lua: refactor without sed Francois Perrad
2012-07-18 17:37 ` [Buildroot] [PATCH 1/4] add host arch detection and Kconfig BR2_HOSTARCH Thomas Petazzoni
2012-07-19 12:48 ` François Perrad
2012-07-19 13:03 ` Thomas Petazzoni
2012-07-20 11:40 ` [Buildroot] [UNSURE]Re: " François Perrad
2012-07-20 12:14 ` Thomas Petazzoni
2012-07-20 18:24 ` François Perrad
2012-07-20 18:41 ` Thomas Petazzoni [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=20120720204146.21143421@skate \
--to=thomas.petazzoni@free-electrons.com \
--cc=buildroot@busybox.net \
/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