forked from Aquantia/AQtion
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Kbuild.cflags
27 lines (23 loc) · 844 Bytes
/
Kbuild.cflags
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# SPDX-License-Identifier: GPL-2.0-only
################################################################################
#
# Marvell (aQuantia) Ethernet Controller AQtion Linux Driver
# Copyright (C) 2020 Marvell International Ltd.
#
################################################################################
#
# Makefile for the AQtion(tm) Ethernet driver
# (common cflags)
#
subdir-ccflags-y:=-I$(src)
ifneq ($(filter gcc cc,$(CC)),)
#subdir-ccflags-y += -DPCI_DEBUG -ggdb
#subdir-ccflags-y += -DDEBUG_DUMPREGS
#subdir-ccflags-y += -DTSN_SUPPORT
subdir-ccflags-y += -Wall
endif
ifneq ($(filter clang-%,$(CC)),)
subdir-ccflags-y += -Wno-date-time -W --system-header-prefix=linux/ \
-fsanitize=integer,address,undefined,alignment,bool,bounds,null,\
enum,integer-divide-by-zero,shift,unreachable,unsigned-integer-overflow
endif