Skip to content

Commit

Permalink
Migrate upstream Makefile updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Kreeblah committed Oct 28, 2023
1 parent 2432768 commit c8a824a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ ROOT_PASSWD ?= root
WEBUI_ADMIN_PASSWD ?= admin
IPMI_ADMIN_PASSWD ?= admin

export CARD ?= /dev/mmcblk0
export CARD ?= /dev/null
export IMAGE_XZ ?= 1

DEPLOY_USER ?= root

Expand Down Expand Up @@ -126,8 +127,9 @@ install: $(_BUILDER_DIR)

image: $(_BUILDER_DIR)
$(eval _dated := blikvm-pikvm-$(BLIKVM_PLATFORM)-$(BLIKVM_BOARD)$(BLIKVM_SUFFIX)-$(shell date +%Y%m%d).img)
$(eval _suffix = $(if $(call optbool,$(IMAGE_XZ)),.xz,))
mkdir -p images
$(MAKE) -C $(_BUILDER_DIR) image IMAGE=$(shell pwd)/images/$(_dated) IMAGE_XZ=1
$(MAKE) -C $(_BUILDER_DIR) image IMAGE=$(shell pwd)/images/$(_dated)


scan: $(_BUILDER_DIR)
Expand Down

0 comments on commit c8a824a

Please sign in to comment.