NDL-DEPLOY(1)
β¨ NDL β¨
okay bestie, so this is the man page for NDL β and the date on this one is 2024-03-08, so you know it's fresh-ish. it's a manual page, it lives in the manual, and it's all about one specific command. let's get into it π
πΈ COMMAND 'ndl deploy' πΈ
so like. the vibe here? this command compiles and deploys ndl helpers and drivers to the SUT (System Under Test) π and the SUT can be either local or a remote host, depending on the -H option. yes, that one. the one you're gonna forget exists.
here's the usage line, copied exactly, no notes:
usage: ndl deploy [-h] [-q] [-d] [--kernel-src KSRC] [--local-build]
[--tmpdir-path TMPDIR_PATH] [--keep-tmpdir] [-H HOSTNAME] [-U USERNAME]
[-K PRIVKEY] [-T TIMEOUT]
by default, everything is built on the SUT, but --local-build lets you build on the local system instead. main character choice, honestly.
now, the drivers? they get searched for in these directories, on the local host, in this exact order:
./drivers/idle$WULT_DATA_PATH/drivers/idle$HOME/.local/share/wult/drivers/idle/usr/local/share/wult/drivers/idle/usr/share/wult/drivers/idle
and the ndl tool also depends on these helpers:
ndl-helperwult-freq-helper
these helpers get compiled on the SUT and then deployed to the SUT. and where do their sources come from? searched on the local host, in this order:
./helpers$WULT_DATA_PATH/helpers$HOME/.local/share/wult/helpers/usr/local/share/wult/helpers/usr/share/wult/helpers
and where do the helpers actually LAND? by default, the path defined by the WULT_HELPERSPATH environment variable π¦. and if that variable isn't defined? they go to $HOME/.local/bin, where $HOME is the home directory of user USERNAME on host HOST (see the --host and --username options, bestie, i told you).
π OPTIONS 'ndl deploy' π
-hβ show this help message and exit. the classic. the icon.-qβ be quiet. π€«-dβ print debugging information. it's giving detective energy π--kernel-src KSRCβ path to the Linux kernel sources to build drivers against. the default is/lib/modules/$(uname -r)/buildon the SUT. and heads up: if--local-buildwas used, then the path is considered to be on the local system, not on the SUT. don't get it twisted.--drivers-make-optsβ options and variables to pass tomakewhen the drivers are built. for example, passCC=clang LLVM=1to use clang and LLVM tools for building the drivers (this is required when the kernel was build with clang/LLVM). slay β¨--local-buildβ build helpers and drivers locally, instead of building onHOSTNAME(the SUT).--tmpdir-path TMPDIR_PATHβ whenndlis deployed, a random temporary directory is used. use this option to provide a custom path instead. it'll be used as a temporary directory on both local and remote hosts. this option is meant for debugging purposes.--keep-tmpdirβ do not remove the temporary directories created while deployingndl. also meant for debugging purposes. leaving little temp-dir breadcrumbs everywhere π-H HOSTNAME,--host HOSTNAMEβ name of the host to run the command on.-U USERNAME,--username USERNAMEβ name of the user to use for logging into the remote host over SSH. the default user name isroot. π-K PRIVKEY,--priv-key PRIVKEYβ path to the private SSH key that should be used for logging into the remote host. by default the key is automatically found from standard paths like~/.ssh.-T TIMEOUT,--timeout TIMEOUTβ SSH connect timeout in seconds, default is8.
fr fr, that--tmpdir-pathand--keep-tmpdirpair? debugging-only. don't ship them in your little automation scripts and then act surprised, bestie π
and that's the whole page!! no cap, that's every single flag, every default, every path, every env var. nothing skipped, nothing merged, we ate and left no crumbs π«Ά
okay and for the lil sign-off: the footer of this man page is literally just () β like, no source/version filled in, no date down there either, it's giving mysterious π. the only date we've got is that 2024-03-08 up at the top. so that's the whole lore. bye bestie, go deploy something ππ
π¦ where this page comes from
- fedora 43: wult 1.12.48-2.fc43 Β· BSD-3-Clause AND GPL-2.0-only
- fedora 44: wult 1.12.48-2.fc44 Β· BSD-3-Clause AND GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms