File tree Expand file tree Collapse file tree 6 files changed +14
-18
lines changed Expand file tree Collapse file tree 6 files changed +14
-18
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ echo 'DONE.'
5252
5353# ## build_example.bash
5454
55- if [[ $ARCH = arm ]]; then
55+ if [[ $ARCH == * arm* ]]; then
5656
5757 echo -n ' Building example project... '
5858 make NO_TTY=y build-example & > /tmp/build_example.bash.log
Original file line number Diff line number Diff line change 88# EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
99# WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
1010
11- FROM ubuntu:14 .04
11+ FROM ubuntu:16 .04
1212
1313RUN mkdir /work
1414WORKDIR /work
1515
1616RUN apt-get update \
1717 && apt-get install -y wget \
1818 && wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add - \
19- && echo "deb http://apt.llvm.org/trusty / llvm-toolchain-trusty -4.0 main" \
19+ && echo "deb http://apt.llvm.org/xenial / llvm-toolchain-xenial -4.0 main" \
2020 >/etc/apt/sources.list.d/llvm40.list \
2121 && apt-get update \
2222 && apt-get install -y libcurl4-openssl-dev \
Original file line number Diff line number Diff line change 4444 -B ${R} /usr/lib/gcc-cross/arm-linux-gnueabihf/4.8 \
4545 \
4646 -I ${R} /usr/arm-linux-gnueabihf/include \
47- -I ${R} /usr/arm-linux-gnueabihf/include/c++/4.8.4 \
48- -I ${R} /usr/arm-linux-gnueabihf/include/c++/4.8.4 /arm-linux-gnueabihf \
47+ -I ${R} /usr/arm-linux-gnueabihf/include/c++/4.8.5 \
48+ -I ${R} /usr/arm-linux-gnueabihf/include/c++/4.8.5 /arm-linux-gnueabihf \
4949 \
5050 -L ${R} /usr/arm-linux-gnueabi/libhf \
5151 -L ${R} /usr/lib/gcc-cross/arm-linux-gnueabihf/4.8 \
Original file line number Diff line number Diff line change 1313D=$( (cd ` dirname $0 ` /../.. > /dev/null; pwd -P) )
1414R=$D /sysroot
1515
16- export LD_LIBRARY_PATH=" ${R} /usr/lib/x86_64-linux-gnu: ${R} /usr/x86_64-linux-gnu/arm-linux-gnueabihf/lib "
16+ export LD_LIBRARY_PATH=" ${R} /usr/lib/x86_64-linux-gnu"
1717
1818exec ${R} /usr/bin/arm-linux-gnueabihf-objcopy $@
1919
Original file line number Diff line number Diff line change 1- swiftnav/arm-llvm-obf:4.0-ubuntu1404-2017.12.22
1+ swiftnav/arm-llvm-obf:4.0-ubuntu1604-2018.01.16
Original file line number Diff line number Diff line change @@ -48,7 +48,6 @@ stage_sysroot() {
4848 " /usr/arm-linux-gnueabihf"
4949 " /usr/arm-linux-gnueabi"
5050 " /usr/lib/gcc-cross/arm-linux-gnueabihf/4.8"
51- " /usr/x86_64-linux-gnu/arm-linux-gnueabihf/"
5251 )
5352
5453 for SYSROOT_DIR in " ${SYSROOT_DIRS[@]} " ; do
@@ -87,16 +86,13 @@ stage_sysroot() {
8786 mkdir -p " ${OUT} /buildroot"
8887 cp -v /this_dir/toolchainfile.cmake " ${OUT} /buildroot"
8988
90- # ###
91- # # Disable this for Ubuntu 14.04, it doesn't seem to be present
92- # ###
93- # D="${OUT}/usr/lib/x86_64-linux-gnu/"
94- #
95- # mkdir -p "$D"
96- #
97- # for ARMHF in /usr/lib/x86_64-linux-gnu/*armhf*; do
98- # cp -v "${ARMHF}" "$D/"
99- # done
89+ D=" ${OUT} /usr/lib/x86_64-linux-gnu/"
90+
91+ mkdir -p " $D "
92+
93+ for ARMHF in /usr/lib/x86_64-linux-gnu/* armhf* ; do
94+ cp -v " ${ARMHF} " " $D /"
95+ done
10096}
10197
10298run () {
You can’t perform that action at this time.
0 commit comments