Skip to content
Snippets Groups Projects
Verified Commit 43de2dbe authored by Karel Koci's avatar Karel Koci :metal:
Browse files

compile_pkgs: tweak help to make hint about options to use

This should make much more clearer what are usable and what are not
configuration options.
parent fec8d851
No related merge requests found
......@@ -550,20 +550,22 @@ print_help() {
echo "Usage: ${0} [OPTION].. [COMMAND].."
echo "Compile TurrisOS packages. This script fetches, patches and configures OpenWRT tree."
echo
echo "Available options are:"
echo "Primary options:"
echo " -e Build everything, not just minimal set"
echo " -t BOARD Set target board to BOARD. This is required for almost all commands."
echo " -jNUM Number of jobs in paralel to be run. In default number of CPUs is used."
echo " -a ARG Add build arguments - passed directly to make. This option can be specified multiple times."
echo " -f[NUM] Try hard to get stuff to compile (optional number specifies number of tries)"
echo " -t BOARD Set target board to BOARD. This is required for almost all commands."
echo " -o PATH Path to output directory where repository is prepared. In default ./pkgsrepo is used."
echo " -s KEY Sign packges with given private key. Key has to be generated using using tool."
echo " -h, --help Show this help text"
echo
echo "Configuration override options:"
echo " -b BRANCH Branch to checkout in OpenWRT. You can optionaly use here any valid git reference in OpenWRT git tree."
echo " -p BRANCH Name of the branch that is being build. If not specified 'hbs' is used."
echo " -a ARG Add build arguments - passed directly to make. This option can be specified multiple times."
echo " -l Do not update local git mirrors. Use them as they are to fetch OpenWRT and its feeds."
echo " -o PATH Path to output directory where repository is prepared. In default ./pkgsrepo is used."
echo " -s KEY Sign packges with given private key. Key has to be generated using using tool."
echo " -d Do not use shallow checkouts"
echo " -x Enable debug mode"
echo " -h, --help Show this help text"
echo
echo "Available commands are:"
for cmd in "${!available_commands[@]}"; do
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment