Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 3/5] luajit: allow building for the host
Date: Wed, 14 Aug 2013 00:33:47 +0200	[thread overview]
Message-ID: <20130814003347.03a6be87@skate> (raw)
In-Reply-To: <1346741921-28968-3-git-send-email-francois.perrad@gadz.org>

Dear Francois Perrad,

Why is the below patch needed? What is the usage of luajit built for
the host?

Thanks,

Thomas

On Tue,  4 Sep 2012 08:58:39 +0200, Francois Perrad wrote:
> Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
> ---
>  package/luajit/luajit.mk |   10 ++++++++++
>  1 file changed, 10 insertions(+)
> 
> diff --git a/package/luajit/luajit.mk b/package/luajit/luajit.mk
> index 913bc0c..e82df64 100644
> --- a/package/luajit/luajit.mk
> +++ b/package/luajit/luajit.mk
> @@ -50,6 +50,11 @@ define LUAJIT_BUILD_CMDS
>  		-C $(@D) amalg
>  endef
>  
> +define HOST_LUAJIT_BUILD_CMDS
> +	$(MAKE) PREFIX="/usr" \
> +		-C $(@D) amalg
> +endef
> +
>  define LUAJIT_INSTALL_STAGING_CMDS
>  	$(MAKE) PREFIX="/usr" DESTDIR="$(STAGING_DIR)" -C $(@D) install
>  endef
> @@ -58,8 +63,13 @@ define LUAJIT_INSTALL_TARGET_CMDS
>  	$(MAKE) PREFIX="/usr" DESTDIR="$(TARGET_DIR)" -C $(@D) install
>  endef
>  
> +define HOST_LUAJIT_INSTALL_CMDS
> +	$(MAKE) PREFIX="/usr" DESTDIR="$(HOST_DIR)" -C $(@D) install
> +endef
> +
>  define LUAJIT_CLEAN_CMDS
>  	-$(MAKE) -C $(@D) clean
>  endef
>  
>  $(eval $(generic-package))
> +$(eval $(host-generic-package))



-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

  reply	other threads:[~2013-08-13 22:33 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-04  6:58 [Buildroot] [PATCH 1/5] lua-msgpack-native: new package v2 Francois Perrad
2012-09-04  6:58 ` [Buildroot] [PATCH 2/5] luajit: complete replacement for lua v2 Francois Perrad
2012-09-04  6:58 ` [Buildroot] [PATCH 3/5] luajit: allow building for the host Francois Perrad
2013-08-13 22:33   ` Thomas Petazzoni [this message]
2012-09-04  6:58 ` [Buildroot] [PATCH 4/5] lua: remove 3 sub-options, always install all Francois Perrad
2012-11-09 21:41   ` Arnout Vandecappelle
2012-11-15 11:37   ` Peter Korsgaard
2012-09-04  6:58 ` [Buildroot] [PATCH 5/5] lua: refactor without useless define's Francois Perrad
2012-11-09 21:47   ` Arnout Vandecappelle
2012-11-15 11:38   ` Peter Korsgaard
2012-11-15 11:36 ` [Buildroot] [PATCH 1/5] lua-msgpack-native: new package v2 Peter Korsgaard

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=20130814003347.03a6be87@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