mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-05 02:51:00 +00:00
bbc09bf27e
SDL (Simple DirectMedia Layer - see www.libsdl.org) is a library which provides simple graphics and sound features. It works under X11 and also with a simple frame buffer interface. It is ideally suited to sandbox U-Boot since it fits nicely with the low-level feature set required by U-Boot. For example, U-Boot has its own font drawing routines, its own keyboard processing and just needs raw sound output. We can use SDL to provide emulation of these basic functions for sandbox. This significantly expands the testing that is possible with sandbox. Add a basic SDL library which we will use in future commits. Tested-by: Che-Liang Chiou <clchiou@chromium.org> Signed-off-by: Simon Glass <sjg@chromium.org>
20 lines
615 B
Makefile
20 lines
615 B
Makefile
# Copyright (c) 2011 The Chromium OS Authors.
|
|
# SPDX-License-Identifier: GPL-2.0+
|
|
|
|
PLATFORM_CPPFLAGS += -DCONFIG_SANDBOX -D__SANDBOX__ -U_FORTIFY_SOURCE
|
|
PLATFORM_CPPFLAGS += -DCONFIG_ARCH_MAP_SYSMEM -DCONFIG_SYS_GENERIC_BOARD
|
|
PLATFORM_LIBS += -lrt
|
|
|
|
ifdef CONFIG_SANDBOX_SDL
|
|
PLATFORM_LIBS += $(shell sdl-config --libs)
|
|
PLATFORM_CPPFLAGS += $(shell sdl-config --cflags)
|
|
endif
|
|
|
|
# Support generic board on sandbox
|
|
__HAVE_ARCH_GENERIC_BOARD := y
|
|
|
|
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
|
|
|
|
CONFIG_ARCH_DEVICE_TREE := sandbox
|