11a459660SWolfgang Denk# SPDX-License-Identifier: GPL-2.0+ 283d290c5STom Rini# Copyright (c) 2011 The Chromium OS Authors. 34b0730d2SSimon Glass 490f984e3SMasahiro YamadaPLATFORM_CPPFLAGS += -D__SANDBOX__ -U_FORTIFY_SOURCE 50a9e7ee5SMasahiro YamadaPLATFORM_CPPFLAGS += -DCONFIG_ARCH_MAP_SYSMEM 6e599c4e7SAndy ShevchenkoPLATFORM_CPPFLAGS += -fPIC 7d99a6874SMatthias WeisserPLATFORM_LIBS += -lrt 8a733b06bSSimon Glass 9e50ab229SSimon Glass# Define this to avoid linking with SDL, which requires SDL libraries 10e50ab229SSimon Glass# This can solve 'sdl-config: Command not found' errors 11e50ab229SSimon Glassifneq ($(NO_SDL),) 12e50ab229SSimon GlassPLATFORM_CPPFLAGS += -DSANDBOX_NO_SDL 13e50ab229SSimon Glasselse 14bbc09bf2SSimon GlassPLATFORM_LIBS += $(shell sdl-config --libs) 15bbc09bf2SSimon GlassPLATFORM_CPPFLAGS += $(shell sdl-config --cflags) 16bbc09bf2SSimon Glassendif 17bbc09bf2SSimon Glass 18*40e9ede1SSimon Glasscmd_u-boot__ = $(CC) -o $@ -Wl,-T u-boot.lds $(u-boot-init) \ 19ad0fed46SMasahiro Yamada -Wl,--start-group $(u-boot-main) -Wl,--end-group \ 20ad0fed46SMasahiro Yamada $(PLATFORM_LIBS) -Wl,-Map -Wl,u-boot.map 21714a5621SSimon Glass 224cfc4167SSimon Glasscmd_u-boot-spl = (cd $(obj) && $(CC) -o $(SPL_BIN) -Wl,-T u-boot-spl.lds \ 23*40e9ede1SSimon Glass $(patsubst $(obj)/%,%,$(u-boot-spl-init)) \ 244cfc4167SSimon Glass -Wl,--start-group $(patsubst $(obj)/%,%,$(u-boot-spl-main)) \ 254cfc4167SSimon Glass $(patsubst $(obj)/%,%,$(u-boot-spl-platdata)) -Wl,--end-group \ 264cfc4167SSimon Glass $(PLATFORM_LIBS) -Wl,-Map -Wl,u-boot-spl.map -Wl,--gc-sections) 274cfc4167SSimon Glass 28714a5621SSimon GlassCONFIG_ARCH_DEVICE_TREE := sandbox 29