linux-tkg: Set CONFIG_DEBUG_INFO=n by default on non-Arch

Debian-based distros notably create huge dbg packages otherwise
master
Tk-Glitch 2020-08-21 10:09:10 +07:00
parent 453a462715
commit 16a91d2987
4 changed files with 16 additions and 0 deletions

@ -120,6 +120,10 @@ _tkg_srcprep() {
if [ "$_noccache" != "true" ] && pacman -Qq ccache &> /dev/null; then if [ "$_noccache" != "true" ] && pacman -Qq ccache &> /dev/null; then
sed -i -e 's/CONFIG_GCC_PLUGINS=y/# CONFIG_GCC_PLUGINS is not set/' ./.config sed -i -e 's/CONFIG_GCC_PLUGINS=y/# CONFIG_GCC_PLUGINS is not set/' ./.config
fi fi
# Skip dbg package creation on non-Arch
if [ "$_distro" != "Arch" ]; then
sed -i -e 's/CONFIG_DEBUG_INFO.*/CONFIG_DEBUG_INFO=n/' ./.config
fi
# Inject cpuopts options # Inject cpuopts options
echo "# CONFIG_MK8SSE3 is not set" >> ./.config echo "# CONFIG_MK8SSE3 is not set" >> ./.config

@ -241,6 +241,10 @@ _tkg_srcprep() {
sed -i -e 's/CONFIG_GCC_PLUGINS=y/# CONFIG_GCC_PLUGINS is not set/' ./.config sed -i -e 's/CONFIG_GCC_PLUGINS=y/# CONFIG_GCC_PLUGINS is not set/' ./.config
fi fi
fi fi
# Skip dbg package creation on non-Arch
if [ "$_distro" != "Arch" ]; then
sed -i -e 's/CONFIG_DEBUG_INFO.*/CONFIG_DEBUG_INFO=n/' ./.config
fi
if [ "$_font_autoselect" != "false" ]; then if [ "$_font_autoselect" != "false" ]; then
sed -i -e 's/CONFIG_FONT_TER16x32=y/# CONFIG_FONT_TER16x32 is not set\nCONFIG_FONT_AUTOSELECT=y/' ./.config sed -i -e 's/CONFIG_FONT_TER16x32=y/# CONFIG_FONT_TER16x32 is not set\nCONFIG_FONT_AUTOSELECT=y/' ./.config

@ -239,6 +239,10 @@ _tkg_srcprep() {
sed -i -e 's/CONFIG_GCC_PLUGINS=y/# CONFIG_GCC_PLUGINS is not set/' ./.config sed -i -e 's/CONFIG_GCC_PLUGINS=y/# CONFIG_GCC_PLUGINS is not set/' ./.config
fi fi
fi fi
# Skip dbg package creation on non-Arch
if [ "$_distro" != "Arch" ]; then
sed -i -e 's/CONFIG_DEBUG_INFO.*/CONFIG_DEBUG_INFO=n/' ./.config
fi
if [ "$_font_autoselect" != "false" ]; then if [ "$_font_autoselect" != "false" ]; then
sed -i -e 's/CONFIG_FONT_TER16x32=y/# CONFIG_FONT_TER16x32 is not set\nCONFIG_FONT_AUTOSELECT=y/' ./.config sed -i -e 's/CONFIG_FONT_TER16x32=y/# CONFIG_FONT_TER16x32 is not set\nCONFIG_FONT_AUTOSELECT=y/' ./.config

@ -237,6 +237,10 @@ _tkg_srcprep() {
sed -i -e 's/CONFIG_GCC_PLUGINS=y/# CONFIG_GCC_PLUGINS is not set/' ./.config sed -i -e 's/CONFIG_GCC_PLUGINS=y/# CONFIG_GCC_PLUGINS is not set/' ./.config
fi fi
fi fi
# Skip dbg package creation on non-Arch
if [ "$_distro" != "Arch" ]; then
sed -i -e 's/CONFIG_DEBUG_INFO.*/CONFIG_DEBUG_INFO=n/' ./.config
fi
if [ "$_font_autoselect" != "false" ]; then if [ "$_font_autoselect" != "false" ]; then
sed -i -e 's/CONFIG_FONT_TER16x32=y/# CONFIG_FONT_TER16x32 is not set\nCONFIG_FONT_AUTOSELECT=y/' ./.config sed -i -e 's/CONFIG_FONT_TER16x32=y/# CONFIG_FONT_TER16x32 is not set\nCONFIG_FONT_AUTOSELECT=y/' ./.config