summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2011-01-29 19:58:11 -0800
committerPixel <pixel@nobis-crew.org>2011-01-29 19:58:11 -0800
commitdeeefd2e53795500ebb2afcc0b4d97e84eb7f7e9 (patch)
tree6808dbdbf60b53f2febb14be522fd785ac18cadc /Makefile
parentea49b5b3f435bce0a301111fad0738efb0b39e0d (diff)
Adding sample code for the romfs into the demo, and into the makefile.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index d2b5619..194079c 100644
--- a/Makefile
+++ b/Makefile
@@ -2,6 +2,8 @@ TARGET = demo.bin
LIBDEPS = FreeRTOS/libFreeRTOS.a arch/libarch.a os/libos.a
LIBS = -Wl,--start-group -lc $(LIBDEPS) -Wl,--end-group
+TARGET_SRCS = test-romfs.o
+
export ROOTDIR = $(CURDIR)
include common.mk
@@ -38,6 +40,12 @@ tools:
$(E) "[MAKE] Entering tools"
$(Q)$(MAKE) $(MAKE_OPTS) -C tools
+test-romfs.o: tools
+ $(E) "[ROMFS] Building test romfs"
+ $(Q) tools/mkromfs -d test test-romfs.bin
+ $(Q) $(TARGET_OBJCOPY_BIN) --prefix-sections '.romfs' test-romfs.bin test-romfs.o
+ $(Q)$(MAKE) $(MAKE_OPTS) -C tools
+
include FreeRTOS/config.mk
include arch/config.mk
include os/config.mk