cleanup scripts: config/

This commit is contained in:
CvH 2024-07-06 11:08:34 +02:00
parent 289c09bb53
commit 5275163ab0
3 changed files with 16 additions and 15 deletions

View File

@ -8,4 +8,4 @@ name="$(basename $0)"
oe_setup_addon "$name"
docker rm "$name" 2>/dev/null
docker run --name="$name" \
docker run --name="$name"

View File

@ -6,7 +6,8 @@
MOUNTPOINT="/tmp/LibreELEC-System"
md5sumCheck() {
( cd $MOUNTPOINT
(
cd $MOUNTPOINT
echo "checking MD5: $1"
md5sum -c $1.md5
if [ "$?" = "1" ]; then
@ -35,19 +36,19 @@ if [ -z $part1 -o -z $part2 -o -z $id1 -o -z $id2 ]; then
fi
# create mountpoint
mkdir -p $MOUNTPOINT
mkdir -p $MOUNTPOINT
# mount needed partition
mount $part1 $MOUNTPOINT
mount $part1 $MOUNTPOINT
# check md5sum
md5sumCheck kernel.img
md5sumCheck SYSTEM
md5sumCheck kernel.img
md5sumCheck SYSTEM
# create bootloader configuration
echo "creating bootloader configuration..."
echo "boot=$id1 disk=$id2 quiet @EXTRA_CMDLINE@" > $MOUNTPOINT/cmdline.txt
echo "creating bootloader configuration..."
echo "boot=$id1 disk=$id2 quiet @EXTRA_CMDLINE@" >$MOUNTPOINT/cmdline.txt
# cleanup mountpoint
umount $MOUNTPOINT
rmdir $MOUNTPOINT
umount $MOUNTPOINT
rmdir $MOUNTPOINT

View File

@ -37,7 +37,7 @@ show_config() {
config_message+="\n - LLVM support:\t\t\t ${LLVM_SUPPORT}"
config_message+="\n - DEBUG:\t\t\t\t ${DEBUG:-no}"
config_message+="\n - CFLAGS:\t\t\t\t ${TARGET_CFLAGS}"
config_message+="\n - LDFLAGS:\t\t\t\t $(sed 's/^ *//' <<< ${TARGET_LDFLAGS})"
config_message+="\n - LDFLAGS:\t\t\t\t $(sed 's/^ *//' <<<${TARGET_LDFLAGS})"
config_message+="\n - Local Ccache:\t\t\t ${LOCAL_CCACHE:-no}"
# Misc. hardware configuration
@ -103,7 +103,7 @@ show_config() {
config_message+="\n ${dashes}${dashes}"
config_message+="\n - Graphic Drivers:\t\t\t ${GRAPHIC_DRIVERS}"
config_message+="\n - Display Server:\t\t\t ${DISPLAYSERVER}"
if [ "${DISPLAYSERVER}" = "x11" ] ; then
if [ "${DISPLAYSERVER}" = "x11" ]; then
for drv in ${XORG_DRIVERS}; do
XORG_DRIVERS_CONFIG+="xf86-video-${drv} "
done
@ -112,11 +112,11 @@ show_config() {
fi
config_message+="\n - Window Manager / Compositor:\t\t ${WINDOWMANAGER}"
config_message+="\n - OpenGL (GLX) support (provider):\t ${OPENGL_SUPPORT}"
[ "${OPENGL}" != "no" ] && config_message+=" (${OPENGL})"
[ "${OPENGL}" != "no" ] && config_message+=" (${OPENGL})"
config_message+="\n - OpenGL ES support (provider):\t ${OPENGLES_SUPPORT}"
[ "${OPENGLES}" != "no" ] && config_message+=" (${OPENGLES})"
[ "${OPENGLES}" != "no" ] && config_message+=" (${OPENGLES})"
config_message+="\n - Vulkan API support (provider):\t ${VULKAN_SUPPORT}"
[ "${VULKAN}" != "no" ] && config_message+=" (${VULKAN})"
[ "${VULKAN}" != "no" ] && config_message+=" (${VULKAN})"
if [ "${VULKAN_SUPPORT}" = "yes" ]; then
config_message+="\n - Vulkan Graphic Drivers:\t\t ${VULKAN_DRIVERS_CONFIG}"
fi