flashrom: strip leading whitespace from PROGRAMMER_ARGS

Newer version of meson do not allow empty arguments.

Signed-off-by: Federico Capoano <f.capoano@openwisp.io>
This commit is contained in:
Federico Capoano 2024-03-19 10:52:31 -03:00 committed by Tianling Shen
parent 5181ce4a48
commit 9f54d98747
2 changed files with 2 additions and 3 deletions

View File

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=flashrom
PKG_VERSION:=1.3.0
PKG_RELEASE:=1
PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-v$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=https://download.flashrom.org/releases

View File

@ -96,9 +96,8 @@ else
$(eval $(call Programmer,satamv,$(FLASHROM_PCI)))
endif
comma := ,
MESON_ARGS += \
-Ddefault_programmer_name=$(DEFAULT_PROGRAMMER_NAME) \
-Dprogrammer=$(subst $() $(),$(comma),$(PROGRAMMER_ARGS)) \
-Dprogrammer=$(subst $(space),$(comma),$(strip $(PROGRAMMER_ARGS))) \
-Dwerror=false \
-Dtests=disabled