* [PATCH 2/2] deb-pkg: Fix building for MIPS big-endian or ARM OABI
@ 2013-12-05 14:39 Ben Hutchings
2014-01-03 16:29 ` Michal Marek
0 siblings, 1 reply; 2+ messages in thread
From: Ben Hutchings @ 2013-12-05 14:39 UTC (permalink / raw)
To: Michal Marek; +Cc: linux-kbuild, Debian kernel maintainers
[-- Attachment #1: Type: text/plain, Size: 1311 bytes --]
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>
---
scripts/package/builddeb | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/scripts/package/builddeb b/scripts/package/builddeb
index 301acdc..c1bb9be 100644
--- a/scripts/package/builddeb
+++ b/scripts/package/builddeb
@@ -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
--
Ben Hutchings
Knowledge is power. France is bacon.
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 828 bytes --]
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 2/2] deb-pkg: Fix building for MIPS big-endian or ARM OABI
2013-12-05 14:39 [PATCH 2/2] deb-pkg: Fix building for MIPS big-endian or ARM OABI Ben Hutchings
@ 2014-01-03 16:29 ` Michal Marek
0 siblings, 0 replies; 2+ messages in thread
From: Michal Marek @ 2014-01-03 16:29 UTC (permalink / raw)
To: Ben Hutchings; +Cc: linux-kbuild, Debian kernel maintainers
On 2013-12-05 15:39, Ben Hutchings wrote:
> 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>
> ---
> scripts/package/builddeb | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
Applied to kbuild.git#misc, thanks.
Michal
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-01-03 16:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-05 14:39 [PATCH 2/2] deb-pkg: Fix building for MIPS big-endian or ARM OABI Ben Hutchings
2014-01-03 16:29 ` Michal Marek
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.