tvheadend configure/make files detect Darwin build host and changes
build logic, but it fails compilation for OpenWrt target (Linux)
This patch explicitly specifies Linux as a target platfrom
Signed-off-by: Sergey V. Lobanov <sergey@lobanov.in>
## CONFIGURE_ARGS += --disable-libopus
##endif
+#required to cross-compile hdhomerun on non-Linux build host
+MAKE_FLAGS += \
+ OS=Linux
+
+#required to always have "build.linux" dir, not "build.darwin" on macos
+CONFIGURE_VARS += \
+ PLATFORM=linux
+
+#--platfrom=linux is required to cross-compile tvheadend on non-Linux build host
CONFIGURE_ARGS += \
+ --platform=linux \
--arch=$(ARCH) \
--disable-libsystemd_daemon \
--disable-dbus_1 \