From patchwork Thu Apr 4 17:29:45 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gustavo Zacarias X-Patchwork-Id: 233880 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 D5EEB2C00A0 for ; Fri, 5 Apr 2013 04:30:31 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 1DFC38C972; Thu, 4 Apr 2013 17:30:19 +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 28YanedDuG6I; Thu, 4 Apr 2013 17:30:03 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 9070E88E25; Thu, 4 Apr 2013 17:30:02 +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 AFB6B8F75E for ; Thu, 4 Apr 2013 17:30:08 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 21DE788B99 for ; Thu, 4 Apr 2013 17:30:01 +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 heLRFrsXhoXP for ; Thu, 4 Apr 2013 17:29:58 +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 7734C88B52 for ; Thu, 4 Apr 2013 17:29:57 +0000 (UTC) Received: from asgard (host210.190-138-221.telecom.net.ar [190.138.221.210]) (authenticated bits=0) by loknar.toptech.com.ar (8.14.6/8.14.6) with ESMTP id r34HTowm027131 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 4 Apr 2013 17:29:52 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=zacarias.com.ar; s=dkey; t=1365096594; bh=/i0/YsGPWSQhu0W4csIhZ1+Nryze+wxGWHVNYUpH8EY=; h=From:To:Cc:Subject:Date; b=T7de9pS4ef3GK1mMKYr0hOzePp/DO7SIAKacaTHHyKCdDOaY6OZ0YwEuxgBUkXr76 RghITDY1aDjjKesamR6xRsgfsL1mkUsyuHfCnUrO+9aEUb8FMlJbReuGnAJEXVAkMl np5JQjowZZyHcBdPSzHpMk2FYjxSd5nYFpJmW3GY= Received: by asgard (sSMTP sendmail emulation); Thu, 04 Apr 2013 14:29:49 -0300 From: Gustavo Zacarias To: buildroot@busybox.net Date: Thu, 4 Apr 2013 14:29:45 -0300 Message-Id: <1365096588-1932-1-git-send-email-gustavo@zacarias.com.ar> X-Mailer: git-send-email 1.8.1.5 X-Virus-Scanned: clamav-milter 0.97.7 at loknar X-Virus-Status: Clean Subject: [Buildroot] [PATCH 1/4] toolchain/arm: drop generic and old, add fa526/626, unify strongarm 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 * Add Faraday FA526/626 as suggested on bug #1291 Note however that these cores are v4 and NOT v4t. * Make the sa110 & sa1110 cores -> strongarm since they're the same. * Drop all of the ARM variants lower than v4 including generic, there's no point in supporting obsolete targets. * Fix uClibc USE_BX logic, it was always on, this would break the new FA526/626 support and broke StrongARM since it's a v4 core. Signed-off-by: Gustavo Zacarias Acked-by: Thomas Petazzoni --- Config.in.legacy | 16 ++++++++++++++++ arch/Config.in.arm | 29 +++++++++-------------------- toolchain/gcc/Config.in | 6 +++--- toolchain/uClibc/Config.in | 7 ++----- toolchain/uClibc/uClibc-0.9.31.config | 2 +- toolchain/uClibc/uclibc.mk | 3 +++ 6 files changed, 34 insertions(+), 29 deletions(-) diff --git a/Config.in.legacy b/Config.in.legacy index 43e2afe..4cd62b8 100644 --- a/Config.in.legacy +++ b/Config.in.legacy @@ -44,6 +44,22 @@ endif # Legacy options since 2013.02 # +config BR2_sa110 + bool "sa110 ARM target switched to strongarm" + select BR2_LEGACY + select BR2_strongarm + help + The SA110 is the same as a generic StrongARM, it just differs + in speed, peripherals and cache. + +config BR2_sa1100 + bool "sa1100 ARM target switched to strongarm" + select BR2_LEGACY + select BR2_strongarm + help + The SA1100 is the same as a generic StrongARM, it just differs + in speed, peripherals and cache. + config BR2_PACKAGE_GDISK bool "gdisk has been replaced by gptfdisk" select BR2_LEGACY diff --git a/arch/Config.in.arm b/arch/Config.in.arm index 79f08f7..f706dcc 100644 --- a/arch/Config.in.arm +++ b/arch/Config.in.arm @@ -9,18 +9,12 @@ config BR2_ARM_CPU_MAYBE_HAS_NEON choice prompt "Target Architecture Variant" depends on BR2_arm || BR2_armeb - default BR2_generic_arm + default BR2_arm926t help Specific CPU variant to use -config BR2_generic_arm - bool "generic_arm" config BR2_arm7tdmi bool "arm7tdmi" -config BR2_arm610 - bool "arm610" -config BR2_arm710 - bool "arm710" config BR2_arm720t bool "arm720t" config BR2_arm920t @@ -51,10 +45,10 @@ config BR2_cortex_a9 config BR2_cortex_a15 bool "cortex-A15" select BR2_ARM_CPU_HAS_NEON -config BR2_sa110 - bool "sa110" -config BR2_sa1100 - bool "sa1100" +config BR2_fa526 + bool "fa526/626" +config BR2_strongarm + bool "strongarm sa110/sa1100" config BR2_xscale bool "xscale" config BR2_iwmmxt @@ -105,9 +99,6 @@ config BR2_ENDIAN default "BIG" if BR2_armeb config BR2_GCC_TARGET_TUNE - default "arm600" if BR2_arm600 - default "arm610" if BR2_arm610 - default "arm620" if BR2_arm620 default "arm7tdmi" if BR2_arm7tdmi default "arm7tdmi" if BR2_arm720t default "arm7tdmi" if BR2_arm740t @@ -123,15 +114,13 @@ config BR2_GCC_TARGET_TUNE default "cortex-a8" if BR2_cortex_a8 default "cortex-a9" if BR2_cortex_a9 default "cortex-a15" if BR2_cortex_a15 - default "strongarm110" if BR2_sa110 - default "strongarm1100" if BR2_sa1100 + default "fa526" if BR2_fa526 + default "strongarm" if BR2_strongarm default "xscale" if BR2_xscale default "iwmmxt" if BR2_iwmmxt config BR2_GCC_TARGET_ARCH default "armv4t" if BR2_arm7tdmi - default "armv3" if BR2_arm610 - default "armv3" if BR2_arm710 default "armv4t" if BR2_arm720t default "armv4t" if BR2_arm920t default "armv4t" if BR2_arm922t @@ -145,8 +134,8 @@ config BR2_GCC_TARGET_ARCH default "armv7-a" if BR2_cortex_a8 default "armv7-a" if BR2_cortex_a9 default "armv7-a" if BR2_cortex_a15 - default "armv4" if BR2_sa110 - default "armv4" if BR2_sa1100 + default "armv4" if BR2_fa526 + default "armv4" if BR2_strongarm default "armv5te" if BR2_xscale default "iwmmxt" if BR2_iwmmxt diff --git a/toolchain/gcc/Config.in b/toolchain/gcc/Config.in index f8cb82a..527288f 100644 --- a/toolchain/gcc/Config.in +++ b/toolchain/gcc/Config.in @@ -18,15 +18,15 @@ choice bool "gcc 4.2.2-avr32-2.1.5" config BR2_GCC_VERSION_4_3_X - depends on !BR2_avr32 && !BR2_sparc_sparchfleon && !BR2_sparc_sparchfleonv8 && !BR2_sparc_sparcsfleon && !BR2_sparc_sparcsfleonv8 && !BR2_cortex_a5 && !BR2_cortex_a8 && !BR2_cortex_a9 && !BR2_cortex_a15 && !BR2_x86_atom && !BR2_powerpc_e300c2 && !BR2_powerpc_e300c3 && !BR2_powerpc_e500mc && !BR2_powerpc_464 && !BR2_powerpc_464fp && !BR2_powerpc_476 && !BR2_powerpc_476fp + depends on !BR2_avr32 && !BR2_sparc_sparchfleon && !BR2_sparc_sparchfleonv8 && !BR2_sparc_sparcsfleon && !BR2_sparc_sparcsfleonv8 && !BR2_cortex_a5 && !BR2_cortex_a8 && !BR2_cortex_a9 && !BR2_cortex_a15 && !BR2_x86_atom && !BR2_powerpc_e300c2 && !BR2_powerpc_e300c3 && !BR2_powerpc_e500mc && !BR2_powerpc_464 && !BR2_powerpc_464fp && !BR2_powerpc_476 && !BR2_powerpc_476fp && !BR2_fa526 bool "gcc 4.3.x" config BR2_GCC_VERSION_4_4_X - depends on !BR2_avr32 && !BR2_cortex_a5 && !BR2_cortex_a15 && !BR2_x86_atom && !BR2_powerpc_476 && !BR2_powerpc_476fp + depends on !BR2_avr32 && !BR2_cortex_a5 && !BR2_cortex_a15 && !BR2_x86_atom && !BR2_powerpc_476 && !BR2_powerpc_476fp && !BR2_fa526 bool "gcc 4.4.x" config BR2_GCC_VERSION_4_5_X - depends on !BR2_avr32 && !BR2_cortex_a15 && !BR2_sparc_sparchfleon && !BR2_sparc_sparchfleonv8 && !BR2_sparc_sparcsfleon && !BR2_sparc_sparcsfleonv8 + depends on !BR2_avr32 && !BR2_cortex_a15 && !BR2_sparc_sparchfleon && !BR2_sparc_sparchfleonv8 && !BR2_sparc_sparcsfleon && !BR2_sparc_sparcsfleonv8 && !BR2_fa526 select BR2_GCC_NEEDS_MPC bool "gcc 4.5.x" diff --git a/toolchain/uClibc/Config.in b/toolchain/uClibc/Config.in index 57c9933..b53bb24 100644 --- a/toolchain/uClibc/Config.in +++ b/toolchain/uClibc/Config.in @@ -81,9 +81,7 @@ config BR2_UCLIBC_INSTALL_TEST_SUITE config BR2_UCLIBC_ARM_TYPE string depends on BR2_arm || BR2_armeb - default GENERIC_ARM if BR2_generic_arm - default ARM610 if BR2_arm610 - default ARM710 if BR2_arm710 + default GENERIC_ARM if BR2_fa526 default ARM7TDMI if BR2_arm7tdmi default ARM720T if BR2_arm720t default ARM920T if BR2_arm920t @@ -93,8 +91,7 @@ config BR2_UCLIBC_ARM_TYPE default ARM1136JF_S if BR2_arm1136jf_s default ARM1176JZ_S if BR2_arm1176jz_s default ARM1176JZF_S if BR2_arm1176jzf_s - default ARM_SA110 if BR2_sa110 - default ARM_SA1100 if BR2_sa1100 + default ARM_SA1100 if BR2_strongarm default ARM_XSCALE if BR2_xscale default ARM_IWMMXT if BR2_iwmmxt default ARM_CORTEXA8 if BR2_cortex_a8 diff --git a/toolchain/uClibc/uClibc-0.9.31.config b/toolchain/uClibc/uClibc-0.9.31.config index 2f363db..e990178 100644 --- a/toolchain/uClibc/uClibc-0.9.31.config +++ b/toolchain/uClibc/uClibc-0.9.31.config @@ -238,7 +238,7 @@ WARNINGS="-Wall" # DOMULTI is not set # UCLIBC_MJN3_ONLY is not set -# USE_BX is not set +USE_BX=y # CONFIG_GENERIC_ARM is not set # CONFIG_ARM610 is not set # CONFIG_ARM710 is not set diff --git a/toolchain/uClibc/uclibc.mk b/toolchain/uClibc/uclibc.mk index e8b2bb4..113dc79 100644 --- a/toolchain/uClibc/uclibc.mk +++ b/toolchain/uClibc/uclibc.mk @@ -130,6 +130,9 @@ ifeq ($(BR2_ARM_OABI),y) /bin/echo "CONFIG_ARM_OABI=y" >> $(UCLIBC_DIR)/.oldconfig /bin/echo "# CONFIG_ARM_EABI is not set" >> $(UCLIBC_DIR)/.oldconfig endif +ifeq ($(BR2_fa526)$(BR2_strongarm),y) + $(SED) 's,USE_BX=y,# USE_BX is not set,' $(UCLIBC_DIR)/.oldconfig +endif endif ifeq ($(UCLIBC_TARGET_ARCH),mips) $(SED) '/CONFIG_MIPS_[NO].._ABI/d' $(UCLIBC_DIR)/.oldconfig