config.mk 788 B

1234567891011121314151617181920212223242526
  1. # Copyright (c) 2011 The Chromium OS Authors.
  2. # SPDX-License-Identifier: GPL-2.0+
  3. PLATFORM_CPPFLAGS += -D__SANDBOX__ -U_FORTIFY_SOURCE
  4. PLATFORM_CPPFLAGS += -DCONFIG_ARCH_MAP_SYSMEM -DCONFIG_SYS_GENERIC_BOARD
  5. PLATFORM_LIBS += -lrt
  6. ifdef CONFIG_SANDBOX_SDL
  7. PLATFORM_LIBS += $(shell sdl-config --libs)
  8. PLATFORM_CPPFLAGS += $(shell sdl-config --cflags)
  9. endif
  10. # Support generic board on sandbox
  11. __HAVE_ARCH_GENERIC_BOARD := y
  12. cmd_u-boot__ = $(CC) -o $@ -T u-boot.lds \
  13. -Wl,--start-group $(u-boot-main) -Wl,--end-group \
  14. $(PLATFORM_LIBS) -Wl,-Map -Wl,u-boot.map
  15. CONFIG_ARCH_DEVICE_TREE := sandbox
  16. # Define this to avoid linking with SDL, which requires SDL libraries
  17. # This can solve 'sdl-config: Command not found' errors
  18. ifneq ($(NO_SDL),)
  19. PLATFORM_CPPFLAGS += -DSANDBOX_NO_SDL
  20. endif