lpc21isp: fix build on macos
authorSergey V. Lobanov <sergey@lobanov.in>
Tue, 18 Jan 2022 13:36:20 +0000 (16:36 +0300)
committerRosen Penev <rosenp@gmail.com>
Wed, 19 Jan 2022 02:03:44 +0000 (18:03 -0800)
lpc21isp Makefile detects Darwin and defines __APPLE__ that is not
required for cross-compile build for OpenWrt

This patch sets OSTYPE="Linux" due to OpenWrt is always Linux

Signed-off-by: Sergey V. Lobanov <sergey@lobanov.in>
devel/lpc21isp/Makefile

index a12f8b2197c0d2b5224afc7c189c6d0ad40d70c7..cdf6cb72fdd2f30ed7863cdf0da6bef02b45113c 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=lpc21isp
 PKG_VERSION:=197
-PKG_RELEASE:=5
+PKG_RELEASE:=6
 PKG_LICENSE:=LGPL-3.0-or-later
 PKG_LICENSE_FILES:=README gpl.txt lgpl-3.0.txt
 
@@ -36,6 +36,9 @@ endef
 
 TARGET_CFLAGS += $(if $(CONFIG_USE_GLIBC),-lc -lgcc_eh)
 
+MAKE_FLAGS += \
+       OSTYPE="Linux"
+
 define Package/lpc21isp/install
                $(INSTALL_DIR) $(1)/usr/sbin
                $(INSTALL_BIN) $(PKG_BUILD_DIR)/lpc21isp $(1)/usr/sbin/