Skip to content

Commit

Permalink
make: remove use of UNDEF
Browse files Browse the repository at this point in the history
  • Loading branch information
kaspar030 committed Oct 7, 2016
1 parent 878beee commit 1893e5a
Show file tree
Hide file tree
Showing 13 changed files with 0 additions and 48 deletions.
2 changes: 0 additions & 2 deletions boards/msba2-common/Makefile.include
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,4 @@ export INCLUDES += -I$(RIOTBOARD)/msba2-common/include -I$(RIOTBOARD)/msba2-comm

export OFLAGS = -O ihex

export UNDEF += $(BINDIR)cpu/startup.o

USEMODULE += msba2-common-drivers
2 changes: 0 additions & 2 deletions boards/native/Makefile.include
Original file line number Diff line number Diff line change
Expand Up @@ -173,5 +173,3 @@ eval-gprof:

eval-cachegrind:
$(CGANNOTATE) $(shell ls -rt cachegrind.out* | tail -1)

export UNDEF += $(BINDIR)cpu/startup.o
2 changes: 0 additions & 2 deletions boards/x86-multiboot-common/Makefile.include
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ LINKFLAGS += -m32 -nostdlib -nostdinc -nostartfiles -nodefaultlibs \
export CFLAGS += -ffunction-sections -fdata-sections
export LINKFLAGS += -Wl,--gc-sections

UNDEF += $(BINDIR)x86-multiboot-common/startup.o

BASELIBS += $(NEWLIB_BASE)/lib/libc.a \
$(NEWLIB_BASE)/lib/libm.a

Expand Down
6 changes: 0 additions & 6 deletions cpu/Makefile.include.cortexm_common
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,6 @@ export CFLAGS += -DARM_MATH_CM7
endif
endif

# Explicitly tell the linker to link the startup code.
# Without this the interrupt vectors will not be linked correctly!
ifeq ($(COMMON_STARTUP),)
export UNDEF += $(BINDIR)cpu/vectors.o
endif

# CPU depends on the cortex-m common module, so include it:
include $(RIOTCPU)/cortexm_common/Makefile.include

Expand Down
4 changes: 0 additions & 4 deletions cpu/atmega1281/Makefile.include
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,5 @@ USEMODULE += atmega_common
# define path to atmega common module, which is needed for this CPU
export ATMEGA_COMMON = $(RIOTCPU)/atmega_common/

# explicitly tell the linker to link the syscalls and startup code.
# Without this the interrupt vectors will not be linked correctly!
export UNDEF += $(BINDIR)cpu/startup.o

# CPU depends on the atmega common module, so include it
include $(ATMEGA_COMMON)Makefile.include
4 changes: 0 additions & 4 deletions cpu/atmega2560/Makefile.include
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,5 @@ USEMODULE += atmega_common
# define path to atmega common module, which is needed for this CPU
export ATMEGA_COMMON = $(RIOTCPU)/atmega_common/

# explicitly tell the linker to link the syscalls and startup code.
# Without this the interrupt vectors will not be linked correctly!
export UNDEF += $(BINDIR)cpu/startup.o

# CPU depends on the atmega common module, so include it
include $(ATMEGA_COMMON)Makefile.include
7 changes: 0 additions & 7 deletions cpu/k60/Makefile.include
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,4 @@ export CFLAGS += -DCPU_MODEL_$(MODEL)
ARCH = $(shell echo $(CPU_ARCH) | tr 'a-z-' 'A-Z_')
export CFLAGS += -DCPU_ARCH_$(ARCH)

# this CPU implementation is using kinetis common startup
export COMMON_STARTUP = $(KINETIS_COMMON)

# add the CPU specific system calls implementations for the linker
export UNDEF += $(BINDIR)cpu/vectors.o
export UNDEF += $(BINDIR)cpu/ssp.o

include $(RIOTCPU)/Makefile.include.cortexm_common
6 changes: 0 additions & 6 deletions cpu/k64f/Makefile.include
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,4 @@ export CFLAGS += -DCPU_MODEL_$(MODEL)
ARCH = $(shell echo $(CPU_ARCH) | tr 'a-z-' 'A-Z_')
export CFLAGS += -DCPU_ARCH_$(ARCH)

# this CPU implementation is using kinetis common startup
export COMMON_STARTUP = $(KINETIS_COMMON)

# add the CPU specific system calls implementations for the linker
export UNDEF += $(BINDIR)cpu/vectors.o

include $(RIOTCPU)/Makefile.include.cortexm_common
3 changes: 0 additions & 3 deletions cpu/kinetis_common/Makefile.include
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ export INCLUDES += -I$(RIOTCPU)/kinetis_common/include
# Add search path for linker scripts
export LINKFLAGS += -L$(RIOTCPU)/kinetis_common/ldscripts

# add the CPU specific code for the linker
export UNDEF += $(BINDIR)kinetis_common/fcfield.o

# include kinetis common periph drivers
export USEMODULE += kinetis_common_periph

Expand Down
6 changes: 0 additions & 6 deletions cpu/kw2x/Makefile.include
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,4 @@ export CFLAGS += -DCPU_MODEL_$(MODEL)
ARCH = $(shell echo $(CPU_ARCH) | tr 'a-z-' 'A-Z_')
export CFLAGS += -DCPU_ARCH_$(ARCH)

# this CPU implementation is using kinetis common startup
export COMMON_STARTUP = $(KINETIS_COMMON)

# add the CPU specific system calls implementations for the linker
export UNDEF += $(BINDIR)cpu/vectors.o

include $(RIOTCPU)/Makefile.include.cortexm_common
1 change: 0 additions & 1 deletion cpu/msp430-common/Makefile.include
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
INCLUDES += -I$(RIOTCPU)/msp430-common/include/

export UNDEF += $(BINDIR)msp430_common/startup.o
export USEMODULE += msp430_common

DEFAULT_MODULE += oneway_malloc
Expand Down
3 changes: 0 additions & 3 deletions sys/Makefile.include
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ endif

ifneq (,$(filter cpp11-compat,$(USEMODULE)))
USEMODULE_INCLUDES += $(RIOTBASE)/sys/cpp11-compat/include
# make sure cppsupport.o is linked explicitly because __dso_handle is not
# found if it is hidden away inside a static object.
export UNDEF += $(BINDIR)cpp11-compat/cppsupport.o
endif

ifneq (,$(filter gnrc_slip,$(USEMODULE)))
Expand Down
2 changes: 0 additions & 2 deletions sys/newlib/Makefile.include
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
UNDEF := $(BINDIR)newlib_syscalls_default/syscalls.o $(UNDEF)

ifneq (,$(filter newlib_nano,$(USEMODULE)))
# Test if nano.specs is available
ifeq ($(shell $(LINK) -specs=nano.specs -E - 2>/dev/null >/dev/null </dev/null ; echo $$?),0)
Expand Down

0 comments on commit 1893e5a

Please sign in to comment.