From patchwork Sat Jul 19 14:38:55 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Francois Perrad X-Patchwork-Id: 371832 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id F38AE1400E9 for ; Sun, 20 Jul 2014 00:39:19 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 6559430AFC; Sat, 19 Jul 2014 14:39:17 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id v-Q5sk+pCvfQ; Sat, 19 Jul 2014 14:39:14 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 5A0652EC38; Sat, 19 Jul 2014 14:39:12 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 623B31BF970 for ; Sat, 19 Jul 2014 14:39:10 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 5E6A38BBB5 for ; Sat, 19 Jul 2014 14:39:10 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id k3Vpv9rdTRW5 for ; Sat, 19 Jul 2014 14:39:09 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wi0-f182.google.com (mail-wi0-f182.google.com [209.85.212.182]) by whitealder.osuosl.org (Postfix) with ESMTPS id 6A5A98BB38 for ; Sat, 19 Jul 2014 14:39:09 +0000 (UTC) Received: by mail-wi0-f182.google.com with SMTP id d1so2079990wiv.15 for ; Sat, 19 Jul 2014 07:39:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=aC5ASAQFKKERPBFdNBZ1V2VBFfCIZuFQ6+8Ifu479io=; b=Mc2OvHCp90C7ox5ecQPA9zy0BKUF4VkJk3UJz7+Apbrh9PWzIERFlGB8tYBUS5aT3d W+XJZuLw/jNI7Um81MiCYUHFeL4wh5eZenAVt55Y5/Ff7mVbXA8pSxFj/SFcgtRf24+3 VgSUuxVrF67PFGmX0mtbJH3qnss/Y4zRnVFj6hVidIrupxVGO7VW7xbiM9tIhEviL4aG mPfyCnxYzvtQHHF0SDd5BkXAFr8x6wr8Kvv0OJxlpGzoarsEhyErhA+gT6J82EfozD9u 1OwGNs5hEnqv4psnedOZEEtBLQqlg0tzz6Esc/o3ksxzOErhBEh/OevbaN+OMKxisaEr rSYQ== X-Received: by 10.180.189.234 with SMTP id gl10mr17027888wic.56.1405780747802; Sat, 19 Jul 2014 07:39:07 -0700 (PDT) Received: from localhost.localdomain (158.193.82.79.rev.sfr.net. [79.82.193.158]) by mx.google.com with ESMTPSA id p3sm22396964wjw.13.2014.07.19.07.39.06 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 19 Jul 2014 07:39:07 -0700 (PDT) From: Francois Perrad X-Google-Original-From: Francois Perrad To: buildroot@busybox.net Date: Sat, 19 Jul 2014 16:38:55 +0200 Message-Id: <1405780738-31323-2-git-send-email-francois.perrad@gadz.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1405780738-31323-1-git-send-email-francois.perrad@gadz.org> References: <1405780738-31323-1-git-send-email-francois.perrad@gadz.org> Subject: [Buildroot] [lua V4 1/4] luajit: add host variant X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net the goal is to use host-luajit with pkg-luarocks when luajit is on the selected luainterpreter for the target Signed-off-by: Francois Perrad --- package/luajit/luajit.mk | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/package/luajit/luajit.mk b/package/luajit/luajit.mk index 72240b2..42d6a72 100644 --- a/package/luajit/luajit.mk +++ b/package/luajit/luajit.mk @@ -64,4 +64,13 @@ define LUAJIT_INSTALL_TARGET_CMDS $(MAKE) PREFIX="/usr" DESTDIR="$(TARGET_DIR)" LDCONFIG=true -C $(@D) install endef +define HOST_LUAJIT_BUILD_CMDS + $(MAKE) PREFIX="/usr" BUILDMODE=static -C $(@D) amalg +endef + +define HOST_LUAJIT_INSTALL_CMDS + $(MAKE) PREFIX="/usr" DESTDIR="$(HOST_DIR)" -C $(@D) install +endef + $(eval $(generic-package)) +$(eval $(host-generic-package))