multi-app based on nrf52sdk

This commit is contained in:
Thomas Klaehn
2020-03-14 11:14:55 +01:00
parent 2bea1ae46a
commit b036e646b9
18 changed files with 3557 additions and 800 deletions

View File

@@ -1,8 +1,8 @@
.DEFAULT_GOAL := all
APPLICATION ?= button
APPLICATION ?= blinky
PLATFORM ?= posix
PLATFORM ?= nrf52
TARGET_FILE ?= $(APPLICATION).elf
CC = $(CROSS_COMPILE)gcc
@@ -27,6 +27,7 @@ TARGET_PACKAGE = $(patsubst %.hex,%.zip,$(TARGET_HEX))
THIS_MAKEFILE := $(lastword $(MAKEFILE_LIST))
INCLUDES += include/
INCLUDES += include/application/$(APPLICATION)
OPT = 3
C_FLAGS += -O$(OPT) -g$(OPT)
@@ -35,7 +36,7 @@ C_FLAGS += -ffunction-sections -fdata-sections -fno-strict-aliasing
LIBS += c nosys m
include Makefile.$(PLATFORM)
include config/build/$(PLATFORM)/$(APPLICATION)/Makefile.$(APPLICATION)
.PHONY: all install uninstall clean distclean debug
all: $(TARGET)