From 668852b23bf02a04f59d85f2dc9ebf6520a9a370 Mon Sep 17 00:00:00 2001 From: Attila BODY Date: Tue, 17 Dec 2019 17:53:26 +0100 Subject: [PATCH] re-structured f4ll_c (introducing src, inc) --- component.mk | 3 ++- f4ll_c | 1 - consolehandler.h => inc/f4ll_c/consolehandler.h | 0 crcscheduler.h => inc/f4ll_c/crcscheduler.h | 0 dmahelper.h => inc/f4ll_c/dmahelper.h | 0 memcpydma.h => inc/f4ll_c/memcpydma.h | 0 packetusart.h => inc/f4ll_c/packetusart.h | 0 strutil.h => inc/f4ll_c/strutil.h | 0 consolehandler.c => src/consolehandler.c | 0 crcscheduler.c => src/crcscheduler.c | 0 dmahelper.c => src/dmahelper.c | 0 memcpydma.c => src/memcpydma.c | 0 packetusart.c => src/packetusart.c | 0 strutil.c => src/strutil.c | 0 test.mk | 3 ++- 15 files changed, 4 insertions(+), 3 deletions(-) delete mode 120000 f4ll_c rename consolehandler.h => inc/f4ll_c/consolehandler.h (100%) rename crcscheduler.h => inc/f4ll_c/crcscheduler.h (100%) rename dmahelper.h => inc/f4ll_c/dmahelper.h (100%) rename memcpydma.h => inc/f4ll_c/memcpydma.h (100%) rename packetusart.h => inc/f4ll_c/packetusart.h (100%) rename strutil.h => inc/f4ll_c/strutil.h (100%) rename consolehandler.c => src/consolehandler.c (100%) rename crcscheduler.c => src/crcscheduler.c (100%) rename dmahelper.c => src/dmahelper.c (100%) rename memcpydma.c => src/memcpydma.c (100%) rename packetusart.c => src/packetusart.c (100%) rename strutil.c => src/strutil.c (100%) diff --git a/component.mk b/component.mk index 5534909..677a34c 100644 --- a/component.mk +++ b/component.mk @@ -4,7 +4,8 @@ ifeq ($(MKDBG), 1) $(info >>> $(REL_DIR)/component.mk) endif -$(eval C_SOURCES += $(wildcard $(REL_DIR)/*.c)) +$(eval C_SOURCES += $(wildcard $(REL_DIR)/src/*.c)) +$(eval COMMON_INCLUDES += -I$(REL_DIR)/inc) ifeq ($(MKDBG), 1) $(info <<<) diff --git a/f4ll_c b/f4ll_c deleted file mode 120000 index 945c9b4..0000000 --- a/f4ll_c +++ /dev/null @@ -1 +0,0 @@ -. \ No newline at end of file diff --git a/consolehandler.h b/inc/f4ll_c/consolehandler.h similarity index 100% rename from consolehandler.h rename to inc/f4ll_c/consolehandler.h diff --git a/crcscheduler.h b/inc/f4ll_c/crcscheduler.h similarity index 100% rename from crcscheduler.h rename to inc/f4ll_c/crcscheduler.h diff --git a/dmahelper.h b/inc/f4ll_c/dmahelper.h similarity index 100% rename from dmahelper.h rename to inc/f4ll_c/dmahelper.h diff --git a/memcpydma.h b/inc/f4ll_c/memcpydma.h similarity index 100% rename from memcpydma.h rename to inc/f4ll_c/memcpydma.h diff --git a/packetusart.h b/inc/f4ll_c/packetusart.h similarity index 100% rename from packetusart.h rename to inc/f4ll_c/packetusart.h diff --git a/strutil.h b/inc/f4ll_c/strutil.h similarity index 100% rename from strutil.h rename to inc/f4ll_c/strutil.h diff --git a/consolehandler.c b/src/consolehandler.c similarity index 100% rename from consolehandler.c rename to src/consolehandler.c diff --git a/crcscheduler.c b/src/crcscheduler.c similarity index 100% rename from crcscheduler.c rename to src/crcscheduler.c diff --git a/dmahelper.c b/src/dmahelper.c similarity index 100% rename from dmahelper.c rename to src/dmahelper.c diff --git a/memcpydma.c b/src/memcpydma.c similarity index 100% rename from memcpydma.c rename to src/memcpydma.c diff --git a/packetusart.c b/src/packetusart.c similarity index 100% rename from packetusart.c rename to src/packetusart.c diff --git a/strutil.c b/src/strutil.c similarity index 100% rename from strutil.c rename to src/strutil.c diff --git a/test.mk b/test.mk index 7c99a04..e58eb5e 100644 --- a/test.mk +++ b/test.mk @@ -4,7 +4,8 @@ ifeq ($(MKDBG), 1) $(info >>> $(REL_DIR)/component.mk) endif -$(eval C_SOURCES += $(wildcard $(REL_DIR)/*.c)) +$(eval C_SOURCES += $(wildcard $(REL_DIR)/src/*.c)) +$(eval COMMON_INCLUDES += -I$(REL_DIR)/inc) $(eval CXX_SOURCES += $(wildcard $(REL_DIR)/test/*.cpp)) ifeq ($(MKDBG), 1)