mirror of
https://abf.rosa.ru/djam/kernel-5.15.git
synced 2025-02-23 10:32:54 +00:00
minimize hackery f debuginfo-related parts of the config
This commit is contained in:
parent
42ac3ab72b
commit
76b14ec1d9
1 changed files with 5 additions and 8 deletions
13
kernel.spec
13
kernel.spec
|
@ -1061,14 +1061,11 @@ find . -name '*~' -o -name '*.orig' -o -name '*.append' -delete
|
|||
# Wipe all .gitignore/.get_maintainer.ignore files
|
||||
find . -name "*.g*ignore" -delete
|
||||
|
||||
# Enable debug info if requested.
|
||||
sed -i '/CONFIG_DEBUG_INFO/d' .config
|
||||
%if %build_debug
|
||||
echo 'CONFIG_DEBUG_INFO=y' >> %{build_dir}/.config.append
|
||||
echo 'CONFIG_DEBUG_INFO_DWARF4=y' >> %{build_dir}/.config.append
|
||||
echo 'CONFIG_GDB_SCRIPTS=y' >> %{build_dir}/.config.append
|
||||
%else
|
||||
echo 'CONFIG_DEBUG_INFO=n' >> %{build_dir}/.config.append
|
||||
# Disable debug info if requested (enabled by default)
|
||||
%if ! %build_debug
|
||||
sed -i -e '/CONFIG_DEBUG_INFO/d' -e '/CONFIG_GDB_SCRIPTS/d' .config
|
||||
echo '# CONFIG_DEBUG_INFO is not set' >> %{build_dir}/.config.append
|
||||
echo '# CONFIG_GDB_SCRIPTS is not set' >> %{build_dir}/.config.append
|
||||
%endif
|
||||
|
||||
sed -i '/CONFIG_MODULE_SIG_FORCE/d' .config
|
||||
|
|
Loading…
Add table
Reference in a new issue