Verified Commit 6c3b31a2 authored by Adrian Schollmeyer's avatar Adrian Schollmeyer
Browse files

ci: Support ignoring config entries

Some config entries can be safely ignored as they are determined upon
building the kernel anyway. This commit adds a simple grep to exclude
lines matching given config names.
parent 65f9e9d7
Pipeline #4256 failed with stage
in 2 minutes and 17 seconds
......@@ -2,13 +2,14 @@ image: $CI_REGISTRY/gentoo/fem-overlay-ci-image:master
variables:
ARCH: x86_64
CONFIG_IGNORE_STR: "CONFIG_LD_VERSION|CONFIG_AS_VERSION"
.check-config:
script:
- "cp -v ${CONFIG_NAME} ${KERNEL_SOURCE_PATH}/.config"
- "make -C ${KERNEL_SOURCE_PATH}* olddefconfig"
- "grep -E '^CONFIG_' ${CONFIG_NAME} | sort > ${CONFIG_NAME}.filtered-pre"
- "grep -E '^CONFIG_' ${KERNEL_SOURCE_PATH}/.config | sort > ${CONFIG_NAME}.filtered-post"
- "grep -E '^CONFIG_' ${CONFIG_NAME} | grep -vE \"${CONFIG_IGNORE_STR}\" | sort > ${CONFIG_NAME}.filtered-pre"
- "grep -E '^CONFIG_' ${KERNEL_SOURCE_PATH}/.config | grep -vE \"${CONFIG_IGNORE_STR}\" | sort > ${CONFIG_NAME}.filtered-post"
- "diff --color=always ${CONFIG_NAME}.filtered-pre ${CONFIG_NAME}.filtered-post"
check-configs:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment