]> git.sur5r.net Git - u-boot/blobdiff - arch/sandbox/config.mk
dm: syscon: Add support for of-platdata
[u-boot] / arch / sandbox / config.mk
index b05a90fb18593b79656b2109d80b847bcc93af47..6d62abb0352492b7b2f19fcab60a43d001ad5d62 100644 (file)
@@ -16,8 +16,13 @@ PLATFORM_CPPFLAGS += $(shell sdl-config --cflags)
 endif
 endif
 
-cmd_u-boot__ = $(CC) -o $@ -T u-boot.lds \
+cmd_u-boot__ = $(CC) -o $@ -Wl,-T u-boot.lds \
        -Wl,--start-group $(u-boot-main) -Wl,--end-group \
        $(PLATFORM_LIBS) -Wl,-Map -Wl,u-boot.map
 
+cmd_u-boot-spl = (cd $(obj) && $(CC) -o $(SPL_BIN) -Wl,-T u-boot-spl.lds \
+       -Wl,--start-group $(patsubst $(obj)/%,%,$(u-boot-spl-main)) \
+       $(patsubst $(obj)/%,%,$(u-boot-spl-platdata)) -Wl,--end-group \
+       $(PLATFORM_LIBS) -Wl,-Map -Wl,u-boot-spl.map -Wl,--gc-sections)
+
 CONFIG_ARCH_DEVICE_TREE := sandbox