From: Patrick Talbert on
gitlab.com
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/740#note_53984...
Hey Prarit,
This does not build for the debug variant of aarch64 if
CONFIG_SCF_TORTURE_TEST=y is set. This is because having
CONFIG_SCF_TORTURE_TEST=y enables CONFIG_TORTURE_TEST as a built in
while our the existing aarch64 debug config specify it as a module:
```
kernel-ark (configs/2020-10-21/lib/Kconfig.debug)$ make dist-configs
make -C redhat dist-configs
make[1]: Entering directory '/home/ptalbert/git/gitlab/kernel-
ark/redhat'
BUILDID is ".test".
cd /home/ptalbert/git/gitlab/kernel-ark/redhat/configs; rm -f
kernel-*.config \
kernel-*.config.orig \
kernel-*.config.tmp
Gathering new log entries since 74937d92fe7907fb2ffbed20493cefb05b231bed
MARKER is v5.12-rc4
cd /home/ptalbert/git/gitlab/kernel-ark/redhat/configs;
./build_configs.sh "kernel" "" ""
Building /home/ptalbert/git/gitlab/kernel-
ark/redhat/configs/kernel-x86_64-rhel.config ... done
Building /home/ptalbert/git/gitlab/kernel-
ark/redhat/configs/kernel-x86_64-debug-rhel.config ... done
Building /home/ptalbert/git/gitlab/kernel-ark/redhat/configs/kernel-
ppc64le-rhel.config ... done
Building /home/ptalbert/git/gitlab/kernel-ark/redhat/configs/kernel-
ppc64le-debug-rhel.config ... done
Building /home/ptalbert/git/gitlab/kernel-
ark/redhat/configs/kernel-s390x-rhel.config ... done
Building /home/ptalbert/git/gitlab/kernel-
ark/redhat/configs/kernel-s390x-debug-rhel.config ... done
Building /home/ptalbert/git/gitlab/kernel-
ark/redhat/configs/kernel-s390x-zfcpdump-rhel.config ... done
Building /home/ptalbert/git/gitlab/kernel-ark/redhat/configs/kernel-
aarch64-rhel.config ... done
Building /home/ptalbert/git/gitlab/kernel-ark/redhat/configs/kernel-
aarch64-debug-rhel.config ... done
Building /home/ptalbert/git/gitlab/kernel-
ark/redhat/configs/kernel-x86_64-fedora.config ... done
Building /home/ptalbert/git/gitlab/kernel-
ark/redhat/configs/kernel-x86_64-debug-fedora.config ... done
Building /home/ptalbert/git/gitlab/kernel-
ark/redhat/configs/kernel-i686-fedora.config ... done
Building /home/ptalbert/git/gitlab/kernel-
ark/redhat/configs/kernel-i686-debug-fedora.config ... done
Building /home/ptalbert/git/gitlab/kernel-ark/redhat/configs/kernel-
ppc64le-fedora.config ... done
Building /home/ptalbert/git/gitlab/kernel-ark/redhat/configs/kernel-
ppc64le-debug-fedora.config ... done
Building /home/ptalbert/git/gitlab/kernel-
ark/redhat/configs/kernel-s390x-fedora.config ... done
Building /home/ptalbert/git/gitlab/kernel-
ark/redhat/configs/kernel-s390x-debug-fedora.config ... done
Building /home/ptalbert/git/gitlab/kernel-ark/redhat/configs/kernel-
aarch64-fedora.config ... done
Building /home/ptalbert/git/gitlab/kernel-ark/redhat/configs/kernel-
aarch64-debug-fedora.config ... done
Building /home/ptalbert/git/gitlab/kernel-ark/redhat/configs/kernel-
armv7hl-fedora.config ... done
Building /home/ptalbert/git/gitlab/kernel-ark/redhat/configs/kernel-
armv7hl-debug-fedora.config ... done
Building /home/ptalbert/git/gitlab/kernel-ark/redhat/configs/kernel-
armv7hl-lpae-fedora.config ... done
Building /home/ptalbert/git/gitlab/kernel-ark/redhat/configs/kernel-
armv7hl-lpae-debug-fedora.config ... done
Processing /home/ptalbert/git/gitlab/kernel-
ark/redhat/configs/kernel-5.12.0-aarch64-debug.config ... Error:
Mismatches found in configuration files
Found CONFIG_TORTURE_TEST=y after generation, had CONFIG_TORTURE_TEST=m
in Source tree
make[1]: *** [Makefile:135: dist-configs] Error 1
make[1]: Leaving directory '/home/ptalbert/git/gitlab/kernel-ark/redhat'
make: *** [makefile:12: dist-configs] Error 2
kernel-ark (configs/2020-10-21/lib/Kconfig.debug)$ grep -nr
CONFIG_TORTURE_TEST redhat/configs/
redhat/configs/ark/debug/arm/aarch64/CONFIG_TORTURE_TEST:1:CONFIG_TORTUR
E_TEST=m
```
The simple solution to me is to instead set CONFIG_SCF_TORTURE_TEST=m.
Also, I added generic files to turn both options off for the non-debug
variants.
Let me know what you think.
Thank you,
Patrick