Skip to content

Commit

Permalink
Merge #215
Browse files Browse the repository at this point in the history
  • Loading branch information
ivatet-amd committed Apr 22, 2024
2 parents 09d1a50 + f3bc1f5 commit c10a58a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,8 @@ $(eval $(patsubst CONFIG_%,export CONFIG_%$(_LF), \
$(shell echo -e '$(_GET_NET_CONFIG_OPTS)' | \
MFLAGS= MAKEFLAGS= make -C src/driver/linux_net/drivers/net/ethernet/sfc -r --no-print-directory -f - print_vars)))

gcc_maj_ver := $(shell ./scripts/mmaketool --gcc_major_version)

# CFLAGS
ONLOAD_CFLAGS += -I$$(obj) -I$$(obj)/src -I$$(src) -I$$(src)/src -I$$(src)/src/include \
-D__ci_driver__ "-DTRANSPORT_CONFIG_OPT_HDR=<$(TRANSPORT_CONFIG_OPT_HDR)>"
Expand Down Expand Up @@ -238,6 +240,14 @@ else
ONLOAD_CFLAGS += -DCI_HAVE_SFC=0
endif

test-ge = $(shell test $1 -ge $2 && echo 1)

ifneq ($(call test-ge, $(gcc_maj_ver), 10), )
ifeq ($(KARCH), aarch64)
ONLOAD_CFLAGS += -mno-outline-atomics
endif
endif

scripts := $(addprefix $(KBUILDTOP)/driver/linux/,$(notdir $(wildcard src/driver/linux/*.sh)))

.PHONY: modules modules_install clean_kernel kernel
Expand Down

0 comments on commit c10a58a

Please sign in to comment.