From d40425b382bf4004bfc3be3c29a9d7e675ce3dd3 Mon Sep 17 00:00:00 2001 From: Vincent Date: Fri, 17 May 2024 11:53:42 +0200 Subject: [PATCH 1/2] Allow to compile for RPI Signed-off-by: Vincent --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index b1a8cd44e1b..9acbeb91f7a 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ export ROOT_DIR:=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST)))) DISK?=$(shell ls $(ROOT_DIR)/build/*.qcow2 2> /dev/null) DISKSIZE?=20G ISO?=$(shell ls $(ROOT_DIR)/build/*.iso 2> /dev/null) -FLAVOR?=green +FLAVOR?=green-rpi ARCH?=$(shell uname -m) PLATFORM?=linux/$(ARCH) IMAGE_SIZE?=20G @@ -117,8 +117,8 @@ endif mkdir -p $(ROOT_DIR)/build $(DOCKER) run --rm -v $(DOCKER_SOCK):$(DOCKER_SOCK) -v $(ROOT_DIR)/examples:/examples -v $(ROOT_DIR)/build:/build \ --entrypoint /usr/bin/elemental \ - $(TOOLKIT_REPO):$(VERSION) --debug build-disk --platform $(PLATFORM) --cloud-init-paths /examples/$(FLAVOR) --unprivileged --expandable -n elemental-$(FLAVOR).aarch64 --local \ - --squash-no-compression --deploy-command elemental,--debug,reset,--reboot,--disable-boot-entry -o /build $(REPO):$(VERSION) + $(TOOLKIT_REPO):$(VERSION) --debug build-disk --platform $(PLATFORM) --cloud-init-paths /examples/$(FLAVOR) --expandable -n elemental-$(FLAVOR).aarch64 --local \ + --squash-no-compression --deploy-command elemental,--debug,reset,--reboot,--disable-boot-entry -o /build --system $(REPO):$(VERSION) PHONY: build-vf2-disk build-vf2-disk: From 278fae281f7aa84b3bbb847d2e9ae231bd708893 Mon Sep 17 00:00:00 2001 From: Vincent Date: Fri, 17 May 2024 14:30:09 +0200 Subject: [PATCH 2/2] Update Makefile MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Fredrik Lönnegren Signed-off-by: Vincent --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 9acbeb91f7a..0de42d3e63d 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ export ROOT_DIR:=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST)))) DISK?=$(shell ls $(ROOT_DIR)/build/*.qcow2 2> /dev/null) DISKSIZE?=20G ISO?=$(shell ls $(ROOT_DIR)/build/*.iso 2> /dev/null) -FLAVOR?=green-rpi +FLAVOR?=green ARCH?=$(shell uname -m) PLATFORM?=linux/$(ARCH) IMAGE_SIZE?=20G