From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1LRZlf-0000ih-MQ for mharc-grub-devel@gnu.org; Mon, 26 Jan 2009 17:17:19 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LRZld-0000hh-Q7 for grub-devel@gnu.org; Mon, 26 Jan 2009 17:17:17 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LRZlc-0000hA-GF for grub-devel@gnu.org; Mon, 26 Jan 2009 17:17:16 -0500 Received: from [199.232.76.173] (port=48048 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LRZlc-0000h4-CS for grub-devel@gnu.org; Mon, 26 Jan 2009 17:17:16 -0500 Received: from mail-ew0-f20.google.com ([209.85.219.20]:40008) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LRZlb-0006bz-UF for grub-devel@gnu.org; Mon, 26 Jan 2009 17:17:16 -0500 Received: by ewy13 with SMTP id 13so1237696ewy.18 for ; Mon, 26 Jan 2009 14:17:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:in-reply-to :references:content-type:date:message-id:mime-version:x-mailer; bh=0ft5k5i4JRF9oR0WDpiO1j6ohJI/wFIgT7+pbCZhhOo=; b=iwsMDw2ZmEJmnXGHzFUKnYEX/3OLExfhxXu6YbKe8kgvN01k43W8gumVyiL8mR+Rpo lokH+3RiSdC+E+0aH08xUIQRLbj9ctTP3JYsW5j4BHiRMYm2VFqkM3sX0ULmd2RRAKjZ NZjRBohpRmjJXJixSDd46nHUuKQqwgwHb/sT0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:in-reply-to:references:content-type:date:message-id :mime-version:x-mailer; b=BElqaRdukSyYi/648CfJL3nCqyzxEy9nLSCblLFFwblW4uYriUejgO4eCMtRDLtiRn ErqSpRM4l57hDAKa0yOAlsflYNYX5VwIsFxnSNTEqA7AROqvgTU/I6ZNSZJSgR+qTqk8 jKGQQ6Cd53jDiA7pVL3fXJHnsghuFK7ZkcsKM= Received: by 10.86.80.17 with SMTP id d17mr426439fgb.55.1233008233542; Mon, 26 Jan 2009 14:17:13 -0800 (PST) Received: from ?192.168.1.102? (213.37.137.93.dyn.user.ono.com [213.37.137.93]) by mx.google.com with ESMTPS id l12sm8533601fgb.58.2009.01.26.14.17.08 (version=SSLv3 cipher=RC4-MD5); Mon, 26 Jan 2009 14:17:09 -0800 (PST) From: Javier =?ISO-8859-1?Q?Mart=EDn?= To: The development of GRUB 2 In-Reply-To: <497E1596.7040802@t-online.de> References: <20090125231241.GA27873@thorin> <497E1596.7040802@t-online.de> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-+Wh1EBWzkJjR+k3HUKQk" Date: Mon, 26 Jan 2009 23:17:09 +0100 Message-Id: <1233008230.24663.8.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.24.2 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: [PATCH] remove target_os X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jan 2009 22:17:18 -0000 --=-+Wh1EBWzkJjR+k3HUKQk Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi GRUB devs, El lun, 26-01-2009 a las 20:57 +0100, Christian Franke escribi=C3=B3: > Robert Millan wrote: > > Hi, > > > > Based on the description of host/target triplets in configure.ac: > > > > dnl build -- the environment for building GRUB > > dnl host -- the environment for running utilities > > dnl target -- the environment for running GRUB > > > > it seems that target_os is an oxymoron. There's no OS in the environme= nt > > where GRUB will run (well, there's the firmware, but we already use > > target_vendor for that, and _os has a well-defined meaning). > > > > Attached patch fixes that by supressing all references to target_os, an= d > > replacing them with host_os where suitable. > > > > Christian: since this mostly affects Cygwin, could you verify that it d= oesn't > > cause breakage before I commit it? > > > > =20 >=20 > Hi Robert, >=20 > thanks for sending the patch first. Cygwin build looks good. >=20 >=20 > But even if GRUB itself is build for some $target_cpu-$target_vendor=20 > (i386-pc), the target_os is not useless if cross-compilation support is=20 > desired: >=20 > - GRUB tools like grub-setup are build for the target_os > - Package structure may depend on target_os. >=20 > - The gcc code generator may emit special code tailored for the assumed=20 > target_os > Examples: > Stack frame checks > Nested function trampolines (__enable_execute_stack()) >=20 > Unfortunately, gcc has no '-fno_os' option to specify the bare CPU as=20 > target. Might -ffreestanding be what you are looking for? > Fortunately, all current issues can be handled by autoconf checks. >=20 >=20 > > AC_MSG_CHECKING([for command to convert module to ELF format]) > > -case "${host_os}:${target_os}" in > > - cygwin:cygwin) TARGET_OBJ2ELF=3D'grub-pe2elf' ;; > > +case "${host_os}" in > > + cygwin) TARGET_OBJ2ELF=3D'grub-pe2elf' ;; > > *) ;; > > esac > > =20 >=20 > This won't work for a Linux cross compiler hosted on Cygwin. It would=20 > emit ELF format and does not need pe2elf. A, say, AMD64 Linux cross compiler hosted on x86 Cygwin would have $build=3Di686-pc-cygwin and $host=3Damd64-linux-gnu. Thus, no conflict ough= t to arise even with cross compilation enabled. AFAIK, the full power of $build+$host+$target only matters when building _compilers_ (and binutils, etc.), because you might want to use an AMD64/Linux machine to build a compiler that will run on PPC/Darwin but produce executables for a x86/Cygwin machine >=20 > But all this is theoretical unless cross compilation is really needed. > > Christian >=20 >=20 >=20 > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel --=-+Wh1EBWzkJjR+k3HUKQk Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Esta parte del mensaje =?ISO-8859-1?Q?est=E1?= firmada digitalmente -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iQIcBAABAgAGBQJJfjZhAAoJEKSl+Fbdeo72/ZUP/2fnQEBKv9KXq0emgYuatHuQ XgLPIPJg90515COFWCGlZilUqnD2cHzPPmcZSNEsWWv5Cd6FJ59lS8wBjEJXpaaf fxEGWUdCfe80JapVdm7daamp/OZoixWeoOtJLh3r+DZ67lK2HEyanxAxmHPpNT3f idrrSufKCVJ4Ad+L1NupsGZJo/9L7jx0FcOXa8GgmwMOY98OqCUAk7yq7WF1NQff oFjrefZKjb90E+H0uBN/3zsh6k4R6ttdWL8aF0Qc0R7+tQRqzAog1YIVwd86dL6W G02sOgVX5xbntXY+i9vtcgm58pwC9DKBz9hV5xfG+ood92RFUKgpG2xGwk7r46e+ 1Ke5K4Y1fO0M4vFQbnA7NRePx7Er8+eF9x6iWS8MVi+iHXUTLN9jDZHyPouXYlKs eIqz+75MVEM/sFOl99OoVlHqVlOD03N0tQaQ45STgMe77jwOJgfJ4PKajH79QbbF yAdGnNjvw4KPYJrDTrUhruMNJzUDG+U1TYAI+form9eNtTmDH/MBy3r6bMYetwL7 1ThjjYkcEp6Ir0vbsv6m3J77Pfpe5D49fgCT5F+DpglfIfLjjCfc0ILu4Rech8mE h8iscmAzlZysu4vKIiLU3HlK6njA06YAJIUnosX5ahHGH3AGthHMiNof8PVXrrCR sXSc5HqSbEL8r9/U45TY =+Urh -----END PGP SIGNATURE----- --=-+Wh1EBWzkJjR+k3HUKQk--