Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions Makefile.include
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Globally set default goal to `all`
.DEFAULT_GOAL := all

# include Makefile.local if it exists
-include Makefile.local

Expand Down Expand Up @@ -460,8 +463,7 @@ $(CURDIR)/eclipsesym.xml:
# Export variables used throughout the whole make system:
include $(RIOTMAKE)/vars.inc.mk

# Include build targets for selected tools after the default RIOT targets have
# been defined (-> so the `all` will be always the first target)
# Include build targets for selected tools
include $(RIOTMAKE)/tools/targets.inc.mk

# Warn if the selected board and drivers don't provide all needed features:
Expand Down Expand Up @@ -590,4 +592,9 @@ CFLAGS += -include '$(RIOTBUILD_CONFIG_HEADER_C)'

# include mcuboot support
include $(RIOTMAKE)/mcuboot.mk

# Sanity check, 'all' should be the default goal
ifneq (all, $(.DEFAULT_GOAL))
$(error .DEFAULT_GOAL := $(.DEFAULT_GOAL))
endif
endif # BOARD=none
3 changes: 0 additions & 3 deletions boards/common/frdm/Makefile.include
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ export OPENOCD_EXTRA_INIT
.PHONY: flash
flash: $(RIOTCPU)/$(CPU)/dist/wdog-disable.bin

# Reset the default goal.
.DEFAULT_GOAL :=

export OPENOCD_CONFIG ?= $(RIOTBOARD)/common/frdm/dist/old-openocd-$(CPU_FAMILY).cfg
endif

Expand Down
3 changes: 0 additions & 3 deletions boards/mulle/Makefile.include
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,6 @@ export PRE_FLASH_CHECK_SCRIPT = $(RIOTCPU)/$(CPU)/dist/check-fcfield-elf.sh
.PHONY: flash
flash: $(RIOTCPU)/$(CPU)/dist/wdog-disable.bin

# Reset the default goal.
.DEFAULT_GOAL :=

# this board uses openocd
include $(RIOTMAKE)/tools/openocd.inc.mk

Expand Down
3 changes: 0 additions & 3 deletions boards/pba-d-01-kw2x/Makefile.include
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbmodem*)))
.PHONY: flash
flash: $(RIOTCPU)/$(CPU)/dist/wdog-disable.bin

# Reset the default goal.
.DEFAULT_GOAL :=

# We need special handling of the watchdog if we want to speed up the flash
# verification by using the MCU to compute the image checksum after flashing.
# wdog-disable.bin is a precompiled binary which will disable the watchdog and
Expand Down
3 changes: 0 additions & 3 deletions cpu/kinetis/Makefile.include
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,4 @@ USEMODULE += periph_wdog
$(RIOTCPU)/$(CPU)/dist/wdog-disable.bin: $(RIOTCPU)/$(CPU)/dist/wdog-disable.s
$(Q)$(MAKE) -C $(RIOTCPU)/$(CPU)/dist/ $(notdir $@)

# Reset the default goal to not make wdog-disable.bin the default target.
.DEFAULT_GOAL :=

include $(RIOTMAKE)/arch/cortexm.inc.mk
3 changes: 0 additions & 3 deletions makefiles/scan-build.inc.mk
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,3 @@ else
echo "No report found"; \
fi
endif

# Reset the default goal.
.DEFAULT_GOAL :=