diff options
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 |