Files
OpenNetworkLinux/setup.env

35 lines
1.0 KiB
Bash
Executable File

#!/bin/bash
############################################################
#
# The settings in this script are required
# and should be sourced into you local build shell.
#
############################################################
# The root of the ONL build tree is here
export ONL=$( cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd)
# The ONL package dir is here:
export ONLPM_OPTION_PACKAGEDIRS="$ONL/packages"
# The ONL repo dir is here:
export ONLPM_OPTION_REPO="$ONL/REPO"
# The ONL build tools should be included in the local path:
export PATH="$ONL/tools/scripts:$ONL/tools:$PATH"
# Parallel Make Jobs
# Default parallel build settings
export MAKEFLAGS="-j64"
# These submodules are required for almost everything.
$ONL/tools/submodules.py $ONL sm/infra
$ONL/tools/submodules.py $ONL sm/bigcode
# Version files
$ONL/tools/make-versions.py --import-file=$ONL/tools/onlvi --class-name=OnlVersionImplementation --output-dir $ONL/make
# buildroot mirror
export BUILDROOTMIRROR="http://switch-nfs/export/buildroot-download-cache/dl"