lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAK7LNATENKMR0k1WiyOt3uv1+M0Ug+4tPFOYOhZdJ9BX0wd6SQ@mail.gmail.com>
Date: Sat, 16 Nov 2024 18:19:04 +0900
From: Masahiro Yamada <masahiroy@...nel.org>
To: linux-kbuild@...r.kernel.org
Cc: Paul Menzel <pmenzel@...gen.mpg.de>, Borislav Petkov <bp@...en8.de>, 
	Nikolay Borisov <nik.borisov@...e.com>, Marco Elver <elver@...gle.com>, 
	Josh Poimboeuf <jpoimboe@...nel.org>, Nathan Chancellor <nathan@...nel.org>, 
	Nicolas Schier <nicolas@...sle.eu>, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 1/3] kbuild: move cmd_cc_o_c and cmd_as_o_S to scripts/Malefile.lib

On Thu, Nov 14, 2024 at 8:45 AM Masahiro Yamada <masahiroy@...nel.org> wrote:
>
> The cmd_cc_o_c and cmd_as_o_S macros are duplicated in
> scripts/Makefile.{build,modfinal,vmlinux}.
>
> This commit factors them out to scripts/Makefile.lib.
>
> No functional changes are intended.
>
> Signed-off-by: Masahiro Yamada <masahiroy@...nel.org>
> ---
>
>  scripts/Makefile.build    |  8 --------
>  scripts/Makefile.lib      | 12 ++++++++++++
>  scripts/Makefile.modfinal |  6 ++----
>  scripts/Makefile.vmlinux  |  8 +-------
>  4 files changed, 15 insertions(+), 19 deletions(-)
>
> diff --git a/scripts/Makefile.build b/scripts/Makefile.build
> index 1aa928a6fb4f..24e10c821461 100644
> --- a/scripts/Makefile.build
> +++ b/scripts/Makefile.build
> @@ -141,11 +141,6 @@ ifdef CONFIG_LTO_CLANG
>  cmd_ld_single_m = $(if $(is-single-obj-m), ; $(LD) $(ld_flags) -r -o $(tmp-target) $@; mv $(tmp-target) $@)
>  endif
>
> -quiet_cmd_cc_o_c = CC $(quiet_modtag)  $@
> -      cmd_cc_o_c = $(CC) $(c_flags) -c -o $@ $< \
> -               $(cmd_ld_single_m) \
> -               $(cmd_objtool)
> -
>  ifdef CONFIG_MODVERSIONS
>  # When module versioning is enabled the following steps are executed:
>  # o compile a <file>.o from <file>.c
> @@ -336,9 +331,6 @@ cmd_cpp_s_S       = $(CPP) $(a_flags) -o $@ $<
>  $(obj)/%.s: $(obj)/%.S FORCE
>         $(call if_changed_dep,cpp_s_S)
>
> -quiet_cmd_as_o_S = AS $(quiet_modtag)  $@
> -      cmd_as_o_S = $(CC) $(a_flags) -c -o $@ $< $(cmd_objtool)
> -
>  ifdef CONFIG_ASM_MODVERSIONS
>
>  # versioning matches the C process described above, with difference that
> diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib
> index 5660dfc9ed36..73e385946855 100644
> --- a/scripts/Makefile.lib
> +++ b/scripts/Makefile.lib
> @@ -298,6 +298,18 @@ $(foreach m, $1, \
>         $(addprefix $(obj)/, $(call suffix-search, $(patsubst $(obj)/%,%,$m), $2, $3))))
>  endef
>
> +# Build commads

I will fix the typo.

 s/commads/commands/




-- 
Best Regards
Masahiro Yamada

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ