Re: [PATCH] efi/libstub: refactor Makefile to not use lib-y syntax

2020-06-03 Thread Ard Biesheuvel
On Wed, 3 Jun 2020 at 13:23, Masahiro Yamada wrote: > > On Wed, Jun 3, 2020 at 6:16 PM Ard Biesheuvel wrote: > > > > On Wed, 3 Jun 2020 at 11:15, Masahiro Yamada wrote: > > > > > > On Wed, Jun 3, 2020 at 6:02 PM Ard Biesheuvel wrote: > > > > > > > > On Wed, 3 Jun 2020 at 10:59, Masahiro Yamada

Re: [PATCH] efi/libstub: refactor Makefile to not use lib-y syntax

2020-06-03 Thread Masahiro Yamada
On Wed, Jun 3, 2020 at 6:16 PM Ard Biesheuvel wrote: > > On Wed, 3 Jun 2020 at 11:15, Masahiro Yamada wrote: > > > > On Wed, Jun 3, 2020 at 6:02 PM Ard Biesheuvel wrote: > > > > > > On Wed, 3 Jun 2020 at 10:59, Masahiro Yamada wrote: > > > > > > > > On Wed, Jun 3, 2020 at 5:45 PM Ard

Re: [PATCH] efi/libstub: refactor Makefile to not use lib-y syntax

2020-06-03 Thread Ard Biesheuvel
On Wed, 3 Jun 2020 at 11:15, Masahiro Yamada wrote: > > On Wed, Jun 3, 2020 at 6:02 PM Ard Biesheuvel wrote: > > > > On Wed, 3 Jun 2020 at 10:59, Masahiro Yamada wrote: > > > > > > On Wed, Jun 3, 2020 at 5:45 PM Ard Biesheuvel wrote: > > > > > > > > On Wed, 3 Jun 2020 at 10:36, Masahiro Yamada

Re: [PATCH] efi/libstub: refactor Makefile to not use lib-y syntax

2020-06-03 Thread Masahiro Yamada
On Wed, Jun 3, 2020 at 6:02 PM Ard Biesheuvel wrote: > > On Wed, 3 Jun 2020 at 10:59, Masahiro Yamada wrote: > > > > On Wed, Jun 3, 2020 at 5:45 PM Ard Biesheuvel wrote: > > > > > > On Wed, 3 Jun 2020 at 10:36, Masahiro Yamada wrote: > > > > > > > > On Wed, Jun 3, 2020 at 3:45 PM Ard

Re: [PATCH] efi/libstub: refactor Makefile to not use lib-y syntax

2020-06-03 Thread Ard Biesheuvel
On Wed, 3 Jun 2020 at 10:59, Masahiro Yamada wrote: > > On Wed, Jun 3, 2020 at 5:45 PM Ard Biesheuvel wrote: > > > > On Wed, 3 Jun 2020 at 10:36, Masahiro Yamada wrote: > > > > > > On Wed, Jun 3, 2020 at 3:45 PM Ard Biesheuvel wrote: > > > > > > > > On Wed, 3 Jun 2020 at 07:34, Masahiro Yamada

Re: [PATCH] efi/libstub: refactor Makefile to not use lib-y syntax

2020-06-03 Thread Masahiro Yamada
On Wed, Jun 3, 2020 at 5:45 PM Ard Biesheuvel wrote: > > On Wed, 3 Jun 2020 at 10:36, Masahiro Yamada wrote: > > > > On Wed, Jun 3, 2020 at 3:45 PM Ard Biesheuvel wrote: > > > > > > On Wed, 3 Jun 2020 at 07:34, Masahiro Yamada wrote: > > > > > > > > Documentation/kbuild/makefiles.rst says: > >

Re: [PATCH] efi/libstub: refactor Makefile to not use lib-y syntax

2020-06-03 Thread Ard Biesheuvel
On Wed, 3 Jun 2020 at 10:36, Masahiro Yamada wrote: > > On Wed, Jun 3, 2020 at 3:45 PM Ard Biesheuvel wrote: > > > > On Wed, 3 Jun 2020 at 07:34, Masahiro Yamada wrote: > > > > > > Documentation/kbuild/makefiles.rst says: > > > > > > Use of lib-y is normally restricted to `lib/` and

Re: [PATCH] efi/libstub: refactor Makefile to not use lib-y syntax

2020-06-03 Thread Masahiro Yamada
On Wed, Jun 3, 2020 at 3:45 PM Ard Biesheuvel wrote: > > On Wed, 3 Jun 2020 at 07:34, Masahiro Yamada wrote: > > > > Documentation/kbuild/makefiles.rst says: > > > > Use of lib-y is normally restricted to `lib/` and `arch/*/lib`. > > > > I want to disallow lib-y outside of them. > > > > Why?

Re: [PATCH] efi/libstub: refactor Makefile to not use lib-y syntax

2020-06-03 Thread Ard Biesheuvel
On Wed, 3 Jun 2020 at 07:34, Masahiro Yamada wrote: > > Documentation/kbuild/makefiles.rst says: > > Use of lib-y is normally restricted to `lib/` and `arch/*/lib`. > > I want to disallow lib-y outside of them. > Why? > Add a custom rule to build lib.a, which is linked to the decompressor >

[PATCH] efi/libstub: refactor Makefile to not use lib-y syntax

2020-06-02 Thread Masahiro Yamada
Documentation/kbuild/makefiles.rst says: Use of lib-y is normally restricted to `lib/` and `arch/*/lib`. I want to disallow lib-y outside of them. Add a custom rule to build lib.a, which is linked to the decompressor for ARCH=x86, ARCH=arm. For ARCH=arm64, use obj-y to link objects to