Some operating systems and tools for building custom OSs.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
827B

  1. #
  2. # Dockerized QEMU
  3. #
  4. # Program arguments
  5. APP_NAME ?= qemu
  6. DOCKER_REGISTRY ?= nderjung.net
  7. DOCKER_NAMESPACE ?= qemu
  8. DOCKER_CONTAINER ?= $(subst //,/,$(DOCKER_REGISTRY)/$(DOCKER_NAMESPACE):$(TAG))
  9. TAG := $(shell git symbolic-ref HEAD 2>/dev/null | cut -d"/" -f 3)
  10. ifdef QEMU_VER
  11. TAG := $(QEMU_VER)
  12. else
  13. QEMU_VER ?= 3.0.0
  14. endif
  15. # Directories
  16. SRC_DIR ?= $(CURDIR)
  17. # Tools
  18. DOCKER ?= docker
  19. # Build targets
  20. .PHONY: container
  21. container: ## Build the container
  22. $(DOCKER) build \
  23. --build-arg QEMU_VER=$(QEMU_VER) \
  24. -f $(SRC_DIR)/Dockerfile \
  25. -t $(DOCKER_CONTAINER) \
  26. $(SRC_DIR)
  27. .PHONY: help
  28. help: ## Show this help menu
  29. @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-10s\033[0m %s\n", $$1, $$2}'