kbuild: resync top Makefile, mkmakefile, tags.sh with Linux 5.7-rc4
The prologue of the build system is not specific to Linux or Barebox.
Paritially resync with Linux 5.7-rc4

- In Linux, $(objtree) is always '.', and $(srctree) might be relative.
  I am keeping both absolute for now to avoid unexpected breakage.

- I did not resync single target for now. We need to touch
  Makefile.build a lot if we want to resync it.

- 'export CDPATH=' is Barebox-only code, which was added by
  commit 6cc8d0544658 ("Makefile: disable CDPATH"). Keep it.

- KBUILD_SRC no longer exists in the upstream Linux. I replaced it
  with building_out_of_srctree.

- scripts/mkmakefile does not contain anything specific to Linux or
  Barebox. Resync it with Linux 5.7-rc4

- scripts/tags was imported from Linux 3.6 with some cherry-picks on
  top of that. Resync it with Linux 5.7-rc4

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 6619b70 commit 992116ba3aeda6635c103ea2d04682bdd081fb4b
@Masahiro Yamada Masahiro Yamada authored on 10 May 2020
Sascha Hauer committed on 12 May 2020
Showing 7 changed files
View
Makefile
View
firmware/Makefile
View
scripts/Makefile.build
View
scripts/Makefile.host
View
scripts/Makefile.lib
View
scripts/mkmakefile
View
scripts/tags.sh