2016-09-01 05:26:17 +02:00
|
|
|
##
|
util/: Replace GPLv2 boiler plate with SPDX header
Used commands:
perl -i -p0e 's|\/\*[\s*]*.*is free software[:;][\s*]*you[\s*]*can[\s*]*redistribute[\s*]*it[\s*]*and\/or[\s*]*modify[\s*]*it[\s*]*under[\s*]*the[\s*]*terms[\s*]*of[\s*]*the[\s*]*GNU[\s*]*General[\s*]*Public[\s*]*License[\s*]*as[\s*]*published[\s*]*by[\s*]*the[\s*]*Free[\s*]*Software[\s*]*Foundation[;,][\s*]*version[\s*]*2[\s*]*of[\s*]*the[\s*]*License.[\s*]*This[\s*]*program[\s*]*is[\s*]*distributed[\s*]*in[\s*]*the[\s*]*hope[\s*]*that[\s*]*it[\s*]*will[\s*]*be[\s*]*useful,[\s*]*but[\s*]*WITHOUT[\s*]*ANY[\s*]*WARRANTY;[\s*]*without[\s*]*even[\s*]*the[\s*]*implied[\s*]*warranty[\s*]*of[\s*]*MERCHANTABILITY[\s*]*or[\s*]*FITNESS[\s*]*FOR[\s*]*A[\s*]*PARTICULAR[\s*]*PURPOSE.[\s*]*See[\s*]*the[\s*]*GNU[\s*]*General[\s*]*Public[\s*]*License[\s*]*for[\s*]*more[\s*]*details.[\s*]*\*\/|/* SPDX-License-Identifier: GPL-2.0-only */|' $(cat filelist)
perl -i -p0e 's|This[\s*]*program[\s*]*is[\s*]*free[\s*]*software[:;][\s*]*you[\s*]*can[\s*]*redistribute[\s*]*it[\s*]*and/or[\s*]*modify[\s*]*it[\s*]*under[\s*]*the[\s*]*terms[\s*]*of[\s*]*the[\s*]*GNU[\s*]*General[\s*]*Public[\s*]*License[\s*]*as[\s*]*published[\s*]*by[\s*]*the[\s*]*Free[\s*]*Software[\s*]*Foundation[;,][\s*]*either[\s*]*version[\s*]*2[\s*]*of[\s*]*the[\s*]*License,[\s*]*or[\s*]*.at[\s*]*your[\s*]*option.*[\s*]*any[\s*]*later[\s*]*version.[\s*]*This[\s*]*program[\s*]*is[\s*]*distributed[\s*]*in[\s*]*the[\s*]*hope[\s*]*that[\s*]*it[\s*]*will[\s*]*be[\s*]*useful,[\s*]*but[\s*]*WITHOUT[\s*]*ANY[\s*]*WARRANTY;[\s*]*without[\s*]*even[\s*]*the[\s*]*implied[\s*]*warranty[\s*]*of[\s*]*MERCHANTABILITY[\s*]*or[\s*]*FITNESS[\s*]*FOR[\s*]*A[\s*]*PARTICULAR[\s*]*PURPOSE.[\s*]*See[\s*]*the[\s*]*GNU[\s*]*General[\s*]*Public[\s*]*License[\s*]*for[\s*]*more[\s*]*details.[\s*]*\*\/|/* SPDX-License-Identifier: GPL-2.0-or-later */|' $(cat filelist)
perl -i -p0e 's|\/\*[\s*]*.*This[\s*#]*program[\s*#]*is[\s*#]*free[\s*#]*software[;:,][\s*#]*you[\s*#]*can[\s*#]*redistribute[\s*#]*it[\s*#]*and/or[\s*#]*modify[\s*#]*it[\s*#]*under[\s*#]*the[\s*#]*terms[\s*#]*of[\s*#]*the[\s*#]*GNU[\s*#]*General[\s*#]*Public[\s*#]*License[\s*#]*as[\s*#]*published[\s*#]*by[\s*#]*the[\s*#]*Free[\s*#]*Software[\s*#]*Foundation[;:,][\s*#]*either[\s*#]*version[\s*#]*3[\s*#]*of[\s*#]*the[\s*#]*License[;:,][\s*#]*or[\s*#]*.at[\s*#]*your[\s*#]*option.*[\s*#]*any[\s*#]*later[\s*#]*version.[\s*#]*This[\s*#]*program[\s*#]*is[\s*#]*distributed[\s*#]*in[\s*#]*the[\s*#]*hope[\s*#]*that[\s*#]*it[\s*#]*will[\s*#]*be[\s*#]*useful[;:,][\s*#]*but[\s*#]*WITHOUT[\s*#]*ANY[\s*#]*WARRANTY[;:,][\s*#]*without[\s*#]*even[\s*#]*the[\s*#]*implied[\s*#]*warranty[\s*#]*of[\s*#]*MERCHANTABILITY[\s*#]*or[\s*#]*FITNESS[\s*#]*FOR[\s*#]*A[\s*#]*PARTICULAR[\s*#]*PURPOSE.[\s*#]*See[\s*#]*the[\s*#]*GNU[\s*#]*General[\s*#]*Public[\s*#]*License[\s*#]*for[\s*#]*more[\s*#]*details.[\s*]*\*\/|/* SPDX-License-Identifier: GPL-3.0-or-later */|' $(cat filelist)
perl -i -p0e 's|(\#\#*)[\w]*.*is free software[:;][\#\s]*you[\#\s]*can[\#\s]*redistribute[\#\s]*it[\#\s]*and\/or[\#\s]*modify[\#\s]*it[\s\#]*under[\s \#]*the[\s\#]*terms[\s\#]*of[\s\#]*the[\s\#]*GNU[\s\#]*General[\s\#]*Public[\s\#]*License[\s\#]*as[\s\#]*published[\s\#]*by[\s\#]*the[\s\#]*Free[\s\#]*Software[\s\#]*Foundation[;,][\s\#]*version[\s\#]*2[\s\#]*of[\s\#]*the[\s\#]*License.*[\s\#]*This[\s\#]*program[\s\#]*is[\s\#]*distributed[\s\#]*in[\s\#]*the[\s\#]*hope[\s\#]*that[\s\#]*it[\s\#]*will[\#\s]*be[\#\s]*useful,[\#\s]*but[\#\s]*WITHOUT[\#\s]*ANY[\#\s]*WARRANTY;[\#\s]*without[\#\s]*even[\#\s]*the[\#\s]*implied[\#\s]*warranty[\#\s]*of[\#\s]*MERCHANTABILITY[\#\s]*or[\#\s]*FITNESS[\#\s]*FOR[\#\s]*A[\#\s]*PARTICULAR[\#\s]*PURPOSE.[\#\s]*See[\#\s]*the[\#\s]*GNU[\#\s]*General[\#\s]*Public[\#\s]*License[\#\s]*for[\#\s]*more[\#\s]*details.\s(#* *\n)*|\1 SPDX-License-Identifier: GPL-2.0-only\n\n|' $(cat filelist)
perl -i -p0e 's|(\#\#*)[\w*]*.*is free software[:;][\s*]*you[\s*]*can[\s*]*redistribute[\s*]*it[\s*]*and\/or[\s*]*modify[\s*]*it[\s*]*under[\s*]*the[\s*]*terms[\s*]*of[\s*]*the[\s*]*GNU[\s*]*General[\s*]*Public[\s*]*License[\s*]*as[\s*]*published[\s*]*by[\s*]*the[\s*]*Free[\s*]*Software[\s*]*Foundation[;,][\s*]*version[\s*]*2[\s*]*of[\s*]*the[\s*]*License.[\s*]*This[\s*]*program[\s*]*is[\s*]*distributed[\s*]*in[\s*]*the[\s*]*hope[\s*]*that[\s*]*it[\s*]*will[\s*]*be[\s*]*useful,[\s*]*but[\s*]*WITHOUT[\s*]*ANY[\s*]*WARRANTY;[\s*]*without[\s*]*even[\s*]*the[\s*]*implied[\s*]*warranty[\s*]*of[\s*]*MERCHANTABILITY[\s*]*or[\s*]*FITNESS[\s*]*FOR[\s*]*A[\s*]*PARTICULAR[\s*]*PURPOSE.[\s*]*See[\s*]*the[\s*]*GNU[\s*]*General[\s*]*Public[\s*]*License[\s*]*for[\s*]*more[\s*]*details.\s(#* *\n)*|\1 SPDX-License-Identifier: GPL-2.0-only\n\n|' $(cat filelist)
Change-Id: I1008a63b804f355a916221ac994701d7584f60ff
Signed-off-by: Patrick Georgi <pgeorgi@google.com>
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/41177
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2020-05-08 20:48:04 +02:00
|
|
|
## SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
|
2016-09-01 05:26:17 +02:00
|
|
|
export top=$(abspath $(CURDIR)/../..)
|
|
|
|
export crossgcc_version=$(shell $(top)/util/crossgcc/buildgcc --version | grep 'cross toolchain' | sed 's/^.*\sv//' | sed 's/\s.*$$//')
|
2016-12-31 01:00:19 +01:00
|
|
|
export DOCKER:=$(shell $(SHELL) -c "command -v docker")
|
|
|
|
|
2016-12-31 22:59:29 +01:00
|
|
|
# Local port to forward to the jenkins image for the test server
|
|
|
|
export COREBOOT_JENKINS_PORT?=49151
|
|
|
|
|
|
|
|
# Local cache directory - for storing files shared with the docker image
|
|
|
|
export COREBOOT_JENKINS_CACHE_DIR?=/srv/docker/coreboot-builder/cache
|
|
|
|
|
|
|
|
# Name of the jenkins container
|
|
|
|
export COREBOOT_JENKINS_CONTAINER?=coreboot_jenkins
|
|
|
|
|
2016-12-31 01:00:19 +01:00
|
|
|
# Version of the jenkins / sdk container
|
2018-11-04 19:20:41 +01:00
|
|
|
export COREBOOT_IMAGE_TAG?=$(crossgcc_version)
|
2016-12-31 01:00:19 +01:00
|
|
|
|
|
|
|
# Commit id to build from
|
|
|
|
export DOCKER_COMMIT?=$(shell git log -n 1 --pretty=%h)
|
2016-09-01 05:26:17 +02:00
|
|
|
|
2018-11-04 17:44:14 +01:00
|
|
|
# .ccache dir to use
|
|
|
|
export DOCKER_CCACHE?=$(HOME)/.ccache
|
|
|
|
|
2017-10-20 12:17:34 +02:00
|
|
|
# SDK architecture
|
2021-12-21 05:09:45 +01:00
|
|
|
export COREBOOT_CROSSGCC_PARAM?=all
|
2017-10-20 12:17:34 +02:00
|
|
|
|
2018-05-27 22:53:02 +02:00
|
|
|
UID ?= $(shell id -u)
|
|
|
|
GID ?= $(shell id -g)
|
|
|
|
|
2016-12-31 00:26:13 +01:00
|
|
|
test-docker:
|
2016-09-01 05:26:17 +02:00
|
|
|
$(if $(DOCKER),,\
|
2020-11-07 23:52:56 +01:00
|
|
|
$(warning Error: Docker command not found. Please install docker) \
|
|
|
|
$(warning Instructions: https://docs.docker.com/engine/install/ ) \
|
2016-09-01 05:26:17 +02:00
|
|
|
$(error halting))
|
|
|
|
|
2016-12-31 00:26:13 +01:00
|
|
|
test-docker-login: test-docker
|
2016-09-01 05:26:17 +02:00
|
|
|
$(if $(shell if [ ! -f ~/.docker/config.json ]; then \
|
|
|
|
echo "docker authentication file not found"; fi), \
|
|
|
|
$(error Docker authentication file not found. Run 'docker login'))
|
|
|
|
|
2016-12-31 00:26:13 +01:00
|
|
|
coreboot-sdk: test-docker
|
2016-12-31 01:00:19 +01:00
|
|
|
@echo "Building coreboot SDK $(crossgcc_version) from commit $(DOCKER_COMMIT)"
|
|
|
|
cat coreboot-sdk/Dockerfile | \
|
2020-11-07 23:12:30 +01:00
|
|
|
sed "s/{{DOCKER_COMMIT}}/$(DOCKER_COMMIT)/g" | \
|
|
|
|
sed "s/{{SDK_VERSION}}/$(COREBOOT_IMAGE_TAG)/g" | \
|
|
|
|
sed "s/{{CROSSGCC_PARAM}}/$(COREBOOT_CROSSGCC_PARAM)/g" | \
|
2018-11-04 19:20:41 +01:00
|
|
|
$(DOCKER) build -t coreboot/coreboot-sdk:$(COREBOOT_IMAGE_TAG) -
|
2016-09-01 05:26:17 +02:00
|
|
|
|
2016-12-31 00:26:13 +01:00
|
|
|
upload-coreboot-sdk: test-docker-login
|
2018-11-04 19:20:41 +01:00
|
|
|
$(DOCKER) push coreboot/coreboot-sdk:$(COREBOOT_IMAGE_TAG)
|
2016-09-01 05:26:17 +02:00
|
|
|
|
2016-12-31 00:26:13 +01:00
|
|
|
coreboot-jenkins-node: test-docker
|
2016-12-31 01:00:19 +01:00
|
|
|
cat coreboot-jenkins-node/Dockerfile | \
|
2020-11-07 23:12:30 +01:00
|
|
|
sed "s/{{SDK_VERSION}}/$(COREBOOT_IMAGE_TAG)/g" | \
|
2016-12-31 01:00:19 +01:00
|
|
|
sed "s|{{SSH_KEY}}|$$(cat coreboot-jenkins-node/authorized_keys)|" | \
|
2018-11-04 19:20:41 +01:00
|
|
|
$(DOCKER) build -t coreboot/coreboot-jenkins-node:$(COREBOOT_IMAGE_TAG) -
|
2016-09-01 05:26:17 +02:00
|
|
|
|
2016-12-31 00:26:13 +01:00
|
|
|
upload-coreboot-jenkins-node: test-docker-login
|
2018-11-04 19:20:41 +01:00
|
|
|
$(DOCKER) push coreboot/coreboot-jenkins-node:$(COREBOOT_IMAGE_TAG)
|
2016-09-01 05:26:17 +02:00
|
|
|
|
2019-10-17 22:10:59 +02:00
|
|
|
doc.coreboot.org: test-docker
|
|
|
|
$(DOCKER) build --force-rm -t doc.coreboot.org \
|
|
|
|
$(top)/util/docker/doc.coreboot.org/
|
|
|
|
|
2016-12-31 00:26:13 +01:00
|
|
|
docker-killall: test-docker
|
2016-12-31 00:12:30 +01:00
|
|
|
@if [ -n "$$($(DOCKER) ps | grep 'coreboot')" ]; then \
|
|
|
|
$(DOCKER) kill $$($(DOCKER) ps | grep 'coreboot' | cut -f1 -d ' '); \
|
|
|
|
fi
|
|
|
|
|
2016-12-31 00:26:13 +01:00
|
|
|
clean-coreboot-containers: docker-killall
|
2016-12-31 22:59:29 +01:00
|
|
|
@if [ -n "$$($(DOCKER) ps -a | grep 'coreboot')" ]; then \
|
|
|
|
$(DOCKER) rm $$($(DOCKER) ps -a | grep 'coreboot' | sed 's|\s.*$$||'); \
|
|
|
|
fi
|
2016-09-01 05:26:17 +02:00
|
|
|
|
2016-12-31 00:26:13 +01:00
|
|
|
clean-coreboot-images: docker-killall
|
2016-12-31 22:59:29 +01:00
|
|
|
@if [ -n "$$($(DOCKER) images | grep 'coreboot')" ]; then \
|
|
|
|
$(DOCKER) rmi $$($(DOCKER) images | grep coreboot | sed 's|^\S\+\s\+\S\+\s\+||' | sed 's|\s.*$$||'); \
|
|
|
|
fi
|
|
|
|
|
|
|
|
docker-clean: clean-coreboot-containers
|
|
|
|
@$(MAKE) clean-coreboot-images
|
|
|
|
|
2020-11-07 23:52:56 +01:00
|
|
|
docker-cleanall: test-docker
|
2020-11-25 12:19:51 +01:00
|
|
|
ifeq ($(Y),1)
|
2016-12-31 22:59:29 +01:00
|
|
|
@if [ -n "$$($(DOCKER) ps -a | grep -v "CONTAINER")" ]; then \
|
2020-11-07 23:52:56 +01:00
|
|
|
$(DOCKER) kill $$($(DOCKER) ps | grep -v "CONTAINER" | sed 's|\s.*$$||') ; \
|
2016-12-31 22:59:29 +01:00
|
|
|
$(DOCKER) rm $$($(DOCKER) ps -a | grep -v "CONTAINER" | sed 's|\s.*$$||'); \
|
|
|
|
fi
|
|
|
|
@if [ -n "$$($(DOCKER) images | grep -v "REPOSITORY")" ]; then \
|
|
|
|
$(DOCKER) rmi $$($(DOCKER) images | grep -v "REPOSITORY" | tr -s ' ' | cut -f3 -d ' '); \
|
|
|
|
fi
|
2020-11-07 23:52:56 +01:00
|
|
|
else
|
|
|
|
echo "This will remove *ALL* docker containers from your machine."
|
|
|
|
echo "If this is what you want, run 'make docker-cleanall Y=1'"
|
|
|
|
endif
|
2016-09-01 05:26:17 +02:00
|
|
|
|
2018-11-04 17:44:14 +01:00
|
|
|
$(DOCKER_CCACHE):
|
|
|
|
@mkdir -p $@
|
|
|
|
|
|
|
|
docker-run-local: test-docker $(DOCKER_CCACHE)
|
|
|
|
$(DOCKER) run -it --rm \
|
|
|
|
--volume $(DOCKER_CCACHE):/home/coreboot/.ccache \
|
|
|
|
--volume $(top):/home/coreboot/coreboot \
|
|
|
|
--env HOME=/home/coreboot \
|
2018-05-27 22:53:02 +02:00
|
|
|
--user $(UID):$(GID) \
|
2018-11-04 19:20:41 +01:00
|
|
|
coreboot/coreboot-sdk:$(COREBOOT_IMAGE_TAG) \
|
2018-11-04 17:44:14 +01:00
|
|
|
/bin/bash -c 'cd $${HOME}/coreboot && $(DOCKER_RUN_LOCAL)'
|
2016-09-01 05:26:17 +02:00
|
|
|
|
2018-11-04 17:26:14 +01:00
|
|
|
docker-build-coreboot: docker-run-local
|
|
|
|
docker-build-coreboot: override DOCKER_RUN_LOCAL := \
|
2019-07-11 18:44:21 +02:00
|
|
|
make clean && make $(BUILD_CMD)
|
2016-09-01 05:26:17 +02:00
|
|
|
|
2018-11-04 17:26:14 +01:00
|
|
|
docker-abuild: docker-run-local
|
|
|
|
docker-abuild: override DOCKER_RUN_LOCAL := \
|
2019-07-11 18:44:21 +02:00
|
|
|
make clean && util/abuild/abuild $(ABUILD_ARGS)
|
2018-11-04 17:26:14 +01:00
|
|
|
|
|
|
|
docker-what-jenkins-does: docker-run-local
|
|
|
|
docker-what-jenkins-does: override DOCKER_RUN_LOCAL := \
|
|
|
|
make clean && make what-jenkins-does CPUS=$(CPUS)
|
2016-12-31 22:59:29 +01:00
|
|
|
|
|
|
|
docker-jenkins-server: test-docker
|
|
|
|
@if [ ! -d "$(COREBOOT_JENKINS_CACHE_DIR)" ]; then \
|
|
|
|
printf "\nError: %s does not exist.\n" "$(COREBOOT_JENKINS_CACHE_DIR)"; \
|
|
|
|
printf "Please run:\nsudo mkdir -p %s\n\n" "$(COREBOOT_JENKINS_CACHE_DIR)"; \
|
|
|
|
false; \
|
|
|
|
fi
|
|
|
|
@if ! touch "$(COREBOOT_JENKINS_CACHE_DIR)/testfile" 2>/dev/null; then \
|
|
|
|
printf "\nError: Cannot create file in %s." "$(COREBOOT_JENKINS_CACHE_DIR)"; \
|
|
|
|
printf "Please run:\nsudo chown -R $(whoami):$(whoami) %s\n\n" "$(COREBOOT_JENKINS_CACHE_DIR)"; \
|
|
|
|
else \
|
|
|
|
rm -f "$(COREBOOT_JENKINS_CACHE_DIR)/testfile"; \
|
|
|
|
fi
|
|
|
|
$(DOCKER) run -d --privileged --restart=always \
|
|
|
|
-p $(COREBOOT_JENKINS_PORT):49151 \
|
|
|
|
-v $(COREBOOT_JENKINS_CACHE_DIR):/data/cache \
|
|
|
|
--name=$(COREBOOT_JENKINS_CONTAINER) \
|
2018-11-04 19:20:41 +01:00
|
|
|
coreboot/coreboot-jenkins-node:$(COREBOOT_IMAGE_TAG)
|
2016-12-31 22:59:29 +01:00
|
|
|
|
|
|
|
docker-jenkins-shell: test-docker
|
|
|
|
@if [ ! -d $(COREBOOT_JENKINS_CACHE_DIR) ]; then printf "\nError: %s does not exist.\nPlease run:\nsudo mkdir -p %s\n\n" "$(COREBOOT_JENKINS_CACHE_DIR)" "$(COREBOOT_JENKINS_CACHE_DIR)"; false; fi
|
|
|
|
$(DOCKER) run -u root -it --privileged \
|
|
|
|
--entrypoint="/bin/bash" \
|
|
|
|
-p $(COREBOOT_JENKINS_PORT):49151 \
|
|
|
|
-v $(top):/home/coreboot/coreboot \
|
|
|
|
-v $(COREBOOT_JENKINS_CACHE_DIR):/data/cache \
|
|
|
|
--name=$(COREBOOT_JENKINS_CONTAINER) \
|
2018-11-04 19:20:41 +01:00
|
|
|
--rm coreboot/coreboot-jenkins-node:$(COREBOOT_IMAGE_TAG)
|
2016-12-31 22:59:29 +01:00
|
|
|
|
|
|
|
docker-shell: USER=coreboot
|
|
|
|
docker-shell: test-docker
|
|
|
|
$(DOCKER) run -u $(USER) -it \
|
2018-07-16 04:10:44 +02:00
|
|
|
-e COLUMNS=$(shell tput cols) -e LINES=$(shell tput lines) -e TERM=$(TERM) \
|
2016-12-31 22:59:29 +01:00
|
|
|
-w /home/coreboot/coreboot \
|
|
|
|
-v $(top):/home/coreboot/coreboot \
|
2018-11-04 19:20:41 +01:00
|
|
|
--rm coreboot/coreboot-sdk:$(COREBOOT_IMAGE_TAG) \
|
2016-12-31 22:59:29 +01:00
|
|
|
/bin/bash -l
|
|
|
|
|
2018-07-16 04:10:44 +02:00
|
|
|
docker-jenkins-attach: USER=root
|
2020-11-07 23:52:56 +01:00
|
|
|
docker-jenkins-attach: test-docker
|
|
|
|
$(DOCKER) exec --user $(USER) \
|
2018-07-16 04:10:44 +02:00
|
|
|
-e COLUMNS=$(shell tput cols) -e LINES=$(shell tput lines) -e TERM=$(TERM) \
|
|
|
|
-it "$$(docker ps | grep coreboot-jenkins-node | cut -f1 -d' ')" \
|
|
|
|
/bin/bash -l
|
|
|
|
|
2019-10-17 22:10:59 +02:00
|
|
|
docker-build-docs: test-docker
|
|
|
|
docker-build-docs:
|
|
|
|
$(DOCKER) run -it --rm \
|
2020-11-07 23:52:56 +01:00
|
|
|
--user $(UID):$(GID) \
|
|
|
|
-v "$(top)/:/data-in/:ro" \
|
|
|
|
-v "$(top)/Documentation/_build/:/data-out/" \
|
|
|
|
doc.coreboot.org
|
2019-10-17 22:10:59 +02:00
|
|
|
|
|
|
|
docker-livehtml-docs: test-docker
|
|
|
|
docker-livehtml-docs:
|
|
|
|
$(DOCKER) run -it --rm \
|
2020-11-07 23:52:56 +01:00
|
|
|
--net=host -v "$(top)/:/data-in/:ro" \
|
|
|
|
doc.coreboot.org livehtml
|
2019-10-17 22:10:59 +02:00
|
|
|
|
2016-09-01 05:26:17 +02:00
|
|
|
help:
|
|
|
|
@echo "Commands for working with docker images:"
|
2016-12-31 00:26:13 +01:00
|
|
|
@echo " coreboot-sdk - Build coreboot-sdk container"
|
2016-09-01 05:26:17 +02:00
|
|
|
@echo " upload-coreboot-sdk - Upload coreboot-sdk to hub.docker.com"
|
2016-12-31 00:26:13 +01:00
|
|
|
@echo " coreboot-jenkins-node - Build coreboot-jenkins-node container"
|
2016-09-01 05:26:17 +02:00
|
|
|
@echo " upload-coreboot-jenkins-node - Upload coreboot-jenkins-node to hub.docker.com"
|
2019-10-17 22:10:59 +02:00
|
|
|
@echo " doc.coreboot.org - Build doc.coreboot.org container"
|
2016-12-31 22:59:29 +01:00
|
|
|
@echo " clean-coreboot-containers - Remove all docker coreboot containers"
|
|
|
|
@echo " clean-coreboot-images - Remove all docker coreboot images"
|
2020-01-30 11:43:14 +01:00
|
|
|
@echo " docker-clean - Remove docker coreboot containers & images"
|
2016-09-01 05:26:17 +02:00
|
|
|
@echo
|
|
|
|
@echo "Commands for using docker images"
|
2016-12-31 22:59:29 +01:00
|
|
|
@echo " docker-build-coreboot - Build coreboot under coreboot-sdk"
|
|
|
|
@echo " <BUILD_CMD=target> "
|
|
|
|
@echo " docker-abuild - Run abuild under coreboot-sdk"
|
|
|
|
@echo " <ABUILD_ARGS='-a -B'>"
|
|
|
|
@echo " docker-what-jenkins-does - Run 'what-jenkins-does' target"
|
|
|
|
@echo " docker-shell - Bash prompt in coreboot-jenkins-node"
|
|
|
|
@echo " <USER=root or USER=coreboot>"
|
|
|
|
@echo " docker-jenkins-server - Run coreboot-jenkins-node image (for server)"
|
2018-07-16 04:10:44 +02:00
|
|
|
@echo " docker-jenkins-attach - Open shell in running jenkins server"
|
2019-10-17 22:10:59 +02:00
|
|
|
@echo " docker-build-docs - Build the documentation"
|
|
|
|
@echo " docker-livehtml-docs - Run sphinx-autobuild"
|
2016-12-31 01:00:19 +01:00
|
|
|
@echo
|
|
|
|
@echo "Variables:"
|
2016-12-31 22:59:29 +01:00
|
|
|
@echo " COREBOOT_JENKINS_PORT=$(COREBOOT_JENKINS_PORT)"
|
|
|
|
@echo " COREBOOT_JENKINS_CACHE_DIR=$(COREBOOT_JENKINS_CACHE_DIR)"
|
|
|
|
@echo " COREBOOT_JENKINS_CONTAINER=$(COREBOOT_JENKINS_CONTAINER)"
|
2018-11-04 19:20:41 +01:00
|
|
|
@echo " COREBOOT_IMAGE_TAG=$(COREBOOT_IMAGE_TAG)"
|
2016-12-31 22:59:29 +01:00
|
|
|
@echo " DOCKER_COMMIT=$(DOCKER_COMMIT)"
|
2016-09-01 05:26:17 +02:00
|
|
|
|
2016-12-31 00:26:13 +01:00
|
|
|
.PHONY: test-docker test-docker-login
|
|
|
|
.PHONY: coreboot-jenkins-node upload-coreboot-jenkins-node
|
|
|
|
.PHONY: coreboot-sdk upload-coreboot-sdk
|
2019-10-17 22:10:59 +02:00
|
|
|
.PHONY: doc.coreboot.org
|
2016-12-31 00:26:13 +01:00
|
|
|
.PHONY: clean-coreboot-containers clean-coreboot-images
|
|
|
|
.PHONY: docker-abuild
|
2018-07-16 04:10:44 +02:00
|
|
|
.PHONY: docker-what-jenkins-does docker-shell docker-jenkins-server docker-jenkins-attach
|
2019-10-17 22:10:59 +02:00
|
|
|
.PHONY: docker-build-docs docker-livehtml-docs
|
2016-12-31 00:26:13 +01:00
|
|
|
.PHONY: help
|