deb-pkg: Fix building for MIPS big-endian or ARM OABI
authorBen Hutchings <ben@decadent.org.uk>
Thu, 5 Dec 2013 14:39:11 +0000 (14:39 +0000)
committerJiri Slaby <jslaby@suse.cz>
Mon, 31 Mar 2014 12:22:29 +0000 (14:22 +0200)
commit363103b6944721b60cf28c3531fae5cd5e1edb98
tree7067bb156c78ec7eee83563dbdd70eed076f3195
parent20c5552a8a399d0b4296d68d5759896d85f46acb
deb-pkg: Fix building for MIPS big-endian or ARM OABI

commit c5e318f67eebbad491615a752c51dbfde7dc3d78 upstream.

These commands will mysteriously fail:

$ make ARCH=arm versatile_defconfig
[...]
$ make ARCH=arm deb-pkg
[...]
make[1]: *** [deb-pkg] Error 1
make: *** [deb-pkg] Error 2

The Debian architecture selection for these kernel architectures does
'grep FOO=y $KCONFIG_CONFIG && echo bar', and after 'set -e' this
aborts the script if grep does not find the given config symbol.

Fixes: 10f26fa64200 ('build, deb-pkg: select userland architecture based on UTS_MACHINE')
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Michal Marek <mmarek@suse.cz>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
scripts/package/builddeb