From 227d3ec35bb30bacbab5140b7e2ceef33c0944bc Mon Sep 17 00:00:00 2001 From: Petro Karashchenko Date: Mon, 14 Jul 2025 08:45:24 +0200 Subject: [PATCH] netutils/nanopb: fix unpack step for MACOS Currently NANOPB_UNPACK step in Makefile uses nanopb binary name with hardcoded suffix '-linux-x86' that is not suitable for MACOS x86. This commit replaces the hardcoded nanopb binary name with name that is derived from NANOPB_NAME variable that reflects the nanopb binary that is selected based on host OS selected in the build system Signed-off-by: Petro Karashchenko --- netutils/nanopb/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netutils/nanopb/Makefile b/netutils/nanopb/Makefile index c3624e7ad..3c7dd6d22 100644 --- a/netutils/nanopb/Makefile +++ b/netutils/nanopb/Makefile @@ -41,7 +41,7 @@ $(NANOPB_TARBALL): $(NANOPB_UNPACK): $(NANOPB_TARBALL) $(Q) tar zxf $(NANOPB_TARBALL) - $(Q) mv nanopb-$(NANOPB_VERSION)-linux-x86 $(NANOPB_UNPACK) + $(Q) mv $(NANOPB_NAME) $(NANOPB_UNPACK) $(Q) mv $(NANOPB_TARBALL) $(NANOPB_UNPACK) ifeq ($(wildcard $(NANOPB_UNPACK)),)