From patchwork Tue Apr 1 22:24:38 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Hadjinlian X-Patchwork-Id: 336195 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id 518FE1400B4 for ; Wed, 2 Apr 2014 09:24:51 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 190CC8BC8C; Tue, 1 Apr 2014 22:24:51 +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 Gk-9qcgm4mud; Tue, 1 Apr 2014 22:24:50 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 550B38BCCF; Tue, 1 Apr 2014 22:24:50 +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 573421BFA6A for ; Tue, 1 Apr 2014 22:24:49 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 531AD8BCCF for ; Tue, 1 Apr 2014 22:24:49 +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 nTF-OSCZUk90 for ; Tue, 1 Apr 2014 22:24:48 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wg0-f49.google.com (mail-wg0-f49.google.com [74.125.82.49]) by whitealder.osuosl.org (Postfix) with ESMTPS id 958AE8BC8C for ; Tue, 1 Apr 2014 22:24:48 +0000 (UTC) Received: by mail-wg0-f49.google.com with SMTP id a1so8316947wgh.32 for ; Tue, 01 Apr 2014 15:24:47 -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; bh=TRxsf2yKCsxf2v4R/UibwmhuO9xErfk9YDBNwD2ghbc=; b=GrBSRh76cc5pLwEC8g55Xdc3dg9B6QIEz3dB4dyVZp7858rrksSP/j7sLK8Rpbldy/ 9w0bwiovN2TydEDfO9lOWv9nT/dNgwam6SPS8hd2PFaNwYUb3SMDIe9+kPgdc1YP6Hri EBNguzUzKiQTCMiZ3hKAoczEzELNwaQ00ZqiCgS5d8evQHgOZSaoZyupx2m2o2+Oa/Hl fTpobiYiIP2PzRBkI6uajsPzWFrLpPRGXeNS2bTyP7N0Y3X/qrFvaU1FXrNgwpNBsrmN VHOMwGMMItdDdgZsZ7V/aXSQVIfXbCxMWx51cybWnCxkist8xLHHFeAq+CmdzWNoqwVO OZUA== X-Received: by 10.194.175.202 with SMTP id cc10mr20823013wjc.48.1396391087300; Tue, 01 Apr 2014 15:24:47 -0700 (PDT) Received: from localhost (13-105-190-109.dsl.ovh.fr. [109.190.105.13]) by mx.google.com with ESMTPSA id ga10sm19760716wjb.23.2014.04.01.15.24.45 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 01 Apr 2014 15:24:46 -0700 (PDT) From: Maxime Hadjinlian To: buildroot@buildroot.org Date: Wed, 2 Apr 2014 00:24:38 +0200 Message-Id: <1396391079-28455-1-git-send-email-maxime.hadjinlian@gmail.com> X-Mailer: git-send-email 1.9.1 Subject: [Buildroot] [PATCH 1/2] infozip: Add a 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 Adding a host variant to the package infozip. It will be used by XBMC. Signed-off-by: Maxime Hadjinlian Reviewed-by: "Yann E. MORIN" Acked-by: Bernd Kuhls --- package/infozip/infozip.mk | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/package/infozip/infozip.mk b/package/infozip/infozip.mk index 8e51224..9648b4f 100644 --- a/package/infozip/infozip.mk +++ b/package/infozip/infozip.mk @@ -26,4 +26,17 @@ define INFOZIP_INSTALL_TARGET_CMDS prefix=$(TARGET_DIR)/usr endef +define HOST_INFOZIP_BUILD_CMDS + $(MAKE) $(HOST_CONFIGURE_OPTS) -C $(@D) \ + CFLAGS="$(HOST_CFLAGS) -I. -DUNIX" \ + AS="$(HOST_CC) -c" \ + -f unix/Makefile generic +endef + +define HOST_INFOZIP_INSTALL_CMDS + $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) -f unix/Makefile install \ + prefix=$(HOST_DIR)/usr +endef + $(eval $(generic-package)) +$(eval $(host-generic-package))