mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +00:00
projects/*/options: add variable $DISTRONAME, add support to rename the distro
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
fc6f0a2f7e
commit
f463c38f07
@ -37,7 +37,7 @@ HOST_NAME=`$SCRIPTS/configtools/config.guess`
|
|||||||
TARGET_NAME=$TARGET_FAMILY-openelec-linux-gnu
|
TARGET_NAME=$TARGET_FAMILY-openelec-linux-gnu
|
||||||
|
|
||||||
OPENELEC_SRC=http://sources.openelec.tv/src/$OPENELEC_VERSION
|
OPENELEC_SRC=http://sources.openelec.tv/src/$OPENELEC_VERSION
|
||||||
BUILD=$BUILD_BASE.OpenELEC-$PROJECT.$TARGET_ARCH.$OPENELEC_VERSION
|
BUILD=$BUILD_BASE.$DISTRONAME-$PROJECT.$TARGET_ARCH.$OPENELEC_VERSION
|
||||||
TARGET_IMG=$ROOT/$TARGET
|
TARGET_IMG=$ROOT/$TARGET
|
||||||
TARGET_ADDONS="$TARGET_IMG/$ADDONS/$ADDON_PATH"
|
TARGET_ADDONS="$TARGET_IMG/$ADDONS/$ADDON_PATH"
|
||||||
ADDON_BUILD="$BUILD/$ADDONS/$1"
|
ADDON_BUILD="$BUILD/$ADDONS/$1"
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
# Name of the Distro to build (full name, without special charcters)
|
||||||
|
DISTRONAME="OpenELEC"
|
||||||
|
|
||||||
# Welcome Message for e.g. SSH Server (up to 5 Lines)
|
# Welcome Message for e.g. SSH Server (up to 5 Lines)
|
||||||
GREATING0="#######################################################"
|
GREATING0="#######################################################"
|
||||||
GREATING1="# Welcome to OpenELEC - the powerful Mediacenter4you #"
|
GREATING1="# Welcome to OpenELEC - the powerful Mediacenter4you #"
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
# Name of the Distro to build (full name, without special charcters)
|
||||||
|
DISTRONAME="OpenELEC"
|
||||||
|
|
||||||
# Welcome Message for e.g. SSH Server (up to 5 Lines)
|
# Welcome Message for e.g. SSH Server (up to 5 Lines)
|
||||||
GREATING0="#######################################################"
|
GREATING0="#######################################################"
|
||||||
GREATING1="# Welcome to OpenELEC - the powerful Mediacenter4you #"
|
GREATING1="# Welcome to OpenELEC - the powerful Mediacenter4you #"
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
# Name of the Distro to build (full name, without special charcters)
|
||||||
|
DISTRONAME="OpenELEC"
|
||||||
|
|
||||||
# Welcome Message for e.g. SSH Server (up to 5 Lines)
|
# Welcome Message for e.g. SSH Server (up to 5 Lines)
|
||||||
GREATING0="#######################################################"
|
GREATING0="#######################################################"
|
||||||
GREATING1="# Welcome to OpenELEC - the powerful Mediacenter4you #"
|
GREATING1="# Welcome to OpenELEC - the powerful Mediacenter4you #"
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
# Name of the Distro to build (full name, without special charcters)
|
||||||
|
DISTRONAME="OpenELEC"
|
||||||
|
|
||||||
# Welcome Message for e.g. SSH Server (up to 5 Lines)
|
# Welcome Message for e.g. SSH Server (up to 5 Lines)
|
||||||
GREATING0="#######################################################"
|
GREATING0="#######################################################"
|
||||||
GREATING1="# Welcome to OpenELEC - the powerful Mediacenter4you #"
|
GREATING1="# Welcome to OpenELEC - the powerful Mediacenter4you #"
|
||||||
|
@ -43,7 +43,7 @@ while file=`getarg $i $files` && [ -n "$file" ]; do
|
|||||||
done
|
done
|
||||||
|
|
||||||
if [ -n "$need" ]; then
|
if [ -n "$need" ]; then
|
||||||
echo "**** Your system lacks the following tools needed to $1 OpenELEC.tv ****"
|
echo "**** Your system lacks the following tools needed to $1 $DISTRONAME ****"
|
||||||
echo $need
|
echo $need
|
||||||
|
|
||||||
[ -f /etc/lsb-release ] && . /etc/lsb-release
|
[ -f /etc/lsb-release ] && . /etc/lsb-release
|
||||||
|
@ -39,10 +39,10 @@ mkdir -p $INSTALL
|
|||||||
ln -s lib $INSTALL/usr/lib64
|
ln -s lib $INSTALL/usr/lib64
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "OpenELEC" > $INSTALL/etc/distribution
|
echo "$DISTRONAME" > $INSTALL/etc/distribution
|
||||||
echo "$PROJECT.$TARGET_ARCH" > $INSTALL/etc/arch
|
echo "$PROJECT.$TARGET_ARCH" > $INSTALL/etc/arch
|
||||||
echo "$OPENELEC_VERSION" > $INSTALL/etc/version
|
echo "$OPENELEC_VERSION" > $INSTALL/etc/version
|
||||||
echo "OpenELEC.tv - Date of build: $BUILD_DATE Build: $GIT_BUILD" > $INSTALL/etc/openelec-release
|
echo "$DISTRONAME - Date of build: $BUILD_DATE Build: $GIT_BUILD" > $INSTALL/etc/openelec-release
|
||||||
echo "$TARGET_VERSION" > $INSTALL/etc/release
|
echo "$TARGET_VERSION" > $INSTALL/etc/release
|
||||||
|
|
||||||
# copy project related files to filesystem
|
# copy project related files to filesystem
|
||||||
|
@ -6,7 +6,7 @@ $SCRIPTS/image_squashfs
|
|||||||
|
|
||||||
get_version
|
get_version
|
||||||
|
|
||||||
RELEASE_DIR="target/OpenELEC-$TARGET_VERSION"
|
RELEASE_DIR="target/$DISTRONAME-$TARGET_VERSION"
|
||||||
|
|
||||||
# cleanup
|
# cleanup
|
||||||
rm -rf $RELEASE_DIR
|
rm -rf $RELEASE_DIR
|
||||||
@ -23,8 +23,8 @@ RELEASE_DIR="target/OpenELEC-$TARGET_VERSION"
|
|||||||
cp $ROOT/licenses/* $RELEASE_DIR/licenses
|
cp $ROOT/licenses/* $RELEASE_DIR/licenses
|
||||||
|
|
||||||
mkdir -p $RELEASE_DIR/target
|
mkdir -p $RELEASE_DIR/target
|
||||||
cp $TARGET_IMG/OpenELEC-$TARGET_VERSION.system $RELEASE_DIR/target/SYSTEM
|
cp $TARGET_IMG/$DISTRONAME-$TARGET_VERSION.system $RELEASE_DIR/target/SYSTEM
|
||||||
cp $TARGET_IMG/OpenELEC-$TARGET_VERSION.kernel $RELEASE_DIR/target/KERNEL
|
cp $TARGET_IMG/$DISTRONAME-$TARGET_VERSION.kernel $RELEASE_DIR/target/KERNEL
|
||||||
|
|
||||||
# create md5sum's
|
# create md5sum's
|
||||||
pushd $RELEASE_DIR > /dev/null 2>&1
|
pushd $RELEASE_DIR > /dev/null 2>&1
|
||||||
@ -36,10 +36,10 @@ RELEASE_DIR="target/OpenELEC-$TARGET_VERSION"
|
|||||||
mkdir -p $TARGET_IMG
|
mkdir -p $TARGET_IMG
|
||||||
|
|
||||||
# remove an previous created release tarball
|
# remove an previous created release tarball
|
||||||
rm -rf $TARGET_IMG/OpenELEC-$TARGET_VERSION.tar.bz2
|
rm -rf $TARGET_IMG/$DISTRONAME-$TARGET_VERSION.tar.bz2
|
||||||
|
|
||||||
# create release tarball
|
# create release tarball
|
||||||
tar cjf $TARGET_IMG/OpenELEC-$TARGET_VERSION.tar.bz2 -C target OpenELEC-$TARGET_VERSION
|
tar cjf $TARGET_IMG/$DISTRONAME-$TARGET_VERSION.tar.bz2 -C target $DISTRONAME-$TARGET_VERSION
|
||||||
|
|
||||||
# cleanup release dir
|
# cleanup release dir
|
||||||
rm -rf $RELEASE_DIR
|
rm -rf $RELEASE_DIR
|
||||||
|
@ -13,12 +13,12 @@ $SCRIPTS/build fakeroot
|
|||||||
get_version
|
get_version
|
||||||
|
|
||||||
mkdir -p $TARGET_IMG
|
mkdir -p $TARGET_IMG
|
||||||
rm -rf $TARGET_IMG/OpenELEC-$TARGET_VERSION.kernel
|
rm -rf $TARGET_IMG/$DISTRONAME-$TARGET_VERSION.kernel
|
||||||
cp -PR $BUILD/linux-*/arch/x86/boot/bzImage $TARGET_IMG/OpenELEC-$TARGET_VERSION.kernel
|
cp -PR $BUILD/linux-*/arch/x86/boot/bzImage $TARGET_IMG/$DISTRONAME-$TARGET_VERSION.kernel
|
||||||
|
|
||||||
echo "rm -rf $TARGET_IMG/OpenELEC-$TARGET_VERSION.system" >> $FAKEROOT_SCRIPT
|
echo "rm -rf $TARGET_IMG/$DISTRONAME-$TARGET_VERSION.system" >> $FAKEROOT_SCRIPT
|
||||||
# echo "$ROOT/$TOOLCHAIN/bin/mksquashfs $BUILD/image/system $TARGET_IMG/OpenELEC-$TARGET_VERSION.system -noappend -comp lzma" >> $FAKEROOT_SCRIPT
|
# echo "$ROOT/$TOOLCHAIN/bin/mksquashfs $BUILD/image/system $TARGET_IMG/$DISTRONAME-$TARGET_VERSION.system -noappend -comp lzma" >> $FAKEROOT_SCRIPT
|
||||||
echo "$ROOT/$TOOLCHAIN/bin/mksquashfs $BUILD/image/system $TARGET_IMG/OpenELEC-$TARGET_VERSION.system -noappend" >> $FAKEROOT_SCRIPT
|
echo "$ROOT/$TOOLCHAIN/bin/mksquashfs $BUILD/image/system $TARGET_IMG/$DISTRONAME-$TARGET_VERSION.system -noappend" >> $FAKEROOT_SCRIPT
|
||||||
$ROOT/$TOOLCHAIN/bin/fakeroot -- $FAKEROOT_SCRIPT
|
$ROOT/$TOOLCHAIN/bin/fakeroot -- $FAKEROOT_SCRIPT
|
||||||
chmod 0644 $TARGET_IMG/OpenELEC-$TARGET_VERSION.system
|
chmod 0644 $TARGET_IMG/$DISTRONAME-$TARGET_VERSION.system
|
||||||
rm -rf $FAKEROOT_SCRIPT
|
rm -rf $FAKEROOT_SCRIPT
|
||||||
|
Loading…
x
Reference in New Issue
Block a user