OSDN Git Service

scripts: fix link-vmlinux.sh bash-ism
authorSylvain BERTRAND <sylvain.bertrand@gmail.com>
Thu, 7 May 2015 00:36:04 +0000 (00:36 +0000)
committerMichal Marek <mmarek@suse.cz>
Thu, 7 May 2015 10:42:03 +0000 (12:42 +0200)
commitab160dbbc4ba71a4e339382d37b31ea44fd43e86
tree2c139a548615c7d7cf8f5707be57eefda6ff27cc
parentee4eb20dbce91751c248399e8a0cf9b8813adf5a
scripts: fix link-vmlinux.sh bash-ism

While building linux with dash shell:
  LINK    vmlinux
trap: SIGHUP: bad trap
/src/linux-4.0/Makefile:933: recipe for target 'vmlinux' failed
make[1]: *** [vmlinux] Error 1

See the following document for behavior of posix shell trap instruction:
http://pubs.opengroup.org/onlinepubs/000095399/utilities/trap.html

Cc: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Sylvain BERTRAND <sylvain.bertrand@gmail.com>
Signed-off-by: Michal Marek <mmarek@suse.cz>
scripts/link-vmlinux.sh