-
Notifications
You must be signed in to change notification settings - Fork 48
Expand file tree
/
Copy pathconfig.mk
More file actions
46 lines (38 loc) · 739 Bytes
/
config.mk
File metadata and controls
46 lines (38 loc) · 739 Bytes
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# vim: tabstop=8 shiftwidth=8 noexpandtab:
#
# Common makefile used to establish values for variables that configure
# build system for given platform.
#
CONFIG_OPTS := KASAN LOCKDEP KGPROF MIPS AARCH64 RISCV KCSAN KFTRACE
BOARD ?= rpi3
MIPS ?= 0
AARCH64 ?= 0
RISCV ?= 0
ifeq ($(BOARD), malta)
ARCH := mips
MIPS := 1
# Clang does not generate debug info recognized by gdb :(
LLVM := 0
endif
ifeq ($(BOARD), rpi3)
ARCH := aarch64
AARCH64 := 1
endif
ifeq ($(BOARD), litex-riscv)
ARCH := riscv
RISCV := 1
XLEN := 32
endif
ifeq ($(BOARD), sifive_u)
ARCH := riscv
RISCV := 1
XLEN := 64
endif
VERBOSE ?= 0
LLVM ?= 1
LOCKDEP ?= 0
KASAN ?= 0
KCSAN ?= 0
# Kernel function instrumentation options: ftrace, gprof
KFI ?=
TRAP_USER_ACCESS ?= 0