rehosting / linux_builder

0 stars 1 forks source link

Merge common options #10

Closed be32826 closed 9 months ago

be32826 commented 9 months ago

Resolves #3

You can verify that the configs stay the same after this PR by running the following commands in bash

git clone --depth 1 \
    --branch merge-common-options \
    https://github.com/panda-re/linux_builder linux_builder_new

git clone --depth 1 \
    https://github.com/panda-re/linux_builder linux_builder_old

for target in armeb armel mipseb mipsel mips64eb mips64el; do
    old_config=$(cat linux_builder_old/config.$target | sort | sed '/^#/d')
    new_config=$(cpp -P -undef linux_builder_new/configs/$target | sort)

    echo -n "$target "
    if [ "$old_config" == "$new_config" ]; then
        echo ✅
    else
        echo ❌
    fi
done

For me, this outputs

armeb ✅
armel ✅
mipseb ✅
mipsel ✅
mips64eb ✅
mips64el ✅
AndrewFasano commented 9 months ago

This is awesome