-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathfixedison.sh
More file actions
executable file
·33 lines (25 loc) · 870 Bytes
/
Copy pathfixedison.sh
File metadata and controls
executable file
·33 lines (25 loc) · 870 Bytes
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
#!/bin/bash
ARCH=`uname -m`
echo "Arch: $ARCH"
if [ "$ARCH" = "x86_64" ]; then
FILE=iot-devkit-toolchain-linux-64bit-edison-20160606.sh
else
FILE=iot-devkit-toolchain-linux-32bit-edison-20160606.sh
fi
URL=https://iotdk.intel.com/sdk/3.5/edison/${FILE}
DEST=${HOME}/.arduino15/packages/Intel/tools/core2-32-poky-linux/1.6.2+1.0/
wget -c "${URL}"
rm -rf "${DEST}/i686"
mkdir -p "${DEST}/i686"
chmod 755 ${FILE}
./${FILE} -y -S -R -d "${DEST}/i686"
if [ "$ARCH" = "x86_64" ]; then
mv "${DEST}/i686/sysroots/x86_64-pokysdk-linux" "${DEST}/i686/sysroots/pokysdk"
cd "${DEST}/i686"
sed -i 's/\/x86_64-pokysdk-linux\//\/pokysdk\//g' relocate_sdk.sh
else
mv "${DEST}/i686/sysroots/core2-32-poky-linux" "${DEST}/i686/sysroots/pokysdk"
cd "${DEST}/i686"
sed -i 's/\/core2-32-poky-linux\//\/pokysdk\//g' relocate_sdk.sh
fi
./relocate_sdk.sh