Skip to content
Snippets Groups Projects
Select Git revision
  • deb91e5ea1b4ce42b774818ad5b9869c7b8089ab
  • main default protected
  • initilize-and-use-uart-transmitter
3 results

no-ulimit.patch

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    no-ulimit.patch 693 B
    diff --git a/scripts/crosstool-NG.sh b/scripts/crosstool-NG.sh
    index 383de66d..1223e5ef 100644
    --- a/scripts/crosstool-NG.sh
    +++ b/scripts/crosstool-NG.sh
    @@ -104,14 +104,6 @@ for d in            \
             esac
     done
     
    -n_open_files=$(ulimit -n)
    -if [ "${n_open_files}" -lt 2048 ]; then
    -    # Newer ld seems to keep a lot of open file descriptors, hitting the default limit
    -    # (1024) for example during uClibc-ng link.
    -    CT_DoLog WARN "Number of open files ${n_open_files} may not be sufficient to build the toolchain; increasing to 2048"
    -    ulimit -n 2048
    -fi
    -
     # Where will we work?
     CT_WORK_DIR="${CT_WORK_DIR:-${CT_TOP_DIR}/.build}"
     CT_DoExecLog ALL mkdir -p "${CT_WORK_DIR}"