diff mbox

[PATCHv2,4/6] binutils: enable for aarch64

Message ID 1398301235-8445-4-git-send-email-gustavo@zacarias.com.ar
State Accepted
Commit 79407e01fe383f8c2884e0ef5c99584058eaaa51
Headers show

Commit Message

Gustavo Zacarias April 24, 2014, 1 a.m. UTC
Versions lower than 2.24 fail to build a working kernel as in:

Freeing unused kernel memory: 184K (ffffffc00059a000 - ffffffc0005c8000)
init[1]: unhandled level 2 translation fault (11) at 0x00000008, esr
0x92000006
pgd = ffffffc876403000
[00000008] *pgd=00000008f6ea0003, *pmd=0000000000000000

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
 package/binutils/Config.in.host | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

Comments

Baruch Siach April 24, 2014, 4:04 a.m. UTC | #1
Hi Gustavo,

On Wed, Apr 23, 2014 at 10:00:33PM -0300, Gustavo Zacarias wrote:
> Versions lower than 2.24 fail to build a working kernel as in:
> 
> Freeing unused kernel memory: 184K (ffffffc00059a000 - ffffffc0005c8000)
> init[1]: unhandled level 2 translation fault (11) at 0x00000008, esr
> 0x92000006
> pgd = ffffffc876403000
> [00000008] *pgd=00000008f6ea0003, *pmd=0000000000000000
> 
> Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
> ---

The subject line is misleading. This patch actually disables aarch64 for
binutils < 2.24.

baruch

>  package/binutils/Config.in.host | 12 ++++++------
>  1 file changed, 6 insertions(+), 6 deletions(-)
> 
> diff --git a/package/binutils/Config.in.host b/package/binutils/Config.in.host
> index 58738e8..2f86f51 100644
> --- a/package/binutils/Config.in.host
> +++ b/package/binutils/Config.in.host
> @@ -14,30 +14,30 @@ choice
>  		bool "binutils 2.18-avr32-1.0.1"
>  
>  	config BR2_BINUTILS_VERSION_2_20_1
> -		depends on !BR2_avr32
> +		depends on !BR2_avr32 && !BR2_aarch64
>  		depends on !BR2_ARM_EABIHF
>  		bool "binutils 2.20.1"
>  
>  	config BR2_BINUTILS_VERSION_2_21
> -		depends on !BR2_avr32
> +		depends on !BR2_avr32 && !BR2_aarch64
>  		depends on !BR2_ARM_EABIHF
>  		bool "binutils 2.21"
>  
>  	config BR2_BINUTILS_VERSION_2_21_1
> -		depends on !BR2_avr32
> +		depends on !BR2_avr32 && !BR2_aarch64
>  		depends on !BR2_ARM_EABIHF
>  		bool "binutils 2.21.1"
>  
>  	config BR2_BINUTILS_VERSION_2_22
> -		depends on !BR2_avr32
> +		depends on !BR2_avr32 && !BR2_aarch64
>  		bool "binutils 2.22"
>  
>  	config BR2_BINUTILS_VERSION_2_23_1
> -		depends on !BR2_avr32
> +		depends on !BR2_avr32 && !BR2_aarch64
>  		bool "binutils 2.23.1"
>  
>  	config BR2_BINUTILS_VERSION_2_23_2
> -		depends on !BR2_avr32
> +		depends on !BR2_avr32 && !BR2_aarch64
>  		bool "binutils 2.23.2"
>  
>  	config BR2_BINUTILS_VERSION_2_24
> -- 
> 1.8.3.2
Peter Korsgaard April 24, 2014, 1:20 p.m. UTC | #2
>>>>> "Baruch" == Baruch Siach <baruch@tkos.co.il> writes:

 > Hi Gustavo,
 > On Wed, Apr 23, 2014 at 10:00:33PM -0300, Gustavo Zacarias wrote:
 >> Versions lower than 2.24 fail to build a working kernel as in:
 >> 
 >> Freeing unused kernel memory: 184K (ffffffc00059a000 - ffffffc0005c8000)
 >> init[1]: unhandled level 2 translation fault (11) at 0x00000008, esr
 >> 0x92000006
 >> pgd = ffffffc876403000
 >> [00000008] *pgd=00000008f6ea0003, *pmd=0000000000000000
 >> 
 >> Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
 >> ---

 > The subject line is misleading. This patch actually disables aarch64 for
 > binutils < 2.24.

Agreed. I have changed the subject to reflect that and committed,
thanks.
diff mbox

Patch

diff --git a/package/binutils/Config.in.host b/package/binutils/Config.in.host
index 58738e8..2f86f51 100644
--- a/package/binutils/Config.in.host
+++ b/package/binutils/Config.in.host
@@ -14,30 +14,30 @@  choice
 		bool "binutils 2.18-avr32-1.0.1"
 
 	config BR2_BINUTILS_VERSION_2_20_1
-		depends on !BR2_avr32
+		depends on !BR2_avr32 && !BR2_aarch64
 		depends on !BR2_ARM_EABIHF
 		bool "binutils 2.20.1"
 
 	config BR2_BINUTILS_VERSION_2_21
-		depends on !BR2_avr32
+		depends on !BR2_avr32 && !BR2_aarch64
 		depends on !BR2_ARM_EABIHF
 		bool "binutils 2.21"
 
 	config BR2_BINUTILS_VERSION_2_21_1
-		depends on !BR2_avr32
+		depends on !BR2_avr32 && !BR2_aarch64
 		depends on !BR2_ARM_EABIHF
 		bool "binutils 2.21.1"
 
 	config BR2_BINUTILS_VERSION_2_22
-		depends on !BR2_avr32
+		depends on !BR2_avr32 && !BR2_aarch64
 		bool "binutils 2.22"
 
 	config BR2_BINUTILS_VERSION_2_23_1
-		depends on !BR2_avr32
+		depends on !BR2_avr32 && !BR2_aarch64
 		bool "binutils 2.23.1"
 
 	config BR2_BINUTILS_VERSION_2_23_2
-		depends on !BR2_avr32
+		depends on !BR2_avr32 && !BR2_aarch64
 		bool "binutils 2.23.2"
 
 	config BR2_BINUTILS_VERSION_2_24