summaryrefslogtreecommitdiffstats
path: root/arch/sandbox/os/Makefile
blob: 28ecc093af62f2a06476e19868414d1aac6f5d87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
machine-y := sandbox

machdirs := $(patsubst %,arch/sandbox/mach-%/,$(machine-y))

KBUILD_CPPFLAGS = $(patsubst %,-I$(srctree)/%include,$(machdirs))

KBUILD_CPPFLAGS += -DCONFIG_MALLOC_SIZE=$(CONFIG_MALLOC_SIZE)

ifeq ($(CONFIG_KASAN),y)
KBUILD_CPPFLAGS += -DCONFIG_KASAN=1
endif

KBUILD_CFLAGS += -Wall
NOSTDINC_FLAGS :=

obj-y = common.o tap.o
obj-$(CONFIG_MALLOC_LIBC) += libc_malloc.o

CFLAGS_sdl.o = $(shell pkg-config sdl --cflags)
obj-$(CONFIG_DRIVER_VIDEO_SDL) += sdl.o

CFLAGS_ftdi.o = $(shell pkg-config libftdi1 --cflags)
obj-$(CONFIG_GPIO_LIBFTDI1) += ftdi.o