arch/Config.in.arc: fix BR2_READELF_ARCH_NAME
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 22 Mar 2017 21:05:54 +0000 (22:05 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 22 Mar 2017 21:05:54 +0000 (22:05 +0100)
On ARC, depending on the CPU selected, the ELF machine number might be
different. Take this into account when defining BR2_READELF_ARCH_NAME.

Fixes:

   http://autobuild.buildroot.net/results/0a1957056e07cedc4839439c0ea8ebd1f646b904/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
arch/Config.in.arc

index dcdba68749adb3ae5c46ebff8d2b067d23e2f189..840d472b2c7938d2effe49ade8f3eb0069de8036 100644 (file)
@@ -39,7 +39,8 @@ config BR2_GCC_TARGET_CPU
        default "archs"  if BR2_archs38
 
 config BR2_READELF_ARCH_NAME
-       default "ARCv2"
+       default "ARCompact"     if BR2_arc750d || BR2_arc770d
+       default "ARCv2"         if BR2_archs38
 
 choice
        prompt "MMU Page Size"