From patchwork Sun Oct 21 15:37:48 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yann Diorcet X-Patchwork-Id: 193032 X-Patchwork-Delegate: esben@haabendal.dk Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hugin.dotsrc.org (hugin.dotsrc.org [130.225.254.102]) by ozlabs.org (Postfix) with ESMTP id 320072C008C for ; Mon, 22 Oct 2012 02:38:14 +1100 (EST) Received: from hugin.dotsrc.org (localhost [127.0.0.1]) by hugin.dotsrc.org (Postfix) with ESMTP id 048393FBAE for ; Sun, 21 Oct 2012 17:38:13 +0200 (CEST) X-Original-To: dev@oe-lite.org Delivered-To: dev@oe-lite.org Received: from mail-wg0-f47.google.com (mail-wg0-f47.google.com [74.125.82.47]) by hugin.dotsrc.org (Postfix) with ESMTPS id 9AD993FD21 for ; Sun, 21 Oct 2012 17:38:11 +0200 (CEST) Received: by mail-wg0-f47.google.com with SMTP id ge7so1153094wgb.16 for ; Sun, 21 Oct 2012 08:38:11 -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:x-mailer:in-reply-to:references; bh=Sx/HsgNHbbRm2nZRjmB+Ie++929ifKPz7zPJpfTSFUk=; b=d+tClNMX/AR8sWVQNFPZHzaRHKn1TkCBv0hc+R+DQW0O99AV0LOUN3F0D1daDRaDTW A6inY/ECFSQtKSIRRzoehDcht2a97g6aaptOMGz7P0VDLrNlCOZmH3+h2XTjiEimuySv FFKWybUGdGWGK09dX/8cW3UCXNdXf0PY3XZttxr8VLdunoguo+g9d1dhpKJibDDr9Xmh /3xVPDxrapptqJPu9JMzZeJdwu6SgkB//tpFmzkwv322vHWeTIG8St9DBV8I62Ap97Ys u0isj8+/9N76pIYaAKSSoquYD8uD2FJZzyPEEXPAjTE9/L1IGxmCIClwWx4JcYGpQfLo a7wg== Received: by 10.216.228.201 with SMTP id f51mr3784514weq.26.1350833891485; Sun, 21 Oct 2012 08:38:11 -0700 (PDT) Received: from localhost.localdomain (dom38-1-82-236-154-183.fbx.proxad.net. [82.236.154.183]) by mx.google.com with ESMTPS id gm7sm16535929wib.10.2012.10.21.08.38.10 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 21 Oct 2012 08:38:10 -0700 (PDT) From: Yann Diorcet To: dev@oe-lite.org Subject: [PATCH 09/16] busybox: make compilable on darwin Date: Sun, 21 Oct 2012 17:37:48 +0200 Message-Id: <1350833876-9499-9-git-send-email-diorcet.yann@gmail.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1350833876-9499-1-git-send-email-diorcet.yann@gmail.com> References: <1350833876-9499-1-git-send-email-diorcet.yann@gmail.com> Cc: Yann Diorcet X-BeenThere: dev@oe-lite.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: OE-lite development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: dev-bounces@oe-lite.org Errors-To: dev-bounces@oe-lite.org From: Yann Diorcet --- recipes/busybox/busybox-1.19.4/osx.patch | 12 ++++++++++++ recipes/busybox/busybox.inc | 2 +- recipes/busybox/busybox_1.19.4.oe | 1 + 3 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 recipes/busybox/busybox-1.19.4/osx.patch diff --git a/recipes/busybox/busybox-1.19.4/osx.patch b/recipes/busybox/busybox-1.19.4/osx.patch new file mode 100644 index 0000000..67bc401 --- /dev/null +++ b/recipes/busybox/busybox-1.19.4/osx.patch @@ -0,0 +1,12 @@ +diff -urN busybox-1.19.4/scripts/kconfig/mconf.c busybox-1.19.4-2/scripts/kconfig/mconf.c +--- busybox-1.19.4/scripts/kconfig/mconf.c 2012-02-04 20:24:55.000000000 +0100 ++++ busybox-1.19.4-2/scripts/kconfig/mconf.c 2012-10-04 09:38:35.000000000 +0200 +@@ -9,6 +9,8 @@ + */ + + #define _XOPEN_SOURCE 700 ++/* On Darwin, this may be needed to get SIGWINCH: */ ++#define _DARWIN_C_SOURCE 1 + + #include + #include diff --git a/recipes/busybox/busybox.inc b/recipes/busybox/busybox.inc index f85850d..204e0c1 100644 --- a/recipes/busybox/busybox.inc +++ b/recipes/busybox/busybox.inc @@ -47,7 +47,7 @@ export EXTRA_LDFLAGS = "${LDFLAGS}" require busybox-configure.inc -EXTRA_OEMAKE += "V=1 ARCH=${TARGET_ARCH} CROSS_COMPILE=${TARGET_PREFIX}" +EXTRA_OEMAKE += "ARCH=${TARGET_ARCH} CROSS_COMPILE=${TARGET_PREFIX}" EXTRA_OEMAKE += "CROSS=${HOST_PREFIX}" do_compile() { diff --git a/recipes/busybox/busybox_1.19.4.oe b/recipes/busybox/busybox_1.19.4.oe index 02985af..bd17493 100644 --- a/recipes/busybox/busybox_1.19.4.oe +++ b/recipes/busybox/busybox_1.19.4.oe @@ -1,3 +1,4 @@ require busybox.inc SRC_URI += "file://udhcp-simple-script-route-del-dev-null.patch" +SRC_URI:>BUILD_OS_darwin = " file://osx.patch"