Skip to content

redhat/configs: trim out more unnecessary modules for automotive

Upstream Status: RHEL Only JIRA: https://issues.redhat.com/browse/RHEL-4793

This disables another large number of modules that are not needed for the automotive use case.

I validated this change by boot testing on a RideSX4 and on a x86_64 VM. I also ensured that no functionality was disabled that described in device tree for three supported aarch64 platforms with the following script.

generate_config_diff()
{   
        ./scripts/dtc/dt_to_config arch/arm64/boot/dts/qcom/sa8775p-ride.dts | \ 
            grep CONFIG_ | awk '{print $9}' | sort | uniq > configs.txt
        ./scripts/dtc/dt_to_config arch/arm64/boot/dts/qcom/sa8540p-ride.dts | \ 
            grep CONFIG_ | awk '{print $9}' | sort | uniq >> configs.txt
        ./scripts/dtc/dt_to_config arch/arm64/boot/dts/broadcom/bcm2711-rpi-4-b.dts | \ 
            grep CONFIG_ | awk '{print $9}' | sort | uniq >> configs.txt
        cat configs.txt | sort | uniq | xargs -iblah \
            echo "grep -w blah redhat/configs/kernel-automotive-5.14.0-aarch64.config" | sh | grep ^#
}   

git checkout main-automotive
generate_config_diff > config-original.txt

git checkout kmod-removal-2
generate_config_diff > config-new.txt

diff -u config-original.txt config-new.txt

Signed-off-by: Brian Masney bmasney@redhat.com

Edited by Brian Masney

Merge request reports