Enhance 64-bit architecture detection for slmodem

أحمد المحمودي <[email protected]> Tue, 13 Dec 2011 21:38:50 +0200
Newsgroups gmane.linux.linmodem
Message-ID <[email protected]>
--gatW/ieO32f1wygP
Content-Type: multipart/mixed; boundary="LZvS9be/3tNcYl/X"
Content-Disposition: inline


--LZvS9be/3tNcYl/X
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hello,

  I added a patch for slmodem to enhance 64-bit arch detection in=20
  drivers/Makefile.


--=20
 =E2=80=8E=D8=A3=D8=AD=D9=85=D8=AF =D8=A7=D9=84=D9=85=D8=AD=D9=85=D9=88=D8=
=AF=D9=8A (Ahmed El-Mahmoudy)
  Digital design engineer
 GPG KeyID: 0xEDDDA1B7
 GPG Fingerprint: 8206 A196 2084 7E6D 0DF8  B176 BC19 6A94 EDDD A1B7

--LZvS9be/3tNcYl/X
Content-Type: text/x-diff; charset=utf-8
Content-Disposition: attachment; filename="arch64.diff"
Content-Transfer-Encoding: quoted-printable

Description: Better arch detection logic
Author: =D8=A3=D8=AD=D9=85=D8=AF =D8=A7=D9=84=D9=85=D8=AD=D9=85=D9=88=D8=AF=
=D9=8A (Ahmed El-Mahmoudy) <[email protected]>
Bug-Debian: http://bugs.debian.org/651780
Forwarded: yes
--- a/drivers/Makefile
+++ b/drivers/Makefile
@@ -28,7 +28,11 @@
=20
 EXTRA_CFLAGS =3D -I$(obj) -I$(obj)/../modem $(FOUND_CLASS_SIMPLE)
=20
+ifdef CONFIG_X86_32
+ARCH64:=3D0
+else
 ARCH64:=3D$(shell uname -m | sed -e '/amd64/s//x86_64/' | grep -c x86_64)
+endif
=20
 ifeq ($(ARCH64), 0)
 obj-m:=3D slamr.o=20

--LZvS9be/3tNcYl/X--

--gatW/ieO32f1wygP
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQEcBAEBCAAGBQJO56nKAAoJELwZapTt3aG3ZPMH/iAwjSR77z7LlWNcHim3syCb
hcBkVRLhWZ9URv+1FbNfuczJqYP1JfOTkameJcV8dYW257F3kERmPmX8UckSyY+1
IUz4gNjWDXfpDDwUDHU4vHXW6krVvkGlQqUVUKevByPPAQSfzrl/sj+Q/rKZUSZ0
eGhva4vnAO3ROozxjmwCWQpmDuzxtJdoXAgaSCWL7YxV4Q2REtbgv92/rAxDhZf2
j3dlp93M9xjWCtXpuM1BIjpAqM9bY8JR8UGi8ZWlMhZNbTd3kzgDv9+3+GmDzQ0J
4ZXZhe993KIC+F080SBJi3fRK46BNJdd1oGMWzR6NrTDq1kTBLAyqzobVV45Ozw=
=iEU9
-----END PGP SIGNATURE-----

--gatW/ieO32f1wygP--