defs.mk: Move PKG_FORMAT definition into platform.mk

PKG_FORMAT is now more straightforward to get with from the revised
jw-pkg.py distro info --format '%{cascade}', so do that, and do it in
the context where all the other variables are set from the output of
that command.

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2026-03-02 12:42:40 +00:00
commit e93338872f
2 changed files with 9 additions and 20 deletions

View file

@ -175,12 +175,6 @@ PKG_VENDOR ?= janware GmbH
# ----- packaging variables
ifneq ($(findstring $(OS_NAME),debian ubuntu),)
PKG_FORMAT ?= debian
else
PKG_FORMAT ?= rpm
endif
PKG_SH_EXE := /bin/bash $(JWB_SCRIPT_DIR)/pkg.sh
LOG_INSTALL_SH := $(PKG_SH_EXE) log-install -f $(PKG_FORMAT)
UPDATE_REPO_SH := /opt/packager-server/bin/packager-server schedule-rebuild