[2/2] config/arm: fix Hisilicon kunpeng930 Soc build
Checks
Commit Message
From: Chengchang Tang <tangchengchang@huawei.com>
Because of the '9ca2f16' have merged, the current hns3
pmd driver can not be directly complied on the kunpeng930
FPGA board. Therefore, we need to fix the meson build.
Besides, add kunpeng 930 SoC meson cross compile target.
Fixes: 9ca2f16faa7f ("config/arm: isolate generic build")
Signed-off-by: Chengchang Tang <tangchengchang@huawei.com>
Signed-off-by: Lijun Ou <oulijun@huawei.com>
---
config/arm/arm64_kunpeng930_linux_gcc | 19 +++++++++++++++++++
config/arm/meson.build | 7 +++++++
doc/guides/linux_gsg/cross_build_dpdk_for_arm64.rst | 1 +
3 files changed, 27 insertions(+)
create mode 100644 config/arm/arm64_kunpeng930_linux_gcc
new file mode 100644
@@ -0,0 +1,19 @@
+[binaries]
+c = 'aarch64-linux-gnu-gcc'
+cpp = 'aarch64-linux-gnu-cpp'
+ar = 'aarch64-linux-gnu-gcc-ar'
+strip = 'aarch64-linux-gnu-strip'
+pkgconfig = 'aarch64-linux-gnu-pkg-config'
+pcap-config = ''
+
+[host_machine]
+system = 'linux'
+cpu_family = 'aarch64'
+cpu = 'armv8-a'
+endian = 'little'
+
+[properties]
+implementer_id = '0x48'
+part_number = '0xd02'
+max_lcores = 256
+max_numa_nodes = 4
@@ -148,6 +148,13 @@ implementer_hisilicon = {
['RTE_MAX_LCORE', 128],
['RTE_ARM_FEATURE_ATOMICS', true]
]
+ },
+ '0xd02': {
+ 'machine_args': ['-march=armv8.2-a+crypto+sve'],
+ 'flag': [['RTE_MACHINE', '"kunpeng930"'],
+ ['RTE_MAX_LCORE', 256],
+ ['RTE_ARM_FEATURE_ATOMICS', true]
+ ]
}
}
}
@@ -222,6 +222,7 @@ you may use various combinations of implementer/part number::
Supported part_numbers for 0x48:
'0xd01': kunpeng920
+ '0xd02': kunpeng930
Supported part_numbers for 0x50:
'0x0': emag