forked from borgestrand/sdr-widget
/
make-widget
executable file
·36 lines (32 loc) · 1.1 KB
/
make-widget
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/sh
# This file is to be called from Makefile (at project root). Calling
# it manually means compilation default features are not set. You
# must edit Makefile (at project root) to set compilation defaults.
#
# This file tries to set AVR32BIN to a directory containing avr32-gcc.
# it then includes it in the path and runs make in the Release folder.
#
# You must edit this file if your AVR32 tools are installed but not
# found. If you have not installed AVR32 tools, fetch them at
# http://www.atmel.no/beta_ware/
# Toolchain 3.0.0 in AVR32studio 2.6 is probably not ideal. Toolchain 3.4.2.435 from AVRstudio 6.1 doesn't seem to work with makefile & Co.s
# "/cygdrive/c/Program Files (x86)/AVR32studio_2.6/plugins/com.atmel.avr.toolchains.win32.x86_3.0.0.201009140852/os/win32/x86/bin" \
for d in \
"/usr/local/bin" \
;do
if [ -d "$d" ]
then
echo "Found AVR32BIN directory in"
echo "$d"
export AVR32BIN="$d"
break
fi
done
if [ -d "$d" ]
then
PATH=${AVR32BIN}:$PATH
export PATH
cd Release && make -j 8 all
else
echo "Could not find AVR32BIN directory"
fi