[Buildroot] [PATCH 1 of 2] Introduction of Amlogic platform to buildroot
Stanislav Vasic
svlasic at gmail.com
Sat Nov 2 15:34:18 UTC 2013
>From 5d941e3307401d261b817a3aa40fe75894050419 Mon Sep 17 00:00:00 2001
From: Stanislav Vasic <svlasic at gmail.com>
Date: Sat, 2 Nov 2013 14:52:14 +0100
Subject: [PATCH] Re-add Linaro 2013.04 toolchain
Linaro 2013.04 toolchain is dependency for Amlogic platform
because none of current Amlogic kernels are failing to boot
when compiled with GCC higher than 4.7
---
toolchain/toolchain-external/Config.in | 21 +++++++++++++++++
++++
toolchain/toolchain-external/toolchain-external.mk | 4 ++++
2 files changed, 25 insertions(+)
diff --git a/toolchain/toolchain-external/Config.in b/toolchain/toolchain-
external/Config.in
index 48b5865..099096f 100644
--- a/toolchain/toolchain-external/Config.in
+++ b/toolchain/toolchain-external/Config.in
@@ -65,6 +65,26 @@ config BR2_TOOLCHAIN_EXTERNAL_LINARO_2013_07
the VFPv3-D16 FPU instructions.
To use this toolchain, you must disable soft float usage.
+
+config BR2_TOOLCHAIN_EXTERNAL_LINARO_2013_04
+ bool "Linaro 2013.04"
+ depends on BR2_arm
+ depends on BR2_GCC_TARGET_ARCH = "armv7-a"
+ depends on BR2_HOSTARCH = "x86_64" || BR2_HOSTARCH = "x86"
+ depends on BR2_ARM_EABIHF
+ select BR2_TOOLCHAIN_EXTERNAL_GLIBC
+ select BR2_TOOLCHAIN_HAS_NATIVE_RPC
+ select BR2_INSTALL_LIBSTDCPP
+ select BR2_HOSTARCH_NEEDS_IA32_LIBS
+ help
+ Linaro toolchain for the ARM architecture. It uses Linaro
+ GCC 2013.04 (based on gcc 4.7), Linaro GDB 2012.12 (based on
+ GDB 7.5), eglibc 2.15. It generates code that runs on all
+ Cortex-A profile devices, but tuned for the Cortex-A9. The
+ code generated is Thumb 2, with the hard floating point
+ calling convention, and uses the VFPv3-D16 FPU instructions.
+
+ To use this toolchain, you must disable soft float usage.
comment "Linaro toolchains available for Cortex-A{5,7,8,9,15} and the
EABIhf ABI"
depends on BR2_arm
@@ -819,6 +839,7 @@ config BR2_TOOLCHAIN_EXTERNAL_PREFIX
default "arm-linux-gnueabihf" if
BR2_TOOLCHAIN_EXTERNAL_LINARO_2013_09
default "arm-linux-gnueabihf" if
BR2_TOOLCHAIN_EXTERNAL_LINARO_2013_08
default "arm-linux-gnueabihf" if
BR2_TOOLCHAIN_EXTERNAL_LINARO_2013_07
+ default "arm-linux-gnueabihf" if
BR2_TOOLCHAIN_EXTERNAL_LINARO_2013_04
default "arm-none-linux-gnueabi" if
BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_ARM201109
default "arm-none-linux-gnueabi" if
BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_ARM201203
default "arm-none-linux-gnueabi" if
BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_ARM201305
diff --git a/toolchain/toolchain-external/toolchain-external.mk b/
toolchain/toolchain-external/toolchain-external.mk
index d41cc7c..0667c4f 100644
--- a/toolchain/toolchain-external/toolchain-external.mk
+++ b/toolchain/toolchain-external/toolchain-external.mk
@@ -251,6 +251,10 @@ define TOOLCHAIN_EXTERNAL_FIXUP_CMDS
mv $(TOOLCHAIN_EXTERNAL_INSTALL_DIR)/arago-2011.09/armv5te/*
$(TOOLCHAIN_EXTERNAL_INSTALL_DIR)/
rm -rf $(TOOLCHAIN_EXTERNAL_INSTALL_DIR)/arago-2011.09/
endef
+else ifeq ($(BR2_TOOLCHAIN_EXTERNAL_LINARO_2013_04),y)
+TOOLCHAIN_EXTERNAL_SITE = https://releases.linaro.org/13.04/components/
toolchain/binaries/
+TOOLCHAIN_EXTERNAL_SOURCE = gcc-linaro-arm-linux-
gnueabihf-4.7-2013.04-20130415_linux.tar.xz
+TOOLCHAIN_EXTERNAL_POST_INSTALL_STAGING_HOOKS +=
TOOLCHAIN_EXTERNAL_LINARO_ARMHF_SYMLINK
else ifeq ($(BR2_TOOLCHAIN_EXTERNAL_LINARO_2013_07),y)
TOOLCHAIN_EXTERNAL_SITE = http://releases.linaro.org/13.07/components/
toolchain/binaries/
TOOLCHAIN_EXTERNAL_SOURCE = gcc-linaro-arm-linux-
gnueabihf-4.8-2013.07-1_linux.tar.xz
--
1.8.4.2
More information about the buildroot
mailing list