Remove obsolete flag AUTOSTART_ENABLE, as well as .co and .ce files
This commit is contained in:
parent
624925d5bd
commit
84ea0971bc
@ -8,7 +8,7 @@ endif
|
|||||||
# Setting this option is also important for tests on Cooja motes to check for warnings.
|
# Setting this option is also important for tests on Cooja motes to check for warnings.
|
||||||
WERROR ?= 1
|
WERROR ?= 1
|
||||||
|
|
||||||
include $(CONTIKI)/Makefile.identify-target
|
include $(CONTIKI)/Makefile.identify-target
|
||||||
|
|
||||||
ifeq ($(DEFINES),)
|
ifeq ($(DEFINES),)
|
||||||
-include Makefile.$(TARGET).defines
|
-include Makefile.$(TARGET).defines
|
||||||
@ -241,7 +241,6 @@ clean:
|
|||||||
-rm -f *~ *core core *.srec \
|
-rm -f *~ *core core *.srec \
|
||||||
*.lst *.map \
|
*.lst *.map \
|
||||||
*.cprg *.bin *.data contiki*.a *.firmware core-labels.S *.ihex *.ini \
|
*.cprg *.bin *.data contiki*.a *.firmware core-labels.S *.ihex *.ini \
|
||||||
*.ce *.co
|
|
||||||
rm -rf $(CLEAN)
|
rm -rf $(CLEAN)
|
||||||
-rm -rf $(OBJECTDIR)
|
-rm -rf $(OBJECTDIR)
|
||||||
|
|
||||||
@ -250,13 +249,6 @@ distclean: clean
|
|||||||
|
|
||||||
-include $(CONTIKI)/arch/platform/$(TARGET)/Makefile.customrules-$(TARGET)
|
-include $(CONTIKI)/arch/platform/$(TARGET)/Makefile.customrules-$(TARGET)
|
||||||
|
|
||||||
ifndef CUSTOM_RULE_C_TO_CE
|
|
||||||
%.ce: %.c
|
|
||||||
$(TRACE_CC)
|
|
||||||
$(Q)$(CC) $(CFLAGS) -DAUTOSTART_ENABLE -c $< -o $@
|
|
||||||
$(STRIP) --strip-unneeded -g -x $@
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifndef CUSTOM_RULE_C_TO_OBJECTDIR_O
|
ifndef CUSTOM_RULE_C_TO_OBJECTDIR_O
|
||||||
$(OBJECTDIR)/%.o: %.c | $(OBJECTDIR)
|
$(OBJECTDIR)/%.o: %.c | $(OBJECTDIR)
|
||||||
$(TRACE_CC)
|
$(TRACE_CC)
|
||||||
@ -300,12 +292,6 @@ ifndef CUSTOM_RULE_C_TO_E
|
|||||||
$(Q)$(CC) $(CFLAGS) -E $< -o $@
|
$(Q)$(CC) $(CFLAGS) -E $< -o $@
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifndef CUSTOM_RULE_C_TO_CO
|
|
||||||
%.co: %.c
|
|
||||||
$(TRACE_CC)
|
|
||||||
$(Q)$(CC) $(CFLAGS) -DAUTOSTART_ENABLE -c $< -o $@
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifndef AROPTS
|
ifndef AROPTS
|
||||||
AROPTS = rcf
|
AROPTS = rcf
|
||||||
endif
|
endif
|
||||||
@ -321,7 +307,7 @@ ifndef LD
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
ifndef CUSTOM_RULE_LINK
|
ifndef CUSTOM_RULE_LINK
|
||||||
%.$(TARGET): %.co $(PROJECT_OBJECTFILES) $(PROJECT_LIBRARIES) contiki-$(TARGET).a
|
%.$(TARGET): %.o $(PROJECT_OBJECTFILES) $(PROJECT_LIBRARIES) contiki-$(TARGET).a
|
||||||
$(TRACE_LD)
|
$(TRACE_LD)
|
||||||
$(Q)$(LD) $(LDFLAGS) $(TARGET_STARTFILES) ${filter-out %.a,$^} \
|
$(Q)$(LD) $(LDFLAGS) $(TARGET_STARTFILES) ${filter-out %.a,$^} \
|
||||||
${filter %.a,$^} $(TARGET_LIBFILES) -o $@
|
${filter %.a,$^} $(TARGET_LIBFILES) -o $@
|
||||||
|
@ -19,7 +19,7 @@ CUSTOM_RULE_LINK = 1
|
|||||||
|
|
||||||
.SECONDEXPANSION:
|
.SECONDEXPANSION:
|
||||||
|
|
||||||
%.elf: $(CPU_STARTFILES) $$(CONTIKI_OBJECTFILES) %.co $(PROJECT_OBJECTFILES) $(PROJECT_LIBRARIES) $(LDSCRIPT)
|
%.elf: $(CPU_STARTFILES) $$(CONTIKI_OBJECTFILES) %.o $(PROJECT_OBJECTFILES) $(PROJECT_LIBRARIES) $(LDSCRIPT)
|
||||||
$(TRACE_LD)
|
$(TRACE_LD)
|
||||||
$(Q)$(LD) $(LDFLAGS) ${filter-out $(LDSCRIPT) %.a,$^} ${filter %.a,$^} $(TARGET_LIBFILES) -lm -o $@
|
$(Q)$(LD) $(LDFLAGS) ${filter-out $(LDSCRIPT) %.a,$^} ${filter %.a,$^} $(TARGET_LIBFILES) -lm -o $@
|
||||||
|
|
||||||
|
@ -6,8 +6,8 @@ LDFLAGS += -mcpu=cortex-m4
|
|||||||
### Compilation rules
|
### Compilation rules
|
||||||
CUSTOM_RULE_LINK=1
|
CUSTOM_RULE_LINK=1
|
||||||
|
|
||||||
%.elf: $(TARGET_STARTFILES) %.co $(PROJECT_OBJECTFILES) $(PROJECT_LIBRARIES) contiki-$(TARGET).a $(TARGET_LIBS)
|
%.elf: $(TARGET_STARTFILES) %.o $(PROJECT_OBJECTFILES) $(PROJECT_LIBRARIES) contiki-$(TARGET).a $(TARGET_LIBS)
|
||||||
$(TRACE_LD)
|
$(TRACE_LD)
|
||||||
$(Q)$(CC) $(LDFLAGS) ${filter %o %.co %.a,$^} -o $@
|
$(Q)$(CC) $(LDFLAGS) ${filter %.o %.a,$^} -o $@
|
||||||
|
|
||||||
include $(CONTIKI)/arch/cpu/arm/cortex-m/Makefile.cortex-m
|
include $(CONTIKI)/arch/cpu/arm/cortex-m/Makefile.cortex-m
|
||||||
|
@ -108,11 +108,6 @@ ifeq ($(HOST_OS),Windows)
|
|||||||
@$(FINALIZE_CYGWIN_DEPENDENCY)
|
@$(FINALIZE_CYGWIN_DEPENDENCY)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
CUSTOM_RULE_C_TO_CO = 1
|
|
||||||
%.co: %.c
|
|
||||||
$(TRACE_CC)
|
|
||||||
$(Q)$(CC) $(CFLAGS) -DAUTOSTART_ENABLE $< -o $@
|
|
||||||
|
|
||||||
AROPTS = -o
|
AROPTS = -o
|
||||||
|
|
||||||
else
|
else
|
||||||
@ -195,10 +190,6 @@ PROJECT_OBJECTFILES += ${addprefix $(OBJECTDIR)/,$(CONTIKI_TARGET_MAIN:.c=.o)}
|
|||||||
$(CC) $(CFLAGS) -c $< -o $@
|
$(CC) $(CFLAGS) -c $< -o $@
|
||||||
$(STRIP) --strip-unneeded -g -x $@
|
$(STRIP) --strip-unneeded -g -x $@
|
||||||
|
|
||||||
%.cm: %.co
|
|
||||||
$(LD) -i -r --unresolved-symbols=ignore-in-object-files -mmsp430x149 -o $@ $^
|
|
||||||
$(STRIP) --strip-unneeded -g -x $@
|
|
||||||
|
|
||||||
%-stripped.o: %.o
|
%-stripped.o: %.o
|
||||||
$(STRIP) --strip-unneeded -g -x -o $@ $<
|
$(STRIP) --strip-unneeded -g -x -o $@ $<
|
||||||
|
|
||||||
@ -206,7 +197,7 @@ PROJECT_OBJECTFILES += ${addprefix $(OBJECTDIR)/,$(CONTIKI_TARGET_MAIN:.c=.o)}
|
|||||||
mv $< $@
|
mv $< $@
|
||||||
|
|
||||||
ifdef IAR
|
ifdef IAR
|
||||||
%.ihex: %.co $(PROJECT_OBJECTFILES) $(PROJECT_LIBRARIES) contiki-$(TARGET).a
|
%.ihex: %.o $(PROJECT_OBJECTFILES) $(PROJECT_LIBRARIES) contiki-$(TARGET).a
|
||||||
$(LD) $(LDFLAGSNO) -Fintel-extended $(TARGET_STARTFILES) ${filter-out %.a,$^} ${filter %.a,$^} $(TARGET_LIBFILES) -o $@
|
$(LD) $(LDFLAGSNO) -Fintel-extended $(TARGET_STARTFILES) ${filter-out %.a,$^} ${filter %.a,$^} $(TARGET_LIBFILES) -o $@
|
||||||
else
|
else
|
||||||
%.ihex: %.$(TARGET)
|
%.ihex: %.$(TARGET)
|
||||||
|
@ -38,7 +38,7 @@ endif ## QUICKSTART
|
|||||||
MAIN_OBJ = $(OBJECTDIR)/$(LIBNAME).o
|
MAIN_OBJ = $(OBJECTDIR)/$(LIBNAME).o
|
||||||
ARCHIVE = $(OBJECTDIR)/$(LIBNAME).a
|
ARCHIVE = $(OBJECTDIR)/$(LIBNAME).a
|
||||||
JNILIB = $(OBJECTDIR)/$(LIBNAME).$(TARGET)
|
JNILIB = $(OBJECTDIR)/$(LIBNAME).$(TARGET)
|
||||||
CONTIKI_APP_OBJ = $(CONTIKI_APP).co
|
CONTIKI_APP_OBJ = $(CONTIKI_APP).o
|
||||||
|
|
||||||
# Modules
|
# Modules
|
||||||
MODULES += os/net os/net/mac os/net/mac/framer
|
MODULES += os/net os/net/mac os/net/mac/framer
|
||||||
|
@ -45,7 +45,6 @@
|
|||||||
#include "sys/clock.h"
|
#include "sys/clock.h"
|
||||||
#include "sys/etimer.h"
|
#include "sys/etimer.h"
|
||||||
#include "sys/cooja_mt.h"
|
#include "sys/cooja_mt.h"
|
||||||
#include "sys/autostart.h"
|
|
||||||
#include "sys/log.h"
|
#include "sys/log.h"
|
||||||
|
|
||||||
#include "lib/random.h"
|
#include "lib/random.h"
|
||||||
|
@ -236,7 +236,7 @@ ABS_APPLIBS = $(addsuffix _$(JENNIC_CHIP_FAMILY).a,$(addprefix $(COMPONENTS_BASE
|
|||||||
|
|
||||||
ifneq ($(wildcard $(SDK_BASE_DIR)/Components/Library/*),)
|
ifneq ($(wildcard $(SDK_BASE_DIR)/Components/Library/*),)
|
||||||
# The SDK is fully installed, proceed to linking and objcopy to ready-to-upload .jn516x.bin file
|
# The SDK is fully installed, proceed to linking and objcopy to ready-to-upload .jn516x.bin file
|
||||||
%.$(TARGET): %.co $(PROJECT_OBJECTFILES) $(PROJECT_LIBRARIES) contiki-$(TARGET).a $(ABS_APPLIBS)
|
%.$(TARGET): %.o $(PROJECT_OBJECTFILES) $(PROJECT_LIBRARIES) contiki-$(TARGET).a $(ABS_APPLIBS)
|
||||||
echo ${filter %.a,$^}
|
echo ${filter %.a,$^}
|
||||||
$(Q)$(CC) -Wl,--gc-sections $(LDFLAGS) -T$(LINKCMD) -o $@ -Wl,--start-group \
|
$(Q)$(CC) -Wl,--gc-sections $(LDFLAGS) -T$(LINKCMD) -o $@ -Wl,--start-group \
|
||||||
$(patsubst /cygdrive/c/%,c:/%,${filter-out %.a,$^}) \
|
$(patsubst /cygdrive/c/%,c:/%,${filter-out %.a,$^}) \
|
||||||
@ -245,7 +245,7 @@ ifneq ($(wildcard $(SDK_BASE_DIR)/Components/Library/*),)
|
|||||||
$(OBJCOPY) -S -O binary $@ $@.bin
|
$(OBJCOPY) -S -O binary $@ $@.bin
|
||||||
else
|
else
|
||||||
# The SDK does not include libraries, only build objects and libraries, skip linking
|
# The SDK does not include libraries, only build objects and libraries, skip linking
|
||||||
%.$(TARGET): %.co $(PROJECT_OBJECTFILES) $(PROJECT_LIBRARIES) contiki-$(TARGET).a
|
%.$(TARGET): %.o $(PROJECT_OBJECTFILES) $(PROJECT_LIBRARIES) contiki-$(TARGET).a
|
||||||
echo Creating empty $@
|
echo Creating empty $@
|
||||||
touch $@
|
touch $@
|
||||||
endif
|
endif
|
||||||
|
@ -51,7 +51,6 @@
|
|||||||
#include "sys/node-id.h"
|
#include "sys/node-id.h"
|
||||||
#include "cfs-coffee-arch.h"
|
#include "cfs-coffee-arch.h"
|
||||||
#include "cfs/cfs-coffee.h"
|
#include "cfs/cfs-coffee.h"
|
||||||
#include "sys/autostart.h"
|
|
||||||
|
|
||||||
#if DCOSYNCH_CONF_ENABLED
|
#if DCOSYNCH_CONF_ENABLED
|
||||||
static struct timer mgt_timer;
|
static struct timer mgt_timer;
|
||||||
|
@ -37,12 +37,12 @@
|
|||||||
#include "contiki.h"
|
#include "contiki.h"
|
||||||
#include "unit-test.h"
|
#include "unit-test.h"
|
||||||
|
|
||||||
/* Register two unit tests that will be executed by using
|
/* Register two unit tests that will be executed by using
|
||||||
the UNIT_TEST_RUN macro. */
|
the UNIT_TEST_RUN macro. */
|
||||||
UNIT_TEST_REGISTER(arithmetic, "Arith ops");
|
UNIT_TEST_REGISTER(arithmetic, "Arith ops");
|
||||||
UNIT_TEST_REGISTER(string, "String ops");
|
UNIT_TEST_REGISTER(string, "String ops");
|
||||||
|
|
||||||
/* arithmetic: Demonstrates a test that succeeds. The exit point will be
|
/* arithmetic: Demonstrates a test that succeeds. The exit point will be
|
||||||
the line where UNIT_TEST_END is called. */
|
the line where UNIT_TEST_END is called. */
|
||||||
UNIT_TEST(arithmetic)
|
UNIT_TEST(arithmetic)
|
||||||
{
|
{
|
||||||
@ -58,7 +58,7 @@ UNIT_TEST(arithmetic)
|
|||||||
UNIT_TEST_END();
|
UNIT_TEST_END();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* string: Demonstrates a test that fails. The exit point will be
|
/* string: Demonstrates a test that fails. The exit point will be
|
||||||
the line where the call to UNIT_TEST_ASSERT fails. */
|
the line where the call to UNIT_TEST_ASSERT fails. */
|
||||||
UNIT_TEST(string)
|
UNIT_TEST(string)
|
||||||
{
|
{
|
||||||
@ -72,7 +72,6 @@ UNIT_TEST(string)
|
|||||||
}
|
}
|
||||||
|
|
||||||
PROCESS(test_process, "Unit testing");
|
PROCESS(test_process, "Unit testing");
|
||||||
AUTOSTART_PROCESSES(&test_process);
|
|
||||||
|
|
||||||
PROCESS_THREAD(test_process, ev, data)
|
PROCESS_THREAD(test_process, ev, data)
|
||||||
{
|
{
|
||||||
|
@ -44,13 +44,8 @@
|
|||||||
#include "sys/process.h"
|
#include "sys/process.h"
|
||||||
|
|
||||||
#if ! CC_NO_VA_ARGS
|
#if ! CC_NO_VA_ARGS
|
||||||
#if AUTOSTART_ENABLE
|
|
||||||
#define AUTOSTART_PROCESSES(...) \
|
#define AUTOSTART_PROCESSES(...) \
|
||||||
struct process * const autostart_processes[] = {__VA_ARGS__, NULL}
|
struct process * const autostart_processes[] = {__VA_ARGS__, NULL}
|
||||||
#else /* AUTOSTART_ENABLE */
|
|
||||||
#define AUTOSTART_PROCESSES(...) \
|
|
||||||
extern int _dummy
|
|
||||||
#endif /* AUTOSTART_ENABLE */
|
|
||||||
#else
|
#else
|
||||||
#error "C compiler must support __VA_ARGS__ macro"
|
#error "C compiler must support __VA_ARGS__ macro"
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user