mirror of
https://github.com/libretro/Lakka.git
synced 2024-11-27 10:00:43 +00:00
image: add addons support, including options for download locations and Makefile enhancenments
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
ce1e64b17a
commit
ccd6181cc0
3
Makefile
3
Makefile
@ -8,6 +8,9 @@ system:
|
||||
release:
|
||||
./scripts/install image release
|
||||
|
||||
addons:
|
||||
./scripts/install image addons
|
||||
|
||||
qemu:
|
||||
./scripts/install image qemu
|
||||
|
||||
|
@ -17,6 +17,16 @@ fi
|
||||
ROOT=`pwd`
|
||||
PROJECT_DIR=$ROOT/projects
|
||||
|
||||
OPENELEC_VERSION=`cat VERSION`
|
||||
|
||||
if [ "$OPENELEC_VERSION" = "devel" ]; then
|
||||
OS_VERSION="0.90"
|
||||
else
|
||||
OS_MAJOR_VERSION=`echo "$OPENELEC_VERSION" | cut -f1 -d "."`
|
||||
OS_MINOR_VERSION=`echo "$OPENELEC_VERSION" | cut -f2 -d "."`
|
||||
OS_VERSION="$OS_MAJOR_VERSION.$OS_MINOR_VERSION"
|
||||
fi
|
||||
|
||||
# read project options if available
|
||||
if [ -f $PROJECT_DIR/$PROJECT/options ]; then
|
||||
. $PROJECT_DIR/$PROJECT/options
|
||||
|
@ -28,7 +28,7 @@ fi
|
||||
|
||||
TARGET_NAME=$TARGET_FAMILY-openelec-linux-gnu
|
||||
|
||||
OPENELEC_VERSION=`cat VERSION`
|
||||
OPENELEC_SRC=http://sources.openelec.tv/src/$OPENELEC_VERSION
|
||||
CONFIG=config
|
||||
SCRIPTS=scripts
|
||||
PACKAGES=packages
|
||||
@ -40,7 +40,7 @@ BUILD=$BUILD_BASE.OpenELEC-$PROJECT.$TARGET_ARCH.$OPENELEC_VERSION
|
||||
[ -n "$TARGET_PLATFORM" ] && BUILD=$BUILD.$TARGET_PLATFORM
|
||||
PKG_BUILD=$BUILD/$1\[-_][0-9]*
|
||||
TARGET_IMG=$ROOT/$TARGET
|
||||
TARGET_ADDONS=$TARGET_IMG/$ADDONS/$PROJECT/$TARGET_ARCH
|
||||
TARGET_ADDONS="$TARGET_IMG/$ADDONS/$ADDON_PATH"
|
||||
STAMPS_NOARCH=.stamps
|
||||
STAMPS=$BUILD/.stamps
|
||||
DOCS=DOCS
|
||||
@ -231,8 +231,6 @@ else
|
||||
fi
|
||||
INDENT_SIZE=4
|
||||
|
||||
OPENELEC_SRC=http://sources.openelec.tv/src/$OPENELEC_VERSION
|
||||
|
||||
VERSION_SUFFIX=$TARGET_ARCH
|
||||
[ -n "$TARGET_PLATFORM" ] && VERSION_SUFFIX=$TARGET_PLATFORM
|
||||
|
||||
|
@ -155,6 +155,14 @@ case "$2" in
|
||||
tar cjf $TARGET_IMG/OpenELEC-$TARGET_VERSION.tar.bz2 -C $BUILD/$2 OpenELEC-$TARGET_VERSION
|
||||
;;
|
||||
|
||||
addons)
|
||||
|
||||
export INSTALL=$BUILD/$1/$2
|
||||
|
||||
$SCRIPTS/install emulators addons
|
||||
$SCRIPTS/install games addons
|
||||
;;
|
||||
|
||||
qemu)
|
||||
|
||||
$SCRIPTS/install image system
|
||||
|
Loading…
Reference in New Issue
Block a user