From 0c930a841ef83a4a15aa2b81ac9f2965dafe0aea Mon Sep 17 00:00:00 2001 From: Vladimir Serbinenko Date: Mon, 23 Dec 2013 17:24:52 +0100 Subject: [PATCH] Remove leftover options defines. --- ChangeLog | 4 ++++ config.h.in | 6 ------ configure.ac | 13 +++---------- grub-core/kern/ieee1275/openfw.c | 6 +++--- 4 files changed, 10 insertions(+), 19 deletions(-) diff --git a/ChangeLog b/ChangeLog index 13e368dc0..a92eccbdf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2013-12-23 Vladimir Serbinenko + + Remove leftover options defines. + 2013-12-23 Vladimir Serbinenko * include/grub/arm64/linux.h: Remove leftovers. Add missing prefixes. diff --git a/config.h.in b/config.h.in index 33a3a2487..4b6301441 100644 --- a/config.h.in +++ b/config.h.in @@ -51,12 +51,6 @@ #define PACKAGE_NAME "@PACKAGE_NAME@" /* Define to the address where bug reports for this package should be sent. */ #define PACKAGE_BUGREPORT "@PACKAGE_BUGREPORT@" -/* Default boot directory name" */ -#define GRUB_BOOT_DIR_NAME "@bootdirname@" -/* Default grub directory name */ -#define GRUB_DIR_NAME "@grubdirname@" -/* Define to 1 if GCC generates calls to __register_frame_info(). */ -#define NEED_REGISTER_FRAME_INFO @NEED_REGISTER_FRAME_INFO@ #define GRUB_TARGET_CPU "@GRUB_TARGET_CPU@" #define GRUB_PLATFORM "@GRUB_PLATFORM@" diff --git a/configure.ac b/configure.ac index 15d70375c..2cc8a6cae 100644 --- a/configure.ac +++ b/configure.ac @@ -214,20 +214,14 @@ case "$platform" in qemu) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_QEMU=1" ;; pc) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_PCBIOS=1" ;; emu) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_EMU=1" ;; - loongson) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_MIPS_LOONGSON=1 -DGRUB_MACHINE_MIPS_BONITO=1" ;; - qemu_mips) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_MIPS_QEMU_MIPS=1 -DGRUB_MACHINE_MIPS_BONITO=1" ;; + loongson) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_MIPS_LOONGSON=1" ;; + qemu_mips) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_MIPS_QEMU_MIPS=1" ;; arc) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_ARC=1" ;; esac -case "$target_cpu" in - arm) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_ARM=1" ;; - arm64) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_ARM64=1" ;; - mips |mipsel) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_MIPS=1" ;; - sparc64) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_SPARC64=1" ;; -esac if test x${target_cpu} = xmipsel ; then machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE=`echo mips_$platform | sed y,abcdefghijklmnopqrstuvwxyz,ABCDEFGHIJKLMNOPQRSTUVWXYZ,`" else - machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE=`echo ${target_cpu}_$platform | sed y,abcdefghijklmnopqrstuvwxyz,ABCDEFGHIJKLMNOPQRSTUVWXYZ,` -DGRUB_TARGET_CPU_`echo ${target_cpu} | sed y,abcdefghijklmnopqrstuvwxyz,ABCDEFGHIJKLMNOPQRSTUVWXYZ,`=1" + machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE=`echo ${target_cpu}_$platform | sed y,abcdefghijklmnopqrstuvwxyz,ABCDEFGHIJKLMNOPQRSTUVWXYZ,`" fi case "${target_cpu}-$platform" in @@ -1580,7 +1574,6 @@ AC_SUBST(BSS_START_SYMBOL) AC_SUBST(END_SYMBOL) AC_SUBST(PACKAGE) AC_SUBST(VERSION) -AC_SUBST(NEED_REGISTER_FRAME_INFO) AC_ARG_ENABLE([werror], [AS_HELP_STRING([--disable-werror], diff --git a/grub-core/kern/ieee1275/openfw.c b/grub-core/kern/ieee1275/openfw.c index 07c90f7cb..ddb778340 100644 --- a/grub-core/kern/ieee1275/openfw.c +++ b/grub-core/kern/ieee1275/openfw.c @@ -271,7 +271,7 @@ grub_ieee1275_map (grub_addr_t phys, grub_addr_t virt, grub_size_t size, grub_ieee1275_cell_t mode; grub_ieee1275_cell_t size; grub_ieee1275_cell_t virt; -#ifdef GRUB_MACHINE_SPARC64 +#ifdef __sparc__ grub_ieee1275_cell_t phys_high; #endif grub_ieee1275_cell_t phys_low; @@ -279,7 +279,7 @@ grub_ieee1275_map (grub_addr_t phys, grub_addr_t virt, grub_size_t size, } args; INIT_IEEE1275_COMMON (&args.common, "call-method", -#ifdef GRUB_MACHINE_SPARC64 +#ifdef __sparc__ 7, #else 6, @@ -287,7 +287,7 @@ grub_ieee1275_map (grub_addr_t phys, grub_addr_t virt, grub_size_t size, 1); args.method = (grub_ieee1275_cell_t) "map"; args.ihandle = grub_ieee1275_mmu; -#ifdef GRUB_MACHINE_SPARC64 +#ifdef __sparc__ args.phys_high = 0; #endif args.phys_low = phys;