aboutsummaryrefslogtreecommitdiffstats
path: root/tools/net/ynl/pyynl/cli.py
diff options
context:
space:
mode:
authorHONG Yifan <[email protected]>2024-11-12 18:44:55 +0000
committerMiguel Ojeda <[email protected]>2025-01-15 08:53:54 +0000
commitceff0757f5dafb5be5205988171809c877b1d3e3 (patch)
tree42252dc871a00bed5a16ce098a7c4289e95f6007 /tools/net/ynl/pyynl/cli.py
parentrust: uaccess: generalize userSliceReader to support any Vec (diff)
downloadkernel-ceff0757f5dafb5be5205988171809c877b1d3e3.tar.gz
kernel-ceff0757f5dafb5be5205988171809c877b1d3e3.zip
kbuild: rust: add PROCMACROLDFLAGS
These are flags to be passed when linking proc macros for the Rust toolchain. If unset, it defaults to $(KBUILD_HOSTLDFLAGS). This is needed because the list of flags to link hostprogs is not necessarily the same as the list of flags used to link libmacros.so. When we build proc macros, we need the latter, not the former (e.g. when using a Rust compiler binary linked to a different C library than host programs). To distinguish between the two, introduce this new variable to stand out from KBUILD_HOSTLDFLAGS used to link other host progs. Signed-off-by: HONG Yifan <[email protected]> Link: https://lore.kernel.org/r/[email protected] [ v3: - `export`ed the variable. Otherwise it would not be visible in `rust/Makefile`. - Removed "additional" from the documentation and commit message, since this actually replaces the other flags, unlike other cases. - Added example of use case to documentation and commit message. Thanks Alice for the details on what Google needs! - Instead of `HOSTLDFLAGS`, used `KBUILD_HOSTLDFLAGS` as the fallback to preserve the previous behavior as much as possible, as discussed with Alice/Yifan. Thus moved the variable down too (currently we do not modify `KBUILD_HOSTLDFLAGS` elsewhere) and avoided mentioning `HOSTLDFLAGS` directly in the documentation. - Fixed documentation header formatting. - Reworded slightly. - Miguel ] Tested-by: Alice Ryhl <[email protected]> Reviewed-by: Alice Ryhl <[email protected]> Reviewed-by: HONG Yifan <[email protected]> Acked-by: Masahiro Yamada <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Miguel Ojeda <[email protected]>
Diffstat (limited to 'tools/net/ynl/pyynl/cli.py')
0 files changed, 0 insertions, 0 deletions