Received: from list by lists.gnu.org with archive (Exim 4.71) id 1YrleK-0004pk-J9 for mharc-grub-devel@gnu.org; Mon, 11 May 2015 07:13:28 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36064) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YrleH-0004pS-DY for grub-devel@gnu.org; Mon, 11 May 2015 07:13:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YrleG-0004tV-25 for grub-devel@gnu.org; Mon, 11 May 2015 07:13:25 -0400 Received: from mo6-p00-ob.smtp.rzone.de ([2a01:238:20a:202:5300::6]:32900) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YrleF-0004pk-Oh for grub-devel@gnu.org; Mon, 11 May 2015 07:13:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1431342801; l=3221; s=domk; d=aepfle.de; h=Date:Subject:Cc:To:From; bh=oARnFKHBkPyapvDlu5Kc/D+G2zUnTkE+PEyIdRsJm0o=; b=KTSo/CGYIj7uX3/fPIHrpCLl1rnM240y/VZ0TqEHJiPKzxcBCx5q0fgTSbUSac0ywvI /mP6zmb9kReF/XEp3HL6f1TO8d7fikx92/E+ifFaZY19nYjvqLebt7M7OO+sdO48NhyZO 6ZKHQ4RoM86KI6EEuPF2tNU3FePa4ARcBN0= X-RZG-AUTH: :P2EQZWCpfu+qG7CngxMFH1J+yackYocTD1iAi8x+OWi/zfN1cLnBYfssVY1SE5ClEYfb5sQvxDNUdfk3GFAM3xrxaZN0YQ== X-RZG-CLASS-ID: mo00 Received: from probook.fritz.box ([2001:a60:10a3:eb01:1ec1:deff:feb9:bb48]) by smtp.strato.de (RZmta 37.5 AUTH) with ESMTPSA id i06561r4BBDLHZq (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (curve sect571r1 with 571 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate); Mon, 11 May 2015 13:13:21 +0200 (CEST) Received: by probook.fritz.box (Postfix, from userid 1000) id 2F610502A7; Mon, 11 May 2015 13:13:21 +0200 (CEST) From: Olaf Hering To: grub-devel@gnu.org Subject: [PATCH] Remove CPPFLAGS_XEN Date: Mon, 11 May 2015 11:13:18 +0000 Message-Id: <1431342798-12811-1-git-send-email-olaf@aepfle.de> X-Mailer: git-send-email 2.3.5 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a01:238:20a:202:5300::6 Cc: Olaf Hering 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: Mon, 11 May 2015 11:13:26 -0000 A grub for xen can be built with CPPFLAGS="-I/path" ./configure, which has the benefit that CPPFLAGS gets automatically included in the Makefiles. There is no need for a private makefile variable, the xen headers are equal to headers for other optional components. For some commands the cppflags have to point to POSIX, otherwise stdint.h will not be found. Previously it was loaded unconditionally from /usr/include. Signed-off-by: Olaf Hering --- conf/Makefile.common | 3 --- grub-core/Makefile.core.def | 15 ++++++--------- 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/conf/Makefile.common b/conf/Makefile.common index 96e58c9..1990005 100644 --- a/conf/Makefile.common +++ b/conf/Makefile.common @@ -18,9 +18,6 @@ if COND_arm64 CFLAGS_PLATFORM += -mcmodel=large endif -#FIXME: discover and check XEN headers -CPPFLAGS_XEN = -I/usr/include - # Other options CPPFLAGS_DEFAULT = -DGRUB_FILE=\"$(subst $(srcdir)/,,$<)\" diff --git a/grub-core/Makefile.core.def b/grub-core/Makefile.core.def index a6101de..10754e7 100644 --- a/grub-core/Makefile.core.def +++ b/grub-core/Makefile.core.def @@ -59,9 +59,6 @@ kernel = { ia64_efi_ldflags = '-Wl,-r,-d'; ia64_efi_stripflags = '--strip-unneeded -K start -R .note -R .comment -R .note.gnu.gold-version'; - x86_64_xen_cppflags = '$(CPPFLAGS_XEN)'; - i386_xen_cppflags = '$(CPPFLAGS_XEN)'; - arm_efi_ldflags = '-Wl,-r,-d'; arm_efi_stripflags = '--strip-unneeded -K start -R .note -R .comment -R .note.gnu.gold-version'; @@ -604,7 +601,7 @@ module = { module = { name = lsxen; common = commands/xen/lsxen.c; - cppflags = '$(CPPFLAGS_XEN)'; + cppflags = '$(CPPFLAGS_POSIX)'; enable = xen; }; @@ -825,7 +822,7 @@ module = { i386_coreboot = lib/i386/halt.c; i386_qemu = lib/i386/halt.c; xen = lib/xen/halt.c; - xen_cppflags = '$(CPPFLAGS_XEN)'; + xen_cppflags = '$(CPPFLAGS_POSIX)'; efi = lib/efi/halt.c; ieee1275 = lib/ieee1275/halt.c; emu = lib/emu/halt.c; @@ -846,7 +843,7 @@ module = { mips_loongson = lib/mips/loongson/reboot.c; mips_qemu_mips = lib/mips/qemu_mips/reboot.c; xen = lib/xen/reboot.c; - xen_cppflags = '$(CPPFLAGS_XEN)'; + xen_cppflags = '$(CPPFLAGS_POSIX)'; uboot = lib/uboot/reboot.c; common = commands/reboot.c; }; @@ -1527,7 +1524,7 @@ module = { i386_xen = lib/i386/xen/relocator.S; x86_64_xen = lib/x86_64/xen/relocator.S; xen = lib/i386/relocator_common_c.c; - xen_cppflags = '$(CPPFLAGS_XEN)'; + xen_cppflags = '$(CPPFLAGS_POSIX)'; extra_dist = lib/i386/relocator_common.S; extra_dist = kern/powerpc/cache_flush.S; @@ -1548,7 +1545,7 @@ module = { sparc64_ieee1275 = lib/ieee1275/cmos.c; powerpc_ieee1275 = lib/ieee1275/cmos.c; xen = lib/xen/datetime.c; - xen_cppflags = '$(CPPFLAGS_XEN)'; + xen_cppflags = '$(CPPFLAGS_POSIX)'; mips_arc = lib/arc/datetime.c; enable = noemu; @@ -1651,7 +1648,7 @@ module = { name = linux; x86 = loader/i386/linux.c; xen = loader/i386/xen.c; - xen_cppflags = '$(CPPFLAGS_XEN)'; + xen_cppflags = '$(CPPFLAGS_POSIX)'; i386_pc = lib/i386/pc/vesa_modes_table.c; mips = loader/mips/linux.c; powerpc_ieee1275 = loader/powerpc/ieee1275/linux.c;