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]
Date:   Sun, 17 Sep 2023 00:54:56 +0900
From:   Masahiro Yamada <masahiroy@...nel.org>
To:     Thomas Weißschuh <linux@...ssschuh.net>
Cc:     Nathan Chancellor <nathan@...nel.org>,
        Nick Desaulniers <ndesaulniers@...gle.com>,
        Nicolas Schier <nicolas@...sle.eu>, Willy Tarreau <w@....eu>,
        Shuah Khan <shuah@...nel.org>, linux-kbuild@...r.kernel.org,
        linux-kernel@...r.kernel.org, linux-kselftest@...r.kernel.org
Subject: Re: [PATCH RFC 1/3] kbuild: add toplevel target for usr/gen_init_cpio

On Sat, Sep 16, 2023 at 4:13 PM Thomas Weißschuh <linux@...ssschuh.net> wrote:
>
> The nolibc testsuite wants to generate an initrams without linking it
> into the kernel for which it needs access to gen_init_cpio.
> Add a new toplevel target for it so it can be built standalone.
>
> Signed-off-by: Thomas Weißschuh <linux@...ssschuh.net>
>
> ---
>
> Kbuild maintainers:
>
> If there is a way that does not require modification of the toplevel
> Makefile that would be nice, too.
> I followed the example of the "scripts_unifdef" target.


This worked for me.


masahiro@zoe:~/ref/linux$ make -s mrproper
masahiro@zoe:~/ref/linux$ make -s defconfig
masahiro@zoe:~/ref/linux$ make run-command KBUILD_RUN_COMMAND='$(MAKE)
$(build)=usr usr/gen_init_cpio'
  HOSTCC  usr/gen_init_cpio








> ---
>  Makefile | 4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/Makefile b/Makefile
> index ceb23eed4dce..1caa4429eceb 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -1812,6 +1812,10 @@ endif
>
>  endif # KBUILD_EXTMOD
>
> +PHONY += usr_gen_init_cpio
> +usr_gen_init_cpio:
> +       $(Q)$(MAKE) $(build)=usr usr/gen_init_cpio
> +
>  # ---------------------------------------------------------------------------
>  # Modules
>
>
> --
> 2.42.0
>


-- 
Best Regards
Masahiro Yamada

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ