Skip to content

Commit

Permalink
lpc21isp: fix build on macos
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
svlobanov authored and neheb committed Jan 19, 2022
1 parent a2427ed commit 75c25be
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion devel/lpc21isp/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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/
Expand Down

0 comments on commit 75c25be

Please sign in to comment.