fix(nwipe): use less generic variable name

This commit is contained in:
desertwitch
2026-02-18 10:45:23 +01:00
parent 9b9c569e66
commit 95872d0744

View File

@@ -4,7 +4,7 @@
#
################################################################################
NWIPE_ARCH = $(call qstrip,$(BR2_ARCH))
NWIPE_BUILD_ARCH = $(call qstrip,$(BR2_ARCH))
NWIPE_VERSION = $(call qstrip,$(BR2_PACKAGE_NWIPE_GIT_REVISION))
NWIPE_DEPENDENCIES = ncurses parted dmidecode coreutils libconfig
NWIPE_SITE_METHOD = git
@@ -20,9 +20,9 @@ endif
################################################################################
define NWIPE_CHECK_ARCH
case "$(NWIPE_ARCH)" in \
case "$(NWIPE_BUILD_ARCH)" in \
i686|x86_64) ;; \
*) echo "Unsupported architecture: $(NWIPE_ARCH)"; exit 1 ;; \
*) echo "Unsupported architecture: $(NWIPE_BUILD_ARCH)"; exit 1 ;; \
esac
endef
@@ -46,7 +46,7 @@ NWIPE_VERSION_BANNER = $(shell printf "%.7s-commit-dev" "$(NWIPE_VERSION)")
endif
# Normalize x86_64 to x86-64 for version
NWIPE_VERSION_ARCH = $(if $(filter x86_64,$(NWIPE_ARCH)),x86-64,$(NWIPE_ARCH))
NWIPE_VERSION_ARCH = $(if $(filter x86_64,$(NWIPE_BUILD_ARCH)),x86-64,$(NWIPE_BUILD_ARCH))
define NWIPE_UPDATE_VERSION_TXT
echo "Updating version.txt: arch=$(NWIPE_VERSION_ARCH) banner=$(NWIPE_VERSION_BANNER)"