From c2534ad8f31ab25e9d13a2fec3b306bbe3b6060e Mon Sep 17 00:00:00 2001 From: Kaspar Schleiser Date: Fri, 31 Jan 2020 13:54:38 +0100 Subject: [PATCH] core: turn panic.c into a submodule --- bootloaders/riotboot/Makefile | 2 +- core/Makefile | 2 +- makefiles/defaultmodules.inc.mk | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bootloaders/riotboot/Makefile b/bootloaders/riotboot/Makefile index cc338c33f5..34c96a2861 100644 --- a/bootloaders/riotboot/Makefile +++ b/bootloaders/riotboot/Makefile @@ -14,7 +14,7 @@ CFLAGS += -DRIOTBOOT # Disable unused modules CFLAGS += -DNDEBUG -DLOG_LEVEL=LOG_NONE -DISABLE_MODULE += core_init core_msg +DISABLE_MODULE += core_init core_msg core_panic DISABLE_MODULE += auto_init # Include riotboot flash partition functionality diff --git a/core/Makefile b/core/Makefile index 9383204d8a..152a2851c4 100644 --- a/core/Makefile +++ b/core/Makefile @@ -1,5 +1,5 @@ # exclude submodule sources from *.c wildcard source selection -SRC := $(filter-out init.c mbox.c msg.c thread_flags.c,$(wildcard *.c)) +SRC := $(filter-out init.c mbox.c msg.c panic.c thread_flags.c,$(wildcard *.c)) # enable submodules SUBMODULES := 1 diff --git a/makefiles/defaultmodules.inc.mk b/makefiles/defaultmodules.inc.mk index 9ca1ac6c74..3f770093a8 100644 --- a/makefiles/defaultmodules.inc.mk +++ b/makefiles/defaultmodules.inc.mk @@ -1,3 +1,3 @@ -DEFAULT_MODULE += board cpu core core_init core_msg sys +DEFAULT_MODULE += board cpu core core_init core_msg core_panic sys DEFAULT_MODULE += auto_init