From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1bmC1s-0007jT-E6 for mharc-grub-devel@gnu.org; Mon, 19 Sep 2016 23:47:32 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52578) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmC1p-0007jM-RE for grub-devel@gnu.org; Mon, 19 Sep 2016 23:47:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bmC1m-00040X-Lm for grub-devel@gnu.org; Mon, 19 Sep 2016 23:47:29 -0400 Received: from mail-lf0-f52.google.com ([209.85.215.52]:35092) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmC1m-00040K-Dq for grub-devel@gnu.org; Mon, 19 Sep 2016 23:47:26 -0400 Received: by mail-lf0-f52.google.com with SMTP id l131so2968988lfl.2 for ; Mon, 19 Sep 2016 20:47:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=uBKZhocWho37ayks0+ahHPORdy1IP9qS3p4tXr+3EqQ=; b=eAPZ8T3mkXiulk316dyqQUv44e4YjjhCLjBkrmUfEu71eJKHknk0DsAC7bG0iEyqi5 vnE1l2kCr2ymx+TXTJkOY1dVhkQ51NXSKkZndOgYLTjGibU/nQYMa8oMA/vhYkz5BaPI sTm2Sb1UlCQGPFX68oPmVo6KMuOXHYk24V8Elg4gZ/5FqVYacL+w3VRSaj+aYigvUNj3 ahyjhdz8X6fqwrnqkAhUfZ6wqc45+Su7GMgJ4calUW93mg/acUNsZWjmd9lkzH+A8Zv1 SbzT3FIHWXN+NZPGFXPrP2iSSOJkQWuNZCLnquj9f2qgPRwcX74YbQ/gwqD3Gq1jqKOp 5ihw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=uBKZhocWho37ayks0+ahHPORdy1IP9qS3p4tXr+3EqQ=; b=FHybYAz13TndlQJH6waqPUzReVakMhpq2yWBXcnUDYjMt7hBCxpqC5fxTi58cHPvu3 SDHTU34bxvu8Es7DR2/P6517adGBMDTeEeiT9rbmUVhEDFUyLewW9JAn2MvltRypZGqw wvdzxH1O9IFprOZPZm1+8D6i7uFKMKBuXtwSs2saMJ/Pd+fSHqN29pZ/SHfszfh/7HpP MYSWzhqjEHl6jfMIEv0+BLvm8zizpm4jy99PT8K9N3pswzA4EvuclTMDqGUtrLh4GMfU KsNDixpjj8+nC8VyY/sS3bC1wP9SEzQF92M/1DH+Ngm3su7z+J0f/CD71KwoiI8E0JZv t8sg== X-Gm-Message-State: AE9vXwPldEScbGdY+pJ3mxwVihR8dUbtkid6ydtfYk7Wnd2KSrGDFApkhDWc6V66b6FPqA== X-Received: by 10.25.215.220 with SMTP id q89mr12274570lfi.30.1474343185077; Mon, 19 Sep 2016 20:46:25 -0700 (PDT) Received: from [192.168.1.44] (ppp109-252-90-102.pppoe.spdop.ru. [109.252.90.102]) by smtp.gmail.com with ESMTPSA id j11sm5385181lfe.27.2016.09.19.20.46.24 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Sep 2016 20:46:24 -0700 (PDT) Subject: Re: Xen and all_video.mod To: grub-devel@gnu.org References: <20160919172800.GB13998@riva.ucam.org> From: Andrei Borzenkov X-Enigmail-Draft-Status: N1110 Message-ID: <686b83d2-4160-c794-c613-787c6beba7e9@gmail.com> Date: Tue, 20 Sep 2016 06:46:23 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <20160919172800.GB13998@riva.ucam.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.215.52 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Sep 2016 03:47:31 -0000 19.09.2016 20:28, Colin Watson пишет: > Current master fails like this when configured with --with-platform=xen > and using binutils 2.27: > > TARGET_OBJ2ELF= sh genmod.sh moddep.lst all_video.module build-grub-module-verifier all_video.mod > build-grub-module-verifier: error: no symbol table and no .moddeps section. > Makefile:42584: recipe for target 'all_video.mod' failed > > There's no video driver configured for Xen in > grub-core/Makefile.core.def, so this makes a certain amount of sense: > it's an empty module with no dependencies, which is what > 67dba97e4598eaf2deb14da044fbfb1c119cf76f purports to prevent. On the > other hand, that does make Xen unbuildable at least with some binutils > versions (2.26.1 seems to work fine; more specifically, I can build > --with-platform=xen on Ubuntu xenial but not on Debian unstable). I > considered just adding the cirrus driver for Xen to pacify this, but > that uses PCI symbols that aren't built for Xen at the moment. > > What's the best answer here? Is there some reasonable way to weaken > this test so that this module is allowed to be useless on this platform? > Yes, that's what openSUSE is using currently, see also http://savannah.gnu.org/bugs/?49012 I hoped there is some trick to skip building this module generically, but then we also have potential issue with config scripts. What about changing all_video to actually load modules at run time based on video.lst? The code itself is trivial.