ARCH=arm64 build breakage for Kbuild for-next branch
diff mbox series

Message ID CAK7LNAT_rgoDQPgDB2cTvwmXrQv2mFH1ysuhvWxp2HnVMd0W7Q@mail.gmail.com
State New
Headers show
Series
  • ARCH=arm64 build breakage for Kbuild for-next branch
Related show

Commit Message

Masahiro Yamada June 3, 2020, 4:11 a.m. UTC
Hi Stephen,

If you pull the latest kbuild for-next branch,
ARCH=arm64 will fail to build.

I will fix it soon.

For today's linux-next, you can patch
as follows.
(or, you can use the old branch)




Thanks.

Comments

Stephen Rothwell June 3, 2020, 4:24 a.m. UTC | #1
Hi Masahiro,

On Wed, 3 Jun 2020 13:11:59 +0900 Masahiro Yamada <masahiroy@kernel.org> wrote:
> 
> If you pull the latest kbuild for-next branch,
> ARCH=arm64 will fail to build.
> 
> I will fix it soon.
> 
> For today's linux-next, you can patch
> as follows.
> (or, you can use the old branch)
> 
> 
> diff --git a/Makefile b/Makefile
> index f80c4ff93ec9..fbb4b95ae648 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -1074,7 +1074,7 @@ build-dirs        := $(vmlinux-dirs)
>  clean-dirs     := $(vmlinux-alldirs)
> 
>  # Externally visible symbols (used by link-vmlinux.sh)
> -KBUILD_VMLINUX_OBJS := $(head-y) $(addsuffix built-in.a, $(core-y))
> +KBUILD_VMLINUX_OBJS := $(head-y) $(patsubst %/,%/built-in.a, $(core-y))
>  KBUILD_VMLINUX_OBJS += $(addsuffix built-in.a, $(filter %/, $(libs-y)))
>  ifdef CONFIG_MODULES
>  KBUILD_VMLINUX_OBJS += $(patsubst %/, %/lib.a, $(filter %/, $(libs-y)))

OK, thanks, I will apply that at some point, since I have already
merged your tree.
Stephen Rothwell June 3, 2020, 11:22 a.m. UTC | #2
Hi all,

On Wed, 3 Jun 2020 14:24:04 +1000 Stephen Rothwell <sfr@canb.auug.org.au> wrote:
>
> On Wed, 3 Jun 2020 13:11:59 +0900 Masahiro Yamada <masahiroy@kernel.org> wrote:
> > 
> > If you pull the latest kbuild for-next branch,
> > ARCH=arm64 will fail to build.
> > 
> > I will fix it soon.
> > 
> > For today's linux-next, you can patch
> > as follows.
> > (or, you can use the old branch)
> > 
> > 
> > diff --git a/Makefile b/Makefile
> > index f80c4ff93ec9..fbb4b95ae648 100644
> > --- a/Makefile
> > +++ b/Makefile
> > @@ -1074,7 +1074,7 @@ build-dirs        := $(vmlinux-dirs)
> >  clean-dirs     := $(vmlinux-alldirs)
> > 
> >  # Externally visible symbols (used by link-vmlinux.sh)
> > -KBUILD_VMLINUX_OBJS := $(head-y) $(addsuffix built-in.a, $(core-y))
> > +KBUILD_VMLINUX_OBJS := $(head-y) $(patsubst %/,%/built-in.a, $(core-y))
> >  KBUILD_VMLINUX_OBJS += $(addsuffix built-in.a, $(filter %/, $(libs-y)))
> >  ifdef CONFIG_MODULES
> >  KBUILD_VMLINUX_OBJS += $(patsubst %/, %/lib.a, $(filter %/, $(libs-y)))  
> 
> OK, thanks, I will apply that at some point, since I have already
> merged your tree.

And then I forgot, sorry.  I assume it will be fixed tomorrow.

Patch
diff mbox series

diff --git a/Makefile b/Makefile
index f80c4ff93ec9..fbb4b95ae648 100644
--- a/Makefile
+++ b/Makefile
@@ -1074,7 +1074,7 @@  build-dirs        := $(vmlinux-dirs)
 clean-dirs     := $(vmlinux-alldirs)

 # Externally visible symbols (used by link-vmlinux.sh)
-KBUILD_VMLINUX_OBJS := $(head-y) $(addsuffix built-in.a, $(core-y))
+KBUILD_VMLINUX_OBJS := $(head-y) $(patsubst %/,%/built-in.a, $(core-y))
 KBUILD_VMLINUX_OBJS += $(addsuffix built-in.a, $(filter %/, $(libs-y)))
 ifdef CONFIG_MODULES
 KBUILD_VMLINUX_OBJS += $(patsubst %/, %/lib.a, $(filter %/, $(libs-y)))