diff --git a/Makefile b/Makefile index 8255327..8a83190 100644 --- a/Makefile +++ b/Makefile @@ -84,6 +84,10 @@ initscript=/lib/systemd/system/smr.service config=$(conf_path)/smr.conf bin_path=$(shell pwd) +APK_aarch64_HASH=0164d47954c8a52e8ed10db1633174974a3b1e4182a1993a5a8343e394ee1bbc +APK_x86_64_HASH=d7506bb11327b337960910daffed75aa289d8bb350feab624c52965be82ceae8 +apk_hash := $(APK_$(arch)_HASH) + help: ## Print this help $(Q)$(GREP) -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | $(SORT) | $(AWK) 'BEGIN {FS = ":.*?## "}; {printf "%-10s %s\n", $$1, $$2}' @@ -117,7 +121,7 @@ $(initscript) : packaging/systemd/smr.service $(Q)$(COPY) $< $@ cloc: ## calculate source lines of code in smr - cloc --force-lang="HTML",etlua.in src assets + cloc --force-lang="html",etlua.in --force-lang="html",etlua src assets Makefile $(chroot_dir): $(Q)$(MKDIR) $(chroot_dir) @@ -134,8 +138,8 @@ alpine-chroot-install: $(Q)chmod +x alpine-chroot-install $(worker_chroot) $(kmgr_chroot) $(parent_chroot): alpine-chroot-install - $(Q)export APK_TOOLS_URI="https://gitlab.alpinelinux.org/api/v4/projects/5/packages/generic/v2.12.9/aarch64/apk.static"; \ - export APK_TOOLS_SHA256="0164d47954c8a52e8ed10db1633174974a3b1e4182a1993a5a8343e394ee1bbc"; \ + $(Q)export APK_TOOLS_URI="https://gitlab.alpinelinux.org/api/v4/projects/5/packages/generic/v2.12.9/$(arch)/apk.static"; \ + export APK_TOOLS_SHA256="$(apk_hash)"; \ ./alpine-chroot-install -d $@ -a $(arch) -$(chroot_packages) code : $(built_files)