Skip to content

Commit 34ec928

Browse files
vigneshramanHelen Koike
authored andcommitted
drm: ci: Use scripts/config to enable/disable configs
Instead of modifying files in git to enable/disable configs, use scripts/config on the .config file which will be used for building the kernel. Acked-by: Helen Koike <[email protected]> Suggested-by: Jani Nikula <[email protected]> Signed-off-by: Vignesh Raman <[email protected]> Signed-off-by: Helen Koike <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 7879c15 commit 34ec928

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

drivers/gpu/drm/ci/build.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -75,19 +75,19 @@ else
7575
fi
7676
fi
7777

78-
for opt in $ENABLE_KCONFIGS; do
79-
echo CONFIG_$opt=y >> drivers/gpu/drm/ci/${KERNEL_ARCH}.config
80-
done
81-
for opt in $DISABLE_KCONFIGS; do
82-
echo CONFIG_$opt=n >> drivers/gpu/drm/ci/${KERNEL_ARCH}.config
83-
done
84-
8578
if [[ -n "${MERGE_FRAGMENT}" ]]; then
8679
./scripts/kconfig/merge_config.sh ${DEFCONFIG} drivers/gpu/drm/ci/${MERGE_FRAGMENT}
8780
else
8881
make `basename ${DEFCONFIG}`
8982
fi
9083

84+
for opt in $ENABLE_KCONFIGS; do
85+
./scripts/config --enable CONFIG_$opt
86+
done
87+
for opt in $DISABLE_KCONFIGS; do
88+
./scripts/config --disable CONFIG_$opt
89+
done
90+
9191
make ${KERNEL_IMAGE_NAME}
9292

9393
mkdir -p /lava-files/

0 commit comments

Comments
 (0)