File tree Expand file tree Collapse file tree 2 files changed +35
-4
lines changed Expand file tree Collapse file tree 2 files changed +35
-4
lines changed Original file line number Diff line number Diff line change @@ -24,11 +24,19 @@ FF_KNI=1
24
24
# FF_IPFW=1
25
25
26
26
ifeq ($(FF_DPDK ) ,)
27
- FF_DPDK =${TOPDIR}/dpdk/x86_64-native-linuxapp-gcc
27
+ ifeq (${MACHINE_CPUARCH},aarch64)
28
+ FF_DPDK =${TOPDIR}/dpdk/build
29
+ else
30
+ # FF_DPDK=${TOPDIR}/dpdk/x86_64-native-linuxapp-gcc
31
+ endif
28
32
endif
29
33
30
34
ifdef RTE_SDK
31
- FF_DPDK =${RTE_SDK}/x86_64-native-linuxapp-gcc
35
+ ifeq (${MACHINE_CPUARCH},aarch64)
36
+ FF_DPDK =${RTE_SDK}/build
37
+ else
38
+ # FF_DPDK=${RTE_SDK}/x86_64-native-linuxapp-gcc
39
+ endif
32
40
endif
33
41
34
42
DPDK_CFLAGS = -Wall -Werror -include ${FF_DPDK}/include/rte_config.h
@@ -92,6 +100,13 @@ endif
92
100
93
101
endif
94
102
103
+ #
104
+ # fix the MACHINE_CPUARCH to match the FreeBSD directory name
105
+ #
106
+ ifeq (${MACHINE_CPUARCH},aarch64)
107
+ MACHINE_CPUARCH =arm64
108
+ endif
109
+
95
110
96
111
#
97
112
# Distilled from FreeBSD src/sys/conf/Makefile.i386
@@ -262,15 +277,27 @@ KERN_MHEADERS+= \
262
277
KERN_MSRCS+ = \
263
278
linker_if.m
264
279
265
-
280
+ ifeq (${MACHINE_CPUARCH},arm64)
266
281
LIBKERN_SRCS+ = \
267
282
bcd.c \
268
283
crc32.c \
269
284
inet_ntoa.c \
270
285
jenkins_hash.c \
271
286
strlcpy.c \
272
287
strnlen.c \
273
- zlib.c
288
+ zlib.c \
289
+ fls.c \
290
+ flsl.c
291
+ else
292
+ LIBKERN_SRCS+ = \
293
+ bcd.c \
294
+ crc32.c \
295
+ inet_ntoa.c \
296
+ jenkins_hash.c \
297
+ strlcpy.c \
298
+ strnlen.c \
299
+ zlib.c
300
+ endif
274
301
275
302
276
303
MACHINE_SRCS+ = \
Original file line number Diff line number Diff line change @@ -101,6 +101,10 @@ CFLAGS+=
101
101
INLINE_LIMIT? = 8000
102
102
endif
103
103
104
+ ifeq (${MACHINE_CPUARCH},arm64)
105
+ INLINE_LIMIT? = 15000
106
+ endif
107
+
104
108
#
105
109
# GCC SSP support
106
110
#
You can’t perform that action at this time.
0 commit comments