diff options
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/kbuild | 23 |
1 files changed, 22 insertions, 1 deletions
@@ -23,11 +23,12 @@ # 4. Copy into a tarball the resulting image, modules, dtbs, and headers. An # install.sh script is also bundled in. # -# You can also pass two options: +# You can also pass some options: # 1. `-s/--skip-build`: tell to skip the call to `defconfig` and/or # `menuconfig`. This is useful if you are just developing over the same # `.config` file again and again. # 2. `-n/--no-install`: do not prepare the install/uninstall bundle. +# 3. `-h/--help`: show the help message. # # After that just send the resulting tarball to the machine where you want to # install this kernel. In there you just need to untar the given bundle and then @@ -58,6 +59,10 @@ while [[ $# -gt 0 ]]; do NO_INSTALL="t" shift ;; + -h | --help) + SHOW_HELP=1 + shift + ;; -*) echo "kbuild (error): unknown option '$1'." exit 1 @@ -69,6 +74,21 @@ while [[ $# -gt 0 ]]; do esac done +# Print the show message if needed. +if [ -n "$SHOW_HELP" ]; then + cat <<HERE +usage: kbuild [OPTIONS] + +Build the Linux Kernel located at the current directory. You may pass the +following options: + + -h, --help Show this message. + -n, --no-install Don't generate the install/uninstall files. + -s, --skip-config Skip the configuration step. +HERE + exit 0 +fi + ## # Initial checks. @@ -214,6 +234,7 @@ fi # Configure /boot/extlinux/extlinux.conf by providing a default cat <<EXT >>/boot/extlinux/extlinux.conf + ### ### NOTE: generated by kbuild. ### |
