OpenNetworkLinux
OpenNetworkLinux copied to clipboard
Improve autobuild script
With this pull request we fix several minor issues (e.g. like fetching submodules after checkout to requested branch, double quoting for "$@" for arguments list, starting apt-cacher-ng before build, etc); add support for build for specific platform list given as CSV on command line to build.sh with new option.
All these changes intended to make tools/autobuild scripts reusable for manual building/deployments and testing instead of large build instructions described in documentation.
An example command line when building manually for specific platform may look as following:
$ arch='amd64'
$ platform_list='x86-64-netberg-aurora-420-rangeley-r0'
$ branch='ORDNANCE-NETBERG'
$ tools/autobuild/build.sh --8 -a "$arch" -l "$platform_list" -b "$branch"