forked from MatrixPilot/MatrixPilot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
travis-install-dependencies.sh
111 lines (101 loc) · 4.5 KB
/
travis-install-dependencies.sh
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
#/usr/bin/env sh
#
# Install the software needed for a build.
#
#*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*
#
# Copyright (c) 2015 Jeroen de Bruijn
#
# This file is part of MPLABX_Travis-CI_Example which is released under the
# MIT License (MIT).
# For full license details see file "LICENSE" or go to
# https://opensource.org/licenses/MIT
#
#*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*
#
# Downloads the software from Microchip and saves them in a folder outside
# of the project directory. Than extracts and installs them.
#
# Versions:
# MPLAB® X IDE: v3.15 (not required for travis builds)
# MPLAB® XC16 Compiler: v1.24
# MPLAB® XC16 Compiler: v1.25
# MPLAB® XC16 Compiler: v1.26 (default)
#
# Save the current working directory
pushd .
# Create a folder for the installation files.
mkdir ../install-dependencies
cd ../install-dependencies
export XC16VER=v1.26
echo "- Microchip XC16 Compiler "$XC16VER" -"
### IDE
# Install MPLAB X IDE v3.15
#echo "-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+"
#echo "- Downloading MPLAB X IDE v3.15..."
#wget http://ww1.microchip.com/downloads/en/DeviceDoc/MPLABX-v3.15-linux-installer.tar
#echo "- Download finished..."
#echo "- Unpacking MPLABX-v3.15-linux-installer.tar..."
#tar -xvf MPLABX-v3.15-linux-installer.tar
#echo "- Unpack finished..."
#echo "- Installing MPLAB X IDE v3.15..."
#sudo ./MPLABX-v3.15-linux-installer.sh -- --mode unattended
#echo "- Installation of MPLAB X IDE v3.15 finished."
#echo "-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-"
#echo
### Compiler
# Install Microchip XC16 Compiler v1.25
#echo "-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+--+"
#echo "- Downloading Microchip XC16 Compiler v1.25"
#wget http://ww1.microchip.com/downloads/en/DeviceDoc/xc16-v1.25-full-install-linux-installer.run
#echo "- Download finished..."
#echo "- Adding excecution rights..."
#chmod +x xc16-v1.25-full-install-linux-installer.run
#echo "- Installing Microchip XC16 Compiler v1.25"
#sudo ./xc16-v1.25-full-install-linux-installer.run --mode unattended --netservername dontknow
#echo "- Installation of Microchip XC16 Compiler v1.25 finished."
#echo "-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-"
#echo
### Compiler
# Install Microchip XC16 Compiler v1.26
echo "-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+--+"
echo "- Downloading Microchip XC16 Compiler v1.26"
wget http://ww1.microchip.com/downloads/en/DeviceDoc/xc16-v1.26-full-install-linux-installer.run
echo "- Download finished..."
echo "- Adding excecution rights..."
chmod +x xc16-v1.26-full-install-linux-installer.run
echo "- Installing Microchip XC16 Compiler v1.26"
sudo ./xc16-v1.26-full-install-linux-installer.run --mode unattended --netservername dontknow
echo "- Installation of Microchip XC16 Compiler v1.26 finished."
echo "-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-"
echo
### Microchip Libraries
# Install Microchip Peripheral Libraries (PLIBS) v2.00
echo "-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-"
echo "- Downloading Microchip PLIBS v2.00"
#wget http://ww1.microchip.com/downloads/en/DeviceDoc/peripheral-libraries-for-pic24-and-dspic-v2.00-linux-installer.run
wget http://ww1.microchip.com/downloads/en//softwarelibrary/pic24%20mcu%20dspic%20peripheral%20lib/peripheral-libraries-for-pic24-and-dspic-v2.00-linux-installer.run
echo "- Download finished..."
echo "- Adding excecution rights..."
chmod +x peripheral-libraries-for-pic24-and-dspic-v2.00-linux-installer.run
echo "- Installing Microchip PLIBS v2.00"
#sudo ./peripheral-libraries-for-pic24-and-dspic-v2.00-linux-installer.run --mode unattended --prefix /opt/microchip/xc16/v1.25
sudo ./peripheral-libraries-for-pic24-and-dspic-v2.00-linux-installer.run --mode unattended --prefix /opt/microchip/xc16/v1.26
echo "- Installation of Microchip PLIBS v2.00 finished."
echo "-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-"
echo
### Compiler
# Install MPLAB XC16 Compiler v1.24
#echo "-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-"
#echo "- Downloading MPLAB XC16 Compiler v1.24"
#wget http://ww1.microchip.com/downloads/en/DeviceDoc/xc16-v1.24-full-install-linux-installer.run
#echo "- Download finished..."
#echo "- Adding excecution rights..."
#chmod +x xc16-v1.24-full-install-linux-installer.run
#echo "- Installing MPLAB XC16 Compiler v1.24"
#sudo ./xc16-v1.24-full-install-linux-installer.run --mode unattended --netservername dontknow
#echo "- Installation of MPLAB XC16 Compiler v1.24 finished."
#echo "-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-"
#echo
# Return to the saved working directory
popd