OLD | NEW |
1 # Copyright (c) 2012 The Native Client Authors. All rights reserved. | 1 # Copyright (c) 2012 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 # Environment variable NACL_ARCH should be set to one of the following | 5 # Environment variable NACL_ARCH should be set to one of the following |
6 # values: i686 x86_64 pnacl arm | 6 # values: i686 x86_64 pnacl arm |
7 | 7 |
8 | 8 |
9 # NAMING CONVENTION | 9 # NAMING CONVENTION |
10 # ================= | 10 # ================= |
(...skipping 600 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
611 fi | 611 fi |
612 for nexe in ${EXECUTABLES}; do | 612 for nexe in ${EXECUTABLES}; do |
613 local name=$(basename ${nexe}) | 613 local name=$(basename ${nexe}) |
614 name=${name/%.nexe/} | 614 name=${name/%.nexe/} |
615 name=${name/%.pexe/} | 615 name=${name/%.pexe/} |
616 LogExecute cp ${nexe} ${ARCH_DIR}/${name} | 616 LogExecute cp ${nexe} ${ARCH_DIR}/${name} |
617 # Stage libraries for toolchains that support dynamic linking. | 617 # Stage libraries for toolchains that support dynamic linking. |
618 if [[ "${TOOLCHAIN}" = "glibc" || "${TOOLCHAIN}" = "bionic" ]]; then | 618 if [[ "${TOOLCHAIN}" = "glibc" || "${TOOLCHAIN}" = "bionic" ]]; then |
619 # Run create_nmf for non-scripts. | 619 # Run create_nmf for non-scripts. |
620 # TODO(bradnelson): Do something prettier. | 620 # TODO(bradnelson): Do something prettier. |
621 if [ "$(head -c 2 ${nexe})" != "#!" ]; then | 621 if [[ "${nexe}" != *.so && "$(head -c 1 ${nexe})" != "#" ]]; then |
622 pushd ${ARCH_DIR} | 622 pushd ${ARCH_DIR} |
623 # Create a temporary name ending in .nexe so create_nmf does the right | 623 # Create a temporary name ending in .nexe so create_nmf does the right |
624 # thing. | 624 # thing. |
625 LogExecute cp ${name} tmp.nexe | 625 LogExecute cp ${name} tmp.nexe |
626 LogExecute python ${NACL_SDK_ROOT}/tools/create_nmf.py \ | 626 LogExecute python ${NACL_SDK_ROOT}/tools/create_nmf.py \ |
627 tmp.nexe -s . -o tmp.nmf | 627 tmp.nexe -s . -o tmp.nmf |
628 LogExecute rm tmp.nexe | 628 LogExecute rm tmp.nexe |
629 LogExecute rm tmp.nmf | 629 LogExecute rm tmp.nmf |
630 popd | 630 popd |
631 fi | 631 fi |
(...skipping 887 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1519 # These functions are called when this script is imported to do | 1519 # These functions are called when this script is imported to do |
1520 # any essential checking/setup operations. | 1520 # any essential checking/setup operations. |
1521 ###################################################################### | 1521 ###################################################################### |
1522 CheckToolchain | 1522 CheckToolchain |
1523 CheckPatchVersion | 1523 CheckPatchVersion |
1524 CheckSDKVersion | 1524 CheckSDKVersion |
1525 PatchSpecFile | 1525 PatchSpecFile |
1526 InjectSystemHeaders | 1526 InjectSystemHeaders |
1527 InstallConfigSite | 1527 InstallConfigSite |
1528 GetRevision | 1528 GetRevision |
OLD | NEW |