OLD | NEW |
1 # Copyright 2015 The Native Client Authors. All rights reserved. | 1 # Copyright 2015 The Native Client Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 HOST_BUILD_DIR=${WORK_DIR}/build_host | 5 HOST_BUILD_DIR=${WORK_DIR}/build_host |
6 HOST_BIN_INSTALL_DIR=${NACL_PACKAGES_BUILD}/binutils-2.25/install_host | 6 HOST_BIN_INSTALL_DIR=${NACL_PACKAGES_BUILD}/binutils-2.25/install_host |
7 | 7 |
8 AVR_LIBC_URL=http://storage.googleapis.com/webports/mirror/avr-libc-1.8.1.tar.bz
2 | 8 AVR_LIBC_URL=http://storage.googleapis.com/webports/mirror/avr-libc-1.8.1.tar.bz
2 |
9 AVR_LIBC_SHA=b56fe21b30341869aa768689b0f6a07d896b17fa | 9 AVR_LIBC_SHA=b56fe21b30341869aa768689b0f6a07d896b17fa |
10 AVR_LIBC_VERSION=avr-libc-1.8.1 | 10 AVR_LIBC_VERSION=avr-libc-1.8.1 |
11 | 11 |
| 12 EnableCliMain |
12 export EXTRA_LIBS="${NACL_CLI_MAIN_LIB}" | 13 export EXTRA_LIBS="${NACL_CLI_MAIN_LIB}" |
13 export PATH="${PATH}:${NACL_PACKAGES_BUILD}/binutils-2.25/install_host/bin" | 14 export PATH="${PATH}:${NACL_PACKAGES_BUILD}/binutils-2.25/install_host/bin" |
14 NACLPORTS_CPPFLAGS+=" -Dpipe=nacl_spawn_pipe" | 15 NACLPORTS_CPPFLAGS+=" -Dpipe=nacl_spawn_pipe" |
15 | 16 |
16 if [ "${NACL_LIBC}" = "newlib" ]; then | 17 if [ "${NACL_LIBC}" = "newlib" ]; then |
17 export EXTRA_INCLUDES=" -I${NACLPORTS_INCLUDE}/glibc-compat" | 18 export EXTRA_INCLUDES=" -I${NACLPORTS_INCLUDE}/glibc-compat" |
18 fi | 19 fi |
19 | 20 |
20 BuildHostGccAvr() { | 21 BuildHostGccAvr() { |
21 # Host avr-gcc already installed, skip install. | 22 # Host avr-gcc already installed, skip install. |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 | 92 |
92 # avr-libc needs to be in the same directory as the gcc-avr install | 93 # avr-libc needs to be in the same directory as the gcc-avr install |
93 cp -r ${WORK_DIR}/avr_libc_install/* ${INSTALL_DIR}/webports-dummydir | 94 cp -r ${WORK_DIR}/avr_libc_install/* ${INSTALL_DIR}/webports-dummydir |
94 } | 95 } |
95 | 96 |
96 InstallStep() { | 97 InstallStep() { |
97 DefaultInstallStep | 98 DefaultInstallStep |
98 AvrLibcDownload | 99 AvrLibcDownload |
99 AvrLibcExtractAndInstall | 100 AvrLibcExtractAndInstall |
100 } | 101 } |
OLD | NEW |