Created
November 10, 2020 08:31
-
-
Save jarkkojs/9aa93d5d255430078a2f80a1afb817d6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/bash | |
git clean -f -d -x | |
make tinyconfig && cat >> .config <<EOF | |
CONFIG_64BIT=y | |
CONFIG_CRYPTO=y | |
CONFIG_CRYPTO_SHA256=y | |
CONFIG_X86_SGX=y | |
CONFIG_DEBUG_INFO=y | |
EOF | |
echo "SGX COMPILE TEST" > sgx-compile-test.log | |
for x in {23..0} | |
do | |
git checkout master~$x | |
sleep 2 | |
yes '' | make oldconfig || break | |
make CC="ccache gcc" -j$(nproc) || break | |
git --no-pager log --oneline -1 >> sgx-compile-test.log | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment