From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 2/4] luajit: allow building for the host
Date: Mon, 30 Jul 2012 22:54:58 +0200 [thread overview]
Message-ID: <20120730225458.02059be3@skate> (raw)
In-Reply-To: <1343629890-4657-2-git-send-email-francois.perrad@gadz.org>
Hello,
Le Mon, 30 Jul 2012 08:31:28 +0200,
Francois Perrad <fperrad@gmail.com> a ?crit :
> diff --git a/package/luajit/luajit.mk b/package/luajit/luajit.mk
> index b35cdb4..19bf659 100644
> --- a/package/luajit/luajit.mk
> +++ b/package/luajit/luajit.mk
> @@ -48,6 +48,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
> @@ -56,8 +61,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))
What is the use case for building luajit on the host?
Thanks!
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
next prev parent reply other threads:[~2012-07-30 20:54 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-30 6:31 [Buildroot] [PATCH 1/4] luajit: complete replacement for lua v2 Francois Perrad
2012-07-30 6:31 ` [Buildroot] [PATCH 2/4] luajit: allow building for the host Francois Perrad
2012-07-30 20:54 ` Thomas Petazzoni [this message]
2012-07-30 6:31 ` [Buildroot] [PATCH 3/4] lua: remove 3 sub-options, always install all Francois Perrad
2012-07-30 20:56 ` Thomas Petazzoni
2012-07-31 7:56 ` François Perrad
2012-07-30 6:31 ` [Buildroot] [PATCH 4/4] lua: refactor without useless define's Francois Perrad
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=20120730225458.02059be3@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