Skip to content

Commit 227d3ec

Browse files
pkarashchenkoAlan C. Assis
authored andcommitted
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 <petro.karashchenko@gmail.com>
1 parent 29c8835 commit 227d3ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

netutils/nanopb/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ $(NANOPB_TARBALL):
4141

4242
$(NANOPB_UNPACK): $(NANOPB_TARBALL)
4343
$(Q) tar zxf $(NANOPB_TARBALL)
44-
$(Q) mv nanopb-$(NANOPB_VERSION)-linux-x86 $(NANOPB_UNPACK)
44+
$(Q) mv $(NANOPB_NAME) $(NANOPB_UNPACK)
4545
$(Q) mv $(NANOPB_TARBALL) $(NANOPB_UNPACK)
4646

4747
ifeq ($(wildcard $(NANOPB_UNPACK)),)

0 commit comments

Comments
 (0)