[posix-app] add HOST flag for cross compiling (#3991)

This commit add 'HOST' to provide the option for changing compile
target host for OpenWRT.
This commit is contained in:
huamenggg
2019-07-15 08:52:18 -07:00
committed by Jonathan Hui
parent 9b51c2ed1d
commit 9d57e4b9b9
+5 -1
View File
@@ -78,7 +78,7 @@ configure_OPTIONS = \
# Platform specific switches
ifeq (${DAEMON},1)
ifeq ($(DAEMON),1)
configure_OPTIONS += --enable-posix-app-daemon
endif
@@ -88,6 +88,10 @@ COMMONCFLAGS += \
$(NULL)
endif
ifneq ($(HOST),)
configure_OPTIONS += --host=$(HOST)
endif
ifeq ($(PLATFORM_NETIF),1)
configure_OPTIONS += --enable-platform-netif
endif