Skip to contentSkip to conversation

linux-next: manual merge of the akpm tree with the kbuild tree

DISCUSSION Stephen Rothwell 2 participants 2 messages Jan 22, 2019 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi all,

Today's linux-next merge of the akpm tree got a conflict in:

Makefile

between commit:

b57304bb03de ("kbuild: remove meaningless prepare2 target")

from the kbuild tree and patch:

"locking/atomics: build atomic headers as required"

from the akpm tree.

I fixed it up (I hope - see below) and can carry the fix as necessary. This is now fixed as far as linux-next is concerned, but any non trivial conflicts should be mentioned to your upstream maintainer when your tree is submitted for merging. You may also want to consider cooperating with the maintainer of the conflicting tree to minimise any particularly complex conflicts.

Signature · 24 lines
Cheers,
Stephen Rothwell

diff --cc Makefile
index 004a190e3ece,bd0f79d8295e..000000000000
--- a/Makefile
+++ b/Makefile
@@@ -1077,8 -1077,12 +1077,8 @@@ ifneq ($(KBUILD_SRC),
  	fi;
  endif
  
- prepare1: prepare3 outputmakefile asm-generic $(version_h) $(autoksyms_h) \
- 						include/generated/utsrelease.h
 -# prepare2 creates a makefile if using a separate output directory.
 -# From this point forward, .config has been reprocessed, so any rules
 -# that need to depend on updated CONFIG_* values can be checked here.
 -prepare2: prepare3 outputmakefile asm-generic genheader
 -
 -prepare1: prepare2 $(version_h) $(autoksyms_h) include/generated/utsrelease.h
++prepare1: prepare3 outputmakefile asm-generic genheader $(version_h) \
++				$(autoksyms_h) include/generated/utsrelease.h
  	$(cmd_crmodverdir)
  
  archprepare: archheaders archscripts prepare1 scripts
#1 lore raw
Quoted 7 lines · Stephen Rothwell

Hi all,

Today's linux-next merge of the akpm tree got a conflict in:

Makefile

Quoted 7 lines

between commit:

b57304bb03de ("kbuild: remove meaningless prepare2 target")

from the kbuild tree and patch:

"locking/atomics: build atomic headers as required"

This has been sitting around since the previous development cycle. The relevant patches were not sent to Linus in the previous MW.

I believe those should be dropped entirely,
and re-implemented cleanly/correctly if Mark Rutland wants this change.

People already pointed out the scripts are so slow, but that is not the only problem.

[1] I see annoying log message
"Nothing to be done for 'all'"
for every incremental build

[2] Dependencies might not be sufficient.
For example, nothing is rebuilt when scripts/atomic/fallbacks/* is touched.

[3] I do not understand why scripts/Makefile.genheader must be added.

Quoted 34 lines

from the akpm tree.

I fixed it up (I hope - see below) and can carry the fix as necessary. This is now fixed as far as linux-next is concerned, but any non trivial conflicts should be mentioned to your upstream maintainer when your tree is submitted for merging. You may also want to consider cooperating with the maintainer of the conflicting tree to minimise any particularly complex conflicts.

--
Cheers,
Stephen Rothwell

Makefile +2 -2
diff --cc Makefile
index 004a190e3ece,bd0f79d8295e..000000000000
@@@ -1077,8 -1077,12 +1077,8 @@@ ifneq ($(KBUILD_SRC),
        fi;
  endif
 
- prepare1: prepare3 outputmakefile asm-generic $(version_h) $(autoksyms_h) \
-                                               include/generated/utsrelease.h
 -# prepare2 creates a makefile if using a separate output directory.
 -# From this point forward, .config has been reprocessed, so any rules
 -# that need to depend on updated CONFIG_* values can be checked here.
 -prepare2: prepare3 outputmakefile asm-generic genheader
 -
 -prepare1: prepare2 $(version_h) $(autoksyms_h) include/generated/utsrelease.h
++prepare1: prepare3 outputmakefile asm-generic genheader $(version_h) \
++                              $(autoksyms_h) include/generated/utsrelease.h
        $(cmd_crmodverdir)
 
  archprepare: archheaders archscripts prepare1 scripts
Signature · 2 lines
Best Regards
Masahiro Yamada