2016-07-17 05:57:56 -07:00
|
|
|
#!/bin/bash
|
|
|
|
# adjust for cpu
|
|
|
|
# -j 16 gave best result on a hyperthreaded quad core core i7
|
|
|
|
THREADS="-j 16"
|
2016-07-19 00:16:55 -07:00
|
|
|
KMAP=iso_split_rshift
|
2016-07-17 05:57:56 -07:00
|
|
|
echo "We need sudo later"
|
|
|
|
sudo ls 2>&1 /dev/null
|
|
|
|
make clean
|
2016-07-19 00:16:55 -07:00
|
|
|
make KEYMAP=${KMAP} ${THREADS}
|
2016-07-17 05:57:56 -07:00
|
|
|
if [[ $? -eq 0 ]]
|
|
|
|
then
|
|
|
|
echo "please trigger flashing! you have 5 seconds"
|
|
|
|
sleep 5
|
2016-07-19 00:16:55 -07:00
|
|
|
sudo make KEYMAP=${KMAP} dfu ${THREADS}
|
2016-07-17 05:57:56 -07:00
|
|
|
else
|
|
|
|
echo "make failed"
|
|
|
|
exit 77
|
|
|
|
fi
|