You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
374 B
Bash
18 lines
374 B
Bash
8 years ago
|
#!/bin/bash
|
||
|
# adjust for cpu
|
||
|
# -j 16 gave best result on a hyperthreaded quad core core i7
|
||
|
THREADS="-j 16"
|
||
|
echo "We need sudo later"
|
||
|
sudo ls 2>&1 /dev/null
|
||
|
make clean
|
||
|
make KEYMAP=toni77 ${THREADS}
|
||
|
if [[ $? -eq 0 ]]
|
||
|
then
|
||
|
echo "please trigger flashing! you have 5 seconds"
|
||
|
sleep 5
|
||
|
sudo make KEYMAP=toni77 dfu ${THREADS}
|
||
|
else
|
||
|
echo "make failed"
|
||
|
exit 77
|
||
|
fi
|