All of lore.kernel.org
 help / color / mirror / Atom feed
From: Masahiro Yamada <masahiroy@kernel.org>
To: John S Gruber <johnsgruber@gmail.com>
Cc: Linux Kbuild mailing list <linux-kbuild@vger.kernel.org>,
	Michal Marek <michal.lkml@markovi.net>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] kbuild: cancel sub_make_done for the install target to fix DKMS
Date: Sun, 1 Aug 2021 12:06:47 +0900	[thread overview]
Message-ID: <CAK7LNAQ++vpMyr4YMp1T-RsyAT1DeL0jrGO3JYuSGm6oUA+uVQ@mail.gmail.com> (raw)
In-Reply-To: <CAPotdmRSCnuTwHXc3Fi5b4w3TjEbJmwWUig4mcSNgFo7gXKNHw@mail.gmail.com>

On Sat, Jul 31, 2021 at 2:38 AM John S Gruber <johnsgruber@gmail.com> wrote:
>
> On Wed, Jul 28, 2021 at 8:13 PM Masahiro Yamada <masahiroy@kernel.org> wrote:
> >
> > Since commit bcf637f54f6d ("kbuild: parse C= and M= before changing the
> > working directory"), external modules invoked by DKMS fail to build
> > because M= option is not parsed.
> >
> > I wanted to add 'unset sub_make_done' in install.sh but similar scripts,
> > arch/*/boot/install.sh, are duplicated, so I set sub_make_done empty
> > in the top Makefile.
> >
> > Fixes: bcf637f54f6d ("kbuild: parse C= and M= before changing the working directory")
> > Reported-by: John S Gruber <johnsgruber@gmail.com>
> > Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
> > ---
> >
> >  Makefile | 10 ++++++++++
> >  1 file changed, 10 insertions(+)
> >
> > diff --git a/Makefile b/Makefile
> > index bb10a93edf5c..4193092f7c38 100644
> > --- a/Makefile
> > +++ b/Makefile
> > @@ -1316,6 +1316,16 @@ PHONY += scripts_unifdef
> >  scripts_unifdef: scripts_basic
> >         $(Q)$(MAKE) $(build)=scripts scripts/unifdef
> >
> > +# ---------------------------------------------------------------------------
> > +# Install
> > +
> > +# Many distros have the custom install script, /sbin/kernelinstall.


I fixed up  /sbin/kernelinstall to /sbin/installkernel


Applied to linux-kbuild.



> > +# If DKMS is installed, 'make install' will eventually recuses back
> > +# to the this Makefile to build and install external modules.
> > +# Cancel sub_make_done so that options such as M=, V=, etc. are parsed.
> > +
> > +install: sub_make_done=
> > +
> >  # ---------------------------------------------------------------------------
> >  # Tools
> >
> > --
> > 2.27.0
> >
>
> This patch tested successfully on my system on 5.14.0-rc3.





-- 
Best Regards
Masahiro Yamada

      reply	other threads:[~2021-08-01  3:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-29  0:12 [PATCH] kbuild: cancel sub_make_done for the install target to fix DKMS Masahiro Yamada
2021-07-30 17:38 ` John S Gruber
2021-08-01  3:06   ` Masahiro Yamada [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAK7LNAQ++vpMyr4YMp1T-RsyAT1DeL0jrGO3JYuSGm6oUA+uVQ@mail.gmail.com \
    --to=masahiroy@kernel.org \
    --cc=johnsgruber@gmail.com \
    --cc=linux-kbuild@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=michal.lkml@markovi.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.