mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 05:36:47 +00:00
config/path: remove package processing
This commit is contained in:
parent
8996ca654f
commit
3a6295abdb
78
config/path
78
config/path
@ -59,79 +59,6 @@ INSTALL_INIT=$BUILD/image/initramfs/root-image
|
|||||||
MAKE="$TOOLCHAIN/bin/make"
|
MAKE="$TOOLCHAIN/bin/make"
|
||||||
MAKEINSTALL="$TOOLCHAIN/bin/make -j1 DESTDIR=$SYSROOT_PREFIX install"
|
MAKEINSTALL="$TOOLCHAIN/bin/make -j1 DESTDIR=$SYSROOT_PREFIX install"
|
||||||
|
|
||||||
unset LD_LIBRARY_PATH
|
|
||||||
|
|
||||||
# Don't use BUILD_WITH_DEBUG in "gloabl" package.mk - instead, call the function
|
|
||||||
# build_with_debug() directly as the function depends on various package.mk
|
|
||||||
# variables that will be in the process of being configured. Once package.mk is
|
|
||||||
# fully sourced we can set this variable and use it in situations where we know the
|
|
||||||
# package has already been sourced.
|
|
||||||
unset BUILD_WITH_DEBUG
|
|
||||||
|
|
||||||
# If the package caches are unset, then populate them
|
|
||||||
init_package_cache
|
|
||||||
|
|
||||||
# set package metadata
|
|
||||||
reset_pkg_vars "$1"
|
|
||||||
|
|
||||||
[ -n "$1" ] && PKG_DIR="$(get_pkg_directory $1)"
|
|
||||||
|
|
||||||
if [ -n "$PKG_DIR" -a -r $PKG_DIR/package.mk ]; then
|
|
||||||
unset -f configure_package
|
|
||||||
. $PKG_DIR/package.mk
|
|
||||||
[ -z "$PKG_SHORTDESC" ] && PKG_SHORTDESC="$PKG_NAME (autogenerated)"
|
|
||||||
[ -z "$PKG_LONGDESC" ] && PKG_LONGDESC="$PKG_NAME (autogenerated)"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "$PKG_IS_ADDON" = "yes" -o "$PKG_IS_ADDON" = "embedded" ] ; then
|
|
||||||
[ -z $PKG_SECTION ] && PKG_ADDON_ID="$PKG_NAME" || PKG_ADDON_ID="${PKG_SECTION//\//.}.$PKG_NAME"
|
|
||||||
[ "$PKG_ADDON_IS_STANDALONE" != "yes" ] && PKG_NEED_UNPACK="${PKG_NEED_UNPACK} $(get_pkg_directory $MEDIACENTER)"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Automatically set PKG_SOURCE_NAME unless it is already defined.
|
|
||||||
# PKG_SOURCE_NAME will be automatically set to a name based on
|
|
||||||
# the $PKG_NAME-$PKG_VERSION convention.
|
|
||||||
#
|
|
||||||
# Any $PKG_URL that references more than a single url will abort
|
|
||||||
# the build as these are no longer supported - use mkpkg instead.
|
|
||||||
if [ -n "$PKG_URL" -a -z "$PKG_SOURCE_NAME" ]; then
|
|
||||||
if [[ $PKG_URL =~ .*\ .* ]]; then
|
|
||||||
echo "Error - packages with multiple urls are no longer supported, use mkpkg:"
|
|
||||||
echo "$PKG_URL"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
if [[ ${PKG_URL} =~ .git$ || ${PKG_URL} =~ ^git:// ]]; then
|
|
||||||
PKG_SOURCE_NAME=${PKG_NAME}-${PKG_VERSION}
|
|
||||||
elif [[ ${PKG_URL} =~ ^file:// ]]; then
|
|
||||||
PKG_SOURCE_NAME=${PKG_URL#file://}
|
|
||||||
# if no specific PKG_TAR_COPY_OPTS then default to excluding .git and .svn as they can be huge
|
|
||||||
[ -z "${PKG_TAR_COPY_OPTS+x}" ] && PKG_TAR_COPY_OPTS="--exclude=.git --exclude=.svn"
|
|
||||||
else
|
|
||||||
PKG_SOURCE_NAME="${PKG_URL##*/}"
|
|
||||||
case $PKG_SOURCE_NAME in
|
|
||||||
${PKG_NAME}-${PKG_VERSION}.*)
|
|
||||||
PKG_SOURCE_NAME=$PKG_SOURCE_NAME
|
|
||||||
;;
|
|
||||||
*.tar | *.tbz | *.tgz | *.txz | *.7z | *.zip)
|
|
||||||
PKG_SOURCE_NAME=${PKG_NAME}-${PKG_VERSION}.${PKG_SOURCE_NAME##*\.}
|
|
||||||
;;
|
|
||||||
*.tar.bz2 | *.tar.gz | *.tar.xz)
|
|
||||||
PKG_SOURCE_NAME=${PKG_NAME}-${PKG_VERSION}.tar.${PKG_SOURCE_NAME##*\.}
|
|
||||||
;;
|
|
||||||
*.diff | *.patch | *.diff.bz2 | *.patch.bz2 | patch-*.bz2 | *.diff.gz | *.patch.gz | patch-*.gz)
|
|
||||||
PKG_SOURCE_NAME=$PKG_SOURCE_NAME
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
PKG_SOURCE_NAME=${PKG_NAME}-${PKG_VERSION}.${PKG_SOURCE_NAME##*\.}
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
PKG_BUILD="$BUILD/${PKG_NAME}-${PKG_VERSION}"
|
|
||||||
|
|
||||||
build_with_debug && BUILD_WITH_DEBUG="yes" || BUILD_WITH_DEBUG="no"
|
|
||||||
|
|
||||||
XORG_PATH_DRI=/usr/lib/dri
|
XORG_PATH_DRI=/usr/lib/dri
|
||||||
XORG_PATH_XKB=/usr/share/X11/xkb
|
XORG_PATH_XKB=/usr/share/X11/xkb
|
||||||
XORG_PATH_XKB_OUTPUT=/var/lib/xkb
|
XORG_PATH_XKB_OUTPUT=/var/lib/xkb
|
||||||
@ -166,10 +93,7 @@ if [ -z "${SILENT_OUT}" -a -z "${VERBOSE_OUT}" ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# If sourcing a package, configure any package variables dependent on variables we have set
|
unset LD_LIBRARY_PATH
|
||||||
if [ -n "$PKG_DIR" -a -r $PKG_DIR/package.mk ]; then
|
|
||||||
pkg_call_optional configure_package
|
|
||||||
fi
|
|
||||||
|
|
||||||
# multilib? nah
|
# multilib? nah
|
||||||
unset CONFIG_SITE
|
unset CONFIG_SITE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user