Skip to contentSkip to conversation

deb-pkg: Fix building for MIPS big-endian or ARM OABI

PATCH In review Ben Hutchings 2 participants 2 messages Dec 5, 2013 – Jan 3, 2014 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 2/2 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')
---
 scripts/package/builddeb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
scripts/package/builddeb +2 -2
index 301acdc..c1bb9be 100644
@@ -41,9 +41,9 @@ create_package() {
 	parisc*)
 		debarch=hppa ;;
 	mips*)
-		debarch=mips$(grep -q CPU_LITTLE_ENDIAN=y $KCONFIG_CONFIG && echo el) ;;
+		debarch=mips$(grep -q CPU_LITTLE_ENDIAN=y $KCONFIG_CONFIG && echo el || true) ;;
 	arm*)
-		debarch=arm$(grep -q CONFIG_AEABI=y $KCONFIG_CONFIG && echo el) ;;
+		debarch=arm$(grep -q CONFIG_AEABI=y $KCONFIG_CONFIG && echo el || true) ;;
 	*)
 		echo "" >&2
 		echo "** ** **  WARNING  ** ** **" >&2
Signature · 2 lines
Ben Hutchings
Knowledge is power.  France is bacon.
#1 lore raw
Quoted 13 lines · Ben Hutchings

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.

Quoted 5 lines
Fixes 10f26fa64200 ('build, deb-pkg: select userland architecture based on UTS_MACHINE')
---
 scripts/package/builddeb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Applied to kbuild.git#misc, thanks.

Michal