CoreElec begginner here, sorry if this is a basic/trivial question.
I would like to get this add-on to work on my Odroid-C2 device running CoreElec. However according to that repo, only macOS/Linux/Raspberry Pi/Windows/Android/(iOS)/(tvOS) is supported.
I tried building the add-on with a raspberry pi, the generated zip file seems to fail on CoreElec. (still have not checked the logs)
Could someone please tell me what should I do in order to get the add-on to run in my Odroid/CoreElec device?
Thanks in advance!
You need to build it with CoreELEC environment.
If you tell which image you are using on Odroid I maybe could build it for you.
initial package.mk
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2018-present Team CoreELEC (https://coreelec.org)
PKG_NAME="pvr.chinachu"
PKG_VERSION="647e00e27f99e17bb333e07e42d112e5e8632b1f"
PKG_SHA256=""
PKG_REV="1"
PKG_ARCH="any"
PKG_LICENSE="GPL"
PKG_SITE="https://github.com/Harekaze/pvr.chinachu"
PKG_URL="https://github.com/Harekaze/pvr.chinachu/archive/$PKG_VERSION.tar.gz"
PKG_DEPENDS_TARGET="toolchain kodi-platform"
PKG_SECTION=""
PKG_SHORTDESC="pvr.chinachu"
PKG_LONGDESC="pvr.chinachu"
PKG_TOOLCHAIN="autotools"
PKG_IS_ADDON="yes"
PKG_ADDON_TYPE="xbmc.pvrclient"
post_unpack() {
mkdir -p $(get_build_dir pvr.chinachu)/pvr.chinachu
cp -r $(get_build_dir pvr.chinachu)/template/pvr.chinachu \
$(get_build_dir pvr.chinachu)
cp -r $(get_build_dir pvr.chinachu)/ChangeLog.txt \
$(get_build_dir pvr.chinachu)/LICENSE \
$(get_build_dir pvr.chinachu)/pvr.chinachu
}
pre_configure_target() {
cd ..
rm -rf ".$TARGET_NAME"
}
post_make_target() {
mkdir -p $INSTALL/usr/lib/kodi/addons/pvr.chinachu
mkdir -p $INSTALL/usr/share/kodi/addons
cp dist/pvr.chinachu/pvr.chinachu.armel.so \
$INSTALL/usr/lib/kodi/addons/pvr.chinachu/pvr.chinachu.so
cp -r dist/pvr.chinachu $INSTALL/usr/share/kodi/addons
}
Thanks @vpeter ! Addon installed and running.
Will look into build instructions next.