Skip to content

Commit

Permalink
Fix RISCV64 Tumbleweed example build
Browse files Browse the repository at this point in the history
Signed-off-by: Loic Devulder <ldevulder@suse.com>
  • Loading branch information
ldevulder committed Dec 5, 2023
1 parent 01154fe commit acc771b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ LDFLAGS+=-X "github.com/rancher/elemental-toolkit/internal/version.gitCommit=${G
ifeq ($(PLATFORM),linux/riscv64)
BASE_OS_IMAGE=registry.opensuse.org/opensuse/factory/riscv/images/opensuse/tumbleweed
BASE_OS_VERSION=latest
ifeq ($(FLAVOR),tumbleweed)
OS_IMAGE=registry.opensuse.org/opensuse/factory/riscv/images/opensuse/tumbleweed
ADD_REPO=https://download.opensuse.org/repositories/devel:/RISCV:/Factory:/Contrib:/StarFive:/VisionFive2/standard
BUILD_OPTS=--build-arg OS_IMAGE=$(OS_IMAGE) --build-arg ADD_REPO=$(ADD_REPO)
endif
endif

# default target
Expand Down Expand Up @@ -65,7 +70,7 @@ build-os: build
--build-arg TOOLKIT_REPO=$(TOOLKIT_REPO) \
--build-arg VERSION=$(VERSION) \
--build-arg REPO=$(REPO) -t $(REPO):$(VERSION) \
examples/$(FLAVOR)
$(BUILD_OPTS) examples/$(FLAVOR)

.PHONY: push-os
push-os:
Expand Down

0 comments on commit acc771b

Please sign in to comment.