From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1WP57j-0000uh-VU for mharc-grub-devel@gnu.org; Sun, 16 Mar 2014 03:04:43 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33327) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WP57d-0000uZ-3k for grub-devel@gnu.org; Sun, 16 Mar 2014 03:04:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WP57X-0007Fb-8C for grub-devel@gnu.org; Sun, 16 Mar 2014 03:04:37 -0400 Received: from mail-lb0-x233.google.com ([2a00:1450:4010:c04::233]:45368) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WP57W-0007FV-WF for grub-devel@gnu.org; Sun, 16 Mar 2014 03:04:31 -0400 Received: by mail-lb0-f179.google.com with SMTP id p9so2900129lbv.10 for ; Sun, 16 Mar 2014 00:04:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=6GoKSZlQRlzck3s4sx6JR5Wt2WISNWjmGRvHzIpdUQ0=; b=laAlzL0mOqC9HhVJckNGUQS84rOqCfGO2RGDrYaw/HI6GS13W8UPvdy7YXop3YAEM2 8/wrJwb/FW//bMWVQSSAWY8FitLDFB1swN7o4E1oCww/YFOd4jadB04Rnl7t+rvvGshw beI+7VyUrvcSAX9MEWW9WdiONGR4j6CADyFTeM8m6EKdwmRzf2bsMsp9I9cmccyA0NLW wLcj1JHWvHrLf0jPYK4V4f2RMd3mob7Iqnq+x+tkCqgbqVI8IGil9zYzHBnqdqp+zm56 nqDwPGtF77ihArD2sn8zoXX1zn5UE8eeLjEcN7oNTdEa+H3+vg79xIWvcfJ+D5+CwZl1 qITw== X-Received: by 10.152.234.130 with SMTP id ue2mr12222879lac.0.1394953469870; Sun, 16 Mar 2014 00:04:29 -0700 (PDT) Received: from opensuse.site (ppp37-190-15-130.pppoe.spdop.ru. [37.190.15.130]) by mx.google.com with ESMTPSA id cr6sm2381120lbb.19.2014.03.16.00.04.28 for (version=SSLv3 cipher=RC4-SHA bits=128/128); Sun, 16 Mar 2014 00:04:29 -0700 (PDT) Date: Sun, 16 Mar 2014 11:04:28 +0400 From: Andrey Borzenkov To: adrian15 Subject: Re: Trying to build Rescue image for three different target and platform Message-ID: <20140316110428.5714ce94@opensuse.site> In-Reply-To: <53253D1E.5030107@gmail.com> References: <531C934C.5070501@gmail.com> <20140313095128.74e85778@opensuse.site> <53253D1E.5030107@gmail.com> X-Mailer: Claws Mail 3.9.2 (GTK+ 2.24.22; x86_64-suse-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c04::233 Cc: The development of GNU GRUB X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Mar 2014 07:04:43 -0000 =F7 Sun, 16 Mar 2014 06:56:46 +0100 adrian15 =D0=C9=DB=C5=D4: > > > > To be honest, I do not understand what you are trying to do here. >=20 > The same thing as in: >=20 > https://forja.cenatic.es/plugins/scmgit/cgi-bin/gitweb.cgi?p=3Dsupergrub2= /supergrub2.git;a=3Dblob_plain;f=3Dsupergrub-meta-mkrescue;hb=3D22683e2b5fa= 0d65141c1be1a7487914b1d43f4dd >=20 > (which uses Debian packages) but using source code. >=20 Why would you want to build separate ISO for every platform? The whole point of using grub-mkrescue is to create single ISO image that supports and can be booted on all platforms. >=20 > >> 8) What's the best way to build and install an hybrid system that > >> includes both: x86_64_efi and i386 - pc stuff? > >> > > > > Just built and install grub for each platform you want to use; > > grub-mkrescue will automatically include every platform it finds. >=20 > Any advice for the special where I want to build x86_64_efi + x86_pc=20 > hybrid disk? >=20 Not really. Just build and install both platforms using the same prefix and run grub-mkrescue that is build to use the same prefix. As mentioned, when building you should distinguish between host (grub utils) and target (boot time). It is perfectly valid to build utils for x86 and target for ARM as long as you have suitable cross tools. In your case all builds should use the same host (which defaults to target which may be wrong even for x86 case - consider 32 vs. 64 bit). See INSTALL how to set various options for each environment. > > > > I prefer to build every platform in separate directory, there were > > issues with incomplete cleanup. If you hit one, please report. >=20 > Well, as I don't want to have a separate directory for each build my=20 > question would be: >=20 > What is it the official commands for doing a safe cleanup? > I always used "make distclean". But IIRC there are some files that are not removed. Not sure to which extent they affect subsequent builds. I had problems when re-building on Windows but they should be fixed now. =46rom my point of view, "make distclean" is official and if it does not work it is a bug that has to be fixed. =20 >=20 > > > >> 9) A) What's the best way to remove grub configuration files installed > >> on the system so that I can start from scratch so that already built > >> target+platform grub binaries or configurations are ignored? > >> > > > > There are no configuration files after "make install" (if we do not > > count /etc/grub.d as configuration). >=20 > I meant the ones that someone makes grub-mkrescue to look for the=20 > /usr/local/lib/grub/i386-pc/boot_hybrid.img files which I suppose are=20 > not found in source code but in the system (Gnu/Linux filesystem I mean). >=20 There are no special configuration files. If grub-mkrescue is called without --directory option, it will enumerate all platforms found under /usr/local/lib/grub (in your example). Just place additional platform directory there and grub-mkrescue will pick it up.