summaryrefslogtreecommitdiffstats
path: root/scripts/coccinelle
diff options
context:
space:
mode:
authorMasahiro Yamada2017-12-06 11:32:57 +0100
committerMasahiro Yamada2017-12-12 16:07:00 +0100
commit262dad68e152fda06e5c5666b3186c23dfd6ae2f (patch)
treeb11ecc81e2ecb6c40222850352937a3d4caae9ca /scripts/coccinelle
parentscripts/package: snap-pkg target (diff)
downloadkernel-qcow2-linux-262dad68e152fda06e5c5666b3186c23dfd6ae2f.tar.gz
kernel-qcow2-linux-262dad68e152fda06e5c5666b3186c23dfd6ae2f.tar.xz
kernel-qcow2-linux-262dad68e152fda06e5c5666b3186c23dfd6ae2f.zip
kbuild: pkg: make out-of-tree rpm/deb-pkg build immediately fail
We do not support out-of-tree building of rpm-pkg / deb-pkg. If O= is given, the build should be terminated, but the "false" command is not effective since it is not the last command in the cmd_src_tar. Then, rpm-pkg / deb-pkg tries to continue building, and fails for a different reason. Set -e option so that the "false" terminates the building immediately. I also put the error messages to stderr, and made it stand out more. For example, "make O=foo rpm-pkg" will fail as follows: /bin/bash ../scripts/package/mkspec >./kernel.spec TAR kernel-4.15.0_rc2+.tar.gz ERROR: Building source tarball is not possible outside the kernel source tree. Don't set KBUILD_OUTPUT, or use the binrpm-pkg or bindeb-pkg target instead. ../scripts/package/Makefile:53: recipe for target 'rpm-pkg' failed Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Tested-by: Jim Davis <jim.epost@gmail.com>
Diffstat (limited to 'scripts/coccinelle')
0 files changed, 0 insertions, 0 deletions