diff options
author | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2011-01-24 07:03:11 +0100 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2011-01-24 07:04:14 +0100 |
commit | 1b108126c12b97c379a899bc3d2dba1b65ef59df (patch) | |
tree | 9ecc2ca4e3b8d4dccb44b90e46b09c0081677082 /os | |
parent | d111373489fb9d6e842a298d83399dab25fe6aa9 (diff) |
Adding skeleton OS directory, and fixing the ldscript.
Diffstat (limited to 'os')
-rw-r--r-- | os/Makefile | 12 | ||||
-rw-r--r-- | os/config.mk | 5 | ||||
-rw-r--r-- | os/src/init.c | 0 |
3 files changed, 17 insertions, 0 deletions
diff --git a/os/Makefile b/os/Makefile new file mode 100644 index 0000000..6f6ce2e --- /dev/null +++ b/os/Makefile @@ -0,0 +1,12 @@ +TARGET_LIB = libos.a + +all: $(TARGET_LIB) + +include $(ROOTDIR)/common.mk +include config.mk + +TARGET_SRCS = src/init.c + +include $(ROOTDIR)/target-rules.mk + +clean: clean-generic diff --git a/os/config.mk b/os/config.mk new file mode 100644 index 0000000..dd143ad --- /dev/null +++ b/os/config.mk @@ -0,0 +1,5 @@ +TARGET_INCLUDES += $(ROOTDIR)/os/include + +ifeq ($(USE_MPU),true) +TARGET_CPPFLAGS += -DUSING_MPU=1 +endif diff --git a/os/src/init.c b/os/src/init.c new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/os/src/init.c |