artik053: sidk_s5jt200: remove .o file at 'make clean'
authorJunhwan Park <junhwan.park@samsung.com>
Mon, 8 May 2017 06:36:36 +0000 (15:36 +0900)
committersunghan <sh924.chang@samsung.com>
Thu, 11 May 2017 11:04:32 +0000 (20:04 +0900)
After BOARDCTL was added, the object file was not deleted from the clean
operation. This patch contains fixes for those bugs.

Change-Id: Idf549abfce1b62b05886c3012de86560b6f3b816
Signed-off-by: Junhwan Park <junhwan.park@samsung.com>
os/arch/arm/src/artik053/src/Makefile
os/arch/arm/src/sidk_s5jt200/src/Makefile

index 95ae9bc..7d98d46 100644 (file)
@@ -69,7 +69,8 @@ endif
 
 # boardctl support
 ifeq ($(CONFIG_LIB_BOARDCTL),y)
-CSRCS += $(TOPDIR)/arch/boardctl.c
+VPATH += :$(TOPDIR)/arch
+CSRCS += boardctl.c
 endif
 
 COBJS = $(CSRCS:.c=$(OBJEXT))
index 89691bb..1e83de8 100644 (file)
@@ -87,7 +87,8 @@ endif
 
 # boardctl support
 ifeq ($(CONFIG_LIB_BOARDCTL),y)
-CSRCS += $(TOPDIR)/arch/boardctl.c
+VPATH += :$(TOPDIR)/arch
+CSRCS += boardctl.c
 endif
 
 COBJS = $(CSRCS:.c=$(OBJEXT))