[Buildroot] [PATCH 2 of 2] Introduction of Amlogic platform to buildroot

Stanislav Vasic svlasic at gmail.com
Sat Nov 2 15:35:00 UTC 2013


>From 674615f2986c928cadd122377bbb4254192f5923 Mon Sep 17 00:00:00 2001
From: Stanislav Vasic <svlasic at gmail.com>
Date: Sat, 2 Nov 2013 16:07:38 +0100
Subject: [PATCH] Introduce Amlogic MX platform to buildroot

Target platform options submenu added, currently used
only for setting up proper configuration of buildroot
for Amlogic MX platform.
---
 arch/Config.in.arm | 39 ++++++++++++++++++++++++++++++++++++++-
 1 file changed, 38 insertions(+), 1 deletion(-)

diff --git a/arch/Config.in.arm b/arch/Config.in.arm
index c0fabb7..974dd80 100644
--- a/arch/Config.in.arm
+++ b/arch/Config.in.arm
@@ -117,6 +117,41 @@ config BR2_iwmmxt
 	bool "iwmmxt"
 endchoice
 
+menuconfig BR2_ARCH_SPECIFIC_PLATFORM
+      bool "Target platform options"
+      default n
+      help
+        If you have need to select additional options for your
+        target platform, choose Y here and set additional options.
+        
+        If unsure say N.
+
+if BR2_ARCH_SPECIFIC_PLATFORM
+
+choice
+      prompt "Target platform"
+      depends on BR2_arm
+      depends on BR2_cortex_a9
+      default BR2_ARCH_SPECIFIC_PLATFORM_AMLOGIC_M6
+      help
+        Selects specific plafrom on which buildroot will run. On this
+        selection, if used, other options and packages will be configured
+        to match selected platform.
+
+config BR2_ARCH_SPECIFIC_PLATFORM_AMLOGIC_M6
+	bool "Amlogic MX platform (AML8726MX SoC)"
+	select BR2_ARM_CPU_HAS_VFPV3
+	select BR2_ARM_CPU_HAS_THUMB2
+	select BR2_ARM_ENABLE_NEON
+	help
+	  Using this option, buildroot will be configured to
+	  work on Amlogic MX platform.
+
+endchoice
+
+endif
+
+
 config BR2_arm1136jf_s
 	bool
 	default BR2_arm1136jf_s_r0 || BR2_arm1136jf_s_r1
@@ -124,7 +159,8 @@ config BR2_arm1136jf_s
 choice
 	prompt "Target ABI"
 	depends on BR2_arm || BR2_armeb
-	default BR2_ARM_EABI
+	default BR2_ARM_EABI if !BR2_ARCH_SPECIFIC_PLATFORM_AMLOGIC_M6
+	default BR2_ARM_EABIHF if BR2_ARCH_SPECIFIC_PLATFORM_AMLOGIC_M6
 	help
 	  Application Binary Interface to use. The Application Binary
 	  Interface describes the calling conventions (how arguments
@@ -302,6 +338,7 @@ endchoice
 choice
 	prompt "ARM instruction set"
 	depends on BR2_ARM_CPU_HAS_THUMB || BR2_ARM_CPU_HAS_THUMB2
+	default BR2_ARM_INSTRUCTIONS_THUMB2 if 
BR2_ARCH_SPECIFIC_PLATFORM_AMLOGIC_M6
 
 config BR2_ARM_INSTRUCTIONS_ARM_CHOICE
 	bool "ARM"
-- 
1.8.4.2




More information about the buildroot mailing list