From 0c84e22aaf71815fb2c4a53ddcec6e07b34a057d Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Sun, 19 Apr 2020 22:41:22 +0800 Subject: [PATCH] example: Remove all APPNAME from Makefile which doesn't use anymore Signed-off-by: Xiang Xiao --- examples/audio_rttl/Makefile | 12 +++--------- examples/bmi160/Makefile | 8 +------- examples/charger/Makefile | 8 +------- 3 files changed, 5 insertions(+), 23 deletions(-) diff --git a/examples/audio_rttl/Makefile b/examples/audio_rttl/Makefile index ad7b4154f..219229064 100644 --- a/examples/audio_rttl/Makefile +++ b/examples/audio_rttl/Makefile @@ -40,12 +40,9 @@ include $(APPDIR)/Make.defs # Audio application info -CONFIG_EXAMPLES_AUDIO_BEEP_PRIORITY ?= SCHED_PRIORITY_DEFAULT -CONFIG_EXAMPLES_AUDIO_BEEP_STACKSIZE ?= 2048 - -APPNAME = audio_rttl -PRIORITY = $(CONFIG_EXAMPLES_AUDIO_BEEP_PRIORITY) -STACKSIZE = $(CONFIG_EXAMPLES_AUDIO_BEEP_STACKSIZE) +PROGNAME = $(CONFIG_EXAMPLES_AUDIO_SOUND_PROGNAME) +PRIORITY = $(CONFIG_EXAMPLES_AUDIO_SOUND_PRIORITY) +STACKSIZE = $(CONFIG_EXAMPLES_AUDIO_SOUND_STACKSIZE) # Audio Example @@ -65,7 +62,4 @@ endif CXXFLAGS += -D_POSIX -CONFIG_EXAMPLES_AUDIO_BEEP_PROGNAME ?= audio_rttl$(EXEEXT) -PROGNAME = $(CONFIG_EXAMPLES_AUDIO_BEEP_PROGNAME) - include $(APPDIR)/Application.mk diff --git a/examples/bmi160/Makefile b/examples/bmi160/Makefile index 367bfc7d3..6bda693cd 100644 --- a/examples/bmi160/Makefile +++ b/examples/bmi160/Makefile @@ -38,10 +38,7 @@ # sixaxis built-in application info -CONFIG_EXAMPLES_SIXAXIS_PRIORITY ?= SCHED_PRIORITY_DEFAULT -CONFIG_EXAMPLES_SIXAXIS_STACKSIZE ?= 2048 - -APPNAME = bmi160 +PROGNAME = $(CONFIG_EXAMPLES_SIXAXIS_PROGNAME) PRIORITY = $(CONFIG_EXAMPLES_SIXAXIS_PRIORITY) STACKSIZE = $(CONFIG_EXAMPLES_SIXAXIS_STACKSIZE) @@ -51,7 +48,4 @@ ASRCS = CSRCS = MAINSRC = sixaxis_main.c -CONFIG_EXAMPLES_SIXAXIS_PROGNAME ?= sixaxis$(EXEEXT) -PROGNAME = $(CONFIG_EXAMPLES_SIXAXIS_PROGNAME) - include $(APPDIR)/Application.mk diff --git a/examples/charger/Makefile b/examples/charger/Makefile index 8c3a3ca3b..31e9fba51 100644 --- a/examples/charger/Makefile +++ b/examples/charger/Makefile @@ -2,10 +2,7 @@ -include $(TOPDIR)/Make.defs -include $(SDKDIR)/Make.defs -CONFIG_EXAMPLES_CHARGER_PRIORITY ?= SCHED_PRIORITY_DEFAULT -CONFIG_EXAMPLES_CHARGER_STACKSIZE ?= 2048 - -APPNAME = charger +PROGNAME = $(CONFIG_EXAMPLES_CHARGER_PROGNAME) PRIORITY = $(CONFIG_EXAMPLES_CHARGER_PRIORITY) STACKSIZE = $(CONFIG_EXAMPLES_CHARGER_STACKSIZE) @@ -13,7 +10,4 @@ ASRCS = CSRCS = MAINSRC = charger_main.c -CONFIG_EXAMPLES_CHARGER_PROGNAME ?= charger$(EXEEXT) -PROGNAME = $(CONFIG_EXAMPLES_CHARGER_PROGNAME) - include $(APPDIR)/Application.mk