mirror of
https://github.com/krizsipeti/custom_blfs_packages.git
synced 2025-01-23 14:32:21 +08:00
Build qt6 with -O3 -pipe -march=native and added window and display manager build
This commit is contained in:
parent
401cce1a1d
commit
2ab1bc3a29
@ -256,8 +256,8 @@ BUILD_SUBDIRS=y
|
|||||||
|
|
||||||
# Optimization
|
# Optimization
|
||||||
JOBS=0
|
JOBS=0
|
||||||
CFG_CFLAGS=" -O2 -pipe "
|
CFG_CFLAGS=" -O3 -pipe -march=native "
|
||||||
CFG_CXXFLAGS=" -O2 -pipe "
|
CFG_CXXFLAGS=" -O3 -pipe -march=native "
|
||||||
CFG_LDFLAGS="EMPTY"
|
CFG_LDFLAGS="EMPTY"
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
@ -317,6 +317,51 @@ EOF
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
# Creates the blfs configuration file to build window and display managers.
|
||||||
|
# For now we use openbox as window manager and sddm as display manager.
|
||||||
|
# The only parameter should be the new LFS system's root folder.
|
||||||
|
_create_blfs_config_dm()
|
||||||
|
{
|
||||||
|
# Check parameter
|
||||||
|
local dir_lfs="$(realpath "$1")"
|
||||||
|
if [ ! -d "$dir_lfs" ] ; then
|
||||||
|
echo "Invalid folder: $dir_lfs"
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Create new blfs config
|
||||||
|
local dir_blfscfg="$dir_lfs/home/pkr/blfs_root/configuration"
|
||||||
|
if [ -f "$dir_blfscfg" ] ; then
|
||||||
|
sudo rm -fv "$dir_blfscfg" || return 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
cat > "$dir_blfscfg" << EOF
|
||||||
|
CONFIG_openbox=y
|
||||||
|
CONFIG_sddm=y
|
||||||
|
|
||||||
|
# Build settings
|
||||||
|
MS_sendmail=y
|
||||||
|
MAIL_SERVER="sendmail"
|
||||||
|
DEPLVL_2=y
|
||||||
|
optDependency=2
|
||||||
|
LANGUAGE="hu_HU.UTF-8"
|
||||||
|
SUDO=y
|
||||||
|
DEL_LA_FILES=y
|
||||||
|
|
||||||
|
# Build Layout
|
||||||
|
SRC_ARCHIVE="/sources"
|
||||||
|
BUILD_ROOT="/sources"
|
||||||
|
BUILD_SUBDIRS=y
|
||||||
|
|
||||||
|
# Optimization
|
||||||
|
JOBS=0
|
||||||
|
CFG_CFLAGS=" -O3 -pipe -march=native "
|
||||||
|
CFG_CXXFLAGS=" -O3 -pipe -march=native "
|
||||||
|
CFG_LDFLAGS="EMPTY"
|
||||||
|
EOF
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
# Creates script that auto builds the blfs system after successfull lfs build
|
# Creates script that auto builds the blfs system after successfull lfs build
|
||||||
_create_blfs_builder_script()
|
_create_blfs_builder_script()
|
||||||
{
|
{
|
||||||
@ -366,6 +411,12 @@ _build_blfs()
|
|||||||
make <<< yes &&
|
make <<< yes &&
|
||||||
cd "$dir_blfs_work" &&
|
cd "$dir_blfs_work" &&
|
||||||
../gen-makefile.sh &&
|
../gen-makefile.sh &&
|
||||||
|
make &&
|
||||||
|
cd "$dir_blfs_root" &&
|
||||||
|
sed -i -E "s/_create_blfs_config_lxqt/_create_blfs_config_dm/g" "$dir_blfs_root/Makefile" &&
|
||||||
|
make <<< yes &&
|
||||||
|
cd "$dir_blfs_work" &&
|
||||||
|
../gen-makefile.sh &&
|
||||||
make
|
make
|
||||||
sudo shutdown --poweroff +1
|
sudo shutdown --poweroff +1
|
||||||
)}
|
)}
|
||||||
|
Loading…
Reference in New Issue
Block a user