2011-09-26 14:10:39 +00:00
|
|
|
# Copyright (c) 2011 The Chromium OS Authors.
|
2013-07-08 07:37:19 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0+
|
2011-09-26 14:10:39 +00:00
|
|
|
|
2014-07-30 05:08:23 +00:00
|
|
|
PLATFORM_CPPFLAGS += -D__SANDBOX__ -U_FORTIFY_SOURCE
|
2013-04-26 02:53:43 +00:00
|
|
|
PLATFORM_CPPFLAGS += -DCONFIG_ARCH_MAP_SYSMEM -DCONFIG_SYS_GENERIC_BOARD
|
2011-11-29 11:16:40 +00:00
|
|
|
PLATFORM_LIBS += -lrt
|
2013-04-26 02:53:43 +00:00
|
|
|
|
2014-02-27 20:26:17 +00:00
|
|
|
ifdef CONFIG_SANDBOX_SDL
|
|
|
|
PLATFORM_LIBS += $(shell sdl-config --libs)
|
|
|
|
PLATFORM_CPPFLAGS += $(shell sdl-config --cflags)
|
|
|
|
endif
|
|
|
|
|
2013-04-26 02:53:43 +00:00
|
|
|
# Support generic board on sandbox
|
|
|
|
__HAVE_ARCH_GENERIC_BOARD := y
|
2014-02-24 02:12:18 +00:00
|
|
|
|
|
|
|
cmd_u-boot__ = $(CC) -o $@ -T u-boot.lds \
|
|
|
|
-Wl,--start-group $(u-boot-main) -Wl,--end-group \
|
|
|
|
$(PLATFORM_LIBS) -Wl,-Map -Wl,u-boot.map
|
2014-02-26 22:59:14 +00:00
|
|
|
|
|
|
|
CONFIG_ARCH_DEVICE_TREE := sandbox
|
2014-03-22 23:12:58 +00:00
|
|
|
|
|
|
|
# Define this to avoid linking with SDL, which requires SDL libraries
|
|
|
|
# This can solve 'sdl-config: Command not found' errors
|
|
|
|
ifneq ($(NO_SDL),)
|
|
|
|
PLATFORM_CPPFLAGS += -DSANDBOX_NO_SDL
|
|
|
|
endif
|