Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .travis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ echo 'DONE.'

### build_example.bash

if [[ $ARCH = arm ]]; then
if [[ $ARCH == *arm* ]]; then

echo -n 'Building example project... '
make NO_TTY=y build-example &>/tmp/build_example.bash.log
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@
# EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.

FROM ubuntu:14.04
FROM ubuntu:16.04

RUN mkdir /work
WORKDIR /work

RUN apt-get update \
&& apt-get install -y wget \
&& wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add - \
&& echo "deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-4.0 main" \
&& echo "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-4.0 main" \
>/etc/apt/sources.list.d/llvm40.list \
&& apt-get update \
&& apt-get install -y libcurl4-openssl-dev \
Expand Down
4 changes: 2 additions & 2 deletions bin/arm-linux-gnueabihf-clang++
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ else
-B ${R}/usr/lib/gcc-cross/arm-linux-gnueabihf/4.8 \
\
-I ${R}/usr/arm-linux-gnueabihf/include \
-I ${R}/usr/arm-linux-gnueabihf/include/c++/4.8.4 \
-I ${R}/usr/arm-linux-gnueabihf/include/c++/4.8.4/arm-linux-gnueabihf \
-I ${R}/usr/arm-linux-gnueabihf/include/c++/4.8.5 \
-I ${R}/usr/arm-linux-gnueabihf/include/c++/4.8.5/arm-linux-gnueabihf \
\
-L ${R}/usr/arm-linux-gnueabi/libhf \
-L ${R}/usr/lib/gcc-cross/arm-linux-gnueabihf/4.8 \
Expand Down
2 changes: 1 addition & 1 deletion bin/arm-linux-gnueabihf-objcopy
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
D=$( (cd `dirname $0`/../.. >/dev/null; pwd -P) )
R=$D/sysroot

export LD_LIBRARY_PATH="${R}/usr/lib/x86_64-linux-gnu:${R}/usr/x86_64-linux-gnu/arm-linux-gnueabihf/lib"
export LD_LIBRARY_PATH="${R}/usr/lib/x86_64-linux-gnu"

exec ${R}/usr/bin/arm-linux-gnueabihf-objcopy $@

2 changes: 1 addition & 1 deletion docker_nametag
Original file line number Diff line number Diff line change
@@ -1 +1 @@
swiftnav/arm-llvm-obf:4.0-ubuntu1404-2017.12.22
swiftnav/arm-llvm-obf:4.0-ubuntu1604-2018.01.16
18 changes: 7 additions & 11 deletions stage_sysroot.bash
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ stage_sysroot() {
"/usr/arm-linux-gnueabihf"
"/usr/arm-linux-gnueabi"
"/usr/lib/gcc-cross/arm-linux-gnueabihf/4.8"
"/usr/x86_64-linux-gnu/arm-linux-gnueabihf/"
)

for SYSROOT_DIR in "${SYSROOT_DIRS[@]}"; do
Expand Down Expand Up @@ -87,16 +86,13 @@ stage_sysroot() {
mkdir -p "${OUT}/buildroot"
cp -v /this_dir/toolchainfile.cmake "${OUT}/buildroot"

####
## Disable this for Ubuntu 14.04, it doesn't seem to be present
####
# D="${OUT}/usr/lib/x86_64-linux-gnu/"
#
# mkdir -p "$D"
#
# for ARMHF in /usr/lib/x86_64-linux-gnu/*armhf*; do
# cp -v "${ARMHF}" "$D/"
# done
D="${OUT}/usr/lib/x86_64-linux-gnu/"

mkdir -p "$D"

for ARMHF in /usr/lib/x86_64-linux-gnu/*armhf*; do
cp -v "${ARMHF}" "$D/"
done
}

run() {
Expand Down