GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing www.kernel.org — Bash completion for Kbuild — The Linux Kernel documentation Bash completion for Kbuild¶The kernel build system is written using Makefiles, and Bash completion for the make command is available through the bash-completion project. However, the Makefiles for the kernel build are complex. The generic completion rules for the make command do not provide meaningful suggestions for the kernel build system, except for the options of the make command itself. To enhance completion for various variables and targets, the kernel source includes its own completion script at scripts/bash-completion/make. This script provides additional completions when working within the kernel tree. Outside the kernel tree, it defaults to the generic completion rules for the make command. Prerequisites¶The script relies on helper functions provided by bash-completion project. Please ensure it is installed on your system. On most distributions, you can install the bash-completion package through the standard package manager. How to use¶You can source the script directly: $ source scripts/bash-completion/make Or, you can copy it into the search path for Bash completion scripts. For example: $ mkdir -p ~/.local/share/bash-completion/completions $ cp scripts/bash-completion/make ~/.local/share/bash-completion/completions/ Details¶The additional completion for Kbuild is enabled in the following cases:
If none of the above are met, it falls back to the generic completion rules. The completion supports:
Some variables offer intelligent behavior. For instance, CROSS_COMPILE= followed by a TAB displays installed toolchains. The list of defconfig files shown depends on the value of the ARCH= variable. |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |