Re: [PATCH] kbuild: invoke generate_builtin_ranges.awk using gawk explicitly

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Sep 13, 2024 at 2:17 AM Kris Van Hees <kris.van.hees@xxxxxxxxxx> wrote:
>
> The gawk utility might be installed in different locations depending
> on the distributions, etc.  That means that the locations in the
> shebang at the beginning of the generate_builtin_ranges.awk script
> may not be correct, causing an error.
>
> Use "gawk -f <script> <args>" instead from the Makefile.vmlinux, so
> the $PATH will be used to locate gawk appropriately.
>
> Signed-off-by: Kris Van Hees <kris.van.hees@xxxxxxxxxx>
> ---
>  scripts/Makefile.vmlinux | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/scripts/Makefile.vmlinux b/scripts/Makefile.vmlinux
> index dfb408aa19c6..1284f05555b9 100644
> --- a/scripts/Makefile.vmlinux
> +++ b/scripts/Makefile.vmlinux
> @@ -39,7 +39,7 @@ ifdef CONFIG_BUILTIN_MODULE_RANGES
>  __default: modules.builtin.ranges
>
>  quiet_cmd_modules_builtin_ranges = GEN     $@
> -      cmd_modules_builtin_ranges = $(real-prereqs) > $@
> +      cmd_modules_builtin_ranges = gawk -f $(real-prereqs) > $@
>
>  targets += modules.builtin.ranges
>  modules.builtin.ranges: $(srctree)/scripts/generate_builtin_ranges.awk \
> --
> 2.45.2
>

I squashed this to v10 2/4.
Thanks!


-- 
Best Regards
Masahiro Yamada





[Index of Archives]     [Linux Kernel]     [Linux USB Development]     [Yosemite News]     [Linux SCSI]

  Powered by Linux