]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit151bdf3b5db4d33b03fe9a05c7b999a310470f7a
tree6c630d3ee90a34d17f85d5c07dde67d4c27883a8
parenteb469eeeee9adcc6502c42fba4cfaffbc7fa9d0f
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]