Skip to contentSkip to conversation

build: add meson support for cortex a55 and a76 platforms

PATCH Applied Phil Yang 3 participants 3 messages Jan 31, 2019 – Mar 1, 2019 Arm/Amlogic Meson SoC support

lore
Share & tools
lore

Phil Yang

author
#0 lore raw

PATCH 1/1 build: add meson support for cortex a55 and a76 platforms

Enable native/cross compiling for Cortex-A55 and Cortex-A76 on meson.

---
 config/arm/arm64_armv8_linuxapp_gcc | 2 ++
 config/arm/meson.build              | 2 ++
 2 files changed, 4 insertions(+)
config/arm/arm64_armv8_linuxapp_gcc +2 -0
index 987c02f..da66d59 100644
@@ -17,8 +17,10 @@ implementor_id = 'generic'
 # 'default': valid for all armv8-a architectures (default value)
 # '0xd03':   cortex-a53
 # '0xd04':   cortex-a35
+# '0xd05':   cortex-a55
 # '0xd07':   cortex-a57
 # '0xd08':   cortex-a72
 # '0xd09':   cortex-a73
 # '0xd0a':   cortex-a75
+# '0xd0b':   cortex-a76
 implementor_pn = 'default'
config/arm/meson.build +2 -0
index dae55d6..97e4e0d 100644
@@ -12,10 +12,12 @@ machine_args_generic = [
 	['native', ['-march=native']],
 	['0xd03', ['-mcpu=cortex-a53']],
 	['0xd04', ['-mcpu=cortex-a35']],
+	['0xd05', ['-mcpu=cortex-a55']],
 	['0xd07', ['-mcpu=cortex-a57']],
 	['0xd08', ['-mcpu=cortex-a72']],
 	['0xd09', ['-mcpu=cortex-a73']],
 	['0xd0a', ['-mcpu=cortex-a75']],
+	['0xd0b', ['-mcpu=cortex-a76']],
 ]
 machine_args_cavium = [
 	['default', ['-march=armv8-a+crc+crypto','-mcpu=thunderx']],
Signature · 1 line
2.7.4
#1 lore raw

31/01/2019 11:11, Phil Yang:

Quoted 9 lines

Enable native/cross compiling for Cortex-A55 and Cortex-A76 on meson.

---
 config/arm/arm64_armv8_linuxapp_gcc | 2 ++
 config/arm/meson.build              | 2 ++
 2 files changed, 4 insertions(+)

Applied, thanks.

Some thoughts:
- Can we merge support for cross and native compilation in one place?
- Why isn't it native in Meson?

#2 lore raw
Quoted 11 lines · Thomas Monjalon

31/01/2019 11:11, Phil Yang:

Quoted 9 lines

Enable native/cross compiling for Cortex-A55 and Cortex-A76 on meson.

---
 config/arm/arm64_armv8_linuxapp_gcc | 2 ++
 config/arm/meson.build              | 2 ++
 2 files changed, 4 insertions(+)
Quoted 6 lines

Applied, thanks.

Some thoughts:
- Can we merge support for cross and native compilation in one place?
- Why isn't it native in Meson?

I believe there is some work being done upstream on meson to make native and cross builds more similar, but I'm not sure of the exact scope of that work.

/Bruce