From d656982f7a113762ac9c26c98dac697137a8a27a Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Sat, 20 Mar 2021 05:16:50 +0800 Subject: [PATCH] build: Remove the null assignment Signed-off-by: Xiang Xiao --- Application.mk | 4 ---- examples/bmi160/Makefile | 2 -- examples/charger/Makefile | 2 -- examples/module/drivers/chardev/Makefile | 3 --- examples/sotest/lib/modprint/Makefile | 3 --- examples/sotest/lib/sotest/Makefile | 3 --- examples/udpblaster/udpblaster.h | 2 +- examples/usbserial/Makefile.host | 1 - modbus/rtu/Make.defs | 2 -- 9 files changed, 1 insertion(+), 21 deletions(-) diff --git a/Application.mk b/Application.mk index d1dba9858..e6f8f6382 100644 --- a/Application.mk +++ b/Application.mk @@ -90,12 +90,8 @@ ifneq ($(BUILD_MODULE),y) OBJS += $(MAINCOBJ) $(MAINCXXOBJ) endif -DEPPATH += --dep-path . -DEPPATH += --obj-path . DEPPATH += --obj-suffix $(SUFFIX)$(OBJEXT) -VPATH += :. - # Targets follow all:: $(OBJS) diff --git a/examples/bmi160/Makefile b/examples/bmi160/Makefile index 45132d872..7fffef840 100644 --- a/examples/bmi160/Makefile +++ b/examples/bmi160/Makefile @@ -44,8 +44,6 @@ STACKSIZE = $(CONFIG_EXAMPLES_SIXAXIS_STACKSIZE) # sixaxis Example -ASRCS = -CSRCS = MAINSRC = sixaxis_main.c include $(APPDIR)/Application.mk diff --git a/examples/charger/Makefile b/examples/charger/Makefile index 052ea02ad..28f4e2364 100644 --- a/examples/charger/Makefile +++ b/examples/charger/Makefile @@ -6,8 +6,6 @@ PROGNAME = $(CONFIG_EXAMPLES_CHARGER_PROGNAME) PRIORITY = $(CONFIG_EXAMPLES_CHARGER_PRIORITY) STACKSIZE = $(CONFIG_EXAMPLES_CHARGER_STACKSIZE) -ASRCS = -CSRCS = MAINSRC = charger_main.c include $(APPDIR)/Application.mk diff --git a/examples/module/drivers/chardev/Makefile b/examples/module/drivers/chardev/Makefile index d6c965018..007e8a62e 100644 --- a/examples/module/drivers/chardev/Makefile +++ b/examples/module/drivers/chardev/Makefile @@ -37,9 +37,6 @@ include $(APPDIR)/Make.defs CMODULEFLAGS += $(KDEFINE) -LDLIBPATH = -LDLIBS = - ifeq ($(CONFIG_EXAMPLES_MODULE_LIBGCC),y) LIBGCC = "${shell $(CC) $(ARCHCPUFLAGS) -print-libgcc-file-name 2>/dev/null}" ifneq ($(LIBGCC),) diff --git a/examples/sotest/lib/modprint/Makefile b/examples/sotest/lib/modprint/Makefile index c4d1d3254..431579713 100644 --- a/examples/sotest/lib/modprint/Makefile +++ b/examples/sotest/lib/modprint/Makefile @@ -35,9 +35,6 @@ include $(APPDIR)/Make.defs -LDLIBPATH = -LDLIBS = - ifeq ($(CONFIG_EXAMPLES_SOTEST_LIBGCC),y) LIBGCC = "${shell $(CC) $(ARCHCPUFLAGS) -print-libgcc-file-name 2>/dev/null}" ifneq ($(LIBGCC),) diff --git a/examples/sotest/lib/sotest/Makefile b/examples/sotest/lib/sotest/Makefile index 31e0208a6..b4fea74e4 100644 --- a/examples/sotest/lib/sotest/Makefile +++ b/examples/sotest/lib/sotest/Makefile @@ -35,9 +35,6 @@ include $(APPDIR)/Make.defs -LDLIBPATH = -LDLIBS = - ifeq ($(CONFIG_EXAMPLES_SOTEST_LIBGCC),y) LIBGCC = "${shell $(CC) $(ARCHCPUFLAGS) -print-libgcc-file-name 2>/dev/null}" ifneq ($(LIBGCC),) diff --git a/examples/udpblaster/udpblaster.h b/examples/udpblaster/udpblaster.h index 68012d44e..4c9cce667 100644 --- a/examples/udpblaster/udpblaster.h +++ b/examples/udpblaster/udpblaster.h @@ -1,5 +1,5 @@ /**************************************************************************** - * examples/udpblaster/udpblaster.h + * apps/examples/udpblaster/udpblaster.h * * Copyright (C) 2015, 2018 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/examples/usbserial/Makefile.host b/examples/usbserial/Makefile.host index 1811741c5..f6234bca0 100644 --- a/examples/usbserial/Makefile.host +++ b/examples/usbserial/Makefile.host @@ -40,7 +40,6 @@ include $(APPDIR)/Make.defs SRC = host.c BIN = host$(HOSTEXEEXT) -DEFINES = ifeq ($(CONFIG_EXAMPLES_USBSERIAL_INONLY),y) DEFINES += -DCONFIG_EXAMPLES_USBSERIAL_INONLY=1 endif diff --git a/modbus/rtu/Make.defs b/modbus/rtu/Make.defs index b17aa4fdb..0c67b1806 100644 --- a/modbus/rtu/Make.defs +++ b/modbus/rtu/Make.defs @@ -33,8 +33,6 @@ # ############################################################################ -compile_rtu= - ifeq ($(CONFIG_MB_RTU_ENABLED),y) compile_rtu=yes endif