Skip to content
Snippets Groups Projects
Commit 550b4234 authored by Dean Camera's avatar Dean Camera
Browse files

Don't build project folders in parallel.

parent 2fb7ccd4
Branches
No related tags found
No related merge requests found
...@@ -2,10 +2,10 @@ kind: pipeline ...@@ -2,10 +2,10 @@ kind: pipeline
name: default name: default
steps: steps:
- name: Build - name: Projects
image: abcminiuser/docker-avr8-toolchain image: abcminiuser/docker-avr8-toolchain
commands: commands:
- make --quiet all - make -j --quiet all
- name: Bootloaders - name: Bootloaders
image: abcminiuser/docker-avr8-toolchain image: abcminiuser/docker-avr8-toolchain
......
...@@ -22,20 +22,9 @@ ifeq ($(MAKELEVEL), 10) ...@@ -22,20 +22,9 @@ ifeq ($(MAKELEVEL), 10)
$(error EMERGENCY ABORT: INFINITE RECURSION DETECTED) $(error EMERGENCY ABORT: INFINITE RECURSION DETECTED)
endif endif
# Need to special-case building without a per-project object directory # Build each directory sequentially, even if we are building using multiple
ifeq ($(OBJDIR),) # cores within each project
# If no target specified, force "clean all" and disallow parallel build .NOTPARALLEL:
ifeq ($(MAKECMDGOALS),)
MAKECMDGOALS := clean all
.NOTPARALLEL:
endif
# If one of the targets is to build, force "clean" beforehand and disallow parallel build
ifneq ($(findstring all, $(MAKECMDGOALS)),)
MAKECMDGOALS := clean $(MAKECMDGOALS)
.NOTPARALLEL:
endif
endif
%: $(PROJECT_DIRECTORIES) %: $(PROJECT_DIRECTORIES)
@echo . > /dev/null @echo . > /dev/null
......
...@@ -22,20 +22,9 @@ ifeq ($(MAKELEVEL), 10) ...@@ -22,20 +22,9 @@ ifeq ($(MAKELEVEL), 10)
$(error EMERGENCY ABORT: INFINITE RECURSION DETECTED) $(error EMERGENCY ABORT: INFINITE RECURSION DETECTED)
endif endif
# Need to special-case building without a per-project object directory # Build each directory sequentially, even if we are building using multiple
ifeq ($(OBJDIR),) # cores within each project
# If no target specified, force "clean all" and disallow parallel build .NOTPARALLEL:
ifeq ($(MAKECMDGOALS),)
MAKECMDGOALS := clean all
.NOTPARALLEL:
endif
# If one of the targets is to build, force "clean" beforehand and disallow parallel build
ifneq ($(findstring all, $(MAKECMDGOALS)),)
MAKECMDGOALS := clean $(MAKECMDGOALS)
.NOTPARALLEL:
endif
endif
%: $(PROJECT_DIRECTORIES) %: $(PROJECT_DIRECTORIES)
@echo . > /dev/null @echo . > /dev/null
......
...@@ -22,20 +22,9 @@ ifeq ($(MAKELEVEL), 10) ...@@ -22,20 +22,9 @@ ifeq ($(MAKELEVEL), 10)
$(error EMERGENCY ABORT: INFINITE RECURSION DETECTED) $(error EMERGENCY ABORT: INFINITE RECURSION DETECTED)
endif endif
# Need to special-case building without a per-project object directory # Build each directory sequentially, even if we are building using multiple
ifeq ($(OBJDIR),) # cores within each project
# If no target specified, force "clean all" and disallow parallel build .NOTPARALLEL:
ifeq ($(MAKECMDGOALS),)
MAKECMDGOALS := clean all
.NOTPARALLEL:
endif
# If one of the targets is to build, force "clean" beforehand and disallow parallel build
ifneq ($(findstring all, $(MAKECMDGOALS)),)
MAKECMDGOALS := clean $(MAKECMDGOALS)
.NOTPARALLEL:
endif
endif
%: $(PROJECT_DIRECTORIES) %: $(PROJECT_DIRECTORIES)
@echo . > /dev/null @echo . > /dev/null
......
...@@ -22,20 +22,9 @@ ifeq ($(MAKELEVEL), 10) ...@@ -22,20 +22,9 @@ ifeq ($(MAKELEVEL), 10)
$(error EMERGENCY ABORT: INFINITE RECURSION DETECTED) $(error EMERGENCY ABORT: INFINITE RECURSION DETECTED)
endif endif
# Need to special-case building without a per-project object directory # Build each directory sequentially, even if we are building using multiple
ifeq ($(OBJDIR),) # cores within each project
# If no target specified, force "clean all" and disallow parallel build .NOTPARALLEL:
ifeq ($(MAKECMDGOALS),)
MAKECMDGOALS := clean all
.NOTPARALLEL:
endif
# If one of the targets is to build, force "clean" beforehand and disallow parallel build
ifneq ($(findstring all, $(MAKECMDGOALS)),)
MAKECMDGOALS := clean $(MAKECMDGOALS)
.NOTPARALLEL:
endif
endif
%: $(PROJECT_DIRECTORIES) %: $(PROJECT_DIRECTORIES)
@echo . > /dev/null @echo . > /dev/null
......
...@@ -22,20 +22,9 @@ ifeq ($(MAKELEVEL), 10) ...@@ -22,20 +22,9 @@ ifeq ($(MAKELEVEL), 10)
$(error EMERGENCY ABORT: INFINITE RECURSION DETECTED) $(error EMERGENCY ABORT: INFINITE RECURSION DETECTED)
endif endif
# Need to special-case building without a per-project object directory # Build each directory sequentially, even if we are building using multiple
ifeq ($(OBJDIR),) # cores within each project
# If no target specified, force "clean all" and disallow parallel build .NOTPARALLEL:
ifeq ($(MAKECMDGOALS),)
MAKECMDGOALS := clean all
.NOTPARALLEL:
endif
# If one of the targets is to build, force "clean" beforehand and disallow parallel build
ifneq ($(findstring all, $(MAKECMDGOALS)),)
MAKECMDGOALS := clean $(MAKECMDGOALS)
.NOTPARALLEL:
endif
endif
%: $(PROJECT_DIRECTORIES) %: $(PROJECT_DIRECTORIES)
@echo . > /dev/null @echo . > /dev/null
......
...@@ -22,20 +22,9 @@ ifeq ($(MAKELEVEL), 10) ...@@ -22,20 +22,9 @@ ifeq ($(MAKELEVEL), 10)
$(error EMERGENCY ABORT: INFINITE RECURSION DETECTED) $(error EMERGENCY ABORT: INFINITE RECURSION DETECTED)
endif endif
# Need to special-case building without a per-project object directory # Build each directory sequentially, even if we are building using multiple
ifeq ($(OBJDIR),) # cores within each project
# If no target specified, force "clean all" and disallow parallel build .NOTPARALLEL:
ifeq ($(MAKECMDGOALS),)
MAKECMDGOALS := clean all
.NOTPARALLEL:
endif
# If one of the targets is to build, force "clean" beforehand and disallow parallel build
ifneq ($(findstring all, $(MAKECMDGOALS)),)
MAKECMDGOALS := clean $(MAKECMDGOALS)
.NOTPARALLEL:
endif
endif
%: $(PROJECT_DIRECTORIES) %: $(PROJECT_DIRECTORIES)
@echo . > /dev/null @echo . > /dev/null
......
...@@ -36,7 +36,7 @@ all: ...@@ -36,7 +36,7 @@ all:
# identical OBJDIR directory, we need to enforce the use of this project's object file # identical OBJDIR directory, we need to enforce the use of this project's object file
# directory as the one where the build object files are to be stored, by giving it a # directory as the one where the build object files are to be stored, by giving it a
# path relative to the current folder. # path relative to the current folder.
OBJDIR := ./obj OBJDIR := ./xpb-obj
# Include LUFA-specific DMBS extension modules # Include LUFA-specific DMBS extension modules
DMBS_LUFA_PATH ?= $(LUFA_PATH)/Build/LUFA DMBS_LUFA_PATH ?= $(LUFA_PATH)/Build/LUFA
......
...@@ -22,20 +22,9 @@ ifeq ($(MAKELEVEL), 10) ...@@ -22,20 +22,9 @@ ifeq ($(MAKELEVEL), 10)
$(error EMERGENCY ABORT: INFINITE RECURSION DETECTED) $(error EMERGENCY ABORT: INFINITE RECURSION DETECTED)
endif endif
# Need to special-case building without a per-project object directory # Build each directory sequentially, even if we are building using multiple
ifeq ($(OBJDIR),) # cores within each project
# If no target specified, force "clean all" and disallow parallel build .NOTPARALLEL:
ifeq ($(MAKECMDGOALS),)
MAKECMDGOALS := clean all
.NOTPARALLEL:
endif
# If one of the targets is to build, force "clean" beforehand and disallow parallel build
ifneq ($(findstring all, $(MAKECMDGOALS)),)
MAKECMDGOALS := clean $(MAKECMDGOALS)
.NOTPARALLEL:
endif
endif
%: $(PROJECT_DIRECTORIES) %: $(PROJECT_DIRECTORIES)
@echo . > /dev/null @echo . > /dev/null
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment