mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-08-14 09:28:59 +00:00
Move cc2538 startup-gcc.c to the CPU dir
This commit is contained in:
parent
5e25ca9bf5
commit
96e1647270
@ -58,6 +58,13 @@ DEBUG_IO_SOURCEFILES += dbg-printf.c dbg-snprintf.c dbg-sprintf.c strformat.c
|
|||||||
USB_CORE_SOURCEFILES += usb-core.c cdc-acm.c
|
USB_CORE_SOURCEFILES += usb-core.c cdc-acm.c
|
||||||
USB_ARCH_SOURCEFILES += usb-arch.c usb-serial.c cdc-acm-descriptors.c
|
USB_ARCH_SOURCEFILES += usb-arch.c usb-serial.c cdc-acm-descriptors.c
|
||||||
|
|
||||||
|
ifneq ($(TARGET_START_SOURCEFILES),)
|
||||||
|
CPU_START_SOURCEFILES = TARGET_START_SOURCEFILES
|
||||||
|
else
|
||||||
|
CPU_START_SOURCEFILES = startup-gcc.c
|
||||||
|
endif
|
||||||
|
CPU_STARTFILES = ${addprefix $(OBJECTDIR)/,${call oname, $(CPU_START_SOURCEFILES)}}
|
||||||
|
|
||||||
CONTIKI_SOURCEFILES += $(CONTIKI_CPU_SOURCEFILES) $(DEBUG_IO_SOURCEFILES)
|
CONTIKI_SOURCEFILES += $(CONTIKI_CPU_SOURCEFILES) $(DEBUG_IO_SOURCEFILES)
|
||||||
CONTIKI_SOURCEFILES += $(USB_CORE_SOURCEFILES) $(USB_ARCH_SOURCEFILES)
|
CONTIKI_SOURCEFILES += $(USB_CORE_SOURCEFILES) $(USB_ARCH_SOURCEFILES)
|
||||||
|
|
||||||
@ -74,7 +81,7 @@ $(OBJECTDIR)/ieee-addr.o: ieee-addr.c FORCE | $(OBJECTDIR)
|
|||||||
### Compilation rules
|
### Compilation rules
|
||||||
CUSTOM_RULE_LINK=1
|
CUSTOM_RULE_LINK=1
|
||||||
|
|
||||||
%.elf: $(TARGET_STARTFILES) %.co $(PROJECT_OBJECTFILES) $(PROJECT_LIBRARIES) contiki-$(TARGET).a $(LDSCRIPT)
|
%.elf: $(CPU_STARTFILES) %.co $(PROJECT_OBJECTFILES) $(PROJECT_LIBRARIES) contiki-$(TARGET).a $(LDSCRIPT)
|
||||||
$(TRACE_LD)
|
$(TRACE_LD)
|
||||||
$(Q)$(LD) $(LDFLAGS) ${filter-out $(LDSCRIPT) %.a,$^} ${filter %.a,$^} $(TARGET_LIBFILES) -o $@
|
$(Q)$(LD) $(LDFLAGS) ${filter-out $(LDSCRIPT) %.a,$^} ${filter %.a,$^} $(TARGET_LIBFILES) -o $@
|
||||||
|
|
||||||
|
@ -30,11 +30,11 @@
|
|||||||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
/**
|
/**
|
||||||
* \addtogroup cc2538dk
|
* \addtogroup cc2538
|
||||||
* @{
|
* @{
|
||||||
*
|
*
|
||||||
* \file
|
* \file
|
||||||
* Startup code for the cc2538dk platform, to be used when building with gcc
|
* Startup code for the cc2538 chip, to be used when building with gcc
|
||||||
*/
|
*/
|
||||||
#include "contiki.h"
|
#include "contiki.h"
|
||||||
#include "reg.h"
|
#include "reg.h"
|
@ -11,9 +11,6 @@ CONTIKI_TARGET_SOURCEFILES += contiki-main.c
|
|||||||
CONTIKI_TARGET_SOURCEFILES += sensors.c smartrf-sensors.c
|
CONTIKI_TARGET_SOURCEFILES += sensors.c smartrf-sensors.c
|
||||||
CONTIKI_TARGET_SOURCEFILES += button-sensor.c adc-sensor.c
|
CONTIKI_TARGET_SOURCEFILES += button-sensor.c adc-sensor.c
|
||||||
|
|
||||||
TARGET_START_SOURCEFILES += startup-gcc.c
|
|
||||||
TARGET_STARTFILES = ${addprefix $(OBJECTDIR)/,${call oname, $(TARGET_START_SOURCEFILES)}}
|
|
||||||
|
|
||||||
CONTIKI_SOURCEFILES += $(CONTIKI_TARGET_SOURCEFILES)
|
CONTIKI_SOURCEFILES += $(CONTIKI_TARGET_SOURCEFILES)
|
||||||
|
|
||||||
CLEAN += *.cc2538dk
|
CLEAN += *.cc2538dk
|
||||||
|
Loading…
Reference in New Issue
Block a user