Skip to content

Commit

Permalink
Merge tag 'dm-pull-9jul19-take2' of https://gitlab.denx.de/u-boot/cus…
Browse files Browse the repository at this point in the history
…todians/u-boot-dm

- Sandbox improvements including .dts refactor
- Minor tracing and PCI improvements
- Various other minor fixes
- Conversion of patman, dtoc and binman to support Python 3
  • Loading branch information
trini committed Jul 11, 2019
2 parents 68deea2 + 7ea3357 commit a9758ec
Show file tree
Hide file tree
Showing 74 changed files with 1,580 additions and 990 deletions.
5 changes: 3 additions & 2 deletions arch/sandbox/config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@ PLATFORM_CPPFLAGS += -D__SANDBOX__ -U_FORTIFY_SOURCE
PLATFORM_CPPFLAGS += -DCONFIG_ARCH_MAP_SYSMEM
PLATFORM_CPPFLAGS += -fPIC
PLATFORM_LIBS += -lrt
SDL_CONFIG ?= sdl-config

# 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
else
PLATFORM_LIBS += $(shell sdl-config --libs)
PLATFORM_CPPFLAGS += $(shell sdl-config --cflags)
PLATFORM_LIBS += $(shell $(SDL_CONFIG) --libs)
PLATFORM_CPPFLAGS += $(shell $(SDL_CONFIG) --cflags)
endif

cmd_u-boot__ = $(CC) -o $@ -Wl,-T u-boot.lds $(u-boot-init) \
Expand Down
3 changes: 2 additions & 1 deletion arch/sandbox/cpu/spl.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

DECLARE_GLOBAL_DATA_PTR;

/* SPL / TPL init function */
void board_init_f(ulong flag)
{
struct sandbox_state *state = state_get_current();
Expand Down Expand Up @@ -44,7 +45,7 @@ static int spl_board_load_image(struct spl_image_info *spl_image,

return 0;
}
SPL_LOAD_IMAGE_METHOD("sandbox", 0, BOOT_DEVICE_BOARD, spl_board_load_image);
SPL_LOAD_IMAGE_METHOD("sandbox", 9, BOOT_DEVICE_BOARD, spl_board_load_image);

void spl_board_init(void)
{
Expand Down
1 change: 1 addition & 0 deletions arch/sandbox/cpu/state.c
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,7 @@ void state_reset_for_test(struct sandbox_state *state)
/* No reset yet, so mark it as such. Always allow power reset */
state->last_sysreset = SYSRESET_COUNT;
state->sysreset_allowed[SYSRESET_POWER] = true;
state->sysreset_allowed[SYSRESET_POWER_OFF] = true;

memset(&state->wdt, '\0', sizeof(state->wdt));
memset(state->spi, '\0', sizeof(state->spi));
Expand Down
Loading

0 comments on commit a9758ec

Please sign in to comment.