linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] x86,build: Fix make -jN modules_install install
@ 2014-06-11 19:41 Andy Lutomirski
  2014-06-11 19:44 ` Sam Ravnborg
  2014-06-12  8:33 ` Michal Marek
  0 siblings, 2 replies; 13+ messages in thread
From: Andy Lutomirski @ 2014-06-11 19:41 UTC (permalink / raw)
  To: H. Peter Anvin, x86
  Cc: Michal Marek, linux-kbuild, Linux-Kernel@Vger. Kernel. Org,
	Andy Lutomirski

Every few months, I forget why I type:

$ sudo make -j12 modules_install && sudo make -j12 install

instead of just:

$ sudo make -j12 modules_install install

I try the latter, it appears to work, and then my machine won't boot
because dracut got confused.  This fixes it once and for all: if you
ask make to install modules and a kernel, you almost certainly want
the modules installed *first* so that your initramfs scripts can
find the modules.

Signed-off-by: Andy Lutomirski <luto@amacapital.net>
---
 arch/x86/Makefile | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/arch/x86/Makefile b/arch/x86/Makefile
index 33f71b0..7280d28 100644
--- a/arch/x86/Makefile
+++ b/arch/x86/Makefile
@@ -240,6 +240,15 @@ PHONY += install
 install:
 	$(Q)$(MAKE) $(build)=$(boot) $@
 
+# If installing modules and a kernel, it's very likely that some initramfs
+# script associated with installing the kernel will reference the modules,
+# so make sure that modules are installed first.
+ifneq ($(filter modules_install,$(MAKECMDGOALS)),)
+  ifneq ($(filter modules_install,$(MAKECMDGOALS)),)
+    install: modules_install
+  endif
+endif
+
 PHONY += vdso_install
 vdso_install:
 	$(Q)$(MAKE) $(build)=arch/x86/vdso $@
-- 
1.9.3


^ permalink raw reply related	[flat|nested] 13+ messages in thread

* Re: [PATCH] x86,build: Fix make -jN modules_install install
  2014-06-11 19:41 [PATCH] x86,build: Fix make -jN modules_install install Andy Lutomirski
@ 2014-06-11 19:44 ` Sam Ravnborg
  2014-06-11 19:46   ` Andy Lutomirski
  2014-06-12  8:33 ` Michal Marek
  1 sibling, 1 reply; 13+ messages in thread
From: Sam Ravnborg @ 2014-06-11 19:44 UTC (permalink / raw)
  To: Andy Lutomirski
  Cc: H. Peter Anvin, x86, Michal Marek, linux-kbuild,
	Linux-Kernel@Vger. Kernel. Org

On Wed, Jun 11, 2014 at 12:41:57PM -0700, Andy Lutomirski wrote:
> Every few months, I forget why I type:
> 
> $ sudo make -j12 modules_install && sudo make -j12 install
> 
> instead of just:
> 
> $ sudo make -j12 modules_install install
> 
> I try the latter, it appears to work, and then my machine won't boot
> because dracut got confused.  This fixes it once and for all: if you
> ask make to install modules and a kernel, you almost certainly want
> the modules installed *first* so that your initramfs scripts can
> find the modules.

Is this problem x86 specific?

	Sam

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH] x86,build: Fix make -jN modules_install install
  2014-06-11 19:44 ` Sam Ravnborg
@ 2014-06-11 19:46   ` Andy Lutomirski
  0 siblings, 0 replies; 13+ messages in thread
From: Andy Lutomirski @ 2014-06-11 19:46 UTC (permalink / raw)
  To: Sam Ravnborg
  Cc: H. Peter Anvin, X86 ML, Michal Marek, linux-kbuild,
	Linux-Kernel@Vger. Kernel. Org

On Wed, Jun 11, 2014 at 12:44 PM, Sam Ravnborg <sam@ravnborg.org> wrote:
> On Wed, Jun 11, 2014 at 12:41:57PM -0700, Andy Lutomirski wrote:
>> Every few months, I forget why I type:
>>
>> $ sudo make -j12 modules_install && sudo make -j12 install
>>
>> instead of just:
>>
>> $ sudo make -j12 modules_install install
>>
>> I try the latter, it appears to work, and then my machine won't boot
>> because dracut got confused.  This fixes it once and for all: if you
>> ask make to install modules and a kernel, you almost certainly want
>> the modules installed *first* so that your initramfs scripts can
>> find the modules.
>
> Is this problem x86 specific?

I don't know.  But I also don't want to have 'make modules_install
install' on an arch without an install target appear to work, so I
don't know how to do it in the kbuild core.  That is, I don't want to
define an install target; I just want to add a dependency if the
target is already there.

Also, this patch has a repeated ifneq.  I'll fix it in v2.

>
>         Sam



-- 
Andy Lutomirski
AMA Capital Management, LLC

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH] x86,build: Fix make -jN modules_install install
  2014-06-11 19:41 [PATCH] x86,build: Fix make -jN modules_install install Andy Lutomirski
  2014-06-11 19:44 ` Sam Ravnborg
@ 2014-06-12  8:33 ` Michal Marek
  2014-06-13  1:28   ` Andy Lutomirski
  1 sibling, 1 reply; 13+ messages in thread
From: Michal Marek @ 2014-06-12  8:33 UTC (permalink / raw)
  To: Andy Lutomirski
  Cc: H. Peter Anvin, x86, linux-kbuild, Linux-Kernel@Vger. Kernel. Org

Dne 11.6.2014 21:41, Andy Lutomirski napsal(a):
> Every few months, I forget why I type:
> 
> $ sudo make -j12 modules_install && sudo make -j12 install
> 
> instead of just:
> 
> $ sudo make -j12 modules_install install
> 
> I try the latter, it appears to work, and then my machine won't boot
> because dracut got confused.  This fixes it once and for all: if you
> ask make to install modules and a kernel, you almost certainly want
> the modules installed *first* so that your initramfs scripts can
> find the modules.
> 
> Signed-off-by: Andy Lutomirski <luto@amacapital.net>
> ---
>  arch/x86/Makefile | 9 +++++++++
>  1 file changed, 9 insertions(+)
> 
> diff --git a/arch/x86/Makefile b/arch/x86/Makefile
> index 33f71b0..7280d28 100644
> --- a/arch/x86/Makefile
> +++ b/arch/x86/Makefile
> @@ -240,6 +240,15 @@ PHONY += install
>  install:
>  	$(Q)$(MAKE) $(build)=$(boot) $@
>  
> +# If installing modules and a kernel, it's very likely that some initramfs
> +# script associated with installing the kernel will reference the modules,
> +# so make sure that modules are installed first.
> +ifneq ($(filter modules_install,$(MAKECMDGOALS)),)
> +  ifneq ($(filter modules_install,$(MAKECMDGOALS)),)

The two conditions are identical. Did you mean to check for "install" in
one of them?

Thanks,
Michal

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH] x86,build: Fix make -jN modules_install install
  2014-06-12  8:33 ` Michal Marek
@ 2014-06-13  1:28   ` Andy Lutomirski
  2014-06-13  9:39     ` [PATCH] kbuild: Do not run modules_install and install in paralel Michal Marek
  0 siblings, 1 reply; 13+ messages in thread
From: Andy Lutomirski @ 2014-06-13  1:28 UTC (permalink / raw)
  To: Michal Marek
  Cc: H. Peter Anvin, X86 ML, linux-kbuild, Linux-Kernel@Vger. Kernel. Org

On Thu, Jun 12, 2014 at 1:33 AM, Michal Marek <mmarek@suse.cz> wrote:
> Dne 11.6.2014 21:41, Andy Lutomirski napsal(a):
>> Every few months, I forget why I type:
>>
>> $ sudo make -j12 modules_install && sudo make -j12 install
>>
>> instead of just:
>>
>> $ sudo make -j12 modules_install install
>>
>> I try the latter, it appears to work, and then my machine won't boot
>> because dracut got confused.  This fixes it once and for all: if you
>> ask make to install modules and a kernel, you almost certainly want
>> the modules installed *first* so that your initramfs scripts can
>> find the modules.
>>
>> Signed-off-by: Andy Lutomirski <luto@amacapital.net>
>> ---
>>  arch/x86/Makefile | 9 +++++++++
>>  1 file changed, 9 insertions(+)
>>
>> diff --git a/arch/x86/Makefile b/arch/x86/Makefile
>> index 33f71b0..7280d28 100644
>> --- a/arch/x86/Makefile
>> +++ b/arch/x86/Makefile
>> @@ -240,6 +240,15 @@ PHONY += install
>>  install:
>>       $(Q)$(MAKE) $(build)=$(boot) $@
>>
>> +# If installing modules and a kernel, it's very likely that some initramfs
>> +# script associated with installing the kernel will reference the modules,
>> +# so make sure that modules are installed first.
>> +ifneq ($(filter modules_install,$(MAKECMDGOALS)),)
>> +  ifneq ($(filter modules_install,$(MAKECMDGOALS)),)
>
> The two conditions are identical. Did you mean to check for "install" in
> one of them?

Yes, although I think that the check for "install" is actually unnecessary.

Is there some way to do this in the core kbuild?

--Andy

>
> Thanks,
> Michal



-- 
Andy Lutomirski
AMA Capital Management, LLC

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [PATCH] kbuild: Do not run modules_install and install in paralel
  2014-06-13  1:28   ` Andy Lutomirski
@ 2014-06-13  9:39     ` Michal Marek
  2014-06-13  9:45       ` Michal Marek
  2015-12-09 21:34       ` Andy Lutomirski
  0 siblings, 2 replies; 13+ messages in thread
From: Michal Marek @ 2014-06-13  9:39 UTC (permalink / raw)
  To: Andy Lutomirski; +Cc: H. Peter Anvin, x86, linux-kbuild, linux-kernel

Based on a x86-only patch by Andy Lutomirski <luto@amacapital.net>

With modular kernels, 'make install' is going to need the installed
modules at some point to generate the initramfs.

Signed-off-by: Michal Marek <mmarek@suse.cz>
---
 Makefile | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/Makefile b/Makefile
index 7680d7c..7e5e483 100644
--- a/Makefile
+++ b/Makefile
@@ -503,6 +503,12 @@ ifeq ($(KBUILD_EXTMOD),)
                 endif
         endif
 endif
+# install and module_install need also be processed one by one
+ifneq ($(filter install,$(MAKECMDGOALS)),)
+        ifneq ($(filter modules_install,$(MAKECMDGOALS)),)
+	        mixed-targets := 1
+        endif
+endif
 
 ifeq ($(mixed-targets),1)
 # ===========================================================================
-- 
1.9.2


^ permalink raw reply related	[flat|nested] 13+ messages in thread

* Re: [PATCH] kbuild: Do not run modules_install and install in paralel
  2014-06-13  9:39     ` [PATCH] kbuild: Do not run modules_install and install in paralel Michal Marek
@ 2014-06-13  9:45       ` Michal Marek
  2014-06-13 17:29         ` Andy Lutomirski
  2015-12-09 21:34       ` Andy Lutomirski
  1 sibling, 1 reply; 13+ messages in thread
From: Michal Marek @ 2014-06-13  9:45 UTC (permalink / raw)
  To: Andy Lutomirski; +Cc: H. Peter Anvin, x86, linux-kbuild, linux-kernel

Dne 13.6.2014 11:39, Michal Marek napsal(a):
> Based on a x86-only patch by Andy Lutomirski <luto@amacapital.net>
> 
> With modular kernels, 'make install' is going to need the installed
> modules at some point to generate the initramfs.
> 
> Signed-off-by: Michal Marek <mmarek@suse.cz>
> ---
>  Makefile | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/Makefile b/Makefile
> index 7680d7c..7e5e483 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -503,6 +503,12 @@ ifeq ($(KBUILD_EXTMOD),)
>                  endif
>          endif
>  endif
> +# install and module_install need also be processed one by one
> +ifneq ($(filter install,$(MAKECMDGOALS)),)
> +        ifneq ($(filter modules_install,$(MAKECMDGOALS)),)
> +	        mixed-targets := 1
> +        endif
> +endif

Note that this version does not enforce the ordering, it just avoids the
interleaved execution. It can be added if desired.

Michal

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH] kbuild: Do not run modules_install and install in paralel
  2014-06-13  9:45       ` Michal Marek
@ 2014-06-13 17:29         ` Andy Lutomirski
  2014-07-04 22:15           ` Michal Marek
  0 siblings, 1 reply; 13+ messages in thread
From: Andy Lutomirski @ 2014-06-13 17:29 UTC (permalink / raw)
  To: Michal Marek; +Cc: H. Peter Anvin, X86 ML, linux-kbuild, linux-kernel

On Fri, Jun 13, 2014 at 2:45 AM, Michal Marek <mmarek@suse.cz> wrote:
> Dne 13.6.2014 11:39, Michal Marek napsal(a):
>> Based on a x86-only patch by Andy Lutomirski <luto@amacapital.net>
>>
>> With modular kernels, 'make install' is going to need the installed
>> modules at some point to generate the initramfs.
>>
>> Signed-off-by: Michal Marek <mmarek@suse.cz>
>> ---
>>  Makefile | 6 ++++++
>>  1 file changed, 6 insertions(+)
>>
>> diff --git a/Makefile b/Makefile
>> index 7680d7c..7e5e483 100644
>> --- a/Makefile
>> +++ b/Makefile
>> @@ -503,6 +503,12 @@ ifeq ($(KBUILD_EXTMOD),)
>>                  endif
>>          endif
>>  endif
>> +# install and module_install need also be processed one by one
>> +ifneq ($(filter install,$(MAKECMDGOALS)),)
>> +        ifneq ($(filter modules_install,$(MAKECMDGOALS)),)
>> +             mixed-targets := 1
>> +        endif
>> +endif
>
> Note that this version does not enforce the ordering, it just avoids the
> interleaved execution. It can be added if desired.

Hmm.  This will fix 'make modules_install install' but will not fix
'make install modules_install'.  I don't know how many people would
type the latter.

--Andy

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH] kbuild: Do not run modules_install and install in paralel
  2014-06-13 17:29         ` Andy Lutomirski
@ 2014-07-04 22:15           ` Michal Marek
  2014-07-04 23:45             ` Andy Lutomirski
  0 siblings, 1 reply; 13+ messages in thread
From: Michal Marek @ 2014-07-04 22:15 UTC (permalink / raw)
  To: Andy Lutomirski; +Cc: H. Peter Anvin, X86 ML, linux-kbuild, linux-kernel

Dne 13.6.2014 19:29, Andy Lutomirski napsal(a):
> On Fri, Jun 13, 2014 at 2:45 AM, Michal Marek <mmarek@suse.cz> wrote:
>> Dne 13.6.2014 11:39, Michal Marek napsal(a):
>>> Based on a x86-only patch by Andy Lutomirski <luto@amacapital.net>
>>>
>>> With modular kernels, 'make install' is going to need the installed
>>> modules at some point to generate the initramfs.
>>>
>>> Signed-off-by: Michal Marek <mmarek@suse.cz>
>>> ---
>>>  Makefile | 6 ++++++
>>>  1 file changed, 6 insertions(+)
>>>
>>> diff --git a/Makefile b/Makefile
>>> index 7680d7c..7e5e483 100644
>>> --- a/Makefile
>>> +++ b/Makefile
>>> @@ -503,6 +503,12 @@ ifeq ($(KBUILD_EXTMOD),)
>>>                  endif
>>>          endif
>>>  endif
>>> +# install and module_install need also be processed one by one
>>> +ifneq ($(filter install,$(MAKECMDGOALS)),)
>>> +        ifneq ($(filter modules_install,$(MAKECMDGOALS)),)
>>> +             mixed-targets := 1
>>> +        endif
>>> +endif
>>
>> Note that this version does not enforce the ordering, it just avoids the
>> interleaved execution. It can be added if desired.
> 
> Hmm.  This will fix 'make modules_install install' but will not fix
> 'make install modules_install'.  I don't know how many people would
> type the latter.

Resuming a thread from last month -- As I said, it does not enforce the
ordering. So it's not as bullet-proof as your patch, but it works on all
architectures. I'm thinking about adding the patch to kbuild.git for
3.17. But if you want to fix the ordering as well, feel free to change
the __build_one_by_one rule to do this.

Thanks,
Michal

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH] kbuild: Do not run modules_install and install in paralel
  2014-07-04 22:15           ` Michal Marek
@ 2014-07-04 23:45             ` Andy Lutomirski
  2014-07-07 11:03               ` Michal Marek
  0 siblings, 1 reply; 13+ messages in thread
From: Andy Lutomirski @ 2014-07-04 23:45 UTC (permalink / raw)
  To: Michal Marek; +Cc: H. Peter Anvin, X86 ML, linux-kbuild, linux-kernel

On Fri, Jul 4, 2014 at 3:15 PM, Michal Marek <mmarek@suse.cz> wrote:
> Dne 13.6.2014 19:29, Andy Lutomirski napsal(a):
>> On Fri, Jun 13, 2014 at 2:45 AM, Michal Marek <mmarek@suse.cz> wrote:
>>> Dne 13.6.2014 11:39, Michal Marek napsal(a):
>>>> Based on a x86-only patch by Andy Lutomirski <luto@amacapital.net>
>>>>
>>>> With modular kernels, 'make install' is going to need the installed
>>>> modules at some point to generate the initramfs.
>>>>
>>>> Signed-off-by: Michal Marek <mmarek@suse.cz>
>>>> ---
>>>>  Makefile | 6 ++++++
>>>>  1 file changed, 6 insertions(+)
>>>>
>>>> diff --git a/Makefile b/Makefile
>>>> index 7680d7c..7e5e483 100644
>>>> --- a/Makefile
>>>> +++ b/Makefile
>>>> @@ -503,6 +503,12 @@ ifeq ($(KBUILD_EXTMOD),)
>>>>                  endif
>>>>          endif
>>>>  endif
>>>> +# install and module_install need also be processed one by one
>>>> +ifneq ($(filter install,$(MAKECMDGOALS)),)
>>>> +        ifneq ($(filter modules_install,$(MAKECMDGOALS)),)
>>>> +             mixed-targets := 1
>>>> +        endif
>>>> +endif
>>>
>>> Note that this version does not enforce the ordering, it just avoids the
>>> interleaved execution. It can be added if desired.
>>
>> Hmm.  This will fix 'make modules_install install' but will not fix
>> 'make install modules_install'.  I don't know how many people would
>> type the latter.
>
> Resuming a thread from last month -- As I said, it does not enforce the
> ordering. So it's not as bullet-proof as your patch, but it works on all
> architectures. I'm thinking about adding the patch to kbuild.git for
> 3.17. But if you want to fix the ordering as well, feel free to change
> the __build_one_by_one rule to do this.

Sounds good to me.

Where's __build_one_by_one?

--Andy

>
> Thanks,
> Michal



-- 
Andy Lutomirski
AMA Capital Management, LLC

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH] kbuild: Do not run modules_install and install in paralel
  2014-07-04 23:45             ` Andy Lutomirski
@ 2014-07-07 11:03               ` Michal Marek
  0 siblings, 0 replies; 13+ messages in thread
From: Michal Marek @ 2014-07-07 11:03 UTC (permalink / raw)
  To: Andy Lutomirski; +Cc: H. Peter Anvin, X86 ML, linux-kbuild, linux-kernel

On 2014-07-05 01:45, Andy Lutomirski wrote:
> On Fri, Jul 4, 2014 at 3:15 PM, Michal Marek <mmarek@suse.cz> wrote:
>> Dne 13.6.2014 19:29, Andy Lutomirski napsal(a):
>>> On Fri, Jun 13, 2014 at 2:45 AM, Michal Marek <mmarek@suse.cz> wrote:
>>>> Dne 13.6.2014 11:39, Michal Marek napsal(a):
>>>>> Based on a x86-only patch by Andy Lutomirski <luto@amacapital.net>
>>>>>
>>>>> With modular kernels, 'make install' is going to need the installed
>>>>> modules at some point to generate the initramfs.
>>>>>
>>>>> Signed-off-by: Michal Marek <mmarek@suse.cz>
>>>>> ---
>>>>>  Makefile | 6 ++++++
>>>>>  1 file changed, 6 insertions(+)
>>>>>
>>>>> diff --git a/Makefile b/Makefile
>>>>> index 7680d7c..7e5e483 100644
>>>>> --- a/Makefile
>>>>> +++ b/Makefile
>>>>> @@ -503,6 +503,12 @@ ifeq ($(KBUILD_EXTMOD),)
>>>>>                  endif
>>>>>          endif
>>>>>  endif
>>>>> +# install and module_install need also be processed one by one
>>>>> +ifneq ($(filter install,$(MAKECMDGOALS)),)
>>>>> +        ifneq ($(filter modules_install,$(MAKECMDGOALS)),)
>>>>> +             mixed-targets := 1
>>>>> +        endif
>>>>> +endif
>>>>
>>>> Note that this version does not enforce the ordering, it just avoids the
>>>> interleaved execution. It can be added if desired.
>>>
>>> Hmm.  This will fix 'make modules_install install' but will not fix
>>> 'make install modules_install'.  I don't know how many people would
>>> type the latter.
>>
>> Resuming a thread from last month -- As I said, it does not enforce the
>> ordering. So it's not as bullet-proof as your patch, but it works on all
>> architectures. I'm thinking about adding the patch to kbuild.git for
>> 3.17. But if you want to fix the ordering as well, feel free to change
>> the __build_one_by_one rule to do this.
> 
> Sounds good to me.
> 
> Where's __build_one_by_one?

A few lines below in the main Makefile:

   513  ifeq ($(mixed-targets),1)
   514  #
======================================================================
=====
   515  # We're called with mixed targets (*config and build targets).
   516  # Handle them one by one.
   517
   518  PHONY += $(MAKECMDGOALS) __build_one_by_one
   519
   520  $(filter-out __build_one_by_one, $(MAKECMDGOALS)):
__build_one_by_one
   521          @:
   522
   523  __build_one_by_one:
   524          $(Q)set -e; \
   525          for i in $(MAKECMDGOALS); do \
   526                  $(MAKE) -f $(srctree)/Makefile $$i; \
   527          done

Michal

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH] kbuild: Do not run modules_install and install in paralel
  2014-06-13  9:39     ` [PATCH] kbuild: Do not run modules_install and install in paralel Michal Marek
  2014-06-13  9:45       ` Michal Marek
@ 2015-12-09 21:34       ` Andy Lutomirski
  2015-12-10 14:45         ` Michal Marek
  1 sibling, 1 reply; 13+ messages in thread
From: Andy Lutomirski @ 2015-12-09 21:34 UTC (permalink / raw)
  To: Michal Marek; +Cc: H. Peter Anvin, X86 ML, linux-kbuild, linux-kernel

On Fri, Jun 13, 2014 at 2:39 AM, Michal Marek <mmarek@suse.cz> wrote:
> Based on a x86-only patch by Andy Lutomirski <luto@amacapital.net>
>
> With modular kernels, 'make install' is going to need the installed
> modules at some point to generate the initramfs.
>
> Signed-off-by: Michal Marek <mmarek@suse.cz>
> ---
>  Makefile | 6 ++++++
>  1 file changed, 6 insertions(+)
>
> diff --git a/Makefile b/Makefile
> index 7680d7c..7e5e483 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -503,6 +503,12 @@ ifeq ($(KBUILD_EXTMOD),)
>                  endif
>          endif
>  endif
> +# install and module_install need also be processed one by one
> +ifneq ($(filter install,$(MAKECMDGOALS)),)
> +        ifneq ($(filter modules_install,$(MAKECMDGOALS)),)
> +               mixed-targets := 1
> +        endif
> +endif
>
>  ifeq ($(mixed-targets),1)
>  # ===========================================================================
> --
> 1.9.2
>

This patch seems to have gotten lost.  Do you still like it?  If so,
can someone apply it, please?

--Andy

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH] kbuild: Do not run modules_install and install in paralel
  2015-12-09 21:34       ` Andy Lutomirski
@ 2015-12-10 14:45         ` Michal Marek
  0 siblings, 0 replies; 13+ messages in thread
From: Michal Marek @ 2015-12-10 14:45 UTC (permalink / raw)
  To: Andy Lutomirski; +Cc: H. Peter Anvin, X86 ML, linux-kbuild, linux-kernel

Dne 9.12.2015 v 22:34 Andy Lutomirski napsal(a):
> On Fri, Jun 13, 2014 at 2:39 AM, Michal Marek <mmarek@suse.cz> wrote:
>> Based on a x86-only patch by Andy Lutomirski <luto@amacapital.net>
>>
>> With modular kernels, 'make install' is going to need the installed
>> modules at some point to generate the initramfs.
>>
>> Signed-off-by: Michal Marek <mmarek@suse.cz>
>> ---
>>  Makefile | 6 ++++++
>>  1 file changed, 6 insertions(+)
>>
>> diff --git a/Makefile b/Makefile
>> index 7680d7c..7e5e483 100644
>> --- a/Makefile
>> +++ b/Makefile
>> @@ -503,6 +503,12 @@ ifeq ($(KBUILD_EXTMOD),)
>>                  endif
>>          endif
>>  endif
>> +# install and module_install need also be processed one by one
>> +ifneq ($(filter install,$(MAKECMDGOALS)),)
>> +        ifneq ($(filter modules_install,$(MAKECMDGOALS)),)
>> +               mixed-targets := 1
>> +        endif
>> +endif
>>
>>  ifeq ($(mixed-targets),1)
>>  # ===========================================================================
>> --
>> 1.9.2
>>
> 
> This patch seems to have gotten lost.  Do you still like it?  If so,
> can someone apply it, please?

Oops. I will rebase it and apply to the kbuild tree.

Michal


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2015-12-10 14:45 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-11 19:41 [PATCH] x86,build: Fix make -jN modules_install install Andy Lutomirski
2014-06-11 19:44 ` Sam Ravnborg
2014-06-11 19:46   ` Andy Lutomirski
2014-06-12  8:33 ` Michal Marek
2014-06-13  1:28   ` Andy Lutomirski
2014-06-13  9:39     ` [PATCH] kbuild: Do not run modules_install and install in paralel Michal Marek
2014-06-13  9:45       ` Michal Marek
2014-06-13 17:29         ` Andy Lutomirski
2014-07-04 22:15           ` Michal Marek
2014-07-04 23:45             ` Andy Lutomirski
2014-07-07 11:03               ` Michal Marek
2015-12-09 21:34       ` Andy Lutomirski
2015-12-10 14:45         ` Michal Marek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).