pkg: fedora: Make sure build-id's are unique

This will make it possible to install multiple -devel packages in
parallel, just like with the stock kernel.

Signed-off-by: Dorian Stoll <dorian.stoll@tmsp.io>
This commit is contained in:
Dorian Stoll 2020-03-16 13:34:02 +01:00
parent 07a609ba3f
commit 1f1435d585
No known key found for this signature in database
GPG key ID: F1DACD02C619442A

View file

@ -146,6 +146,10 @@ pathfix.py -i "%{__python3} %{py3_shbang_opts}" -p -n \
scripts/gen_compile_commands.py
%build
# This ensures build-ids are unique to allow parallel debuginfo
perl -p -i -e "s/^CONFIG_BUILD_SALT.*/CONFIG_BUILD_SALT=\"%{kernel_name}\"/" .config
make %{?_smp_mflags} all LOCALVERSION=-%{kernel_localversion} ARCH=%{_target_cpu}
%define __modsign_install_post \