From 05af50ba3029fad635adaf78ce72bce1dc4b0eae Mon Sep 17 00:00:00 2001 From: Ignaz Forster Date: Mon, 10 Aug 2020 15:33:18 +0200 Subject: [PATCH 1/3] Add support for building 32 bit x86 version --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index 29e528401..932b9c7f1 100644 --- a/Makefile +++ b/Makefile @@ -6,6 +6,8 @@ ifeq ($(GOARCH),x86_64) GOARCH=amd64 else ifeq ($(GOARCH),aarch64) GOARCH=arm64 +else ifeq ($(patsubst i%86,386,$(GOARCH)),386) + GOARCH=386 endif .PHONY: all From c7635608eadd260df4c2902a371cc13fbe8f352d Mon Sep 17 00:00:00 2001 From: Ignaz Forster Date: Mon, 10 Aug 2020 23:47:43 +0200 Subject: [PATCH 2/3] Install Dracut modules with correct permissions --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 932b9c7f1..fac2218d5 100644 --- a/Makefile +++ b/Makefile @@ -18,9 +18,10 @@ all: install: all for x in dracut/*; do \ bn=$$(basename $$x); \ - install -D -t $(DESTDIR)/usr/lib/dracut/modules.d/$${bn} $$x/*; \ + install -m 0644 -D -t $(DESTDIR)/usr/lib/dracut/modules.d/$${bn} $$x/*; \ done - install -D -t $(DESTDIR)/usr/lib/systemd/system systemd/* + chmod a+x $(DESTDIR)/usr/lib/dracut/modules.d/*/*.sh $(DESTDIR)/usr/lib/dracut/modules.d/*/*-generator + install -m 0644 -D -t $(DESTDIR)/usr/lib/systemd/system systemd/* install -m 0755 -D -t $(DESTDIR)/usr/lib/dracut/modules.d/30ignition bin/$(GOARCH)/ignition install -m 0755 -D -t $(DESTDIR)/usr/bin bin/$(GOARCH)/ignition-validate From c4069061e98f9781e249b9dbc78af1d9cdc51e84 Mon Sep 17 00:00:00 2001 From: Ignaz Forster Date: Wed, 19 Aug 2020 09:30:07 +0200 Subject: [PATCH 3/3] Add support for building 32 bit ARM version --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index fac2218d5..6b3f49a49 100644 --- a/Makefile +++ b/Makefile @@ -6,6 +6,8 @@ ifeq ($(GOARCH),x86_64) GOARCH=amd64 else ifeq ($(GOARCH),aarch64) GOARCH=arm64 +else ifeq ($(patsubst armv%,arm,$(GOARCH)),arm) + GOARCH=arm else ifeq ($(patsubst i%86,386,$(GOARCH)),386) GOARCH=386 endif