OLD | NEW |
1 # Copyright (c) 2014 The Native Client Authors. All rights reserved. | 1 # Copyright (c) 2014 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 export ac_cv_func_getrlimit=no | 5 export ac_cv_func_getrlimit=no |
6 | 6 |
7 export EXTRA_LIBS="${NACL_CLI_MAIN_LIB}" | 7 export EXTRA_LIBS="${NACL_CLI_MAIN_LIB}" |
8 EXTRA_CONFIGURE_ARGS="\ | 8 EXTRA_CONFIGURE_ARGS="\ |
9 --enable-targets=x86_64-nacl,arm-nacl,avr \ | 9 --enable-targets=x86_64-nacl,arm-nacl,avr \ |
10 --disable-werror \ | 10 --disable-werror \ |
11 --enable-deterministic-archives \ | 11 --enable-deterministic-archives \ |
12 --without-zlib" | 12 --without-zlib" |
13 | 13 |
14 BuildStep() { | 14 BuildStep() { |
15 export CONFIG_SITE | 15 export CONFIG_SITE |
16 DefaultBuildStep | 16 DefaultBuildStep |
17 } | 17 } |
18 | 18 |
19 InstallStep() { | 19 InstallStep() { |
20 DefaultInstallStep | 20 DefaultInstallStep |
21 | 21 |
22 # The ldscripts that ship with this verion of binutils doesn't seem to | 22 # The ldscripts that ship with this verion of binutils doesn't seem to |
23 # work with the glibc toolchain devenv. Instead we copy the linker scripts | 23 # work with the glibc toolchain devenv. Instead we copy the linker scripts |
24 # out of the SDK root. | 24 # out of the SDK root. |
25 rm -rf ${DESTDIR}${PREFIX}/${NACL_ARCH}-nacl/lib/ldscripts | 25 rm -rf ${DESTDIR}${PREFIX}/${NACL_ARCH}-nacl/lib/ldscripts |
26 LogExecute cp -r \ | 26 LogExecute cp -r \ |
27 ${NACL_SDK_ROOT}/toolchain/${OS_SUBDIR}_x86_glibc/x86_64-nacl/lib/ldscripts \ | 27 ${NACL_SDK_ROOT}/toolchain/${OS_SUBDIR}_x86_glibc/x86_64-nacl/lib/ldscripts \ |
28 ${DESTDIR}${PREFIX}/${NACL_ARCH}-nacl/lib/ | 28 ${DESTDIR}${PREFIX}/${NACL_ARCH}-nacl/lib/ |
29 } | 29 } |
30 | |
31 PublishStep() { | |
32 MakeDir ${PUBLISH_DIR} | |
33 for nexe in binutils/*.nexe gas/*.nexe ld/*.nexe; do | |
34 local name=$(basename $nexe .nexe | sed 's/-new//') | |
35 cp ${nexe} ${PUBLISH_DIR}/${name}_${NACL_ARCH}${NACL_EXEEXT} | |
36 | |
37 pushd ${PUBLISH_DIR} | |
38 LogExecute python ${NACL_SDK_ROOT}/tools/create_nmf.py \ | |
39 ${PUBLISH_DIR}/${name}_*${NACL_EXEEXT} \ | |
40 -s . \ | |
41 -o ${name}.nmf | |
42 popd | |
43 done | |
44 } | |
OLD | NEW |