From patchwork Fri Oct 25 13:10:22 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gustavo Zacarias X-Patchwork-Id: 286141 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id 5F1982C009C for ; Sat, 26 Oct 2013 00:10:42 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 1139D93B2F; Fri, 25 Oct 2013 13:10:41 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DAl0a8bWGLSh; Fri, 25 Oct 2013 13:10:40 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 1704393A54; Fri, 25 Oct 2013 13:10:40 +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 7BFAD1BFA35 for ; Fri, 25 Oct 2013 13:10:39 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 74DBC8CE5C for ; Fri, 25 Oct 2013 13:10:39 +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 Pv3MA4QsJhWt for ; Fri, 25 Oct 2013 13:10:37 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from loknar.toptech.com.ar (loknar.toptech.com.ar [78.46.79.162]) by whitealder.osuosl.org (Postfix) with ESMTPS id CF75C8CF04 for ; Fri, 25 Oct 2013 13:10:36 +0000 (UTC) Received: from asgard (host58.190-231-106.telecom.net.ar [190.231.106.58]) (authenticated bits=0) by loknar.toptech.com.ar (8.14.7/8.14.7) with ESMTP id r9PDATaD032237 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 25 Oct 2013 13:10:32 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=zacarias.com.ar; s=dkey; t=1382706634; bh=JZ2tm0IyGKD6a1zEERIAe0AuAnwa9L5j+a2BxMifSZk=; h=From:To:Cc:Subject:Date; b=AHh5Xs8mYznZ+huVX2s8DRtmdigbHwZz4MazEmcR/L00c4GNn1cg9k+NXkOxSI5IT 163gTc7X9svjyfmd3JZ97uWwkzfTS1Z6Y8hOqdMRZ6EpwI1Oz5scv7VnTGPNzAyUEC RWFLncYAhDV7fjbpeOHQafpUFqdFQsTiHOxK7sGY= Received: by asgard (sSMTP sendmail emulation); Fri, 25 Oct 2013 10:10:23 -0300 From: Gustavo Zacarias To: buildroot@busybox.net Date: Fri, 25 Oct 2013 10:10:22 -0300 Message-Id: <1382706623-5593-1-git-send-email-gustavo@zacarias.com.ar> X-Mailer: git-send-email 1.8.1.5 X-Virus-Scanned: clamav-milter 0.97.8 at loknar X-Virus-Status: Clean Subject: [Buildroot] [PATCH 1/2] arch/Config.in: introduce BR2_KERNEL_64_USERLAND_32 symbol 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 On some architectures one can be running a 64-bit kernel with a 32-bit userland. Such is the case for sparc64 (unsupported) for example and mips64 with n32 ABI. Some tools that interface directly with the kernel need to be built specially for this, so introduce this symbol to tweak their build in one central kludge to be future-proof. Example: bug #6602. Signed-off-by: Gustavo Zacarias --- arch/Config.in | 3 +++ arch/Config.in.mips | 1 + 2 files changed, 4 insertions(+) diff --git a/arch/Config.in b/arch/Config.in index 3fd8c1c..bc81dac 100644 --- a/arch/Config.in +++ b/arch/Config.in @@ -3,6 +3,9 @@ menu "Target options" config BR2_ARCH_IS_64 bool +config BR2_KERNEL_64_USERLAND_32 + bool + config BR2_SOFT_FLOAT bool diff --git a/arch/Config.in.mips b/arch/Config.in.mips index 6242bcc..ca8b87f 100644 --- a/arch/Config.in.mips +++ b/arch/Config.in.mips @@ -47,6 +47,7 @@ config BR2_MIPS_OABI32 config BR2_MIPS_NABI32 bool "n32" depends on BR2_ARCH_IS_64 + select BR2_KERNEL_64_USERLAND_32 config BR2_MIPS_NABI64 bool "n64" depends on BR2_ARCH_IS_64