kbuild: link of vmlinux moved to a script
authorSam Ravnborg <sam@ravnborg.org>
Sat, 5 May 2012 08:18:41 +0000 (10:18 +0200)
committerMichal Marek <mmarek@suse.cz>
Sat, 5 May 2012 19:19:33 +0000 (21:19 +0200)
commit1f2bfbd00e466ff3489b2ca5cc75b1cccd14c123
tree6c630d3ee90a34d17f85d5c07dde67d4c27883a8
parent95698570510b7be9ab1542a4a908242c05a9b0ed
kbuild: link of vmlinux moved to a script

Move the final link of vmlinux to a script to improve
readability and maintainability of the code.

The Makefile fragments used to link vmlinux has over the
years seen far too many changes and the logic had become
hard to follow.

As the process by nature is serialized there was
nothing gained including this in the Makefile.

"um" has special link requirments - and the
only way to handle this was to hard-code the linking
of "um" in the script.
This was better than trying to modularize it only for the
benefit of "um" anyway.

The shell script has been improved after input from:
Arnaud Lacombe <lacombar@gmail.com>
Nick Bowler <nbowler@elliptictech.com>

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Cc: Arnaud Lacombe <lacombar@gmail.com>
Cc: Nick Bowler <nbowler@elliptictech.com>
Cc: Richard Weinberger <richard@nod.at>
Signed-off-by: Michal Marek <mmarek@suse.cz>
Makefile
arch/um/Makefile
scripts/link-vmlinux.sh [new file with mode: 0644]