Last active
July 24, 2018 13:34
-
-
Save cr1901/92371ed8a5509a54540503372cdc26a8 to your computer and use it in GitHub Desktop.
NetBSD RPi Build Debug Script
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
#!/bin/sh -e | |
DEFAULT_ROOT=Net-dbg-`date +%Y-%m-%d-%H-%M-%S` | |
export CVSROOT="[email protected]:/cvsroot" | |
if [ -z ${SRCROOT+x} ]; then | |
mkdir $DEFAULT_ROOT | |
cd $DEFAULT_ROOT | |
cvs -q checkout -A -P src | |
cd src | |
else | |
cd $SRCROOT/src | |
fi | |
./build.sh -u -j ${NUM_JOBS:-1} -m evbearmv6hf-el -U -O ../objdir/evbearmv6hf-el-rpi -T ../tools/std -D ../destdir/evbearmv6hf-el-rpi -R ../releasedir/evbearmv6hf-el-rpi tools kernel=RPI release | |
TMP=`mktemp` | |
echo "Kernel size:" >> $TMP | |
size -A ../objdir/evbearmv6hf-el-rpi/sys/arch/evbarm/compile/RPI/netbsd >> $TMP | |
echo "Kernel ls:" >> $TMP | |
ls -l ../releasedir/evbearmv6hf-el-rpi/evbarm/binary/kernel/ >> $TMP | |
echo "\nSets ls:" >> $TMP | |
ls -l ../releasedir/evbearmv6hf-el-rpi/evbarm/binary/sets/ >> $TMP | |
uname -a >> $TMP | |
cat $TMP | curl -F 'f:1=<-' ix.io | |
rm $TMP |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment