]> Git Repo - linux.git/commit
tty: vt: conmakehash: cope with abs_srctree no longer in env
authorMax Krummenacher <[email protected]>
Thu, 25 Jul 2024 13:20:45 +0000 (15:20 +0200)
committerGreg Kroah-Hartman <[email protected]>
Wed, 31 Jul 2024 10:31:32 +0000 (12:31 +0200)
commit6e20753da6bc651e02378a0cdb78f16c42098c88
treed5e01567f1932a550875a540f4bd008fb1a56dda
parent7d3b793faaab1305994ce568b59d61927235f57b
tty: vt: conmakehash: cope with abs_srctree no longer in env

conmakehash uses getenv("abs_srctree") from the environment to strip
the absolute path from the generated sources.
However since commit e2bad142bb3d ("kbuild: unexport abs_srctree and
abs_objtree") this environment variable no longer gets set.
Instead use basename() to indicate the used file in a comment of the
generated source file.

Fixes: 3bd85c6c97b2 ("tty: vt: conmakehash: Don't mention the full path of the input in output")
Cc: stable <[email protected]>
Signed-off-by: Max Krummenacher <[email protected]>
Link: https://lore.kernel.org/stable/20240725132056.9151-1-max.oss.09%40gmail.com
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
drivers/tty/vt/conmakehash.c
This page took 0.05672 seconds and 4 git commands to generate.