OpenELEC's build system is designed around the idea that it automatically downloads OE-compatible source packages from a web server. This behaviour can be overridden by running the mkpkg script, moving the resulting package to OPENELEC_ROOT\sources and outputting a fake $PKG_NAME-$PKG_VER.tar.xz.url file to OPENELEC_ROOT\sources.
We'll need to edit each mkpkg script in tools/mkpkg and add the following to the end:
echo "copying tar balls to sources..."
if [ ! -d ../../sources/ ]; then
mkdir ../../sources/
fi
if [ ! -d ../../sources/<name>/ ]; then
mkdir ../../sources/<name>/
fi
mv <name>-$GIT_REV.tar.xz ../../sources/<name>/
echo "generate md5 and url files..."
cd ../..
md5sum sources/<name>/<name>-$GIT_REV.tar.xz > sources/<name>/<name>-$GIT_REV.tar.xz.md5
echo " http://sources.openelec.tv/devel/<name>-$GIT_REV.tar.xz" > sources/<name>/<name>-$GIT_REV.tar.xz.url
echo "Source tar balls generated for <name> successfully."
Where <name> is the name of the package.
OpenELEC's build system is designed around the idea that it automatically downloads OE-compatible source packages from a web server. This behaviour can be overridden by running the mkpkg script, moving the resulting package to OPENELEC_ROOT\sources and outputting a fake $PKG_NAME-$PKG_VER.tar.xz.url file to OPENELEC_ROOT\sources.
We'll need to edit each mkpkg script in tools/mkpkg and add the following to the end:
Where <name> is the name of the package.