#!/bin/bash
# Copyright (c) 2014 The Native Client Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

export EXTRA_LIBS="${NACL_CLI_MAIN_LIB} -lppapi_simple \
  -lnacl_io -lppapi -lppapi_cpp -l${NACL_CPP_LIB}"
CONFIG_SUB=support/config.sub
EXTRA_CONFIGURE_ARGS="\
  --target=x86_64-nacl \
  --disable-werror \
  --enable-deterministic-archives \
  --without-zlib"

BuildStep() {
  export CONFIG_SITE
  DefaultBuildStep
}

InstallStep() {
  MakeDir ${PUBLISH_DIR}
  for nexe in binutils/*.nexe gas/*.nexe ld/*.nexe; do
    local name=$(basename $nexe .nexe | sed 's/-new//')
    cp ${nexe} ${PUBLISH_DIR}/${name}_${NACL_ARCH}${NACL_EXEEXT}

    pushd ${PUBLISH_DIR}
    LogExecute python ${NACL_SDK_ROOT}/tools/create_nmf.py \
        ${PUBLISH_DIR}/${name}_*${NACL_EXEEXT} \
        -s . \
        -o ${name}.nmf
    popd
  done
}

#!/bin/bash
# Copyright (c) 2014 The Native Client Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

export EXTRA_LIBS="${NACL_CLI_MAIN_LIB} -lppapi_simple \
  -lnacl_io -lppapi -lppapi_cpp -l${NACL_CPP_LIB}"
CONFIG_SUB=support/config.sub
EXTRA_CONFIGURE_ARGS="\
  --enable-targets=x86_64-nacl,arm-nacl,avr \
  --disable-werror \
  --enable-deterministic-archives \
  --without-zlib"

BuildStep() {
  export CONFIG_SITE
  DefaultBuildStep
}

InstallStep() {
  MakeDir ${PUBLISH_DIR}
  for nexe in binutils/*.nexe gas/*.nexe ld/*.nexe; do
    local name=$(basename $nexe .nexe | sed 's/-new//')
    cp ${nexe} ${PUBLISH_DIR}/${name}_${NACL_ARCH}${NACL_EXEEXT}

    pushd ${PUBLISH_DIR}
    LogExecute python ${NACL_SDK_ROOT}/tools/create_nmf.py \
        ${PUBLISH_DIR}/${name}_*${NACL_EXEEXT} \
        -s . \
        -o ${name}.nmf
    popd
  done
}

Enable arm and avr (arduino) targets in binutils.
Enable arm and avr (arduino) targets in binutils.

BUG=None
TEST=local
R=binji@chromium.org

Review URL: https://codereview.chromium.org/482533002

git-svn-id: 84b3587ce119b778414dcb50e18b7479aacf4f1d@1540 7dad1e8b-422e-d2af-fbf5-8013b78bd812
