diff options
author | Ben Hutchings <ben@decadent.org.uk> | 2013-12-05 09:39:11 -0500 |
---|---|---|
committer | Michal Marek <mmarek@suse.cz> | 2014-01-03 11:28:23 -0500 |
commit | c5e318f67eebbad491615a752c51dbfde7dc3d78 (patch) | |
tree | 021793814898d6b6ca142c15ea979d801a0dc4a8 /scripts | |
parent | f8ce239dfc7ba9add41d9ecdc5e7810738f839fa (diff) |
deb-pkg: Fix building for MIPS big-endian or ARM OABI
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>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/package/builddeb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/package/builddeb b/scripts/package/builddeb index 5fcfc33dd5ba..f46e4dd0558d 100644 --- a/scripts/package/builddeb +++ b/scripts/package/builddeb | |||
@@ -41,9 +41,9 @@ create_package() { | |||
41 | parisc*) | 41 | parisc*) |
42 | debarch=hppa ;; | 42 | debarch=hppa ;; |
43 | mips*) | 43 | mips*) |
44 | debarch=mips$(grep -q CPU_LITTLE_ENDIAN=y $KCONFIG_CONFIG && echo el) ;; | 44 | debarch=mips$(grep -q CPU_LITTLE_ENDIAN=y $KCONFIG_CONFIG && echo el || true) ;; |
45 | arm*) | 45 | arm*) |
46 | debarch=arm$(grep -q CONFIG_AEABI=y $KCONFIG_CONFIG && echo el) ;; | 46 | debarch=arm$(grep -q CONFIG_AEABI=y $KCONFIG_CONFIG && echo el || true) ;; |
47 | *) | 47 | *) |
48 | echo "" >&2 | 48 | echo "" >&2 |
49 | echo "** ** ** WARNING ** ** **" >&2 | 49 | echo "** ** ** WARNING ** ** **" >&2 |