Files
bfe-core1106-sdk/patches/90-kconfig-no-python-symbol.patch
NoahandClaude Sonnet 5.5 cf72a6dcbc kernel: make KCONFIG_SHA256 independent of the host python (bfe-core1106-sdk#19)
DRM_MSM_VALIDATE_XML depended on `$(PYTHON3) -c "import lxml"`, so the expanded .config gained a
line on hosts where python3 could import lxml and the whole-file digest differed (the flashed image
ec276f77 against e8e9ef1c from a config-only run on the same tree). Drop the unused Qualcomm symbol
with a one-block Kconfig patch; the digest is now ec276f77 everywhere and equals the flashed one.

Regression test: tests/required-symbols/run-config-determinism-tests.sh runs the config-only
expansion with a python3 whose import lxml works and one where it fails and requires the same
digest; it is proven red on a copy of the tree without the patch. The kernel-symbols CI job runs it.

Fixes #19.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Cxh2piVufTWbzKTmUafTkk
2026-10-09 19:17:57 -06:00

26 lines
1.1 KiB
Diff

Remove the DRM_MSM_VALIDATE_XML Kconfig symbol (rebuild M0, bfe-core1106-sdk#19).
Its dependency $(success,$(PYTHON3) -c "import lxml") makes the expanded .config differ by host: with
python3-lxml importable the file gains '# CONFIG_DRM_MSM_VALIDATE_XML is not set', without it the line is
absent, so KCONFIG_SHA256 was not reproducible across hosts. The symbol only validates Qualcomm GPU register
XML for DRM MSM developers; the panel has no Qualcomm GPU. No binary changes.
diff --git a/drivers/gpu/drm/msm/Kconfig b/drivers/gpu/drm/msm/Kconfig
--- a/drivers/gpu/drm/msm/Kconfig
+++ b/drivers/gpu/drm/msm/Kconfig
@@ -50,14 +50,6 @@
Only use this if you are a driver developer. This should *not*
be enabled for production kernels. If unsure, say N.
-config DRM_MSM_VALIDATE_XML
- bool "Validate XML register files against schema"
- depends on DRM_MSM && EXPERT
- depends on $(success,$(PYTHON3) -c "import lxml")
- help
- Validate XML files with register definitions against rules-fd schema.
- This option is mostly targeting DRM MSM developers. If unsure, say N.
-
config DRM_MSM_KMS
def_bool n
depends on DRM_MSM