Skip to content

Instantly share code, notes, and snippets.

@jarkkojs
Created November 10, 2020 08:31
Show Gist options
  • Save jarkkojs/9aa93d5d255430078a2f80a1afb817d6 to your computer and use it in GitHub Desktop.
Save jarkkojs/9aa93d5d255430078a2f80a1afb817d6 to your computer and use it in GitHub Desktop.
#!/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