mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-19 11:18:28 +00:00
714a5621c2
Add support for building a device tree for sandbox's CONFIG_OF_HOSTFILE option to make it easier to use device tree with sandbox. This adjusts the Makefile to build a u-boot.dtb file which can be passed to sandbox U-Boot with: ./u-boot -d u-boot.dtb Signed-off-by: Simon Glass <sjg@chromium.org>
15 lines
489 B
Makefile
15 lines
489 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
|
|
|
|
# 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
|