aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2014-01-28 13:40:53 +0000
committerPaul Eggleton <paul.eggleton@linux.intel.com>2014-05-09 12:16:23 +0100
commit6dae9e2b3031dd196c7a695e75b0746c1bf8e593 (patch)
tree9d4c15d91a58ca542e00fe90d797e5bd1feddeca
downloadmeta-intel-quark-6dae9e2b3031dd196c7a695e75b0746c1bf8e593.tar.gz
meta-intel-quark-6dae9e2b3031dd196c7a695e75b0746c1bf8e593.tar.bz2
meta-intel-quark-6dae9e2b3031dd196c7a695e75b0746c1bf8e593.zip
Initial commit adding combo repositories
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
-rw-r--r--COPYING.MIT19
-rw-r--r--conf/layer.conf11
-rw-r--r--conf/machine/clanton.conf21
-rw-r--r--recipes-bsp/grub-conf/files/grub.conf21
-rw-r--r--recipes-bsp/grub-conf/grub-conf_1.0.bb16
-rw-r--r--recipes-bsp/grub/files/clanton.patch22374
-rw-r--r--recipes-bsp/grub/grub_0.97.bb46
-rw-r--r--recipes-kernel/linux/files/clanton-standard.scc6
-rw-r--r--recipes-kernel/linux/files/clanton.cfg2938
-rw-r--r--recipes-kernel/linux/files/clanton.patch30644
-rw-r--r--recipes-kernel/linux/linux-yocto-clanton_3.8.bb70
11 files changed, 56166 insertions, 0 deletions
diff --git a/COPYING.MIT b/COPYING.MIT
new file mode 100644
index 0000000..7d004ab
--- /dev/null
+++ b/COPYING.MIT
@@ -0,0 +1,19 @@
+Copyright(c) 2013 Intel Corporation. All rights reserved.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/conf/layer.conf b/conf/layer.conf
new file mode 100644
index 0000000..7891979
--- /dev/null
+++ b/conf/layer.conf
@@ -0,0 +1,11 @@
+# We have a conf and classes directory, add to BBPATH
+BBPATH := "${BBPATH}:${LAYERDIR}"
+
+# We have a recipes directory, add to BBFILES
+BBFILES := "${BBFILES} ${LAYERDIR}/recipes-*/*/*.bb \
+ ${LAYERDIR}/recipes-*/*/*.bbappend"
+
+BBFILE_COLLECTIONS += "clanton-bsp"
+BBFILE_PATTERN_clanton-bsp := "^${LAYERDIR}/"
+BBFILE_PRIORITY_clanton-bsp = "6"
+
diff --git a/conf/machine/clanton.conf b/conf/machine/clanton.conf
new file mode 100644
index 0000000..3304e3c
--- /dev/null
+++ b/conf/machine/clanton.conf
@@ -0,0 +1,21 @@
+#@TYPE: Machine
+#@NAME: clanton
+
+#@DESCRIPTION: Machine configuration for clanton systems
+
+PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto-clanton"
+PREFERRED_VERSION_linux-yocto-clanton ?= "3.8%"
+
+require conf/machine/include/ia32-base.inc
+include conf/machine/include/tune-i586.inc
+
+#Avoid pulling in GRUB
+MACHINE_ESSENTIAL_EXTRA_RDEPENDS = ""
+
+MACHINE_FEATURES = "efi usb pci"
+
+SERIAL_CONSOLE = "115200 ttyS1"
+#SERIAL_CONSOLES = "115200;ttyS0 115200;ttyS1"
+
+EXTRA_IMAGEDEPENDS = "grub"
+PREFERRED_VERSION_grub = "0.97+git%"
diff --git a/recipes-bsp/grub-conf/files/grub.conf b/recipes-bsp/grub-conf/files/grub.conf
new file mode 100644
index 0000000..439d258
--- /dev/null
+++ b/recipes-bsp/grub-conf/files/grub.conf
@@ -0,0 +1,21 @@
+default 3
+timeout 3
+
+color white/blue white/cyan
+
+title Clanton SVP kernel-SPI initrd-SPI IMR-On IO-APIC/HPET NoEMU
+ kernel --spi root=/dev/ram0 console=ttyS1,115200n8 earlycon=uart8250,mmio32,0x8010f000,115200n8 reboot=efi,warm apic=debug rw
+ initrd --spi
+
+title Clanton SVP kernel-SPI image-full on SD IMR-On IO-APIC/HPET NoEMU
+ kernel --spi root=/dev/mmcblk0p2 console=ttyS1,115200n8 earlycon=uart8250,mmio32,0x8010f000,115200n8 reboot=efi,warm apic=debug rw
+
+title Clanton SVP kernel-MassStorage initrd-MassStorage image-full IMR-On IO-APIC/HPET NoEMU debug
+ root (hd0,0)
+ kernel /bzImage root=/dev/ram0 console=ttyS1,115200n8 earlycon=uart8250,mmio32,0x8010f000,115200n8 reboot=efi,warm apic=debug rw LABEL=boot debugshell=5
+ initrd /core-image-minimal-initramfs-clanton.cpio.gz
+
+title Clanton SVP kernel-MassStorage image-full on SD IMR-On IO-APIC/HPET NoEMU debug
+ root (hd0,0)
+ kernel /bzImage root=/dev/mmcblk0p2 console=ttyS1,115200n8 earlycon=uart8250,mmio32,0x8010f000,115200n8 reboot=efi,warm apic=debug rw LABEL=boot debugshell=5
+
diff --git a/recipes-bsp/grub-conf/grub-conf_1.0.bb b/recipes-bsp/grub-conf/grub-conf_1.0.bb
new file mode 100644
index 0000000..47df56e
--- /dev/null
+++ b/recipes-bsp/grub-conf/grub-conf_1.0.bb
@@ -0,0 +1,16 @@
+DESCRIPTION = "grub.conf"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
+
+GRUB_CONF = "grub.conf"
+GRUB_PATH = "boot/grub/"
+SRC_URI = "file://${GRUB_CONF}"
+
+do_grub() {
+ install -d ${DEPLOY_DIR_IMAGE}/${GRUB_PATH}
+ install -m 0755 ${WORKDIR}/${GRUB_CONF} ${DEPLOY_DIR_IMAGE}/${GRUB_PATH}/${GRUB_CONF}
+}
+
+do_grub[nostamp] = "1"
+
+addtask grub before do_build after do_compile
diff --git a/recipes-bsp/grub/files/clanton.patch b/recipes-bsp/grub/files/clanton.patch
new file mode 100644
index 0000000..dc68251
--- /dev/null
+++ b/recipes-bsp/grub/files/clanton.patch
@@ -0,0 +1,22374 @@
+diff --git a/.gitignore b/.gitignore
+index 4e19579..7d5ec92 100644
+--- a/.gitignore
++++ b/.gitignore
+@@ -1,8 +1,36 @@
+ Makefile.in
+-Makefile
+ configure
+ autom4te.cache
+ config.h
+ config.log
+ config.status
++config.guess
++config.sub
+ stamp-h1
++
++# Eclipse
++.cproject
++.project
++.settings/
++
++/aclocal.m4
++/config.h.in
++/grub/asmstub.o
++/grub/efitftp.o
++/grub/grub
++/grub/main.o
++/lib/device.o
++/lib/getopt.o
++/lib/getopt1.o
++/lib/libcommon.a
++/util/grub-crypt
++
++*.o
++
++# Only auto-generated Makefiles
++/Makefile
++/grub/Makefile
++/lib/Makefile
++/netboot/Makefile
++/stage1/Makefile
++
+diff --git a/ChangeLog-clanton b/ChangeLog-clanton
+new file mode 100644
+index 0000000..3ca2f6f
+--- /dev/null
++++ b/ChangeLog-clanton
+@@ -0,0 +1,4 @@
++2012-08-21 Josef Ahmad <josef.ahmad@intel.com>
++
++ * Add Clanton-specific changelog.
++ * efi/Makefile.am: generate link map file (RTC 20693).
+diff --git a/Makefile.in b/Makefile.in
+deleted file mode 100644
+index 6cff007..0000000
+--- a/Makefile.in
++++ /dev/null
+@@ -1,622 +0,0 @@
+-# Makefile.in generated by automake 1.10 from Makefile.am.
+-# @configure_input@
+-
+-# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+-# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
+-# This Makefile.in is free software; the Free Software Foundation
+-# gives unlimited permission to copy and/or distribute it,
+-# with or without modifications, as long as this notice is preserved.
+-
+-# This program is distributed in the hope that it will be useful,
+-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+-# PARTICULAR PURPOSE.
+-
+-@SET_MAKE@
+-VPATH = @srcdir@
+-pkgdatadir = $(datadir)/@PACKAGE@
+-pkglibdir = $(libdir)/@PACKAGE@
+-pkgincludedir = $(includedir)/@PACKAGE@
+-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+-install_sh_DATA = $(install_sh) -c -m 644
+-install_sh_PROGRAM = $(install_sh) -c
+-install_sh_SCRIPT = $(install_sh) -c
+-INSTALL_HEADER = $(INSTALL_DATA)
+-transform = $(program_transform_name)
+-NORMAL_INSTALL = :
+-PRE_INSTALL = :
+-POST_INSTALL = :
+-NORMAL_UNINSTALL = :
+-PRE_UNINSTALL = :
+-POST_UNINSTALL = :
+-build_triplet = @build@
+-host_triplet = @host@
+-subdir = .
+-DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
+- $(srcdir)/Makefile.in $(srcdir)/config.h.in \
+- $(top_srcdir)/configure AUTHORS COPYING ChangeLog INSTALL NEWS \
+- THANKS TODO compile config.guess config.sub depcomp install-sh \
+- missing mkinstalldirs
+-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+-am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
+- $(top_srcdir)/configure.in
+-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+- $(ACLOCAL_M4)
+-am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
+- configure.lineno config.status.lineno
+-mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
+-CONFIG_HEADER = config.h
+-CONFIG_CLEAN_FILES =
+-SOURCES =
+-DIST_SOURCES =
+-RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
+- html-recursive info-recursive install-data-recursive \
+- install-dvi-recursive install-exec-recursive \
+- install-html-recursive install-info-recursive \
+- install-pdf-recursive install-ps-recursive install-recursive \
+- installcheck-recursive installdirs-recursive pdf-recursive \
+- ps-recursive uninstall-recursive
+-RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
+- distclean-recursive maintainer-clean-recursive
+-ETAGS = etags
+-CTAGS = ctags
+-DIST_SUBDIRS = $(SUBDIRS)
+-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+-distdir = $(PACKAGE)-$(VERSION)
+-top_distdir = $(distdir)
+-am__remove_distdir = \
+- { test ! -d $(distdir) \
+- || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
+- && rm -fr $(distdir); }; }
+-DIST_ARCHIVES = $(distdir).tar.gz
+-GZIP_ENV = --best
+-distuninstallcheck_listfiles = find . -type f -print
+-distcleancheck_listfiles = find . -type f -print
+-ACLOCAL = @ACLOCAL@
+-AMTAR = @AMTAR@
+-AUTOCONF = @AUTOCONF@
+-AUTOHEADER = @AUTOHEADER@
+-AUTOMAKE = @AUTOMAKE@
+-AWK = @AWK@
+-CC = @CC@
+-CCAS = @CCAS@
+-CCASDEPMODE = @CCASDEPMODE@
+-CCASFLAGS = @CCASFLAGS@
+-CCDEPMODE = @CCDEPMODE@
+-CFLAGS = @CFLAGS@
+-CPP = @CPP@
+-CPPFLAGS = @CPPFLAGS@
+-CYGPATH_W = @CYGPATH_W@
+-DEFS = @DEFS@
+-DEPDIR = @DEPDIR@
+-ECHO_C = @ECHO_C@
+-ECHO_N = @ECHO_N@
+-ECHO_T = @ECHO_T@
+-EGREP = @EGREP@
+-EXEEXT = @EXEEXT@
+-FSYS_CFLAGS = @FSYS_CFLAGS@
+-GREP = @GREP@
+-GRUB_CFLAGS = @GRUB_CFLAGS@
+-GRUB_LIBS = @GRUB_LIBS@
+-INSTALL = @INSTALL@
+-INSTALL_DATA = @INSTALL_DATA@
+-INSTALL_PROGRAM = @INSTALL_PROGRAM@
+-INSTALL_SCRIPT = @INSTALL_SCRIPT@
+-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+-LDFLAGS = @LDFLAGS@
+-LIBOBJS = @LIBOBJS@
+-LIBS = @LIBS@
+-LOADER_LDFLAGS = @LOADER_LDFLAGS@
+-LTLIBOBJS = @LTLIBOBJS@
+-MAINT = @MAINT@
+-MAKEINFO = @MAKEINFO@
+-MKDIR_P = @MKDIR_P@
+-NETBOOT_DRIVERS = @NETBOOT_DRIVERS@
+-NET_CFLAGS = @NET_CFLAGS@
+-NET_EXTRAFLAGS = @NET_EXTRAFLAGS@
+-OBJCOPY = @OBJCOPY@
+-OBJEXT = @OBJEXT@
+-PACKAGE = @PACKAGE@
+-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+-PACKAGE_NAME = @PACKAGE_NAME@
+-PACKAGE_STRING = @PACKAGE_STRING@
+-PACKAGE_TARNAME = @PACKAGE_TARNAME@
+-PACKAGE_VERSION = @PACKAGE_VERSION@
+-PATH_SEPARATOR = @PATH_SEPARATOR@
+-PERL = @PERL@
+-RANLIB = @RANLIB@
+-SET_MAKE = @SET_MAKE@
+-SHELL = @SHELL@
+-STAGE1_CFLAGS = @STAGE1_CFLAGS@
+-STAGE2_CFLAGS = @STAGE2_CFLAGS@
+-STRIP = @STRIP@
+-VERSION = @VERSION@
+-abs_builddir = @abs_builddir@
+-abs_srcdir = @abs_srcdir@
+-abs_top_builddir = @abs_top_builddir@
+-abs_top_srcdir = @abs_top_srcdir@
+-ac_ct_CC = @ac_ct_CC@
+-am__include = @am__include@
+-am__leading_dot = @am__leading_dot@
+-am__quote = @am__quote@
+-am__tar = @am__tar@
+-am__untar = @am__untar@
+-bindir = @bindir@
+-build = @build@
+-build_alias = @build_alias@
+-build_cpu = @build_cpu@
+-build_os = @build_os@
+-build_vendor = @build_vendor@
+-builddir = @builddir@
+-datadir = @datadir@
+-datarootdir = @datarootdir@
+-docdir = @docdir@
+-dvidir = @dvidir@
+-exec_prefix = @exec_prefix@
+-host = @host@
+-host_alias = @host_alias@
+-host_cpu = @host_cpu@
+-host_os = @host_os@
+-host_vendor = @host_vendor@
+-htmldir = @htmldir@
+-includedir = @includedir@
+-infodir = @infodir@
+-install_sh = @install_sh@
+-libdir = @libdir@
+-libexecdir = @libexecdir@
+-localedir = @localedir@
+-localstatedir = @localstatedir@
+-mandir = @mandir@
+-mkdir_p = @mkdir_p@
+-oldincludedir = @oldincludedir@
+-pdfdir = @pdfdir@
+-prefix = @prefix@
+-program_transform_name = @program_transform_name@
+-psdir = @psdir@
+-sbindir = @sbindir@
+-sharedstatedir = @sharedstatedir@
+-srcdir = @srcdir@
+-sysconfdir = @sysconfdir@
+-target_alias = @target_alias@
+-top_builddir = @top_builddir@
+-top_srcdir = @top_srcdir@
+-
+-# Do not change this order if you don't know what you are doing.
+-AUTOMAKE_OPTIONS = 1.7 gnu
+-SUBDIRS = netboot stage2 stage1 lib grub util docs
+-EXTRA_DIST = BUGS MAINTENANCE
+-all: config.h
+- $(MAKE) $(AM_MAKEFLAGS) all-recursive
+-
+-.SUFFIXES:
+-am--refresh:
+- @:
+-$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
+- @for dep in $?; do \
+- case '$(am__configure_deps)' in \
+- *$$dep*) \
+- echo ' cd $(srcdir) && $(AUTOMAKE) --gnu '; \
+- cd $(srcdir) && $(AUTOMAKE) --gnu \
+- && exit 0; \
+- exit 1;; \
+- esac; \
+- done; \
+- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
+- cd $(top_srcdir) && \
+- $(AUTOMAKE) --gnu Makefile
+-.PRECIOUS: Makefile
+-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+- @case '$?' in \
+- *config.status*) \
+- echo ' $(SHELL) ./config.status'; \
+- $(SHELL) ./config.status;; \
+- *) \
+- echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
+- cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
+- esac;
+-
+-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+- $(SHELL) ./config.status --recheck
+-
+-$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
+- cd $(srcdir) && $(AUTOCONF)
+-$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
+- cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
+-
+-config.h: stamp-h1
+- @if test ! -f $@; then \
+- rm -f stamp-h1; \
+- $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \
+- else :; fi
+-
+-stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
+- @rm -f stamp-h1
+- cd $(top_builddir) && $(SHELL) ./config.status config.h
+-$(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
+- cd $(top_srcdir) && $(AUTOHEADER)
+- rm -f stamp-h1
+- touch $@
+-
+-distclean-hdr:
+- -rm -f config.h stamp-h1
+-
+-# This directory's subdirectories are mostly independent; you can cd
+-# into them and run `make' without going through this Makefile.
+-# To change the values of `make' variables: instead of editing Makefiles,
+-# (1) if the variable is set in `config.status', edit `config.status'
+-# (which will cause the Makefiles to be regenerated when you run `make');
+-# (2) otherwise, pass the desired values on the `make' command line.
+-$(RECURSIVE_TARGETS):
+- @failcom='exit 1'; \
+- for f in x $$MAKEFLAGS; do \
+- case $$f in \
+- *=* | --[!k]*);; \
+- *k*) failcom='fail=yes';; \
+- esac; \
+- done; \
+- dot_seen=no; \
+- target=`echo $@ | sed s/-recursive//`; \
+- list='$(SUBDIRS)'; for subdir in $$list; do \
+- echo "Making $$target in $$subdir"; \
+- if test "$$subdir" = "."; then \
+- dot_seen=yes; \
+- local_target="$$target-am"; \
+- else \
+- local_target="$$target"; \
+- fi; \
+- (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
+- || eval $$failcom; \
+- done; \
+- if test "$$dot_seen" = "no"; then \
+- $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
+- fi; test -z "$$fail"
+-
+-$(RECURSIVE_CLEAN_TARGETS):
+- @failcom='exit 1'; \
+- for f in x $$MAKEFLAGS; do \
+- case $$f in \
+- *=* | --[!k]*);; \
+- *k*) failcom='fail=yes';; \
+- esac; \
+- done; \
+- dot_seen=no; \
+- case "$@" in \
+- distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
+- *) list='$(SUBDIRS)' ;; \
+- esac; \
+- rev=''; for subdir in $$list; do \
+- if test "$$subdir" = "."; then :; else \
+- rev="$$subdir $$rev"; \
+- fi; \
+- done; \
+- rev="$$rev ."; \
+- target=`echo $@ | sed s/-recursive//`; \
+- for subdir in $$rev; do \
+- echo "Making $$target in $$subdir"; \
+- if test "$$subdir" = "."; then \
+- local_target="$$target-am"; \
+- else \
+- local_target="$$target"; \
+- fi; \
+- (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
+- || eval $$failcom; \
+- done && test -z "$$fail"
+-tags-recursive:
+- list='$(SUBDIRS)'; for subdir in $$list; do \
+- test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
+- done
+-ctags-recursive:
+- list='$(SUBDIRS)'; for subdir in $$list; do \
+- test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
+- done
+-
+-ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
+- list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+- unique=`for i in $$list; do \
+- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+- done | \
+- $(AWK) ' { files[$$0] = 1; } \
+- END { for (i in files) print i; }'`; \
+- mkid -fID $$unique
+-tags: TAGS
+-
+-TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
+- $(TAGS_FILES) $(LISP)
+- tags=; \
+- here=`pwd`; \
+- if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
+- include_option=--etags-include; \
+- empty_fix=.; \
+- else \
+- include_option=--include; \
+- empty_fix=; \
+- fi; \
+- list='$(SUBDIRS)'; for subdir in $$list; do \
+- if test "$$subdir" = .; then :; else \
+- test ! -f $$subdir/TAGS || \
+- tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
+- fi; \
+- done; \
+- list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
+- unique=`for i in $$list; do \
+- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+- done | \
+- $(AWK) ' { files[$$0] = 1; } \
+- END { for (i in files) print i; }'`; \
+- if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
+- test -n "$$unique" || unique=$$empty_fix; \
+- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+- $$tags $$unique; \
+- fi
+-ctags: CTAGS
+-CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
+- $(TAGS_FILES) $(LISP)
+- tags=; \
+- here=`pwd`; \
+- list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
+- unique=`for i in $$list; do \
+- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+- done | \
+- $(AWK) ' { files[$$0] = 1; } \
+- END { for (i in files) print i; }'`; \
+- test -z "$(CTAGS_ARGS)$$tags$$unique" \
+- || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
+- $$tags $$unique
+-
+-GTAGS:
+- here=`$(am__cd) $(top_builddir) && pwd` \
+- && cd $(top_srcdir) \
+- && gtags -i $(GTAGS_ARGS) $$here
+-
+-distclean-tags:
+- -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
+-
+-distdir: $(DISTFILES)
+- $(am__remove_distdir)
+- test -d $(distdir) || mkdir $(distdir)
+- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+- list='$(DISTFILES)'; \
+- dist_files=`for file in $$list; do echo $$file; done | \
+- sed -e "s|^$$srcdirstrip/||;t" \
+- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+- case $$dist_files in \
+- */*) $(MKDIR_P) `echo "$$dist_files" | \
+- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+- sort -u` ;; \
+- esac; \
+- for file in $$dist_files; do \
+- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+- if test -d $$d/$$file; then \
+- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+- cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
+- fi; \
+- cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
+- else \
+- test -f $(distdir)/$$file \
+- || cp -p $$d/$$file $(distdir)/$$file \
+- || exit 1; \
+- fi; \
+- done
+- list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
+- if test "$$subdir" = .; then :; else \
+- test -d "$(distdir)/$$subdir" \
+- || $(MKDIR_P) "$(distdir)/$$subdir" \
+- || exit 1; \
+- distdir=`$(am__cd) $(distdir) && pwd`; \
+- top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
+- (cd $$subdir && \
+- $(MAKE) $(AM_MAKEFLAGS) \
+- top_distdir="$$top_distdir" \
+- distdir="$$distdir/$$subdir" \
+- am__remove_distdir=: \
+- am__skip_length_check=: \
+- distdir) \
+- || exit 1; \
+- fi; \
+- done
+- -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
+- ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
+- ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
+- ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
+- || chmod -R a+r $(distdir)
+-dist-gzip: distdir
+- tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
+- $(am__remove_distdir)
+-
+-dist-bzip2: distdir
+- tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
+- $(am__remove_distdir)
+-
+-dist-tarZ: distdir
+- tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
+- $(am__remove_distdir)
+-
+-dist-shar: distdir
+- shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
+- $(am__remove_distdir)
+-
+-dist-zip: distdir
+- -rm -f $(distdir).zip
+- zip -rq $(distdir).zip $(distdir)
+- $(am__remove_distdir)
+-
+-dist dist-all: distdir
+- tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
+- $(am__remove_distdir)
+-
+-# This target untars the dist file and tries a VPATH configuration. Then
+-# it guarantees that the distribution is self-contained by making another
+-# tarfile.
+-distcheck: dist
+- case '$(DIST_ARCHIVES)' in \
+- *.tar.gz*) \
+- GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
+- *.tar.bz2*) \
+- bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
+- *.tar.Z*) \
+- uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
+- *.shar.gz*) \
+- GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
+- *.zip*) \
+- unzip $(distdir).zip ;;\
+- esac
+- chmod -R a-w $(distdir); chmod a+w $(distdir)
+- mkdir $(distdir)/_build
+- mkdir $(distdir)/_inst
+- chmod a-w $(distdir)
+- dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
+- && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
+- && cd $(distdir)/_build \
+- && ../configure --srcdir=.. --prefix="$$dc_install_base" \
+- $(DISTCHECK_CONFIGURE_FLAGS) \
+- && $(MAKE) $(AM_MAKEFLAGS) \
+- && $(MAKE) $(AM_MAKEFLAGS) dvi \
+- && $(MAKE) $(AM_MAKEFLAGS) check \
+- && $(MAKE) $(AM_MAKEFLAGS) install \
+- && $(MAKE) $(AM_MAKEFLAGS) installcheck \
+- && $(MAKE) $(AM_MAKEFLAGS) uninstall \
+- && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
+- distuninstallcheck \
+- && chmod -R a-w "$$dc_install_base" \
+- && ({ \
+- (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
+- && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
+- && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
+- && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
+- distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
+- } || { rm -rf "$$dc_destdir"; exit 1; }) \
+- && rm -rf "$$dc_destdir" \
+- && $(MAKE) $(AM_MAKEFLAGS) dist \
+- && rm -rf $(DIST_ARCHIVES) \
+- && $(MAKE) $(AM_MAKEFLAGS) distcleancheck
+- $(am__remove_distdir)
+- @(echo "$(distdir) archives ready for distribution: "; \
+- list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
+- sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
+-distuninstallcheck:
+- @cd $(distuninstallcheck_dir) \
+- && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
+- || { echo "ERROR: files left after uninstall:" ; \
+- if test -n "$(DESTDIR)"; then \
+- echo " (check DESTDIR support)"; \
+- fi ; \
+- $(distuninstallcheck_listfiles) ; \
+- exit 1; } >&2
+-distcleancheck: distclean
+- @if test '$(srcdir)' = . ; then \
+- echo "ERROR: distcleancheck can only run from a VPATH build" ; \
+- exit 1 ; \
+- fi
+- @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
+- || { echo "ERROR: files left in build directory after distclean:" ; \
+- $(distcleancheck_listfiles) ; \
+- exit 1; } >&2
+-check-am: all-am
+-check: check-recursive
+-all-am: Makefile config.h
+-installdirs: installdirs-recursive
+-installdirs-am:
+-install: install-recursive
+-install-exec: install-exec-recursive
+-install-data: install-data-recursive
+-uninstall: uninstall-recursive
+-
+-install-am: all-am
+- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+-
+-installcheck: installcheck-recursive
+-install-strip:
+- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+- `test -z '$(STRIP)' || \
+- echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
+-mostlyclean-generic:
+-
+-clean-generic:
+-
+-distclean-generic:
+- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+-
+-maintainer-clean-generic:
+- @echo "This command is intended for maintainers to use"
+- @echo "it deletes files that may require special tools to rebuild."
+-clean: clean-recursive
+-
+-clean-am: clean-generic mostlyclean-am
+-
+-distclean: distclean-recursive
+- -rm -f $(am__CONFIG_DISTCLEAN_FILES)
+- -rm -f Makefile
+-distclean-am: clean-am distclean-generic distclean-hdr distclean-tags
+-
+-dvi: dvi-recursive
+-
+-dvi-am:
+-
+-html: html-recursive
+-
+-info: info-recursive
+-
+-info-am:
+-
+-install-data-am:
+-
+-install-dvi: install-dvi-recursive
+-
+-install-exec-am:
+-
+-install-html: install-html-recursive
+-
+-install-info: install-info-recursive
+-
+-install-man:
+-
+-install-pdf: install-pdf-recursive
+-
+-install-ps: install-ps-recursive
+-
+-installcheck-am:
+-
+-maintainer-clean: maintainer-clean-recursive
+- -rm -f $(am__CONFIG_DISTCLEAN_FILES)
+- -rm -rf $(top_srcdir)/autom4te.cache
+- -rm -f Makefile
+-maintainer-clean-am: distclean-am maintainer-clean-generic
+-
+-mostlyclean: mostlyclean-recursive
+-
+-mostlyclean-am: mostlyclean-generic
+-
+-pdf: pdf-recursive
+-
+-pdf-am:
+-
+-ps: ps-recursive
+-
+-ps-am:
+-
+-uninstall-am:
+-
+-.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \
+- install-strip
+-
+-.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
+- all all-am am--refresh check check-am clean clean-generic \
+- ctags ctags-recursive dist dist-all dist-bzip2 dist-gzip \
+- dist-shar dist-tarZ dist-zip distcheck distclean \
+- distclean-generic distclean-hdr distclean-tags distcleancheck \
+- distdir distuninstallcheck dvi dvi-am html html-am info \
+- info-am install install-am install-data install-data-am \
+- install-dvi install-dvi-am install-exec install-exec-am \
+- install-html install-html-am install-info install-info-am \
+- install-man install-pdf install-pdf-am install-ps \
+- install-ps-am install-strip installcheck installcheck-am \
+- installdirs installdirs-am maintainer-clean \
+- maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
+- pdf-am ps ps-am tags tags-recursive uninstall uninstall-am
+-
+-# Tell versions [3.59,3.63) of GNU make to not export all variables.
+-# Otherwise a system limit (for SysV at least) may be exceeded.
+-.NOEXPORT:
+diff --git a/README-clanton b/README-clanton
+new file mode 100644
+index 0000000..5b5a278
+--- /dev/null
++++ b/README-clanton
+@@ -0,0 +1,8 @@
++-- How to build Clanton GRUB --
++
++1. Add crosscompiler to your PATH
++2. $> autoreconf
++3. $> autoconf
++4. $> ./configure-clanton.sh
++5. $> make
++
+diff --git a/aclocal.m4 b/aclocal.m4
+deleted file mode 100644
+index 9965d5d..0000000
+--- a/aclocal.m4
++++ /dev/null
+@@ -1,892 +0,0 @@
+-# generated automatically by aclocal 1.10 -*- Autoconf -*-
+-
+-# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
+-# 2005, 2006 Free Software Foundation, Inc.
+-# This file is free software; the Free Software Foundation
+-# gives unlimited permission to copy and/or distribute it,
+-# with or without modifications, as long as this notice is preserved.
+-
+-# This program is distributed in the hope that it will be useful,
+-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+-# PARTICULAR PURPOSE.
+-
+-m4_if(m4_PACKAGE_VERSION, [2.61],,
+-[m4_fatal([this file was generated for autoconf 2.61.
+-You have another version of autoconf. If you want to use that,
+-you should regenerate the build system entirely.], [63])])
+-
+-# Copyright (C) 2002, 2003, 2005, 2006 Free Software Foundation, Inc.
+-#
+-# This file is free software; the Free Software Foundation
+-# gives unlimited permission to copy and/or distribute it,
+-# with or without modifications, as long as this notice is preserved.
+-
+-# AM_AUTOMAKE_VERSION(VERSION)
+-# ----------------------------
+-# Automake X.Y traces this macro to ensure aclocal.m4 has been
+-# generated from the m4 files accompanying Automake X.Y.
+-# (This private macro should not be called outside this file.)
+-AC_DEFUN([AM_AUTOMAKE_VERSION],
+-[am__api_version='1.10'
+-dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
+-dnl require some minimum version. Point them to the right macro.
+-m4_if([$1], [1.10], [],
+- [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
+-])
+-
+-# _AM_AUTOCONF_VERSION(VERSION)
+-# -----------------------------
+-# aclocal traces this macro to find the Autoconf version.
+-# This is a private macro too. Using m4_define simplifies
+-# the logic in aclocal, which can simply ignore this definition.
+-m4_define([_AM_AUTOCONF_VERSION], [])
+-
+-# AM_SET_CURRENT_AUTOMAKE_VERSION
+-# -------------------------------
+-# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
+-# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
+-AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
+-[AM_AUTOMAKE_VERSION([1.10])dnl
+-_AM_AUTOCONF_VERSION(m4_PACKAGE_VERSION)])
+-
+-# AM_AUX_DIR_EXPAND -*- Autoconf -*-
+-
+-# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
+-#
+-# This file is free software; the Free Software Foundation
+-# gives unlimited permission to copy and/or distribute it,
+-# with or without modifications, as long as this notice is preserved.
+-
+-# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
+-# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
+-# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
+-#
+-# Of course, Automake must honor this variable whenever it calls a
+-# tool from the auxiliary directory. The problem is that $srcdir (and
+-# therefore $ac_aux_dir as well) can be either absolute or relative,
+-# depending on how configure is run. This is pretty annoying, since
+-# it makes $ac_aux_dir quite unusable in subdirectories: in the top
+-# source directory, any form will work fine, but in subdirectories a
+-# relative path needs to be adjusted first.
+-#
+-# $ac_aux_dir/missing
+-# fails when called from a subdirectory if $ac_aux_dir is relative
+-# $top_srcdir/$ac_aux_dir/missing
+-# fails if $ac_aux_dir is absolute,
+-# fails when called from a subdirectory in a VPATH build with
+-# a relative $ac_aux_dir
+-#
+-# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
+-# are both prefixed by $srcdir. In an in-source build this is usually
+-# harmless because $srcdir is `.', but things will broke when you
+-# start a VPATH build or use an absolute $srcdir.
+-#
+-# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
+-# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
+-# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
+-# and then we would define $MISSING as
+-# MISSING="\${SHELL} $am_aux_dir/missing"
+-# This will work as long as MISSING is not called from configure, because
+-# unfortunately $(top_srcdir) has no meaning in configure.
+-# However there are other variables, like CC, which are often used in
+-# configure, and could therefore not use this "fixed" $ac_aux_dir.
+-#
+-# Another solution, used here, is to always expand $ac_aux_dir to an
+-# absolute PATH. The drawback is that using absolute paths prevent a
+-# configured tree to be moved without reconfiguration.
+-
+-AC_DEFUN([AM_AUX_DIR_EXPAND],
+-[dnl Rely on autoconf to set up CDPATH properly.
+-AC_PREREQ([2.50])dnl
+-# expand $ac_aux_dir to an absolute path
+-am_aux_dir=`cd $ac_aux_dir && pwd`
+-])
+-
+-# AM_CONDITIONAL -*- Autoconf -*-
+-
+-# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
+-# Free Software Foundation, Inc.
+-#
+-# This file is free software; the Free Software Foundation
+-# gives unlimited permission to copy and/or distribute it,
+-# with or without modifications, as long as this notice is preserved.
+-
+-# serial 8
+-
+-# AM_CONDITIONAL(NAME, SHELL-CONDITION)
+-# -------------------------------------
+-# Define a conditional.
+-AC_DEFUN([AM_CONDITIONAL],
+-[AC_PREREQ(2.52)dnl
+- ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
+- [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
+-AC_SUBST([$1_TRUE])dnl
+-AC_SUBST([$1_FALSE])dnl
+-_AM_SUBST_NOTMAKE([$1_TRUE])dnl
+-_AM_SUBST_NOTMAKE([$1_FALSE])dnl
+-if $2; then
+- $1_TRUE=
+- $1_FALSE='#'
+-else
+- $1_TRUE='#'
+- $1_FALSE=
+-fi
+-AC_CONFIG_COMMANDS_PRE(
+-[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
+- AC_MSG_ERROR([[conditional "$1" was never defined.
+-Usually this means the macro was only invoked conditionally.]])
+-fi])])
+-
+-# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
+-# Free Software Foundation, Inc.
+-#
+-# This file is free software; the Free Software Foundation
+-# gives unlimited permission to copy and/or distribute it,
+-# with or without modifications, as long as this notice is preserved.
+-
+-# serial 9
+-
+-# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
+-# written in clear, in which case automake, when reading aclocal.m4,
+-# will think it sees a *use*, and therefore will trigger all it's
+-# C support machinery. Also note that it means that autoscan, seeing
+-# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
+-
+-
+-# _AM_DEPENDENCIES(NAME)
+-# ----------------------
+-# See how the compiler implements dependency checking.
+-# NAME is "CC", "CXX", "GCJ", or "OBJC".
+-# We try a few techniques and use that to set a single cache variable.
+-#
+-# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
+-# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
+-# dependency, and given that the user is not expected to run this macro,
+-# just rely on AC_PROG_CC.
+-AC_DEFUN([_AM_DEPENDENCIES],
+-[AC_REQUIRE([AM_SET_DEPDIR])dnl
+-AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
+-AC_REQUIRE([AM_MAKE_INCLUDE])dnl
+-AC_REQUIRE([AM_DEP_TRACK])dnl
+-
+-ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
+- [$1], CXX, [depcc="$CXX" am_compiler_list=],
+- [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
+- [$1], UPC, [depcc="$UPC" am_compiler_list=],
+- [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
+- [depcc="$$1" am_compiler_list=])
+-
+-AC_CACHE_CHECK([dependency style of $depcc],
+- [am_cv_$1_dependencies_compiler_type],
+-[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
+- # We make a subdir and do the tests there. Otherwise we can end up
+- # making bogus files that we don't know about and never remove. For
+- # instance it was reported that on HP-UX the gcc test will end up
+- # making a dummy file named `D' -- because `-MD' means `put the output
+- # in D'.
+- mkdir conftest.dir
+- # Copy depcomp to subdir because otherwise we won't find it if we're
+- # using a relative directory.
+- cp "$am_depcomp" conftest.dir
+- cd conftest.dir
+- # We will build objects and dependencies in a subdirectory because
+- # it helps to detect inapplicable dependency modes. For instance
+- # both Tru64's cc and ICC support -MD to output dependencies as a
+- # side effect of compilation, but ICC will put the dependencies in
+- # the current directory while Tru64 will put them in the object
+- # directory.
+- mkdir sub
+-
+- am_cv_$1_dependencies_compiler_type=none
+- if test "$am_compiler_list" = ""; then
+- am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
+- fi
+- for depmode in $am_compiler_list; do
+- # Setup a source with many dependencies, because some compilers
+- # like to wrap large dependency lists on column 80 (with \), and
+- # we should not choose a depcomp mode which is confused by this.
+- #
+- # We need to recreate these files for each test, as the compiler may
+- # overwrite some of them when testing with obscure command lines.
+- # This happens at least with the AIX C compiler.
+- : > sub/conftest.c
+- for i in 1 2 3 4 5 6; do
+- echo '#include "conftst'$i'.h"' >> sub/conftest.c
+- # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
+- # Solaris 8's {/usr,}/bin/sh.
+- touch sub/conftst$i.h
+- done
+- echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
+-
+- case $depmode in
+- nosideeffect)
+- # after this tag, mechanisms are not by side-effect, so they'll
+- # only be used when explicitly requested
+- if test "x$enable_dependency_tracking" = xyes; then
+- continue
+- else
+- break
+- fi
+- ;;
+- none) break ;;
+- esac
+- # We check with `-c' and `-o' for the sake of the "dashmstdout"
+- # mode. It turns out that the SunPro C++ compiler does not properly
+- # handle `-M -o', and we need to detect this.
+- if depmode=$depmode \
+- source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
+- depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
+- $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
+- >/dev/null 2>conftest.err &&
+- grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
+- grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
+- grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
+- ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
+- # icc doesn't choke on unknown options, it will just issue warnings
+- # or remarks (even with -Werror). So we grep stderr for any message
+- # that says an option was ignored or not supported.
+- # When given -MP, icc 7.0 and 7.1 complain thusly:
+- # icc: Command line warning: ignoring option '-M'; no argument required
+- # The diagnosis changed in icc 8.0:
+- # icc: Command line remark: option '-MP' not supported
+- if (grep 'ignoring option' conftest.err ||
+- grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
+- am_cv_$1_dependencies_compiler_type=$depmode
+- break
+- fi
+- fi
+- done
+-
+- cd ..
+- rm -rf conftest.dir
+-else
+- am_cv_$1_dependencies_compiler_type=none
+-fi
+-])
+-AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
+-AM_CONDITIONAL([am__fastdep$1], [
+- test "x$enable_dependency_tracking" != xno \
+- && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
+-])
+-
+-
+-# AM_SET_DEPDIR
+-# -------------
+-# Choose a directory name for dependency files.
+-# This macro is AC_REQUIREd in _AM_DEPENDENCIES
+-AC_DEFUN([AM_SET_DEPDIR],
+-[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
+-AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
+-])
+-
+-
+-# AM_DEP_TRACK
+-# ------------
+-AC_DEFUN([AM_DEP_TRACK],
+-[AC_ARG_ENABLE(dependency-tracking,
+-[ --disable-dependency-tracking speeds up one-time build
+- --enable-dependency-tracking do not reject slow dependency extractors])
+-if test "x$enable_dependency_tracking" != xno; then
+- am_depcomp="$ac_aux_dir/depcomp"
+- AMDEPBACKSLASH='\'
+-fi
+-AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
+-AC_SUBST([AMDEPBACKSLASH])dnl
+-_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
+-])
+-
+-# Generate code to set up dependency tracking. -*- Autoconf -*-
+-
+-# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
+-# Free Software Foundation, Inc.
+-#
+-# This file is free software; the Free Software Foundation
+-# gives unlimited permission to copy and/or distribute it,
+-# with or without modifications, as long as this notice is preserved.
+-
+-#serial 3
+-
+-# _AM_OUTPUT_DEPENDENCY_COMMANDS
+-# ------------------------------
+-AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
+-[for mf in $CONFIG_FILES; do
+- # Strip MF so we end up with the name of the file.
+- mf=`echo "$mf" | sed -e 's/:.*$//'`
+- # Check whether this is an Automake generated Makefile or not.
+- # We used to match only the files named `Makefile.in', but
+- # some people rename them; so instead we look at the file content.
+- # Grep'ing the first line is not enough: some people post-process
+- # each Makefile.in and add a new line on top of each file to say so.
+- # Grep'ing the whole file is not good either: AIX grep has a line
+- # limit of 2048, but all sed's we know have understand at least 4000.
+- if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
+- dirpart=`AS_DIRNAME("$mf")`
+- else
+- continue
+- fi
+- # Extract the definition of DEPDIR, am__include, and am__quote
+- # from the Makefile without running `make'.
+- DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
+- test -z "$DEPDIR" && continue
+- am__include=`sed -n 's/^am__include = //p' < "$mf"`
+- test -z "am__include" && continue
+- am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
+- # When using ansi2knr, U may be empty or an underscore; expand it
+- U=`sed -n 's/^U = //p' < "$mf"`
+- # Find all dependency output files, they are included files with
+- # $(DEPDIR) in their names. We invoke sed twice because it is the
+- # simplest approach to changing $(DEPDIR) to its actual value in the
+- # expansion.
+- for file in `sed -n "
+- s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
+- sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
+- # Make sure the directory exists.
+- test -f "$dirpart/$file" && continue
+- fdir=`AS_DIRNAME(["$file"])`
+- AS_MKDIR_P([$dirpart/$fdir])
+- # echo "creating $dirpart/$file"
+- echo '# dummy' > "$dirpart/$file"
+- done
+-done
+-])# _AM_OUTPUT_DEPENDENCY_COMMANDS
+-
+-
+-# AM_OUTPUT_DEPENDENCY_COMMANDS
+-# -----------------------------
+-# This macro should only be invoked once -- use via AC_REQUIRE.
+-#
+-# This code is only required when automatic dependency tracking
+-# is enabled. FIXME. This creates each `.P' file that we will
+-# need in order to bootstrap the dependency handling code.
+-AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
+-[AC_CONFIG_COMMANDS([depfiles],
+- [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
+- [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
+-])
+-
+-# Do all the work for Automake. -*- Autoconf -*-
+-
+-# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
+-# 2005, 2006 Free Software Foundation, Inc.
+-#
+-# This file is free software; the Free Software Foundation
+-# gives unlimited permission to copy and/or distribute it,
+-# with or without modifications, as long as this notice is preserved.
+-
+-# serial 12
+-
+-# This macro actually does too much. Some checks are only needed if
+-# your package does certain things. But this isn't really a big deal.
+-
+-# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
+-# AM_INIT_AUTOMAKE([OPTIONS])
+-# -----------------------------------------------
+-# The call with PACKAGE and VERSION arguments is the old style
+-# call (pre autoconf-2.50), which is being phased out. PACKAGE
+-# and VERSION should now be passed to AC_INIT and removed from
+-# the call to AM_INIT_AUTOMAKE.
+-# We support both call styles for the transition. After
+-# the next Automake release, Autoconf can make the AC_INIT
+-# arguments mandatory, and then we can depend on a new Autoconf
+-# release and drop the old call support.
+-AC_DEFUN([AM_INIT_AUTOMAKE],
+-[AC_PREREQ([2.60])dnl
+-dnl Autoconf wants to disallow AM_ names. We explicitly allow
+-dnl the ones we care about.
+-m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
+-AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
+-AC_REQUIRE([AC_PROG_INSTALL])dnl
+-if test "`cd $srcdir && pwd`" != "`pwd`"; then
+- # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
+- # is not polluted with repeated "-I."
+- AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
+- # test to see if srcdir already configured
+- if test -f $srcdir/config.status; then
+- AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
+- fi
+-fi
+-
+-# test whether we have cygpath
+-if test -z "$CYGPATH_W"; then
+- if (cygpath --version) >/dev/null 2>/dev/null; then
+- CYGPATH_W='cygpath -w'
+- else
+- CYGPATH_W=echo
+- fi
+-fi
+-AC_SUBST([CYGPATH_W])
+-
+-# Define the identity of the package.
+-dnl Distinguish between old-style and new-style calls.
+-m4_ifval([$2],
+-[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
+- AC_SUBST([PACKAGE], [$1])dnl
+- AC_SUBST([VERSION], [$2])],
+-[_AM_SET_OPTIONS([$1])dnl
+-dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
+-m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
+- [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
+- AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
+- AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
+-
+-_AM_IF_OPTION([no-define],,
+-[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
+- AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
+-
+-# Some tools Automake needs.
+-AC_REQUIRE([AM_SANITY_CHECK])dnl
+-AC_REQUIRE([AC_ARG_PROGRAM])dnl
+-AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
+-AM_MISSING_PROG(AUTOCONF, autoconf)
+-AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
+-AM_MISSING_PROG(AUTOHEADER, autoheader)
+-AM_MISSING_PROG(MAKEINFO, makeinfo)
+-AM_PROG_INSTALL_SH
+-AM_PROG_INSTALL_STRIP
+-AC_REQUIRE([AM_PROG_MKDIR_P])dnl
+-# We need awk for the "check" target. The system "awk" is bad on
+-# some platforms.
+-AC_REQUIRE([AC_PROG_AWK])dnl
+-AC_REQUIRE([AC_PROG_MAKE_SET])dnl
+-AC_REQUIRE([AM_SET_LEADING_DOT])dnl
+-_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
+- [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
+- [_AM_PROG_TAR([v7])])])
+-_AM_IF_OPTION([no-dependencies],,
+-[AC_PROVIDE_IFELSE([AC_PROG_CC],
+- [_AM_DEPENDENCIES(CC)],
+- [define([AC_PROG_CC],
+- defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
+-AC_PROVIDE_IFELSE([AC_PROG_CXX],
+- [_AM_DEPENDENCIES(CXX)],
+- [define([AC_PROG_CXX],
+- defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
+-AC_PROVIDE_IFELSE([AC_PROG_OBJC],
+- [_AM_DEPENDENCIES(OBJC)],
+- [define([AC_PROG_OBJC],
+- defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
+-])
+-])
+-
+-
+-# When config.status generates a header, we must update the stamp-h file.
+-# This file resides in the same directory as the config header
+-# that is generated. The stamp files are numbered to have different names.
+-
+-# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
+-# loop where config.status creates the headers, so we can generate
+-# our stamp files there.
+-AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
+-[# Compute $1's index in $config_headers.
+-_am_stamp_count=1
+-for _am_header in $config_headers :; do
+- case $_am_header in
+- $1 | $1:* )
+- break ;;
+- * )
+- _am_stamp_count=`expr $_am_stamp_count + 1` ;;
+- esac
+-done
+-echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
+-
+-# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
+-#
+-# This file is free software; the Free Software Foundation
+-# gives unlimited permission to copy and/or distribute it,
+-# with or without modifications, as long as this notice is preserved.
+-
+-# AM_PROG_INSTALL_SH
+-# ------------------
+-# Define $install_sh.
+-AC_DEFUN([AM_PROG_INSTALL_SH],
+-[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
+-install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
+-AC_SUBST(install_sh)])
+-
+-# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
+-#
+-# This file is free software; the Free Software Foundation
+-# gives unlimited permission to copy and/or distribute it,
+-# with or without modifications, as long as this notice is preserved.
+-
+-# serial 2
+-
+-# Check whether the underlying file-system supports filenames
+-# with a leading dot. For instance MS-DOS doesn't.
+-AC_DEFUN([AM_SET_LEADING_DOT],
+-[rm -rf .tst 2>/dev/null
+-mkdir .tst 2>/dev/null
+-if test -d .tst; then
+- am__leading_dot=.
+-else
+- am__leading_dot=_
+-fi
+-rmdir .tst 2>/dev/null
+-AC_SUBST([am__leading_dot])])
+-
+-# Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
+-# From Jim Meyering
+-
+-# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
+-# Free Software Foundation, Inc.
+-#
+-# This file is free software; the Free Software Foundation
+-# gives unlimited permission to copy and/or distribute it,
+-# with or without modifications, as long as this notice is preserved.
+-
+-# serial 4
+-
+-AC_DEFUN([AM_MAINTAINER_MODE],
+-[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
+- dnl maintainer-mode is disabled by default
+- AC_ARG_ENABLE(maintainer-mode,
+-[ --enable-maintainer-mode enable make rules and dependencies not useful
+- (and sometimes confusing) to the casual installer],
+- USE_MAINTAINER_MODE=$enableval,
+- USE_MAINTAINER_MODE=no)
+- AC_MSG_RESULT([$USE_MAINTAINER_MODE])
+- AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
+- MAINT=$MAINTAINER_MODE_TRUE
+- AC_SUBST(MAINT)dnl
+-]
+-)
+-
+-AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
+-
+-# Check to see how 'make' treats includes. -*- Autoconf -*-
+-
+-# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
+-#
+-# This file is free software; the Free Software Foundation
+-# gives unlimited permission to copy and/or distribute it,
+-# with or without modifications, as long as this notice is preserved.
+-
+-# serial 3
+-
+-# AM_MAKE_INCLUDE()
+-# -----------------
+-# Check to see how make treats includes.
+-AC_DEFUN([AM_MAKE_INCLUDE],
+-[am_make=${MAKE-make}
+-cat > confinc << 'END'
+-am__doit:
+- @echo done
+-.PHONY: am__doit
+-END
+-# If we don't find an include directive, just comment out the code.
+-AC_MSG_CHECKING([for style of include used by $am_make])
+-am__include="#"
+-am__quote=
+-_am_result=none
+-# First try GNU make style include.
+-echo "include confinc" > confmf
+-# We grep out `Entering directory' and `Leaving directory'
+-# messages which can occur if `w' ends up in MAKEFLAGS.
+-# In particular we don't look at `^make:' because GNU make might
+-# be invoked under some other name (usually "gmake"), in which
+-# case it prints its new name instead of `make'.
+-if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
+- am__include=include
+- am__quote=
+- _am_result=GNU
+-fi
+-# Now try BSD make style include.
+-if test "$am__include" = "#"; then
+- echo '.include "confinc"' > confmf
+- if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
+- am__include=.include
+- am__quote="\""
+- _am_result=BSD
+- fi
+-fi
+-AC_SUBST([am__include])
+-AC_SUBST([am__quote])
+-AC_MSG_RESULT([$_am_result])
+-rm -f confinc confmf
+-])
+-
+-# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
+-
+-# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
+-# Free Software Foundation, Inc.
+-#
+-# This file is free software; the Free Software Foundation
+-# gives unlimited permission to copy and/or distribute it,
+-# with or without modifications, as long as this notice is preserved.
+-
+-# serial 5
+-
+-# AM_MISSING_PROG(NAME, PROGRAM)
+-# ------------------------------
+-AC_DEFUN([AM_MISSING_PROG],
+-[AC_REQUIRE([AM_MISSING_HAS_RUN])
+-$1=${$1-"${am_missing_run}$2"}
+-AC_SUBST($1)])
+-
+-
+-# AM_MISSING_HAS_RUN
+-# ------------------
+-# Define MISSING if not defined so far and test if it supports --run.
+-# If it does, set am_missing_run to use it, otherwise, to nothing.
+-AC_DEFUN([AM_MISSING_HAS_RUN],
+-[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
+-AC_REQUIRE_AUX_FILE([missing])dnl
+-test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
+-# Use eval to expand $SHELL
+-if eval "$MISSING --run true"; then
+- am_missing_run="$MISSING --run "
+-else
+- am_missing_run=
+- AC_MSG_WARN([`missing' script is too old or missing])
+-fi
+-])
+-
+-# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
+-#
+-# This file is free software; the Free Software Foundation
+-# gives unlimited permission to copy and/or distribute it,
+-# with or without modifications, as long as this notice is preserved.
+-
+-# AM_PROG_MKDIR_P
+-# ---------------
+-# Check for `mkdir -p'.
+-AC_DEFUN([AM_PROG_MKDIR_P],
+-[AC_PREREQ([2.60])dnl
+-AC_REQUIRE([AC_PROG_MKDIR_P])dnl
+-dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
+-dnl while keeping a definition of mkdir_p for backward compatibility.
+-dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
+-dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
+-dnl Makefile.ins that do not define MKDIR_P, so we do our own
+-dnl adjustment using top_builddir (which is defined more often than
+-dnl MKDIR_P).
+-AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
+-case $mkdir_p in
+- [[\\/$]]* | ?:[[\\/]]*) ;;
+- */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
+-esac
+-])
+-
+-# Helper functions for option handling. -*- Autoconf -*-
+-
+-# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
+-#
+-# This file is free software; the Free Software Foundation
+-# gives unlimited permission to copy and/or distribute it,
+-# with or without modifications, as long as this notice is preserved.
+-
+-# serial 3
+-
+-# _AM_MANGLE_OPTION(NAME)
+-# -----------------------
+-AC_DEFUN([_AM_MANGLE_OPTION],
+-[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
+-
+-# _AM_SET_OPTION(NAME)
+-# ------------------------------
+-# Set option NAME. Presently that only means defining a flag for this option.
+-AC_DEFUN([_AM_SET_OPTION],
+-[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
+-
+-# _AM_SET_OPTIONS(OPTIONS)
+-# ----------------------------------
+-# OPTIONS is a space-separated list of Automake options.
+-AC_DEFUN([_AM_SET_OPTIONS],
+-[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
+-
+-# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
+-# -------------------------------------------
+-# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
+-AC_DEFUN([_AM_IF_OPTION],
+-[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
+-
+-# Check to make sure that the build environment is sane. -*- Autoconf -*-
+-
+-# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
+-# Free Software Foundation, Inc.
+-#
+-# This file is free software; the Free Software Foundation
+-# gives unlimited permission to copy and/or distribute it,
+-# with or without modifications, as long as this notice is preserved.
+-
+-# serial 4
+-
+-# AM_SANITY_CHECK
+-# ---------------
+-AC_DEFUN([AM_SANITY_CHECK],
+-[AC_MSG_CHECKING([whether build environment is sane])
+-# Just in case
+-sleep 1
+-echo timestamp > conftest.file
+-# Do `set' in a subshell so we don't clobber the current shell's
+-# arguments. Must try -L first in case configure is actually a
+-# symlink; some systems play weird games with the mod time of symlinks
+-# (eg FreeBSD returns the mod time of the symlink's containing
+-# directory).
+-if (
+- set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
+- if test "$[*]" = "X"; then
+- # -L didn't work.
+- set X `ls -t $srcdir/configure conftest.file`
+- fi
+- rm -f conftest.file
+- if test "$[*]" != "X $srcdir/configure conftest.file" \
+- && test "$[*]" != "X conftest.file $srcdir/configure"; then
+-
+- # If neither matched, then we have a broken ls. This can happen
+- # if, for instance, CONFIG_SHELL is bash and it inherits a
+- # broken ls alias from the environment. This has actually
+- # happened. Such a system could not be considered "sane".
+- AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
+-alias in your environment])
+- fi
+-
+- test "$[2]" = conftest.file
+- )
+-then
+- # Ok.
+- :
+-else
+- AC_MSG_ERROR([newly created file is older than distributed files!
+-Check your system clock])
+-fi
+-AC_MSG_RESULT(yes)])
+-
+-# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
+-#
+-# This file is free software; the Free Software Foundation
+-# gives unlimited permission to copy and/or distribute it,
+-# with or without modifications, as long as this notice is preserved.
+-
+-# AM_PROG_INSTALL_STRIP
+-# ---------------------
+-# One issue with vendor `install' (even GNU) is that you can't
+-# specify the program used to strip binaries. This is especially
+-# annoying in cross-compiling environments, where the build's strip
+-# is unlikely to handle the host's binaries.
+-# Fortunately install-sh will honor a STRIPPROG variable, so we
+-# always use install-sh in `make install-strip', and initialize
+-# STRIPPROG with the value of the STRIP variable (set by the user).
+-AC_DEFUN([AM_PROG_INSTALL_STRIP],
+-[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
+-# Installed binaries are usually stripped using `strip' when the user
+-# run `make install-strip'. However `strip' might not be the right
+-# tool to use in cross-compilation environments, therefore Automake
+-# will honor the `STRIP' environment variable to overrule this program.
+-dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
+-if test "$cross_compiling" != no; then
+- AC_CHECK_TOOL([STRIP], [strip], :)
+-fi
+-INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
+-AC_SUBST([INSTALL_STRIP_PROGRAM])])
+-
+-# Copyright (C) 2006 Free Software Foundation, Inc.
+-#
+-# This file is free software; the Free Software Foundation
+-# gives unlimited permission to copy and/or distribute it,
+-# with or without modifications, as long as this notice is preserved.
+-
+-# _AM_SUBST_NOTMAKE(VARIABLE)
+-# ---------------------------
+-# Prevent Automake from outputing VARIABLE = @VARIABLE@ in Makefile.in.
+-# This macro is traced by Automake.
+-AC_DEFUN([_AM_SUBST_NOTMAKE])
+-
+-# Check how to create a tarball. -*- Autoconf -*-
+-
+-# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
+-#
+-# This file is free software; the Free Software Foundation
+-# gives unlimited permission to copy and/or distribute it,
+-# with or without modifications, as long as this notice is preserved.
+-
+-# serial 2
+-
+-# _AM_PROG_TAR(FORMAT)
+-# --------------------
+-# Check how to create a tarball in format FORMAT.
+-# FORMAT should be one of `v7', `ustar', or `pax'.
+-#
+-# Substitute a variable $(am__tar) that is a command
+-# writing to stdout a FORMAT-tarball containing the directory
+-# $tardir.
+-# tardir=directory && $(am__tar) > result.tar
+-#
+-# Substitute a variable $(am__untar) that extract such
+-# a tarball read from stdin.
+-# $(am__untar) < result.tar
+-AC_DEFUN([_AM_PROG_TAR],
+-[# Always define AMTAR for backward compatibility.
+-AM_MISSING_PROG([AMTAR], [tar])
+-m4_if([$1], [v7],
+- [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
+- [m4_case([$1], [ustar],, [pax],,
+- [m4_fatal([Unknown tar format])])
+-AC_MSG_CHECKING([how to create a $1 tar archive])
+-# Loop over all known methods to create a tar archive until one works.
+-_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
+-_am_tools=${am_cv_prog_tar_$1-$_am_tools}
+-# Do not fold the above two line into one, because Tru64 sh and
+-# Solaris sh will not grok spaces in the rhs of `-'.
+-for _am_tool in $_am_tools
+-do
+- case $_am_tool in
+- gnutar)
+- for _am_tar in tar gnutar gtar;
+- do
+- AM_RUN_LOG([$_am_tar --version]) && break
+- done
+- am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
+- am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
+- am__untar="$_am_tar -xf -"
+- ;;
+- plaintar)
+- # Must skip GNU tar: if it does not support --format= it doesn't create
+- # ustar tarball either.
+- (tar --version) >/dev/null 2>&1 && continue
+- am__tar='tar chf - "$$tardir"'
+- am__tar_='tar chf - "$tardir"'
+- am__untar='tar xf -'
+- ;;
+- pax)
+- am__tar='pax -L -x $1 -w "$$tardir"'
+- am__tar_='pax -L -x $1 -w "$tardir"'
+- am__untar='pax -r'
+- ;;
+- cpio)
+- am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
+- am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
+- am__untar='cpio -i -H $1 -d'
+- ;;
+- none)
+- am__tar=false
+- am__tar_=false
+- am__untar=false
+- ;;
+- esac
+-
+- # If the value was cached, stop now. We just wanted to have am__tar
+- # and am__untar set.
+- test -n "${am_cv_prog_tar_$1}" && break
+-
+- # tar/untar a dummy directory, and stop if the command works
+- rm -rf conftest.dir
+- mkdir conftest.dir
+- echo GrepMe > conftest.dir/file
+- AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
+- rm -rf conftest.dir
+- if test -s conftest.tar; then
+- AM_RUN_LOG([$am__untar <conftest.tar])
+- grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
+- fi
+-done
+-rm -rf conftest.dir
+-
+-AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
+-AC_MSG_RESULT([$am_cv_prog_tar_$1])])
+-AC_SUBST([am__tar])
+-AC_SUBST([am__untar])
+-]) # _AM_PROG_TAR
+-
+-m4_include([acinclude.m4])
+diff --git a/config.guess b/config.guess
+deleted file mode 100755
+index 8229471..0000000
+--- a/config.guess
++++ /dev/null
+@@ -1,1453 +0,0 @@
+-#! /bin/sh
+-# Attempt to guess a canonical system name.
+-# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
+-# 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
+-
+-timestamp='2004-11-12'
+-
+-# This file is free software; you can redistribute it and/or modify it
+-# under the terms of the GNU General Public License as published by
+-# the Free Software Foundation; either version 2 of the License, or
+-# (at your option) any later version.
+-#
+-# This program is distributed in the hope that it will be useful, but
+-# WITHOUT ANY WARRANTY; without even the implied warranty of
+-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+-# General Public License for more details.
+-#
+-# You should have received a copy of the GNU General Public License
+-# along with this program; if not, write to the Free Software
+-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+-#
+-# As a special exception to the GNU General Public License, if you
+-# distribute this file as part of a program that contains a
+-# configuration script generated by Autoconf, you may include it under
+-# the same distribution terms that you use for the rest of that program.
+-
+-# Originally written by Per Bothner <per@bothner.com>.
+-# Please send patches to <config-patches@gnu.org>. Submit a context
+-# diff and a properly formatted ChangeLog entry.
+-#
+-# This script attempts to guess a canonical system name similar to
+-# config.sub. If it succeeds, it prints the system name on stdout, and
+-# exits with 0. Otherwise, it exits with 1.
+-#
+-# The plan is that this can be called by configure scripts if you
+-# don't specify an explicit build system type.
+-
+-me=`echo "$0" | sed -e 's,.*/,,'`
+-
+-usage="\
+-Usage: $0 [OPTION]
+-
+-Output the configuration name of the system \`$me' is run on.
+-
+-Operation modes:
+- -h, --help print this help, then exit
+- -t, --time-stamp print date of last modification, then exit
+- -v, --version print version number, then exit
+-
+-Report bugs and patches to <config-patches@gnu.org>."
+-
+-version="\
+-GNU config.guess ($timestamp)
+-
+-Originally written by Per Bothner.
+-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
+-Free Software Foundation, Inc.
+-
+-This is free software; see the source for copying conditions. There is NO
+-warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
+-
+-help="
+-Try \`$me --help' for more information."
+-
+-# Parse command line
+-while test $# -gt 0 ; do
+- case $1 in
+- --time-stamp | --time* | -t )
+- echo "$timestamp" ; exit 0 ;;
+- --version | -v )
+- echo "$version" ; exit 0 ;;
+- --help | --h* | -h )
+- echo "$usage"; exit 0 ;;
+- -- ) # Stop option processing
+- shift; break ;;
+- - ) # Use stdin as input.
+- break ;;
+- -* )
+- echo "$me: invalid option $1$help" >&2
+- exit 1 ;;
+- * )
+- break ;;
+- esac
+-done
+-
+-if test $# != 0; then
+- echo "$me: too many arguments$help" >&2
+- exit 1
+-fi
+-
+-trap 'exit 1' 1 2 15
+-
+-# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
+-# compiler to aid in system detection is discouraged as it requires
+-# temporary files to be created and, as you can see below, it is a
+-# headache to deal with in a portable fashion.
+-
+-# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
+-# use `HOST_CC' if defined, but it is deprecated.
+-
+-# Portable tmp directory creation inspired by the Autoconf team.
+-
+-set_cc_for_build='
+-trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
+-trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
+-: ${TMPDIR=/tmp} ;
+- { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
+- { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
+- { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
+- { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
+-dummy=$tmp/dummy ;
+-tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
+-case $CC_FOR_BUILD,$HOST_CC,$CC in
+- ,,) echo "int x;" > $dummy.c ;
+- for c in cc gcc c89 c99 ; do
+- if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
+- CC_FOR_BUILD="$c"; break ;
+- fi ;
+- done ;
+- if test x"$CC_FOR_BUILD" = x ; then
+- CC_FOR_BUILD=no_compiler_found ;
+- fi
+- ;;
+- ,,*) CC_FOR_BUILD=$CC ;;
+- ,*,*) CC_FOR_BUILD=$HOST_CC ;;
+-esac ;'
+-
+-# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
+-# (ghazi@noc.rutgers.edu 1994-08-24)
+-if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
+- PATH=$PATH:/.attbin ; export PATH
+-fi
+-
+-UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
+-UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
+-UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
+-UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
+-
+-# Note: order is significant - the case branches are not exclusive.
+-
+-case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
+- *:NetBSD:*:*)
+- # NetBSD (nbsd) targets should (where applicable) match one or
+- # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
+- # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
+- # switched to ELF, *-*-netbsd* would select the old
+- # object file format. This provides both forward
+- # compatibility and a consistent mechanism for selecting the
+- # object file format.
+- #
+- # Note: NetBSD doesn't particularly care about the vendor
+- # portion of the name. We always set it to "unknown".
+- sysctl="sysctl -n hw.machine_arch"
+- UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
+- /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
+- case "${UNAME_MACHINE_ARCH}" in
+- armeb) machine=armeb-unknown ;;
+- arm*) machine=arm-unknown ;;
+- sh3el) machine=shl-unknown ;;
+- sh3eb) machine=sh-unknown ;;
+- *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
+- esac
+- # The Operating System including object format, if it has switched
+- # to ELF recently, or will in the future.
+- case "${UNAME_MACHINE_ARCH}" in
+- arm*|i386|m68k|ns32k|sh3*|sparc|vax)
+- eval $set_cc_for_build
+- if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
+- | grep __ELF__ >/dev/null
+- then
+- # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
+- # Return netbsd for either. FIX?
+- os=netbsd
+- else
+- os=netbsdelf
+- fi
+- ;;
+- *)
+- os=netbsd
+- ;;
+- esac
+- # The OS release
+- # Debian GNU/NetBSD machines have a different userland, and
+- # thus, need a distinct triplet. However, they do not need
+- # kernel version information, so it can be replaced with a
+- # suitable tag, in the style of linux-gnu.
+- case "${UNAME_VERSION}" in
+- Debian*)
+- release='-gnu'
+- ;;
+- *)
+- release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
+- ;;
+- esac
+- # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
+- # contains redundant information, the shorter form:
+- # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
+- echo "${machine}-${os}${release}"
+- exit 0 ;;
+- amd64:OpenBSD:*:*)
+- echo x86_64-unknown-openbsd${UNAME_RELEASE}
+- exit 0 ;;
+- amiga:OpenBSD:*:*)
+- echo m68k-unknown-openbsd${UNAME_RELEASE}
+- exit 0 ;;
+- cats:OpenBSD:*:*)
+- echo arm-unknown-openbsd${UNAME_RELEASE}
+- exit 0 ;;
+- hp300:OpenBSD:*:*)
+- echo m68k-unknown-openbsd${UNAME_RELEASE}
+- exit 0 ;;
+- luna88k:OpenBSD:*:*)
+- echo m88k-unknown-openbsd${UNAME_RELEASE}
+- exit 0 ;;
+- mac68k:OpenBSD:*:*)
+- echo m68k-unknown-openbsd${UNAME_RELEASE}
+- exit 0 ;;
+- macppc:OpenBSD:*:*)
+- echo powerpc-unknown-openbsd${UNAME_RELEASE}
+- exit 0 ;;
+- mvme68k:OpenBSD:*:*)
+- echo m68k-unknown-openbsd${UNAME_RELEASE}
+- exit 0 ;;
+- mvme88k:OpenBSD:*:*)
+- echo m88k-unknown-openbsd${UNAME_RELEASE}
+- exit 0 ;;
+- mvmeppc:OpenBSD:*:*)
+- echo powerpc-unknown-openbsd${UNAME_RELEASE}
+- exit 0 ;;
+- sgi:OpenBSD:*:*)
+- echo mips64-unknown-openbsd${UNAME_RELEASE}
+- exit 0 ;;
+- sun3:OpenBSD:*:*)
+- echo m68k-unknown-openbsd${UNAME_RELEASE}
+- exit 0 ;;
+- *:OpenBSD:*:*)
+- echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
+- exit 0 ;;
+- *:ekkoBSD:*:*)
+- echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
+- exit 0 ;;
+- macppc:MirBSD:*:*)
+- echo powerppc-unknown-mirbsd${UNAME_RELEASE}
+- exit 0 ;;
+- *:MirBSD:*:*)
+- echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
+- exit 0 ;;
+- alpha:OSF1:*:*)
+- case $UNAME_RELEASE in
+- *4.0)
+- UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
+- ;;
+- *5.*)
+- UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
+- ;;
+- esac
+- # According to Compaq, /usr/sbin/psrinfo has been available on
+- # OSF/1 and Tru64 systems produced since 1995. I hope that
+- # covers most systems running today. This code pipes the CPU
+- # types through head -n 1, so we only detect the type of CPU 0.
+- ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
+- case "$ALPHA_CPU_TYPE" in
+- "EV4 (21064)")
+- UNAME_MACHINE="alpha" ;;
+- "EV4.5 (21064)")
+- UNAME_MACHINE="alpha" ;;
+- "LCA4 (21066/21068)")
+- UNAME_MACHINE="alpha" ;;
+- "EV5 (21164)")
+- UNAME_MACHINE="alphaev5" ;;
+- "EV5.6 (21164A)")
+- UNAME_MACHINE="alphaev56" ;;
+- "EV5.6 (21164PC)")
+- UNAME_MACHINE="alphapca56" ;;
+- "EV5.7 (21164PC)")
+- UNAME_MACHINE="alphapca57" ;;
+- "EV6 (21264)")
+- UNAME_MACHINE="alphaev6" ;;
+- "EV6.7 (21264A)")
+- UNAME_MACHINE="alphaev67" ;;
+- "EV6.8CB (21264C)")
+- UNAME_MACHINE="alphaev68" ;;
+- "EV6.8AL (21264B)")
+- UNAME_MACHINE="alphaev68" ;;
+- "EV6.8CX (21264D)")
+- UNAME_MACHINE="alphaev68" ;;
+- "EV6.9A (21264/EV69A)")
+- UNAME_MACHINE="alphaev69" ;;
+- "EV7 (21364)")
+- UNAME_MACHINE="alphaev7" ;;
+- "EV7.9 (21364A)")
+- UNAME_MACHINE="alphaev79" ;;
+- esac
+- # A Pn.n version is a patched version.
+- # A Vn.n version is a released version.
+- # A Tn.n version is a released field test version.
+- # A Xn.n version is an unreleased experimental baselevel.
+- # 1.2 uses "1.2" for uname -r.
+- echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
+- exit 0 ;;
+- Alpha\ *:Windows_NT*:*)
+- # How do we know it's Interix rather than the generic POSIX subsystem?
+- # Should we change UNAME_MACHINE based on the output of uname instead
+- # of the specific Alpha model?
+- echo alpha-pc-interix
+- exit 0 ;;
+- 21064:Windows_NT:50:3)
+- echo alpha-dec-winnt3.5
+- exit 0 ;;
+- Amiga*:UNIX_System_V:4.0:*)
+- echo m68k-unknown-sysv4
+- exit 0;;
+- *:[Aa]miga[Oo][Ss]:*:*)
+- echo ${UNAME_MACHINE}-unknown-amigaos
+- exit 0 ;;
+- *:[Mm]orph[Oo][Ss]:*:*)
+- echo ${UNAME_MACHINE}-unknown-morphos
+- exit 0 ;;
+- *:OS/390:*:*)
+- echo i370-ibm-openedition
+- exit 0 ;;
+- *:z/VM:*:*)
+- echo s390-ibm-zvmoe
+- exit 0 ;;
+- *:OS400:*:*)
+- echo powerpc-ibm-os400
+- exit 0 ;;
+- arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
+- echo arm-acorn-riscix${UNAME_RELEASE}
+- exit 0;;
+- SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
+- echo hppa1.1-hitachi-hiuxmpp
+- exit 0;;
+- Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
+- # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
+- if test "`(/bin/universe) 2>/dev/null`" = att ; then
+- echo pyramid-pyramid-sysv3
+- else
+- echo pyramid-pyramid-bsd
+- fi
+- exit 0 ;;
+- NILE*:*:*:dcosx)
+- echo pyramid-pyramid-svr4
+- exit 0 ;;
+- DRS?6000:unix:4.0:6*)
+- echo sparc-icl-nx6
+- exit 0 ;;
+- DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
+- case `/usr/bin/uname -p` in
+- sparc) echo sparc-icl-nx7 && exit 0 ;;
+- esac ;;
+- sun4H:SunOS:5.*:*)
+- echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+- exit 0 ;;
+- sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
+- echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+- exit 0 ;;
+- i86pc:SunOS:5.*:*)
+- echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+- exit 0 ;;
+- sun4*:SunOS:6*:*)
+- # According to config.sub, this is the proper way to canonicalize
+- # SunOS6. Hard to guess exactly what SunOS6 will be like, but
+- # it's likely to be more like Solaris than SunOS4.
+- echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+- exit 0 ;;
+- sun4*:SunOS:*:*)
+- case "`/usr/bin/arch -k`" in
+- Series*|S4*)
+- UNAME_RELEASE=`uname -v`
+- ;;
+- esac
+- # Japanese Language versions have a version number like `4.1.3-JL'.
+- echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
+- exit 0 ;;
+- sun3*:SunOS:*:*)
+- echo m68k-sun-sunos${UNAME_RELEASE}
+- exit 0 ;;
+- sun*:*:4.2BSD:*)
+- UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
+- test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
+- case "`/bin/arch`" in
+- sun3)
+- echo m68k-sun-sunos${UNAME_RELEASE}
+- ;;
+- sun4)
+- echo sparc-sun-sunos${UNAME_RELEASE}
+- ;;
+- esac
+- exit 0 ;;
+- aushp:SunOS:*:*)
+- echo sparc-auspex-sunos${UNAME_RELEASE}
+- exit 0 ;;
+- # The situation for MiNT is a little confusing. The machine name
+- # can be virtually everything (everything which is not
+- # "atarist" or "atariste" at least should have a processor
+- # > m68000). The system name ranges from "MiNT" over "FreeMiNT"
+- # to the lowercase version "mint" (or "freemint"). Finally
+- # the system name "TOS" denotes a system which is actually not
+- # MiNT. But MiNT is downward compatible to TOS, so this should
+- # be no problem.
+- atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
+- echo m68k-atari-mint${UNAME_RELEASE}
+- exit 0 ;;
+- atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
+- echo m68k-atari-mint${UNAME_RELEASE}
+- exit 0 ;;
+- *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
+- echo m68k-atari-mint${UNAME_RELEASE}
+- exit 0 ;;
+- milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
+- echo m68k-milan-mint${UNAME_RELEASE}
+- exit 0 ;;
+- hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
+- echo m68k-hades-mint${UNAME_RELEASE}
+- exit 0 ;;
+- *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
+- echo m68k-unknown-mint${UNAME_RELEASE}
+- exit 0 ;;
+- m68k:machten:*:*)
+- echo m68k-apple-machten${UNAME_RELEASE}
+- exit 0 ;;
+- powerpc:machten:*:*)
+- echo powerpc-apple-machten${UNAME_RELEASE}
+- exit 0 ;;
+- RISC*:Mach:*:*)
+- echo mips-dec-mach_bsd4.3
+- exit 0 ;;
+- RISC*:ULTRIX:*:*)
+- echo mips-dec-ultrix${UNAME_RELEASE}
+- exit 0 ;;
+- VAX*:ULTRIX*:*:*)
+- echo vax-dec-ultrix${UNAME_RELEASE}
+- exit 0 ;;
+- 2020:CLIX:*:* | 2430:CLIX:*:*)
+- echo clipper-intergraph-clix${UNAME_RELEASE}
+- exit 0 ;;
+- mips:*:*:UMIPS | mips:*:*:RISCos)
+- eval $set_cc_for_build
+- sed 's/^ //' << EOF >$dummy.c
+-#ifdef __cplusplus
+-#include <stdio.h> /* for printf() prototype */
+- int main (int argc, char *argv[]) {
+-#else
+- int main (argc, argv) int argc; char *argv[]; {
+-#endif
+- #if defined (host_mips) && defined (MIPSEB)
+- #if defined (SYSTYPE_SYSV)
+- printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
+- #endif
+- #if defined (SYSTYPE_SVR4)
+- printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
+- #endif
+- #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
+- printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
+- #endif
+- #endif
+- exit (-1);
+- }
+-EOF
+- $CC_FOR_BUILD -o $dummy $dummy.c \
+- && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
+- && exit 0
+- echo mips-mips-riscos${UNAME_RELEASE}
+- exit 0 ;;
+- Motorola:PowerMAX_OS:*:*)
+- echo powerpc-motorola-powermax
+- exit 0 ;;
+- Motorola:*:4.3:PL8-*)
+- echo powerpc-harris-powermax
+- exit 0 ;;
+- Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
+- echo powerpc-harris-powermax
+- exit 0 ;;
+- Night_Hawk:Power_UNIX:*:*)
+- echo powerpc-harris-powerunix
+- exit 0 ;;
+- m88k:CX/UX:7*:*)
+- echo m88k-harris-cxux7
+- exit 0 ;;
+- m88k:*:4*:R4*)
+- echo m88k-motorola-sysv4
+- exit 0 ;;
+- m88k:*:3*:R3*)
+- echo m88k-motorola-sysv3
+- exit 0 ;;
+- AViiON:dgux:*:*)
+- # DG/UX returns AViiON for all architectures
+- UNAME_PROCESSOR=`/usr/bin/uname -p`
+- if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
+- then
+- if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
+- [ ${TARGET_BINARY_INTERFACE}x = x ]
+- then
+- echo m88k-dg-dgux${UNAME_RELEASE}
+- else
+- echo m88k-dg-dguxbcs${UNAME_RELEASE}
+- fi
+- else
+- echo i586-dg-dgux${UNAME_RELEASE}
+- fi
+- exit 0 ;;
+- M88*:DolphinOS:*:*) # DolphinOS (SVR3)
+- echo m88k-dolphin-sysv3
+- exit 0 ;;
+- M88*:*:R3*:*)
+- # Delta 88k system running SVR3
+- echo m88k-motorola-sysv3
+- exit 0 ;;
+- XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
+- echo m88k-tektronix-sysv3
+- exit 0 ;;
+- Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
+- echo m68k-tektronix-bsd
+- exit 0 ;;
+- *:IRIX*:*:*)
+- echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
+- exit 0 ;;
+- ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
+- echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
+- exit 0 ;; # Note that: echo "'`uname -s`'" gives 'AIX '
+- i*86:AIX:*:*)
+- echo i386-ibm-aix
+- exit 0 ;;
+- ia64:AIX:*:*)
+- if [ -x /usr/bin/oslevel ] ; then
+- IBM_REV=`/usr/bin/oslevel`
+- else
+- IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
+- fi
+- echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
+- exit 0 ;;
+- *:AIX:2:3)
+- if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
+- eval $set_cc_for_build
+- sed 's/^ //' << EOF >$dummy.c
+- #include <sys/systemcfg.h>
+-
+- main()
+- {
+- if (!__power_pc())
+- exit(1);
+- puts("powerpc-ibm-aix3.2.5");
+- exit(0);
+- }
+-EOF
+- $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
+- echo rs6000-ibm-aix3.2.5
+- elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
+- echo rs6000-ibm-aix3.2.4
+- else
+- echo rs6000-ibm-aix3.2
+- fi
+- exit 0 ;;
+- *:AIX:*:[45])
+- IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
+- if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
+- IBM_ARCH=rs6000
+- else
+- IBM_ARCH=powerpc
+- fi
+- if [ -x /usr/bin/oslevel ] ; then
+- IBM_REV=`/usr/bin/oslevel`
+- else
+- IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
+- fi
+- echo ${IBM_ARCH}-ibm-aix${IBM_REV}
+- exit 0 ;;
+- *:AIX:*:*)
+- echo rs6000-ibm-aix
+- exit 0 ;;
+- ibmrt:4.4BSD:*|romp-ibm:BSD:*)
+- echo romp-ibm-bsd4.4
+- exit 0 ;;
+- ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
+- echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
+- exit 0 ;; # report: romp-ibm BSD 4.3
+- *:BOSX:*:*)
+- echo rs6000-bull-bosx
+- exit 0 ;;
+- DPX/2?00:B.O.S.:*:*)
+- echo m68k-bull-sysv3
+- exit 0 ;;
+- 9000/[34]??:4.3bsd:1.*:*)
+- echo m68k-hp-bsd
+- exit 0 ;;
+- hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
+- echo m68k-hp-bsd4.4
+- exit 0 ;;
+- 9000/[34678]??:HP-UX:*:*)
+- HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
+- case "${UNAME_MACHINE}" in
+- 9000/31? ) HP_ARCH=m68000 ;;
+- 9000/[34]?? ) HP_ARCH=m68k ;;
+- 9000/[678][0-9][0-9])
+- if [ -x /usr/bin/getconf ]; then
+- sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
+- sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
+- case "${sc_cpu_version}" in
+- 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
+- 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
+- 532) # CPU_PA_RISC2_0
+- case "${sc_kernel_bits}" in
+- 32) HP_ARCH="hppa2.0n" ;;
+- 64) HP_ARCH="hppa2.0w" ;;
+- '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
+- esac ;;
+- esac
+- fi
+- if [ "${HP_ARCH}" = "" ]; then
+- eval $set_cc_for_build
+- sed 's/^ //' << EOF >$dummy.c
+-
+- #define _HPUX_SOURCE
+- #include <stdlib.h>
+- #include <unistd.h>
+-
+- int main ()
+- {
+- #if defined(_SC_KERNEL_BITS)
+- long bits = sysconf(_SC_KERNEL_BITS);
+- #endif
+- long cpu = sysconf (_SC_CPU_VERSION);
+-
+- switch (cpu)
+- {
+- case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
+- case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
+- case CPU_PA_RISC2_0:
+- #if defined(_SC_KERNEL_BITS)
+- switch (bits)
+- {
+- case 64: puts ("hppa2.0w"); break;
+- case 32: puts ("hppa2.0n"); break;
+- default: puts ("hppa2.0"); break;
+- } break;
+- #else /* !defined(_SC_KERNEL_BITS) */
+- puts ("hppa2.0"); break;
+- #endif
+- default: puts ("hppa1.0"); break;
+- }
+- exit (0);
+- }
+-EOF
+- (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
+- test -z "$HP_ARCH" && HP_ARCH=hppa
+- fi ;;
+- esac
+- if [ ${HP_ARCH} = "hppa2.0w" ]
+- then
+- # avoid double evaluation of $set_cc_for_build
+- test -n "$CC_FOR_BUILD" || eval $set_cc_for_build
+- if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null
+- then
+- HP_ARCH="hppa2.0w"
+- else
+- HP_ARCH="hppa64"
+- fi
+- fi
+- echo ${HP_ARCH}-hp-hpux${HPUX_REV}
+- exit 0 ;;
+- ia64:HP-UX:*:*)
+- HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
+- echo ia64-hp-hpux${HPUX_REV}
+- exit 0 ;;
+- 3050*:HI-UX:*:*)
+- eval $set_cc_for_build
+- sed 's/^ //' << EOF >$dummy.c
+- #include <unistd.h>
+- int
+- main ()
+- {
+- long cpu = sysconf (_SC_CPU_VERSION);
+- /* The order matters, because CPU_IS_HP_MC68K erroneously returns
+- true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct
+- results, however. */
+- if (CPU_IS_PA_RISC (cpu))
+- {
+- switch (cpu)
+- {
+- case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
+- case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
+- case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
+- default: puts ("hppa-hitachi-hiuxwe2"); break;
+- }
+- }
+- else if (CPU_IS_HP_MC68K (cpu))
+- puts ("m68k-hitachi-hiuxwe2");
+- else puts ("unknown-hitachi-hiuxwe2");
+- exit (0);
+- }
+-EOF
+- $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
+- echo unknown-hitachi-hiuxwe2
+- exit 0 ;;
+- 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
+- echo hppa1.1-hp-bsd
+- exit 0 ;;
+- 9000/8??:4.3bsd:*:*)
+- echo hppa1.0-hp-bsd
+- exit 0 ;;
+- *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
+- echo hppa1.0-hp-mpeix
+- exit 0 ;;
+- hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
+- echo hppa1.1-hp-osf
+- exit 0 ;;
+- hp8??:OSF1:*:*)
+- echo hppa1.0-hp-osf
+- exit 0 ;;
+- i*86:OSF1:*:*)
+- if [ -x /usr/sbin/sysversion ] ; then
+- echo ${UNAME_MACHINE}-unknown-osf1mk
+- else
+- echo ${UNAME_MACHINE}-unknown-osf1
+- fi
+- exit 0 ;;
+- parisc*:Lites*:*:*)
+- echo hppa1.1-hp-lites
+- exit 0 ;;
+- C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
+- echo c1-convex-bsd
+- exit 0 ;;
+- C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
+- if getsysinfo -f scalar_acc
+- then echo c32-convex-bsd
+- else echo c2-convex-bsd
+- fi
+- exit 0 ;;
+- C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
+- echo c34-convex-bsd
+- exit 0 ;;
+- C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
+- echo c38-convex-bsd
+- exit 0 ;;
+- C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
+- echo c4-convex-bsd
+- exit 0 ;;
+- CRAY*Y-MP:*:*:*)
+- echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
+- exit 0 ;;
+- CRAY*[A-Z]90:*:*:*)
+- echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
+- | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
+- -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
+- -e 's/\.[^.]*$/.X/'
+- exit 0 ;;
+- CRAY*TS:*:*:*)
+- echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
+- exit 0 ;;
+- CRAY*T3E:*:*:*)
+- echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
+- exit 0 ;;
+- CRAY*SV1:*:*:*)
+- echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
+- exit 0 ;;
+- *:UNICOS/mp:*:*)
+- echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
+- exit 0 ;;
+- F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
+- FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
+- FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
+- FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
+- echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
+- exit 0 ;;
+- 5000:UNIX_System_V:4.*:*)
+- FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
+- FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
+- echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
+- exit 0 ;;
+- i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
+- echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
+- exit 0 ;;
+- sparc*:BSD/OS:*:*)
+- echo sparc-unknown-bsdi${UNAME_RELEASE}
+- exit 0 ;;
+- *:BSD/OS:*:*)
+- echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
+- exit 0 ;;
+- *:FreeBSD:*:*)
+- echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
+- exit 0 ;;
+- i*:CYGWIN*:*)
+- echo ${UNAME_MACHINE}-pc-cygwin
+- exit 0 ;;
+- i*:MINGW*:*)
+- echo ${UNAME_MACHINE}-pc-mingw32
+- exit 0 ;;
+- i*:PW*:*)
+- echo ${UNAME_MACHINE}-pc-pw32
+- exit 0 ;;
+- x86:Interix*:[34]*)
+- echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
+- exit 0 ;;
+- [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
+- echo i${UNAME_MACHINE}-pc-mks
+- exit 0 ;;
+- i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
+- # How do we know it's Interix rather than the generic POSIX subsystem?
+- # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
+- # UNAME_MACHINE based on the output of uname instead of i386?
+- echo i586-pc-interix
+- exit 0 ;;
+- i*:UWIN*:*)
+- echo ${UNAME_MACHINE}-pc-uwin
+- exit 0 ;;
+- p*:CYGWIN*:*)
+- echo powerpcle-unknown-cygwin
+- exit 0 ;;
+- prep*:SunOS:5.*:*)
+- echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+- exit 0 ;;
+- *:GNU:*:*)
+- # the GNU system
+- echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
+- exit 0 ;;
+- *:GNU/*:*:*)
+- # other systems with GNU libc and userland
+- echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
+- exit 0 ;;
+- i*86:Minix:*:*)
+- echo ${UNAME_MACHINE}-pc-minix
+- exit 0 ;;
+- arm*:Linux:*:*)
+- echo ${UNAME_MACHINE}-unknown-linux-gnu
+- exit 0 ;;
+- cris:Linux:*:*)
+- echo cris-axis-linux-gnu
+- exit 0 ;;
+- crisv32:Linux:*:*)
+- echo crisv32-axis-linux-gnu
+- exit 0 ;;
+- frv:Linux:*:*)
+- echo frv-unknown-linux-gnu
+- exit 0 ;;
+- ia64:Linux:*:*)
+- echo ${UNAME_MACHINE}-unknown-linux-gnu
+- exit 0 ;;
+- m32r*:Linux:*:*)
+- echo ${UNAME_MACHINE}-unknown-linux-gnu
+- exit 0 ;;
+- m68*:Linux:*:*)
+- echo ${UNAME_MACHINE}-unknown-linux-gnu
+- exit 0 ;;
+- mips:Linux:*:*)
+- eval $set_cc_for_build
+- sed 's/^ //' << EOF >$dummy.c
+- #undef CPU
+- #undef mips
+- #undef mipsel
+- #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
+- CPU=mipsel
+- #else
+- #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
+- CPU=mips
+- #else
+- CPU=
+- #endif
+- #endif
+-EOF
+- eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
+- test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
+- ;;
+- mips64:Linux:*:*)
+- eval $set_cc_for_build
+- sed 's/^ //' << EOF >$dummy.c
+- #undef CPU
+- #undef mips64
+- #undef mips64el
+- #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
+- CPU=mips64el
+- #else
+- #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
+- CPU=mips64
+- #else
+- CPU=
+- #endif
+- #endif
+-EOF
+- eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
+- test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
+- ;;
+- ppc:Linux:*:*)
+- echo powerpc-unknown-linux-gnu
+- exit 0 ;;
+- ppc64:Linux:*:*)
+- echo powerpc64-unknown-linux-gnu
+- exit 0 ;;
+- alpha:Linux:*:*)
+- case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
+- EV5) UNAME_MACHINE=alphaev5 ;;
+- EV56) UNAME_MACHINE=alphaev56 ;;
+- PCA56) UNAME_MACHINE=alphapca56 ;;
+- PCA57) UNAME_MACHINE=alphapca56 ;;
+- EV6) UNAME_MACHINE=alphaev6 ;;
+- EV67) UNAME_MACHINE=alphaev67 ;;
+- EV68*) UNAME_MACHINE=alphaev68 ;;
+- esac
+- objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
+- if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
+- echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
+- exit 0 ;;
+- parisc:Linux:*:* | hppa:Linux:*:*)
+- # Look for CPU level
+- case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
+- PA7*) echo hppa1.1-unknown-linux-gnu ;;
+- PA8*) echo hppa2.0-unknown-linux-gnu ;;
+- *) echo hppa-unknown-linux-gnu ;;
+- esac
+- exit 0 ;;
+- parisc64:Linux:*:* | hppa64:Linux:*:*)
+- echo hppa64-unknown-linux-gnu
+- exit 0 ;;
+- s390:Linux:*:* | s390x:Linux:*:*)
+- echo ${UNAME_MACHINE}-ibm-linux
+- exit 0 ;;
+- sh64*:Linux:*:*)
+- echo ${UNAME_MACHINE}-unknown-linux-gnu
+- exit 0 ;;
+- sh*:Linux:*:*)
+- echo ${UNAME_MACHINE}-unknown-linux-gnu
+- exit 0 ;;
+- sparc:Linux:*:* | sparc64:Linux:*:*)
+- echo ${UNAME_MACHINE}-unknown-linux-gnu
+- exit 0 ;;
+- x86_64:Linux:*:*)
+- echo x86_64-unknown-linux-gnu
+- exit 0 ;;
+- i*86:Linux:*:*)
+- # The BFD linker knows what the default object file format is, so
+- # first see if it will tell us. cd to the root directory to prevent
+- # problems with other programs or directories called `ld' in the path.
+- # Set LC_ALL=C to ensure ld outputs messages in English.
+- ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
+- | sed -ne '/supported targets:/!d
+- s/[ ][ ]*/ /g
+- s/.*supported targets: *//
+- s/ .*//
+- p'`
+- case "$ld_supported_targets" in
+- elf32-i386)
+- TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
+- ;;
+- a.out-i386-linux)
+- echo "${UNAME_MACHINE}-pc-linux-gnuaout"
+- exit 0 ;;
+- coff-i386)
+- echo "${UNAME_MACHINE}-pc-linux-gnucoff"
+- exit 0 ;;
+- "")
+- # Either a pre-BFD a.out linker (linux-gnuoldld) or
+- # one that does not give us useful --help.
+- echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
+- exit 0 ;;
+- esac
+- # Determine whether the default compiler is a.out or elf
+- eval $set_cc_for_build
+- sed 's/^ //' << EOF >$dummy.c
+- #include <features.h>
+- #ifdef __ELF__
+- # ifdef __GLIBC__
+- # if __GLIBC__ >= 2
+- LIBC=gnu
+- # else
+- LIBC=gnulibc1
+- # endif
+- # else
+- LIBC=gnulibc1
+- # endif
+- #else
+- #ifdef __INTEL_COMPILER
+- LIBC=gnu
+- #else
+- LIBC=gnuaout
+- #endif
+- #endif
+- #ifdef __dietlibc__
+- LIBC=dietlibc
+- #endif
+-EOF
+- eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
+- test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0
+- test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
+- ;;
+- i*86:DYNIX/ptx:4*:*)
+- # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
+- # earlier versions are messed up and put the nodename in both
+- # sysname and nodename.
+- echo i386-sequent-sysv4
+- exit 0 ;;
+- i*86:UNIX_SV:4.2MP:2.*)
+- # Unixware is an offshoot of SVR4, but it has its own version
+- # number series starting with 2...
+- # I am not positive that other SVR4 systems won't match this,
+- # I just have to hope. -- rms.
+- # Use sysv4.2uw... so that sysv4* matches it.
+- echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
+- exit 0 ;;
+- i*86:OS/2:*:*)
+- # If we were able to find `uname', then EMX Unix compatibility
+- # is probably installed.
+- echo ${UNAME_MACHINE}-pc-os2-emx
+- exit 0 ;;
+- i*86:XTS-300:*:STOP)
+- echo ${UNAME_MACHINE}-unknown-stop
+- exit 0 ;;
+- i*86:atheos:*:*)
+- echo ${UNAME_MACHINE}-unknown-atheos
+- exit 0 ;;
+- i*86:syllable:*:*)
+- echo ${UNAME_MACHINE}-pc-syllable
+- exit 0 ;;
+- i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
+- echo i386-unknown-lynxos${UNAME_RELEASE}
+- exit 0 ;;
+- i*86:*DOS:*:*)
+- echo ${UNAME_MACHINE}-pc-msdosdjgpp
+- exit 0 ;;
+- i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
+- UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
+- if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
+- echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
+- else
+- echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
+- fi
+- exit 0 ;;
+- i*86:*:5:[78]*)
+- case `/bin/uname -X | grep "^Machine"` in
+- *486*) UNAME_MACHINE=i486 ;;
+- *Pentium) UNAME_MACHINE=i586 ;;
+- *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
+- esac
+- echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
+- exit 0 ;;
+- i*86:*:3.2:*)
+- if test -f /usr/options/cb.name; then
+- UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
+- echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
+- elif /bin/uname -X 2>/dev/null >/dev/null ; then
+- UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
+- (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
+- (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
+- && UNAME_MACHINE=i586
+- (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
+- && UNAME_MACHINE=i686
+- (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
+- && UNAME_MACHINE=i686
+- echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
+- else
+- echo ${UNAME_MACHINE}-pc-sysv32
+- fi
+- exit 0 ;;
+- pc:*:*:*)
+- # Left here for compatibility:
+- # uname -m prints for DJGPP always 'pc', but it prints nothing about
+- # the processor, so we play safe by assuming i386.
+- echo i386-pc-msdosdjgpp
+- exit 0 ;;
+- Intel:Mach:3*:*)
+- echo i386-pc-mach3
+- exit 0 ;;
+- paragon:*:*:*)
+- echo i860-intel-osf1
+- exit 0 ;;
+- i860:*:4.*:*) # i860-SVR4
+- if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
+- echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
+- else # Add other i860-SVR4 vendors below as they are discovered.
+- echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
+- fi
+- exit 0 ;;
+- mini*:CTIX:SYS*5:*)
+- # "miniframe"
+- echo m68010-convergent-sysv
+- exit 0 ;;
+- mc68k:UNIX:SYSTEM5:3.51m)
+- echo m68k-convergent-sysv
+- exit 0 ;;
+- M680?0:D-NIX:5.3:*)
+- echo m68k-diab-dnix
+- exit 0 ;;
+- M68*:*:R3V[5678]*:*)
+- test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
+- 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0)
+- OS_REL=''
+- test -r /etc/.relid \
+- && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
+- /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
+- && echo i486-ncr-sysv4.3${OS_REL} && exit 0
+- /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
+- && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;;
+- 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
+- /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
+- && echo i486-ncr-sysv4 && exit 0 ;;
+- m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
+- echo m68k-unknown-lynxos${UNAME_RELEASE}
+- exit 0 ;;
+- mc68030:UNIX_System_V:4.*:*)
+- echo m68k-atari-sysv4
+- exit 0 ;;
+- TSUNAMI:LynxOS:2.*:*)
+- echo sparc-unknown-lynxos${UNAME_RELEASE}
+- exit 0 ;;
+- rs6000:LynxOS:2.*:*)
+- echo rs6000-unknown-lynxos${UNAME_RELEASE}
+- exit 0 ;;
+- PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
+- echo powerpc-unknown-lynxos${UNAME_RELEASE}
+- exit 0 ;;
+- SM[BE]S:UNIX_SV:*:*)
+- echo mips-dde-sysv${UNAME_RELEASE}
+- exit 0 ;;
+- RM*:ReliantUNIX-*:*:*)
+- echo mips-sni-sysv4
+- exit 0 ;;
+- RM*:SINIX-*:*:*)
+- echo mips-sni-sysv4
+- exit 0 ;;
+- *:SINIX-*:*:*)
+- if uname -p 2>/dev/null >/dev/null ; then
+- UNAME_MACHINE=`(uname -p) 2>/dev/null`
+- echo ${UNAME_MACHINE}-sni-sysv4
+- else
+- echo ns32k-sni-sysv
+- fi
+- exit 0 ;;
+- PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
+- # says <Richard.M.Bartel@ccMail.Census.GOV>
+- echo i586-unisys-sysv4
+- exit 0 ;;
+- *:UNIX_System_V:4*:FTX*)
+- # From Gerald Hewes <hewes@openmarket.com>.
+- # How about differentiating between stratus architectures? -djm
+- echo hppa1.1-stratus-sysv4
+- exit 0 ;;
+- *:*:*:FTX*)
+- # From seanf@swdc.stratus.com.
+- echo i860-stratus-sysv4
+- exit 0 ;;
+- *:VOS:*:*)
+- # From Paul.Green@stratus.com.
+- echo hppa1.1-stratus-vos
+- exit 0 ;;
+- mc68*:A/UX:*:*)
+- echo m68k-apple-aux${UNAME_RELEASE}
+- exit 0 ;;
+- news*:NEWS-OS:6*:*)
+- echo mips-sony-newsos6
+- exit 0 ;;
+- R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
+- if [ -d /usr/nec ]; then
+- echo mips-nec-sysv${UNAME_RELEASE}
+- else
+- echo mips-unknown-sysv${UNAME_RELEASE}
+- fi
+- exit 0 ;;
+- BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
+- echo powerpc-be-beos
+- exit 0 ;;
+- BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
+- echo powerpc-apple-beos
+- exit 0 ;;
+- BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
+- echo i586-pc-beos
+- exit 0 ;;
+- SX-4:SUPER-UX:*:*)
+- echo sx4-nec-superux${UNAME_RELEASE}
+- exit 0 ;;
+- SX-5:SUPER-UX:*:*)
+- echo sx5-nec-superux${UNAME_RELEASE}
+- exit 0 ;;
+- SX-6:SUPER-UX:*:*)
+- echo sx6-nec-superux${UNAME_RELEASE}
+- exit 0 ;;
+- Power*:Rhapsody:*:*)
+- echo powerpc-apple-rhapsody${UNAME_RELEASE}
+- exit 0 ;;
+- *:Rhapsody:*:*)
+- echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
+- exit 0 ;;
+- *:Darwin:*:*)
+- UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
+- case $UNAME_PROCESSOR in
+- *86) UNAME_PROCESSOR=i686 ;;
+- unknown) UNAME_PROCESSOR=powerpc ;;
+- esac
+- echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
+- exit 0 ;;
+- *:procnto*:*:* | *:QNX:[0123456789]*:*)
+- UNAME_PROCESSOR=`uname -p`
+- if test "$UNAME_PROCESSOR" = "x86"; then
+- UNAME_PROCESSOR=i386
+- UNAME_MACHINE=pc
+- fi
+- echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
+- exit 0 ;;
+- *:QNX:*:4*)
+- echo i386-pc-qnx
+- exit 0 ;;
+- NSR-?:NONSTOP_KERNEL:*:*)
+- echo nsr-tandem-nsk${UNAME_RELEASE}
+- exit 0 ;;
+- *:NonStop-UX:*:*)
+- echo mips-compaq-nonstopux
+- exit 0 ;;
+- BS2000:POSIX*:*:*)
+- echo bs2000-siemens-sysv
+- exit 0 ;;
+- DS/*:UNIX_System_V:*:*)
+- echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
+- exit 0 ;;
+- *:Plan9:*:*)
+- # "uname -m" is not consistent, so use $cputype instead. 386
+- # is converted to i386 for consistency with other x86
+- # operating systems.
+- if test "$cputype" = "386"; then
+- UNAME_MACHINE=i386
+- else
+- UNAME_MACHINE="$cputype"
+- fi
+- echo ${UNAME_MACHINE}-unknown-plan9
+- exit 0 ;;
+- *:TOPS-10:*:*)
+- echo pdp10-unknown-tops10
+- exit 0 ;;
+- *:TENEX:*:*)
+- echo pdp10-unknown-tenex
+- exit 0 ;;
+- KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
+- echo pdp10-dec-tops20
+- exit 0 ;;
+- XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
+- echo pdp10-xkl-tops20
+- exit 0 ;;
+- *:TOPS-20:*:*)
+- echo pdp10-unknown-tops20
+- exit 0 ;;
+- *:ITS:*:*)
+- echo pdp10-unknown-its
+- exit 0 ;;
+- SEI:*:*:SEIUX)
+- echo mips-sei-seiux${UNAME_RELEASE}
+- exit 0 ;;
+- *:DragonFly:*:*)
+- echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
+- exit 0 ;;
+- *:*VMS:*:*)
+- UNAME_MACHINE=`(uname -p) 2>/dev/null`
+- case "${UNAME_MACHINE}" in
+- A*) echo alpha-dec-vms && exit 0 ;;
+- I*) echo ia64-dec-vms && exit 0 ;;
+- V*) echo vax-dec-vms && exit 0 ;;
+- esac ;;
+- *:XENIX:*:SysV)
+- echo i386-pc-xenix
+- exit 0 ;;
+-esac
+-
+-#echo '(No uname command or uname output not recognized.)' 1>&2
+-#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
+-
+-eval $set_cc_for_build
+-cat >$dummy.c <<EOF
+-#ifdef _SEQUENT_
+-# include <sys/types.h>
+-# include <sys/utsname.h>
+-#endif
+-main ()
+-{
+-#if defined (sony)
+-#if defined (MIPSEB)
+- /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
+- I don't know.... */
+- printf ("mips-sony-bsd\n"); exit (0);
+-#else
+-#include <sys/param.h>
+- printf ("m68k-sony-newsos%s\n",
+-#ifdef NEWSOS4
+- "4"
+-#else
+- ""
+-#endif
+- ); exit (0);
+-#endif
+-#endif
+-
+-#if defined (__arm) && defined (__acorn) && defined (__unix)
+- printf ("arm-acorn-riscix"); exit (0);
+-#endif
+-
+-#if defined (hp300) && !defined (hpux)
+- printf ("m68k-hp-bsd\n"); exit (0);
+-#endif
+-
+-#if defined (NeXT)
+-#if !defined (__ARCHITECTURE__)
+-#define __ARCHITECTURE__ "m68k"
+-#endif
+- int version;
+- version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
+- if (version < 4)
+- printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
+- else
+- printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
+- exit (0);
+-#endif
+-
+-#if defined (MULTIMAX) || defined (n16)
+-#if defined (UMAXV)
+- printf ("ns32k-encore-sysv\n"); exit (0);
+-#else
+-#if defined (CMU)
+- printf ("ns32k-encore-mach\n"); exit (0);
+-#else
+- printf ("ns32k-encore-bsd\n"); exit (0);
+-#endif
+-#endif
+-#endif
+-
+-#if defined (__386BSD__)
+- printf ("i386-pc-bsd\n"); exit (0);
+-#endif
+-
+-#if defined (sequent)
+-#if defined (i386)
+- printf ("i386-sequent-dynix\n"); exit (0);
+-#endif
+-#if defined (ns32000)
+- printf ("ns32k-sequent-dynix\n"); exit (0);
+-#endif
+-#endif
+-
+-#if defined (_SEQUENT_)
+- struct utsname un;
+-
+- uname(&un);
+-
+- if (strncmp(un.version, "V2", 2) == 0) {
+- printf ("i386-sequent-ptx2\n"); exit (0);
+- }
+- if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
+- printf ("i386-sequent-ptx1\n"); exit (0);
+- }
+- printf ("i386-sequent-ptx\n"); exit (0);
+-
+-#endif
+-
+-#if defined (vax)
+-# if !defined (ultrix)
+-# include <sys/param.h>
+-# if defined (BSD)
+-# if BSD == 43
+- printf ("vax-dec-bsd4.3\n"); exit (0);
+-# else
+-# if BSD == 199006
+- printf ("vax-dec-bsd4.3reno\n"); exit (0);
+-# else
+- printf ("vax-dec-bsd\n"); exit (0);
+-# endif
+-# endif
+-# else
+- printf ("vax-dec-bsd\n"); exit (0);
+-# endif
+-# else
+- printf ("vax-dec-ultrix\n"); exit (0);
+-# endif
+-#endif
+-
+-#if defined (alliant) && defined (i860)
+- printf ("i860-alliant-bsd\n"); exit (0);
+-#endif
+-
+- exit (1);
+-}
+-EOF
+-
+-$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0
+-
+-# Apollos put the system type in the environment.
+-
+-test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; }
+-
+-# Convex versions that predate uname can use getsysinfo(1)
+-
+-if [ -x /usr/convex/getsysinfo ]
+-then
+- case `getsysinfo -f cpu_type` in
+- c1*)
+- echo c1-convex-bsd
+- exit 0 ;;
+- c2*)
+- if getsysinfo -f scalar_acc
+- then echo c32-convex-bsd
+- else echo c2-convex-bsd
+- fi
+- exit 0 ;;
+- c34*)
+- echo c34-convex-bsd
+- exit 0 ;;
+- c38*)
+- echo c38-convex-bsd
+- exit 0 ;;
+- c4*)
+- echo c4-convex-bsd
+- exit 0 ;;
+- esac
+-fi
+-
+-cat >&2 <<EOF
+-$0: unable to guess system type
+-
+-This script, last modified $timestamp, has failed to recognize
+-the operating system you are using. It is advised that you
+-download the most up to date version of the config scripts from
+-
+- ftp://ftp.gnu.org/pub/gnu/config/
+-
+-If the version you run ($0) is already up to date, please
+-send the following data and any information you think might be
+-pertinent to <config-patches@gnu.org> in order to provide the needed
+-information to handle your system.
+-
+-config.guess timestamp = $timestamp
+-
+-uname -m = `(uname -m) 2>/dev/null || echo unknown`
+-uname -r = `(uname -r) 2>/dev/null || echo unknown`
+-uname -s = `(uname -s) 2>/dev/null || echo unknown`
+-uname -v = `(uname -v) 2>/dev/null || echo unknown`
+-
+-/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
+-/bin/uname -X = `(/bin/uname -X) 2>/dev/null`
+-
+-hostinfo = `(hostinfo) 2>/dev/null`
+-/bin/universe = `(/bin/universe) 2>/dev/null`
+-/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null`
+-/bin/arch = `(/bin/arch) 2>/dev/null`
+-/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
+-/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
+-
+-UNAME_MACHINE = ${UNAME_MACHINE}
+-UNAME_RELEASE = ${UNAME_RELEASE}
+-UNAME_SYSTEM = ${UNAME_SYSTEM}
+-UNAME_VERSION = ${UNAME_VERSION}
+-EOF
+-
+-exit 1
+-
+-# Local variables:
+-# eval: (add-hook 'write-file-hooks 'time-stamp)
+-# time-stamp-start: "timestamp='"
+-# time-stamp-format: "%:y-%02m-%02d"
+-# time-stamp-end: "'"
+-# End:
+diff --git a/config.h.in b/config.h.in
+deleted file mode 100644
+index e2128e4..0000000
+--- a/config.h.in
++++ /dev/null
+@@ -1,109 +0,0 @@
+-/* config.h.in. Generated from configure.in by autoheader. */
+-
+-/* Define if an absolute indirect call/jump must NOT be prefixed with `*' */
+-#undef ABSOLUTE_WITHOUT_ASTERISK
+-
+-/* Define it to \"addr32\" or \"addr32;\" to make GAS happy */
+-#undef ADDR32
+-
+-/* Define if you don't want to pass the mem= option to Linux */
+-#undef AUTO_LINUX_MEM_OPT
+-
+-/* Define it to \"data32\" or \"data32;\" to make GAS happy */
+-#undef DATA32
+-
+-/* Define if C symbols get an underscore after compilation */
+-#undef HAVE_ASM_USCORE
+-
+-/* Define to 1 if you have the <curses.h> header file. */
+-#undef HAVE_CURSES_H
+-
+-/* Define if edata is defined */
+-#undef HAVE_EDATA_SYMBOL
+-
+-/* Define if end is defined */
+-#undef HAVE_END_SYMBOL
+-
+-/* Define to 1 if you have the <inttypes.h> header file. */
+-#undef HAVE_INTTYPES_H
+-
+-/* Define if you have a curses library */
+-#undef HAVE_LIBCURSES
+-
+-/* Define to 1 if you have the <memory.h> header file. */
+-#undef HAVE_MEMORY_H
+-
+-/* Define to 1 if you have the <ncurses/curses.h> header file. */
+-#undef HAVE_NCURSES_CURSES_H
+-
+-/* Define to 1 if you have the <ncurses.h> header file. */
+-#undef HAVE_NCURSES_H
+-
+-/* Define if opendisk() in -lutil can be used */
+-#undef HAVE_OPENDISK
+-
+-/* Define if start is defined */
+-#undef HAVE_START_SYMBOL
+-
+-/* Define to 1 if you have the <stdint.h> header file. */
+-#undef HAVE_STDINT_H
+-
+-/* Define to 1 if you have the <stdlib.h> header file. */
+-#undef HAVE_STDLIB_H
+-
+-/* Define to 1 if you have the <strings.h> header file. */
+-#undef HAVE_STRINGS_H
+-
+-/* Define to 1 if you have the <string.h> header file. */
+-#undef HAVE_STRING_H
+-
+-/* Define to 1 if you have the <sys/stat.h> header file. */
+-#undef HAVE_SYS_STAT_H
+-
+-/* Define to 1 if you have the <sys/types.h> header file. */
+-#undef HAVE_SYS_TYPES_H
+-
+-/* Define to 1 if you have the <unistd.h> header file. */
+-#undef HAVE_UNISTD_H
+-
+-/* Define if _edata is defined */
+-#undef HAVE_USCORE_EDATA_SYMBOL
+-
+-/* Define if end is defined */
+-#undef HAVE_USCORE_END_SYMBOL
+-
+-/* Define if _start is defined */
+-#undef HAVE_USCORE_START_SYMBOL
+-
+-/* Define if __bss_start is defined */
+-#undef HAVE_USCORE_USCORE_BSS_START_SYMBOL
+-
+-/* Name of package */
+-#undef PACKAGE
+-
+-/* Define to the address where bug reports for this package should be sent. */
+-#undef PACKAGE_BUGREPORT
+-
+-/* Define to the full name of this package. */
+-#undef PACKAGE_NAME
+-
+-/* Define to the full name and version of this package. */
+-#undef PACKAGE_STRING
+-
+-/* Define to the one symbol short name of this package. */
+-#undef PACKAGE_TARNAME
+-
+-/* Define to the version of this package. */
+-#undef PACKAGE_VERSION
+-
+-/* Define if you run on EFI platform. */
+-#undef PLATFORM_EFI
+-
+-/* Define if there is user specified preset menu string */
+-#undef PRESET_MENU_STRING
+-
+-/* Define to 1 if you have the ANSI C header files. */
+-#undef STDC_HEADERS
+-
+-/* Version number of package */
+-#undef VERSION
+diff --git a/config.sub b/config.sub
+deleted file mode 100755
+index 987b17d..0000000
+--- a/config.sub
++++ /dev/null
+@@ -1,1566 +0,0 @@
+-#! /bin/sh
+-# Configuration validation subroutine script.
+-# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
+-# 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
+-
+-timestamp='2004-11-30'
+-
+-# This file is (in principle) common to ALL GNU software.
+-# The presence of a machine in this file suggests that SOME GNU software
+-# can handle that machine. It does not imply ALL GNU software can.
+-#
+-# This file is free software; you can redistribute it and/or modify
+-# it under the terms of the GNU General Public License as published by
+-# the Free Software Foundation; either version 2 of the License, or
+-# (at your option) any later version.
+-#
+-# This program is distributed in the hope that it will be useful,
+-# but WITHOUT ANY WARRANTY; without even the implied warranty of
+-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+-# GNU General Public License for more details.
+-#
+-# You should have received a copy of the GNU General Public License
+-# along with this program; if not, write to the Free Software
+-# Foundation, Inc., 59 Temple Place - Suite 330,
+-# Boston, MA 02111-1307, USA.
+-
+-# As a special exception to the GNU General Public License, if you
+-# distribute this file as part of a program that contains a
+-# configuration script generated by Autoconf, you may include it under
+-# the same distribution terms that you use for the rest of that program.
+-
+-# Please send patches to <config-patches@gnu.org>. Submit a context
+-# diff and a properly formatted ChangeLog entry.
+-#
+-# Configuration subroutine to validate and canonicalize a configuration type.
+-# Supply the specified configuration type as an argument.
+-# If it is invalid, we print an error message on stderr and exit with code 1.
+-# Otherwise, we print the canonical config type on stdout and succeed.
+-
+-# This file is supposed to be the same for all GNU packages
+-# and recognize all the CPU types, system types and aliases
+-# that are meaningful with *any* GNU software.
+-# Each package is responsible for reporting which valid configurations
+-# it does not support. The user should be able to distinguish
+-# a failure to support a valid configuration from a meaningless
+-# configuration.
+-
+-# The goal of this file is to map all the various variations of a given
+-# machine specification into a single specification in the form:
+-# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
+-# or in some cases, the newer four-part form:
+-# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
+-# It is wrong to echo any other type of specification.
+-
+-me=`echo "$0" | sed -e 's,.*/,,'`
+-
+-usage="\
+-Usage: $0 [OPTION] CPU-MFR-OPSYS
+- $0 [OPTION] ALIAS
+-
+-Canonicalize a configuration name.
+-
+-Operation modes:
+- -h, --help print this help, then exit
+- -t, --time-stamp print date of last modification, then exit
+- -v, --version print version number, then exit
+-
+-Report bugs and patches to <config-patches@gnu.org>."
+-
+-version="\
+-GNU config.sub ($timestamp)
+-
+-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
+-Free Software Foundation, Inc.
+-
+-This is free software; see the source for copying conditions. There is NO
+-warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
+-
+-help="
+-Try \`$me --help' for more information."
+-
+-# Parse command line
+-while test $# -gt 0 ; do
+- case $1 in
+- --time-stamp | --time* | -t )
+- echo "$timestamp" ; exit 0 ;;
+- --version | -v )
+- echo "$version" ; exit 0 ;;
+- --help | --h* | -h )
+- echo "$usage"; exit 0 ;;
+- -- ) # Stop option processing
+- shift; break ;;
+- - ) # Use stdin as input.
+- break ;;
+- -* )
+- echo "$me: invalid option $1$help"
+- exit 1 ;;
+-
+- *local*)
+- # First pass through any local machine types.
+- echo $1
+- exit 0;;
+-
+- * )
+- break ;;
+- esac
+-done
+-
+-case $# in
+- 0) echo "$me: missing argument$help" >&2
+- exit 1;;
+- 1) ;;
+- *) echo "$me: too many arguments$help" >&2
+- exit 1;;
+-esac
+-
+-# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
+-# Here we must recognize all the valid KERNEL-OS combinations.
+-maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
+-case $maybe_os in
+- nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \
+- kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
+- os=-$maybe_os
+- basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
+- ;;
+- *)
+- basic_machine=`echo $1 | sed 's/-[^-]*$//'`
+- if [ $basic_machine != $1 ]
+- then os=`echo $1 | sed 's/.*-/-/'`
+- else os=; fi
+- ;;
+-esac
+-
+-### Let's recognize common machines as not being operating systems so
+-### that things like config.sub decstation-3100 work. We also
+-### recognize some manufacturers as not being operating systems, so we
+-### can provide default operating systems below.
+-case $os in
+- -sun*os*)
+- # Prevent following clause from handling this invalid input.
+- ;;
+- -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
+- -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
+- -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
+- -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
+- -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
+- -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
+- -apple | -axis | -knuth | -cray)
+- os=
+- basic_machine=$1
+- ;;
+- -sim | -cisco | -oki | -wec | -winbond)
+- os=
+- basic_machine=$1
+- ;;
+- -scout)
+- ;;
+- -wrs)
+- os=-vxworks
+- basic_machine=$1
+- ;;
+- -chorusos*)
+- os=-chorusos
+- basic_machine=$1
+- ;;
+- -chorusrdb)
+- os=-chorusrdb
+- basic_machine=$1
+- ;;
+- -hiux*)
+- os=-hiuxwe2
+- ;;
+- -sco5)
+- os=-sco3.2v5
+- basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+- ;;
+- -sco4)
+- os=-sco3.2v4
+- basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+- ;;
+- -sco3.2.[4-9]*)
+- os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
+- basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+- ;;
+- -sco3.2v[4-9]*)
+- # Don't forget version if it is 3.2v4 or newer.
+- basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+- ;;
+- -sco*)
+- os=-sco3.2v2
+- basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+- ;;
+- -udk*)
+- basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+- ;;
+- -isc)
+- os=-isc2.2
+- basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+- ;;
+- -clix*)
+- basic_machine=clipper-intergraph
+- ;;
+- -isc*)
+- basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+- ;;
+- -lynx*)
+- os=-lynxos
+- ;;
+- -ptx*)
+- basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
+- ;;
+- -windowsnt*)
+- os=`echo $os | sed -e 's/windowsnt/winnt/'`
+- ;;
+- -psos*)
+- os=-psos
+- ;;
+- -mint | -mint[0-9]*)
+- basic_machine=m68k-atari
+- os=-mint
+- ;;
+-esac
+-
+-# Decode aliases for certain CPU-COMPANY combinations.
+-case $basic_machine in
+- # Recognize the basic CPU types without company name.
+- # Some are omitted here because they have special meanings below.
+- 1750a | 580 \
+- | a29k \
+- | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
+- | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
+- | am33_2.0 \
+- | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
+- | c4x | clipper \
+- | d10v | d30v | dlx | dsp16xx \
+- | fr30 | frv \
+- | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
+- | i370 | i860 | i960 | ia64 \
+- | ip2k | iq2000 \
+- | m32r | m32rle | m68000 | m68k | m88k | maxq | mcore \
+- | mips | mipsbe | mipseb | mipsel | mipsle \
+- | mips16 \
+- | mips64 | mips64el \
+- | mips64vr | mips64vrel \
+- | mips64orion | mips64orionel \
+- | mips64vr4100 | mips64vr4100el \
+- | mips64vr4300 | mips64vr4300el \
+- | mips64vr5000 | mips64vr5000el \
+- | mipsisa32 | mipsisa32el \
+- | mipsisa32r2 | mipsisa32r2el \
+- | mipsisa64 | mipsisa64el \
+- | mipsisa64r2 | mipsisa64r2el \
+- | mipsisa64sb1 | mipsisa64sb1el \
+- | mipsisa64sr71k | mipsisa64sr71kel \
+- | mipstx39 | mipstx39el \
+- | mn10200 | mn10300 \
+- | msp430 \
+- | ns16k | ns32k \
+- | openrisc | or32 \
+- | pdp10 | pdp11 | pj | pjl \
+- | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
+- | pyramid \
+- | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
+- | sh64 | sh64le \
+- | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv8 | sparcv9 | sparcv9b \
+- | strongarm \
+- | tahoe | thumb | tic4x | tic80 | tron \
+- | v850 | v850e \
+- | we32k \
+- | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \
+- | z8k)
+- basic_machine=$basic_machine-unknown
+- ;;
+- m6811 | m68hc11 | m6812 | m68hc12)
+- # Motorola 68HC11/12.
+- basic_machine=$basic_machine-unknown
+- os=-none
+- ;;
+- m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
+- ;;
+-
+- # We use `pc' rather than `unknown'
+- # because (1) that's what they normally are, and
+- # (2) the word "unknown" tends to confuse beginning users.
+- i*86 | x86_64)
+- basic_machine=$basic_machine-pc
+- ;;
+- # Object if more than one company name word.
+- *-*-*)
+- echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
+- exit 1
+- ;;
+- # Recognize the basic CPU types with company name.
+- 580-* \
+- | a29k-* \
+- | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
+- | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
+- | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
+- | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
+- | avr-* \
+- | bs2000-* \
+- | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
+- | clipper-* | craynv-* | cydra-* \
+- | d10v-* | d30v-* | dlx-* \
+- | elxsi-* \
+- | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
+- | h8300-* | h8500-* \
+- | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
+- | i*86-* | i860-* | i960-* | ia64-* \
+- | ip2k-* | iq2000-* \
+- | m32r-* | m32rle-* \
+- | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
+- | m88110-* | m88k-* | maxq-* | mcore-* \
+- | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
+- | mips16-* \
+- | mips64-* | mips64el-* \
+- | mips64vr-* | mips64vrel-* \
+- | mips64orion-* | mips64orionel-* \
+- | mips64vr4100-* | mips64vr4100el-* \
+- | mips64vr4300-* | mips64vr4300el-* \
+- | mips64vr5000-* | mips64vr5000el-* \
+- | mipsisa32-* | mipsisa32el-* \
+- | mipsisa32r2-* | mipsisa32r2el-* \
+- | mipsisa64-* | mipsisa64el-* \
+- | mipsisa64r2-* | mipsisa64r2el-* \
+- | mipsisa64sb1-* | mipsisa64sb1el-* \
+- | mipsisa64sr71k-* | mipsisa64sr71kel-* \
+- | mipstx39-* | mipstx39el-* \
+- | mmix-* \
+- | msp430-* \
+- | none-* | np1-* | ns16k-* | ns32k-* \
+- | orion-* \
+- | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
+- | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
+- | pyramid-* \
+- | romp-* | rs6000-* \
+- | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
+- | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
+- | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
+- | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
+- | tahoe-* | thumb-* \
+- | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
+- | tron-* \
+- | v850-* | v850e-* | vax-* \
+- | we32k-* \
+- | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \
+- | xstormy16-* | xtensa-* \
+- | ymp-* \
+- | z8k-*)
+- ;;
+- # Recognize the various machine names and aliases which stand
+- # for a CPU type and a company and sometimes even an OS.
+- 386bsd)
+- basic_machine=i386-unknown
+- os=-bsd
+- ;;
+- 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
+- basic_machine=m68000-att
+- ;;
+- 3b*)
+- basic_machine=we32k-att
+- ;;
+- a29khif)
+- basic_machine=a29k-amd
+- os=-udi
+- ;;
+- abacus)
+- basic_machine=abacus-unknown
+- ;;
+- adobe68k)
+- basic_machine=m68010-adobe
+- os=-scout
+- ;;
+- alliant | fx80)
+- basic_machine=fx80-alliant
+- ;;
+- altos | altos3068)
+- basic_machine=m68k-altos
+- ;;
+- am29k)
+- basic_machine=a29k-none
+- os=-bsd
+- ;;
+- amd64)
+- basic_machine=x86_64-pc
+- ;;
+- amd64-*)
+- basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
+- ;;
+- amdahl)
+- basic_machine=580-amdahl
+- os=-sysv
+- ;;
+- amiga | amiga-*)
+- basic_machine=m68k-unknown
+- ;;
+- amigaos | amigados)
+- basic_machine=m68k-unknown
+- os=-amigaos
+- ;;
+- amigaunix | amix)
+- basic_machine=m68k-unknown
+- os=-sysv4
+- ;;
+- apollo68)
+- basic_machine=m68k-apollo
+- os=-sysv
+- ;;
+- apollo68bsd)
+- basic_machine=m68k-apollo
+- os=-bsd
+- ;;
+- aux)
+- basic_machine=m68k-apple
+- os=-aux
+- ;;
+- balance)
+- basic_machine=ns32k-sequent
+- os=-dynix
+- ;;
+- c90)
+- basic_machine=c90-cray
+- os=-unicos
+- ;;
+- convex-c1)
+- basic_machine=c1-convex
+- os=-bsd
+- ;;
+- convex-c2)
+- basic_machine=c2-convex
+- os=-bsd
+- ;;
+- convex-c32)
+- basic_machine=c32-convex
+- os=-bsd
+- ;;
+- convex-c34)
+- basic_machine=c34-convex
+- os=-bsd
+- ;;
+- convex-c38)
+- basic_machine=c38-convex
+- os=-bsd
+- ;;
+- cray | j90)
+- basic_machine=j90-cray
+- os=-unicos
+- ;;
+- craynv)
+- basic_machine=craynv-cray
+- os=-unicosmp
+- ;;
+- cr16c)
+- basic_machine=cr16c-unknown
+- os=-elf
+- ;;
+- crds | unos)
+- basic_machine=m68k-crds
+- ;;
+- crisv32 | crisv32-* | etraxfs*)
+- basic_machine=crisv32-axis
+- ;;
+- cris | cris-* | etrax*)
+- basic_machine=cris-axis
+- ;;
+- crx)
+- basic_machine=crx-unknown
+- os=-elf
+- ;;
+- da30 | da30-*)
+- basic_machine=m68k-da30
+- ;;
+- decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
+- basic_machine=mips-dec
+- ;;
+- decsystem10* | dec10*)
+- basic_machine=pdp10-dec
+- os=-tops10
+- ;;
+- decsystem20* | dec20*)
+- basic_machine=pdp10-dec
+- os=-tops20
+- ;;
+- delta | 3300 | motorola-3300 | motorola-delta \
+- | 3300-motorola | delta-motorola)
+- basic_machine=m68k-motorola
+- ;;
+- delta88)
+- basic_machine=m88k-motorola
+- os=-sysv3
+- ;;
+- djgpp)
+- basic_machine=i586-pc
+- os=-msdosdjgpp
+- ;;
+- dpx20 | dpx20-*)
+- basic_machine=rs6000-bull
+- os=-bosx
+- ;;
+- dpx2* | dpx2*-bull)
+- basic_machine=m68k-bull
+- os=-sysv3
+- ;;
+- ebmon29k)
+- basic_machine=a29k-amd
+- os=-ebmon
+- ;;
+- elxsi)
+- basic_machine=elxsi-elxsi
+- os=-bsd
+- ;;
+- encore | umax | mmax)
+- basic_machine=ns32k-encore
+- ;;
+- es1800 | OSE68k | ose68k | ose | OSE)
+- basic_machine=m68k-ericsson
+- os=-ose
+- ;;
+- fx2800)
+- basic_machine=i860-alliant
+- ;;
+- genix)
+- basic_machine=ns32k-ns
+- ;;
+- gmicro)
+- basic_machine=tron-gmicro
+- os=-sysv
+- ;;
+- go32)
+- basic_machine=i386-pc
+- os=-go32
+- ;;
+- h3050r* | hiux*)
+- basic_machine=hppa1.1-hitachi
+- os=-hiuxwe2
+- ;;
+- h8300hms)
+- basic_machine=h8300-hitachi
+- os=-hms
+- ;;
+- h8300xray)
+- basic_machine=h8300-hitachi
+- os=-xray
+- ;;
+- h8500hms)
+- basic_machine=h8500-hitachi
+- os=-hms
+- ;;
+- harris)
+- basic_machine=m88k-harris
+- os=-sysv3
+- ;;
+- hp300-*)
+- basic_machine=m68k-hp
+- ;;
+- hp300bsd)
+- basic_machine=m68k-hp
+- os=-bsd
+- ;;
+- hp300hpux)
+- basic_machine=m68k-hp
+- os=-hpux
+- ;;
+- hp3k9[0-9][0-9] | hp9[0-9][0-9])
+- basic_machine=hppa1.0-hp
+- ;;
+- hp9k2[0-9][0-9] | hp9k31[0-9])
+- basic_machine=m68000-hp
+- ;;
+- hp9k3[2-9][0-9])
+- basic_machine=m68k-hp
+- ;;
+- hp9k6[0-9][0-9] | hp6[0-9][0-9])
+- basic_machine=hppa1.0-hp
+- ;;
+- hp9k7[0-79][0-9] | hp7[0-79][0-9])
+- basic_machine=hppa1.1-hp
+- ;;
+- hp9k78[0-9] | hp78[0-9])
+- # FIXME: really hppa2.0-hp
+- basic_machine=hppa1.1-hp
+- ;;
+- hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
+- # FIXME: really hppa2.0-hp
+- basic_machine=hppa1.1-hp
+- ;;
+- hp9k8[0-9][13679] | hp8[0-9][13679])
+- basic_machine=hppa1.1-hp
+- ;;
+- hp9k8[0-9][0-9] | hp8[0-9][0-9])
+- basic_machine=hppa1.0-hp
+- ;;
+- hppa-next)
+- os=-nextstep3
+- ;;
+- hppaosf)
+- basic_machine=hppa1.1-hp
+- os=-osf
+- ;;
+- hppro)
+- basic_machine=hppa1.1-hp
+- os=-proelf
+- ;;
+- i370-ibm* | ibm*)
+- basic_machine=i370-ibm
+- ;;
+-# I'm not sure what "Sysv32" means. Should this be sysv3.2?
+- i*86v32)
+- basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
+- os=-sysv32
+- ;;
+- i*86v4*)
+- basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
+- os=-sysv4
+- ;;
+- i*86v)
+- basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
+- os=-sysv
+- ;;
+- i*86sol2)
+- basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
+- os=-solaris2
+- ;;
+- i386mach)
+- basic_machine=i386-mach
+- os=-mach
+- ;;
+- i386-vsta | vsta)
+- basic_machine=i386-unknown
+- os=-vsta
+- ;;
+- iris | iris4d)
+- basic_machine=mips-sgi
+- case $os in
+- -irix*)
+- ;;
+- *)
+- os=-irix4
+- ;;
+- esac
+- ;;
+- isi68 | isi)
+- basic_machine=m68k-isi
+- os=-sysv
+- ;;
+- m88k-omron*)
+- basic_machine=m88k-omron
+- ;;
+- magnum | m3230)
+- basic_machine=mips-mips
+- os=-sysv
+- ;;
+- merlin)
+- basic_machine=ns32k-utek
+- os=-sysv
+- ;;
+- mingw32)
+- basic_machine=i386-pc
+- os=-mingw32
+- ;;
+- miniframe)
+- basic_machine=m68000-convergent
+- ;;
+- *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
+- basic_machine=m68k-atari
+- os=-mint
+- ;;
+- mips3*-*)
+- basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
+- ;;
+- mips3*)
+- basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
+- ;;
+- monitor)
+- basic_machine=m68k-rom68k
+- os=-coff
+- ;;
+- morphos)
+- basic_machine=powerpc-unknown
+- os=-morphos
+- ;;
+- msdos)
+- basic_machine=i386-pc
+- os=-msdos
+- ;;
+- mvs)
+- basic_machine=i370-ibm
+- os=-mvs
+- ;;
+- ncr3000)
+- basic_machine=i486-ncr
+- os=-sysv4
+- ;;
+- netbsd386)
+- basic_machine=i386-unknown
+- os=-netbsd
+- ;;
+- netwinder)
+- basic_machine=armv4l-rebel
+- os=-linux
+- ;;
+- news | news700 | news800 | news900)
+- basic_machine=m68k-sony
+- os=-newsos
+- ;;
+- news1000)
+- basic_machine=m68030-sony
+- os=-newsos
+- ;;
+- news-3600 | risc-news)
+- basic_machine=mips-sony
+- os=-newsos
+- ;;
+- necv70)
+- basic_machine=v70-nec
+- os=-sysv
+- ;;
+- next | m*-next )
+- basic_machine=m68k-next
+- case $os in
+- -nextstep* )
+- ;;
+- -ns2*)
+- os=-nextstep2
+- ;;
+- *)
+- os=-nextstep3
+- ;;
+- esac
+- ;;
+- nh3000)
+- basic_machine=m68k-harris
+- os=-cxux
+- ;;
+- nh[45]000)
+- basic_machine=m88k-harris
+- os=-cxux
+- ;;
+- nindy960)
+- basic_machine=i960-intel
+- os=-nindy
+- ;;
+- mon960)
+- basic_machine=i960-intel
+- os=-mon960
+- ;;
+- nonstopux)
+- basic_machine=mips-compaq
+- os=-nonstopux
+- ;;
+- np1)
+- basic_machine=np1-gould
+- ;;
+- nsr-tandem)
+- basic_machine=nsr-tandem
+- ;;
+- op50n-* | op60c-*)
+- basic_machine=hppa1.1-oki
+- os=-proelf
+- ;;
+- or32 | or32-*)
+- basic_machine=or32-unknown
+- os=-coff
+- ;;
+- os400)
+- basic_machine=powerpc-ibm
+- os=-os400
+- ;;
+- OSE68000 | ose68000)
+- basic_machine=m68000-ericsson
+- os=-ose
+- ;;
+- os68k)
+- basic_machine=m68k-none
+- os=-os68k
+- ;;
+- pa-hitachi)
+- basic_machine=hppa1.1-hitachi
+- os=-hiuxwe2
+- ;;
+- paragon)
+- basic_machine=i860-intel
+- os=-osf
+- ;;
+- pbd)
+- basic_machine=sparc-tti
+- ;;
+- pbb)
+- basic_machine=m68k-tti
+- ;;
+- pc532 | pc532-*)
+- basic_machine=ns32k-pc532
+- ;;
+- pentium | p5 | k5 | k6 | nexgen | viac3)
+- basic_machine=i586-pc
+- ;;
+- pentiumpro | p6 | 6x86 | athlon | athlon_*)
+- basic_machine=i686-pc
+- ;;
+- pentiumii | pentium2 | pentiumiii | pentium3)
+- basic_machine=i686-pc
+- ;;
+- pentium4)
+- basic_machine=i786-pc
+- ;;
+- pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
+- basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
+- ;;
+- pentiumpro-* | p6-* | 6x86-* | athlon-*)
+- basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
+- ;;
+- pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
+- basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
+- ;;
+- pentium4-*)
+- basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
+- ;;
+- pn)
+- basic_machine=pn-gould
+- ;;
+- power) basic_machine=power-ibm
+- ;;
+- ppc) basic_machine=powerpc-unknown
+- ;;
+- ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
+- ;;
+- ppcle | powerpclittle | ppc-le | powerpc-little)
+- basic_machine=powerpcle-unknown
+- ;;
+- ppcle-* | powerpclittle-*)
+- basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
+- ;;
+- ppc64) basic_machine=powerpc64-unknown
+- ;;
+- ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
+- ;;
+- ppc64le | powerpc64little | ppc64-le | powerpc64-little)
+- basic_machine=powerpc64le-unknown
+- ;;
+- ppc64le-* | powerpc64little-*)
+- basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
+- ;;
+- ps2)
+- basic_machine=i386-ibm
+- ;;
+- pw32)
+- basic_machine=i586-unknown
+- os=-pw32
+- ;;
+- rom68k)
+- basic_machine=m68k-rom68k
+- os=-coff
+- ;;
+- rm[46]00)
+- basic_machine=mips-siemens
+- ;;
+- rtpc | rtpc-*)
+- basic_machine=romp-ibm
+- ;;
+- s390 | s390-*)
+- basic_machine=s390-ibm
+- ;;
+- s390x | s390x-*)
+- basic_machine=s390x-ibm
+- ;;
+- sa29200)
+- basic_machine=a29k-amd
+- os=-udi
+- ;;
+- sb1)
+- basic_machine=mipsisa64sb1-unknown
+- ;;
+- sb1el)
+- basic_machine=mipsisa64sb1el-unknown
+- ;;
+- sei)
+- basic_machine=mips-sei
+- os=-seiux
+- ;;
+- sequent)
+- basic_machine=i386-sequent
+- ;;
+- sh)
+- basic_machine=sh-hitachi
+- os=-hms
+- ;;
+- sh64)
+- basic_machine=sh64-unknown
+- ;;
+- sparclite-wrs | simso-wrs)
+- basic_machine=sparclite-wrs
+- os=-vxworks
+- ;;
+- sps7)
+- basic_machine=m68k-bull
+- os=-sysv2
+- ;;
+- spur)
+- basic_machine=spur-unknown
+- ;;
+- st2000)
+- basic_machine=m68k-tandem
+- ;;
+- stratus)
+- basic_machine=i860-stratus
+- os=-sysv4
+- ;;
+- sun2)
+- basic_machine=m68000-sun
+- ;;
+- sun2os3)
+- basic_machine=m68000-sun
+- os=-sunos3
+- ;;
+- sun2os4)
+- basic_machine=m68000-sun
+- os=-sunos4
+- ;;
+- sun3os3)
+- basic_machine=m68k-sun
+- os=-sunos3
+- ;;
+- sun3os4)
+- basic_machine=m68k-sun
+- os=-sunos4
+- ;;
+- sun4os3)
+- basic_machine=sparc-sun
+- os=-sunos3
+- ;;
+- sun4os4)
+- basic_machine=sparc-sun
+- os=-sunos4
+- ;;
+- sun4sol2)
+- basic_machine=sparc-sun
+- os=-solaris2
+- ;;
+- sun3 | sun3-*)
+- basic_machine=m68k-sun
+- ;;
+- sun4)
+- basic_machine=sparc-sun
+- ;;
+- sun386 | sun386i | roadrunner)
+- basic_machine=i386-sun
+- ;;
+- sv1)
+- basic_machine=sv1-cray
+- os=-unicos
+- ;;
+- symmetry)
+- basic_machine=i386-sequent
+- os=-dynix
+- ;;
+- t3e)
+- basic_machine=alphaev5-cray
+- os=-unicos
+- ;;
+- t90)
+- basic_machine=t90-cray
+- os=-unicos
+- ;;
+- tic54x | c54x*)
+- basic_machine=tic54x-unknown
+- os=-coff
+- ;;
+- tic55x | c55x*)
+- basic_machine=tic55x-unknown
+- os=-coff
+- ;;
+- tic6x | c6x*)
+- basic_machine=tic6x-unknown
+- os=-coff
+- ;;
+- tx39)
+- basic_machine=mipstx39-unknown
+- ;;
+- tx39el)
+- basic_machine=mipstx39el-unknown
+- ;;
+- toad1)
+- basic_machine=pdp10-xkl
+- os=-tops20
+- ;;
+- tower | tower-32)
+- basic_machine=m68k-ncr
+- ;;
+- tpf)
+- basic_machine=s390x-ibm
+- os=-tpf
+- ;;
+- udi29k)
+- basic_machine=a29k-amd
+- os=-udi
+- ;;
+- ultra3)
+- basic_machine=a29k-nyu
+- os=-sym1
+- ;;
+- v810 | necv810)
+- basic_machine=v810-nec
+- os=-none
+- ;;
+- vaxv)
+- basic_machine=vax-dec
+- os=-sysv
+- ;;
+- vms)
+- basic_machine=vax-dec
+- os=-vms
+- ;;
+- vpp*|vx|vx-*)
+- basic_machine=f301-fujitsu
+- ;;
+- vxworks960)
+- basic_machine=i960-wrs
+- os=-vxworks
+- ;;
+- vxworks68)
+- basic_machine=m68k-wrs
+- os=-vxworks
+- ;;
+- vxworks29k)
+- basic_machine=a29k-wrs
+- os=-vxworks
+- ;;
+- w65*)
+- basic_machine=w65-wdc
+- os=-none
+- ;;
+- w89k-*)
+- basic_machine=hppa1.1-winbond
+- os=-proelf
+- ;;
+- xbox)
+- basic_machine=i686-pc
+- os=-mingw32
+- ;;
+- xps | xps100)
+- basic_machine=xps100-honeywell
+- ;;
+- ymp)
+- basic_machine=ymp-cray
+- os=-unicos
+- ;;
+- z8k-*-coff)
+- basic_machine=z8k-unknown
+- os=-sim
+- ;;
+- none)
+- basic_machine=none-none
+- os=-none
+- ;;
+-
+-# Here we handle the default manufacturer of certain CPU types. It is in
+-# some cases the only manufacturer, in others, it is the most popular.
+- w89k)
+- basic_machine=hppa1.1-winbond
+- ;;
+- op50n)
+- basic_machine=hppa1.1-oki
+- ;;
+- op60c)
+- basic_machine=hppa1.1-oki
+- ;;
+- romp)
+- basic_machine=romp-ibm
+- ;;
+- mmix)
+- basic_machine=mmix-knuth
+- ;;
+- rs6000)
+- basic_machine=rs6000-ibm
+- ;;
+- vax)
+- basic_machine=vax-dec
+- ;;
+- pdp10)
+- # there are many clones, so DEC is not a safe bet
+- basic_machine=pdp10-unknown
+- ;;
+- pdp11)
+- basic_machine=pdp11-dec
+- ;;
+- we32k)
+- basic_machine=we32k-att
+- ;;
+- sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele)
+- basic_machine=sh-unknown
+- ;;
+- sh64)
+- basic_machine=sh64-unknown
+- ;;
+- sparc | sparcv8 | sparcv9 | sparcv9b)
+- basic_machine=sparc-sun
+- ;;
+- cydra)
+- basic_machine=cydra-cydrome
+- ;;
+- orion)
+- basic_machine=orion-highlevel
+- ;;
+- orion105)
+- basic_machine=clipper-highlevel
+- ;;
+- mac | mpw | mac-mpw)
+- basic_machine=m68k-apple
+- ;;
+- pmac | pmac-mpw)
+- basic_machine=powerpc-apple
+- ;;
+- *-unknown)
+- # Make sure to match an already-canonicalized machine name.
+- ;;
+- *)
+- echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
+- exit 1
+- ;;
+-esac
+-
+-# Here we canonicalize certain aliases for manufacturers.
+-case $basic_machine in
+- *-digital*)
+- basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
+- ;;
+- *-commodore*)
+- basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
+- ;;
+- *)
+- ;;
+-esac
+-
+-# Decode manufacturer-specific aliases for certain operating systems.
+-
+-if [ x"$os" != x"" ]
+-then
+-case $os in
+- # First match some system type aliases
+- # that might get confused with valid system types.
+- # -solaris* is a basic system type, with this one exception.
+- -solaris1 | -solaris1.*)
+- os=`echo $os | sed -e 's|solaris1|sunos4|'`
+- ;;
+- -solaris)
+- os=-solaris2
+- ;;
+- -svr4*)
+- os=-sysv4
+- ;;
+- -unixware*)
+- os=-sysv4.2uw
+- ;;
+- -gnu/linux*)
+- os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
+- ;;
+- # First accept the basic system types.
+- # The portable systems comes first.
+- # Each alternative MUST END IN A *, to match a version number.
+- # -sysv* is not here because it comes later, after sysvr4.
+- -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
+- | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
+- | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
+- | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
+- | -aos* \
+- | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
+- | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
+- | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \
+- | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
+- | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
+- | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
+- | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
+- | -chorusos* | -chorusrdb* \
+- | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
+- | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \
+- | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
+- | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
+- | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
+- | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
+- | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
+- | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly*)
+- # Remember, each alternative MUST END IN *, to match a version number.
+- ;;
+- -qnx*)
+- case $basic_machine in
+- x86-* | i*86-*)
+- ;;
+- *)
+- os=-nto$os
+- ;;
+- esac
+- ;;
+- -nto-qnx*)
+- ;;
+- -nto*)
+- os=`echo $os | sed -e 's|nto|nto-qnx|'`
+- ;;
+- -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
+- | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
+- | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
+- ;;
+- -mac*)
+- os=`echo $os | sed -e 's|mac|macos|'`
+- ;;
+- -linux-dietlibc)
+- os=-linux-dietlibc
+- ;;
+- -linux*)
+- os=`echo $os | sed -e 's|linux|linux-gnu|'`
+- ;;
+- -sunos5*)
+- os=`echo $os | sed -e 's|sunos5|solaris2|'`
+- ;;
+- -sunos6*)
+- os=`echo $os | sed -e 's|sunos6|solaris3|'`
+- ;;
+- -opened*)
+- os=-openedition
+- ;;
+- -os400*)
+- os=-os400
+- ;;
+- -wince*)
+- os=-wince
+- ;;
+- -osfrose*)
+- os=-osfrose
+- ;;
+- -osf*)
+- os=-osf
+- ;;
+- -utek*)
+- os=-bsd
+- ;;
+- -dynix*)
+- os=-bsd
+- ;;
+- -acis*)
+- os=-aos
+- ;;
+- -atheos*)
+- os=-atheos
+- ;;
+- -syllable*)
+- os=-syllable
+- ;;
+- -386bsd)
+- os=-bsd
+- ;;
+- -ctix* | -uts*)
+- os=-sysv
+- ;;
+- -nova*)
+- os=-rtmk-nova
+- ;;
+- -ns2 )
+- os=-nextstep2
+- ;;
+- -nsk*)
+- os=-nsk
+- ;;
+- # Preserve the version number of sinix5.
+- -sinix5.*)
+- os=`echo $os | sed -e 's|sinix|sysv|'`
+- ;;
+- -sinix*)
+- os=-sysv4
+- ;;
+- -tpf*)
+- os=-tpf
+- ;;
+- -triton*)
+- os=-sysv3
+- ;;
+- -oss*)
+- os=-sysv3
+- ;;
+- -svr4)
+- os=-sysv4
+- ;;
+- -svr3)
+- os=-sysv3
+- ;;
+- -sysvr4)
+- os=-sysv4
+- ;;
+- # This must come after -sysvr4.
+- -sysv*)
+- ;;
+- -ose*)
+- os=-ose
+- ;;
+- -es1800*)
+- os=-ose
+- ;;
+- -xenix)
+- os=-xenix
+- ;;
+- -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
+- os=-mint
+- ;;
+- -aros*)
+- os=-aros
+- ;;
+- -kaos*)
+- os=-kaos
+- ;;
+- -zvmoe)
+- os=-zvmoe
+- ;;
+- -none)
+- ;;
+- *)
+- # Get rid of the `-' at the beginning of $os.
+- os=`echo $os | sed 's/[^-]*-//'`
+- echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
+- exit 1
+- ;;
+-esac
+-else
+-
+-# Here we handle the default operating systems that come with various machines.
+-# The value should be what the vendor currently ships out the door with their
+-# machine or put another way, the most popular os provided with the machine.
+-
+-# Note that if you're going to try to match "-MANUFACTURER" here (say,
+-# "-sun"), then you have to tell the case statement up towards the top
+-# that MANUFACTURER isn't an operating system. Otherwise, code above
+-# will signal an error saying that MANUFACTURER isn't an operating
+-# system, and we'll never get to this point.
+-
+-case $basic_machine in
+- *-acorn)
+- os=-riscix1.2
+- ;;
+- arm*-rebel)
+- os=-linux
+- ;;
+- arm*-semi)
+- os=-aout
+- ;;
+- c4x-* | tic4x-*)
+- os=-coff
+- ;;
+- # This must come before the *-dec entry.
+- pdp10-*)
+- os=-tops20
+- ;;
+- pdp11-*)
+- os=-none
+- ;;
+- *-dec | vax-*)
+- os=-ultrix4.2
+- ;;
+- m68*-apollo)
+- os=-domain
+- ;;
+- i386-sun)
+- os=-sunos4.0.2
+- ;;
+- m68000-sun)
+- os=-sunos3
+- # This also exists in the configure program, but was not the
+- # default.
+- # os=-sunos4
+- ;;
+- m68*-cisco)
+- os=-aout
+- ;;
+- mips*-cisco)
+- os=-elf
+- ;;
+- mips*-*)
+- os=-elf
+- ;;
+- or32-*)
+- os=-coff
+- ;;
+- *-tti) # must be before sparc entry or we get the wrong os.
+- os=-sysv3
+- ;;
+- sparc-* | *-sun)
+- os=-sunos4.1.1
+- ;;
+- *-be)
+- os=-beos
+- ;;
+- *-ibm)
+- os=-aix
+- ;;
+- *-knuth)
+- os=-mmixware
+- ;;
+- *-wec)
+- os=-proelf
+- ;;
+- *-winbond)
+- os=-proelf
+- ;;
+- *-oki)
+- os=-proelf
+- ;;
+- *-hp)
+- os=-hpux
+- ;;
+- *-hitachi)
+- os=-hiux
+- ;;
+- i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
+- os=-sysv
+- ;;
+- *-cbm)
+- os=-amigaos
+- ;;
+- *-dg)
+- os=-dgux
+- ;;
+- *-dolphin)
+- os=-sysv3
+- ;;
+- m68k-ccur)
+- os=-rtu
+- ;;
+- m88k-omron*)
+- os=-luna
+- ;;
+- *-next )
+- os=-nextstep
+- ;;
+- *-sequent)
+- os=-ptx
+- ;;
+- *-crds)
+- os=-unos
+- ;;
+- *-ns)
+- os=-genix
+- ;;
+- i370-*)
+- os=-mvs
+- ;;
+- *-next)
+- os=-nextstep3
+- ;;
+- *-gould)
+- os=-sysv
+- ;;
+- *-highlevel)
+- os=-bsd
+- ;;
+- *-encore)
+- os=-bsd
+- ;;
+- *-sgi)
+- os=-irix
+- ;;
+- *-siemens)
+- os=-sysv4
+- ;;
+- *-masscomp)
+- os=-rtu
+- ;;
+- f30[01]-fujitsu | f700-fujitsu)
+- os=-uxpv
+- ;;
+- *-rom68k)
+- os=-coff
+- ;;
+- *-*bug)
+- os=-coff
+- ;;
+- *-apple)
+- os=-macos
+- ;;
+- *-atari*)
+- os=-mint
+- ;;
+- *)
+- os=-none
+- ;;
+-esac
+-fi
+-
+-# Here we handle the case where we know the os, and the CPU type, but not the
+-# manufacturer. We pick the logical manufacturer.
+-vendor=unknown
+-case $basic_machine in
+- *-unknown)
+- case $os in
+- -riscix*)
+- vendor=acorn
+- ;;
+- -sunos*)
+- vendor=sun
+- ;;
+- -aix*)
+- vendor=ibm
+- ;;
+- -beos*)
+- vendor=be
+- ;;
+- -hpux*)
+- vendor=hp
+- ;;
+- -mpeix*)
+- vendor=hp
+- ;;
+- -hiux*)
+- vendor=hitachi
+- ;;
+- -unos*)
+- vendor=crds
+- ;;
+- -dgux*)
+- vendor=dg
+- ;;
+- -luna*)
+- vendor=omron
+- ;;
+- -genix*)
+- vendor=ns
+- ;;
+- -mvs* | -opened*)
+- vendor=ibm
+- ;;
+- -os400*)
+- vendor=ibm
+- ;;
+- -ptx*)
+- vendor=sequent
+- ;;
+- -tpf*)
+- vendor=ibm
+- ;;
+- -vxsim* | -vxworks* | -windiss*)
+- vendor=wrs
+- ;;
+- -aux*)
+- vendor=apple
+- ;;
+- -hms*)
+- vendor=hitachi
+- ;;
+- -mpw* | -macos*)
+- vendor=apple
+- ;;
+- -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
+- vendor=atari
+- ;;
+- -vos*)
+- vendor=stratus
+- ;;
+- esac
+- basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
+- ;;
+-esac
+-
+-echo $basic_machine$os
+-exit 0
+-
+-# Local variables:
+-# eval: (add-hook 'write-file-hooks 'time-stamp)
+-# time-stamp-start: "timestamp='"
+-# time-stamp-format: "%:y-%02m-%02d"
+-# time-stamp-end: "'"
+-# End:
+diff --git a/configure-clanton.sh b/configure-clanton.sh
+new file mode 100755
+index 0000000..0a754fb
+--- /dev/null
++++ b/configure-clanton.sh
+@@ -0,0 +1,26 @@
++#!/bin/sh
++
++die()
++{
++ printf 'Fatal: '
++ printf "$@"
++ exit 1
++}
++
++# Points to the directory where "crt0-efi-ia32.o" is (e.g., /usr/lib32)
++# Can be overriden on the command line: GNUEFI_LIBDIR=/usr/lib32 ./configure ...
++: ${GNUEFI_LIBDIR:=/p/clanton/users/software/clanton-target-libs/installroot/usr/local/lib}
++
++[ -d "${GNUEFI_LIBDIR}" ] || die 'GNUEFI_LIBDIR=%s not found\n' "${GNUEFI_LIBDIR}"
++
++
++# Yocto's environment-setup-i586-poky-linux-uclibc defines a CC looking like this:
++# export CC='gcc -m32 -march=i586'
++$CC --version || die 'CC undefined or not pointing to a compiler\n'
++
++
++# Append to generic CFLAGS from environment-setup-i586-poky-linux-uclibc
++# Just like the GRUB.bb recipe does
++export CFLAGS="$CFLAGS -Os -fno-strict-aliasing -Wall -Werror -Wno-shadow -Wno-unused -Wno-pointer-sign -DGRUB_CLN_DEBUG=1 -DINTEL_CLN_TEST=1"
++
++./configure --host=i586-poky-linux-uclibc --without-curses --disable-auto-linux-mem-opt --with-platform=efi --libdir="${GNUEFI_LIBDIR}"
+diff --git a/configure.in b/configure.in
+index e9745e6..9fdd3a3 100644
+--- a/configure.in
++++ b/configure.in
+@@ -63,7 +63,7 @@ if test "x$platform" = xefi; then
+ AC_SUBST(EFI_ARCH)
+ fi
+
+-gnuefi_path=${libdir}/gnuefi
++gnuefi_path=${libdir}
+ gnuefi_crt0=${gnuefi_path}/crt0-efi-${EFI_ARCH}.o
+ if ! test -f $gnuefi_crt0 ; then
+ gnuefi_crt0=crt0-efi.o
+@@ -177,7 +177,7 @@ if test "x$ac_cv_prog_gcc" = xyes; then
+ fi
+ STAGE2_CFLAGS="$STAGE2_CFLAGS -isystem `$CC -print-file-name=include`"
+
+-LIBGCC=$(gcc $CFLAGS -static-libgcc -print-libgcc-file-name)
++LIBGCC=$($CC $CFLAGS -static-libgcc -print-libgcc-file-name)
+ AC_SUBST(LIBGCC)
+
+ LOADER_LDFLAGS="-Wl,--build-id=none ${LIBGCC}"
+@@ -285,7 +285,7 @@ AC_CHECK_LIB(util, opendisk, [GRUB_LIBS="$GRUB_LIBS -lutil"
+
+ # Unless the user specify --without-curses, check for curses.
+ if test "x$with_curses" != "xno"; then
+- AC_CHECK_LIB(ncurses, wgetch, [GRUB_LIBS="$GRUB_LIBS -Wl,-Bstatic -lncurses -ltinfo -Wl,-Bdynamic"
++ AC_CHECK_LIB(ncurses, wgetch, [GRUB_LIBS="$GRUB_LIBS -Wl,-Bstatic -lncurses -Wl,-Bdynamic"
+ AC_DEFINE(HAVE_LIBCURSES, 1, [Define if you have a curses library])],
+ [AC_CHECK_LIB(curses, wgetch, [GRUB_LIBS="$GRUB_LIBS -Wl,-Bstatic -lcurses -Wl,-Bdynamic"
+ AC_DEFINE(HAVE_LIBCURSES, 1, [Define if you have a curses library])])])
+diff --git a/docs/Makefile.in b/docs/Makefile.in
+deleted file mode 100644
+index f350fcd..0000000
+--- a/docs/Makefile.in
++++ /dev/null
+@@ -1,876 +0,0 @@
+-# Makefile.in generated by automake 1.10 from Makefile.am.
+-# @configure_input@
+-
+-# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+-# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
+-# This Makefile.in is free software; the Free Software Foundation
+-# gives unlimited permission to copy and/or distribute it,
+-# with or without modifications, as long as this notice is preserved.
+-
+-# This program is distributed in the hope that it will be useful,
+-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+-# PARTICULAR PURPOSE.
+-
+-@SET_MAKE@
+-
+-
+-VPATH = @srcdir@
+-pkgdatadir = $(datadir)/@PACKAGE@
+-pkglibdir = $(libdir)/@PACKAGE@
+-pkgincludedir = $(includedir)/@PACKAGE@
+-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+-install_sh_DATA = $(install_sh) -c -m 644
+-install_sh_PROGRAM = $(install_sh) -c
+-install_sh_SCRIPT = $(install_sh) -c
+-INSTALL_HEADER = $(INSTALL_DATA)
+-transform = $(program_transform_name)
+-NORMAL_INSTALL = :
+-PRE_INSTALL = :
+-POST_INSTALL = :
+-NORMAL_UNINSTALL = :
+-PRE_UNINSTALL = :
+-POST_UNINSTALL = :
+-build_triplet = @build@
+-host_triplet = @host@
+-EXTRA_PROGRAMS = kernel$(EXEEXT)
+-@BUILD_EXAMPLE_KERNEL_TRUE@noinst_PROGRAMS = kernel$(EXEEXT)
+-subdir = docs
+-DIST_COMMON = $(grub_TEXINFOS) $(multiboot_TEXINFOS) \
+- $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
+- $(srcdir)/stamp-vti $(srcdir)/version.texi mdate-sh \
+- texinfo.tex
+-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+-am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
+- $(top_srcdir)/configure.in
+-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+- $(ACLOCAL_M4)
+-mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
+-CONFIG_HEADER = $(top_builddir)/config.h
+-CONFIG_CLEAN_FILES =
+-PROGRAMS = $(noinst_PROGRAMS)
+-am__kernel_SOURCES_DIST = boot.S kernel.c multiboot.h
+-am__objects_1 = boot.$(OBJEXT) kernel-kernel.$(OBJEXT)
+-@BUILD_EXAMPLE_KERNEL_TRUE@am_kernel_OBJECTS = $(am__objects_1)
+-kernel_OBJECTS = $(am_kernel_OBJECTS)
+-kernel_LDADD = $(LDADD)
+-kernel_LINK = $(CCLD) $(kernel_CFLAGS) $(CFLAGS) $(kernel_LDFLAGS) \
+- $(LDFLAGS) -o $@
+-SCRIPTS = $(noinst_SCRIPTS)
+-DEFAULT_INCLUDES = -I. -I$(top_builddir)@am__isrc@
+-depcomp = $(SHELL) $(top_srcdir)/depcomp
+-am__depfiles_maybe = depfiles
+-CPPASCOMPILE = $(CCAS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
+- $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CCASFLAGS) $(CCASFLAGS)
+-COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
+- $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+-CCLD = $(CC)
+-LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
+-SOURCES = $(kernel_SOURCES)
+-DIST_SOURCES = $(am__kernel_SOURCES_DIST)
+-INFO_DEPS = $(srcdir)/grub.info $(srcdir)/multiboot.info
+-am__TEXINFO_TEX_DIR = $(srcdir)
+-DVIS = grub.dvi multiboot.dvi
+-PDFS = grub.pdf multiboot.pdf
+-PSS = grub.ps multiboot.ps
+-HTMLS = grub.html multiboot.html
+-TEXINFOS = grub.texi multiboot.texi
+-TEXI2DVI = texi2dvi
+-TEXI2PDF = $(TEXI2DVI) --pdf --batch
+-MAKEINFOHTML = $(MAKEINFO) --html
+-AM_MAKEINFOHTMLFLAGS = $(AM_MAKEINFOFLAGS)
+-DVIPS = dvips
+-am__installdirs = "$(DESTDIR)$(infodir)" "$(DESTDIR)$(man1dir)" \
+- "$(DESTDIR)$(man8dir)"
+-am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
+-am__vpath_adj = case $$p in \
+- $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
+- *) f=$$p;; \
+- esac;
+-am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
+-man1dir = $(mandir)/man1
+-man8dir = $(mandir)/man8
+-NROFF = nroff
+-MANS = $(man_MANS)
+-ETAGS = etags
+-CTAGS = ctags
+-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+-ACLOCAL = @ACLOCAL@
+-AMTAR = @AMTAR@
+-AUTOCONF = @AUTOCONF@
+-AUTOHEADER = @AUTOHEADER@
+-AUTOMAKE = @AUTOMAKE@
+-AWK = @AWK@
+-CC = @CC@
+-CCAS = @CCAS@
+-CCASDEPMODE = @CCASDEPMODE@
+-CCASFLAGS = @CCASFLAGS@
+-CCDEPMODE = @CCDEPMODE@
+-CFLAGS = @CFLAGS@
+-CPP = @CPP@
+-CPPFLAGS = @CPPFLAGS@
+-CYGPATH_W = @CYGPATH_W@
+-DEFS = @DEFS@
+-DEPDIR = @DEPDIR@
+-ECHO_C = @ECHO_C@
+-ECHO_N = @ECHO_N@
+-ECHO_T = @ECHO_T@
+-EGREP = @EGREP@
+-EXEEXT = @EXEEXT@
+-FSYS_CFLAGS = @FSYS_CFLAGS@
+-GREP = @GREP@
+-GRUB_CFLAGS = @GRUB_CFLAGS@
+-GRUB_LIBS = @GRUB_LIBS@
+-INSTALL = @INSTALL@
+-INSTALL_DATA = @INSTALL_DATA@
+-INSTALL_PROGRAM = @INSTALL_PROGRAM@
+-INSTALL_SCRIPT = @INSTALL_SCRIPT@
+-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+-LDFLAGS = @LDFLAGS@
+-LIBOBJS = @LIBOBJS@
+-LIBS = @LIBS@
+-LOADER_LDFLAGS = @LOADER_LDFLAGS@
+-LTLIBOBJS = @LTLIBOBJS@
+-MAINT = @MAINT@
+-MAKEINFO = @MAKEINFO@
+-MKDIR_P = @MKDIR_P@
+-NETBOOT_DRIVERS = @NETBOOT_DRIVERS@
+-NET_CFLAGS = @NET_CFLAGS@
+-NET_EXTRAFLAGS = @NET_EXTRAFLAGS@
+-OBJCOPY = @OBJCOPY@
+-OBJEXT = @OBJEXT@
+-PACKAGE = @PACKAGE@
+-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+-PACKAGE_NAME = @PACKAGE_NAME@
+-PACKAGE_STRING = @PACKAGE_STRING@
+-PACKAGE_TARNAME = @PACKAGE_TARNAME@
+-PACKAGE_VERSION = @PACKAGE_VERSION@
+-PATH_SEPARATOR = @PATH_SEPARATOR@
+-PERL = @PERL@
+-RANLIB = @RANLIB@
+-SET_MAKE = @SET_MAKE@
+-SHELL = @SHELL@
+-STAGE1_CFLAGS = @STAGE1_CFLAGS@
+-STAGE2_CFLAGS = @STAGE2_CFLAGS@
+-STRIP = @STRIP@
+-VERSION = @VERSION@
+-abs_builddir = @abs_builddir@
+-abs_srcdir = @abs_srcdir@
+-abs_top_builddir = @abs_top_builddir@
+-abs_top_srcdir = @abs_top_srcdir@
+-ac_ct_CC = @ac_ct_CC@
+-am__include = @am__include@
+-am__leading_dot = @am__leading_dot@
+-am__quote = @am__quote@
+-am__tar = @am__tar@
+-am__untar = @am__untar@
+-bindir = @bindir@
+-build = @build@
+-build_alias = @build_alias@
+-build_cpu = @build_cpu@
+-build_os = @build_os@
+-build_vendor = @build_vendor@
+-builddir = @builddir@
+-datadir = @datadir@
+-datarootdir = @datarootdir@
+-docdir = @docdir@
+-dvidir = @dvidir@
+-exec_prefix = @exec_prefix@
+-host = @host@
+-host_alias = @host_alias@
+-host_cpu = @host_cpu@
+-host_os = @host_os@
+-host_vendor = @host_vendor@
+-htmldir = @htmldir@
+-includedir = @includedir@
+-infodir = @infodir@
+-install_sh = @install_sh@
+-libdir = @libdir@
+-libexecdir = @libexecdir@
+-localedir = @localedir@
+-localstatedir = @localstatedir@
+-mandir = @mandir@
+-mkdir_p = @mkdir_p@
+-oldincludedir = @oldincludedir@
+-pdfdir = @pdfdir@
+-prefix = @prefix@
+-program_transform_name = @program_transform_name@
+-psdir = @psdir@
+-sbindir = @sbindir@
+-sharedstatedir = @sharedstatedir@
+-srcdir = @srcdir@
+-sysconfdir = @sysconfdir@
+-target_alias = @target_alias@
+-top_builddir = @top_builddir@
+-top_srcdir = @top_srcdir@
+-info_TEXINFOS = grub.texi multiboot.texi
+-grub_TEXINFOS = internals.texi
+-EXAMPLES = boot.S kernel.c multiboot.h
+-multiboot_TEXINFOS = boot.S.texi kernel.c.texi multiboot.h.texi
+-man_MANS = grub.8 mbchk.1 grub-install.8 grub-md5-crypt.8 grub-terminfo.8
+-HELP2MAN = help2man
+-SRC2TEXI = src2texi
+-noinst_SCRIPTS = $(HELP2MAN) $(SRC2TEXI)
+-@BUILD_EXAMPLE_KERNEL_TRUE@kernel_SOURCES = $(EXAMPLES)
+-@BUILD_EXAMPLE_KERNEL_TRUE@kernel_CFLAGS = -fno-builtin -nostdinc -O -g -Wall \
+-@BUILD_EXAMPLE_KERNEL_TRUE@ -imacros $(top_builddir)/config.h
+-
+-@BUILD_EXAMPLE_KERNEL_TRUE@kernel_LDFLAGS = -nostdlib -Wl,-N -Wl,-Ttext -Wl,100000
+-EXTRA_DIST = menu.lst $(man_MANS) $(noinst_SCRIPTS) \
+- $(EXAMPLES) $(multiboot_TEXINFOS)
+-
+-CLEANFILES = $(noinst_PROGRAMS)
+-all: all-am
+-
+-.SUFFIXES:
+-.SUFFIXES: .S .c .dvi .html .info .o .obj .pdf .ps .texi
+-$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
+- @for dep in $?; do \
+- case '$(am__configure_deps)' in \
+- *$$dep*) \
+- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
+- && exit 0; \
+- exit 1;; \
+- esac; \
+- done; \
+- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu docs/Makefile'; \
+- cd $(top_srcdir) && \
+- $(AUTOMAKE) --gnu docs/Makefile
+-.PRECIOUS: Makefile
+-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+- @case '$?' in \
+- *config.status*) \
+- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+- *) \
+- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+- esac;
+-
+-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+-
+-$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
+- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+-$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
+- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+-
+-clean-noinstPROGRAMS:
+- -test -z "$(noinst_PROGRAMS)" || rm -f $(noinst_PROGRAMS)
+-kernel$(EXEEXT): $(kernel_OBJECTS) $(kernel_DEPENDENCIES)
+- @rm -f kernel$(EXEEXT)
+- $(kernel_LINK) $(kernel_OBJECTS) $(kernel_LDADD) $(LIBS)
+-
+-mostlyclean-compile:
+- -rm -f *.$(OBJEXT)
+-
+-distclean-compile:
+- -rm -f *.tab.c
+-
+-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/boot.Po@am__quote@
+-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/kernel-kernel.Po@am__quote@
+-
+-.S.o:
+-@am__fastdepCCAS_TRUE@ $(CPPASCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
+-@am__fastdepCCAS_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+-@AMDEP_TRUE@@am__fastdepCCAS_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+-@AMDEP_TRUE@@am__fastdepCCAS_FALSE@ DEPDIR=$(DEPDIR) $(CCASDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+-@am__fastdepCCAS_FALSE@ $(CPPASCOMPILE) -c -o $@ $<
+-
+-.S.obj:
+-@am__fastdepCCAS_TRUE@ $(CPPASCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
+-@am__fastdepCCAS_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+-@AMDEP_TRUE@@am__fastdepCCAS_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+-@AMDEP_TRUE@@am__fastdepCCAS_FALSE@ DEPDIR=$(DEPDIR) $(CCASDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+-@am__fastdepCCAS_FALSE@ $(CPPASCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
+-
+-.c.o:
+-@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
+-@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+-@am__fastdepCC_FALSE@ $(COMPILE) -c $<
+-
+-.c.obj:
+-@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
+-@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+-@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
+-
+-kernel-kernel.o: kernel.c
+-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(kernel_CFLAGS) $(CFLAGS) -MT kernel-kernel.o -MD -MP -MF $(DEPDIR)/kernel-kernel.Tpo -c -o kernel-kernel.o `test -f 'kernel.c' || echo '$(srcdir)/'`kernel.c
+-@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/kernel-kernel.Tpo $(DEPDIR)/kernel-kernel.Po
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='kernel.c' object='kernel-kernel.o' libtool=no @AMDEPBACKSLASH@
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(kernel_CFLAGS) $(CFLAGS) -c -o kernel-kernel.o `test -f 'kernel.c' || echo '$(srcdir)/'`kernel.c
+-
+-kernel-kernel.obj: kernel.c
+-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(kernel_CFLAGS) $(CFLAGS) -MT kernel-kernel.obj -MD -MP -MF $(DEPDIR)/kernel-kernel.Tpo -c -o kernel-kernel.obj `if test -f 'kernel.c'; then $(CYGPATH_W) 'kernel.c'; else $(CYGPATH_W) '$(srcdir)/kernel.c'; fi`
+-@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/kernel-kernel.Tpo $(DEPDIR)/kernel-kernel.Po
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='kernel.c' object='kernel-kernel.obj' libtool=no @AMDEPBACKSLASH@
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(kernel_CFLAGS) $(CFLAGS) -c -o kernel-kernel.obj `if test -f 'kernel.c'; then $(CYGPATH_W) 'kernel.c'; else $(CYGPATH_W) '$(srcdir)/kernel.c'; fi`
+-
+-.texi.info:
+- restore=: && backupdir="$(am__leading_dot)am$$$$" && \
+- am__cwd=`pwd` && cd $(srcdir) && \
+- rm -rf $$backupdir && mkdir $$backupdir && \
+- if ($(MAKEINFO) --version) >/dev/null 2>&1; then \
+- for f in $@ $@-[0-9] $@-[0-9][0-9] $(@:.info=).i[0-9] $(@:.info=).i[0-9][0-9]; do \
+- if test -f $$f; then mv $$f $$backupdir; restore=mv; else :; fi; \
+- done; \
+- else :; fi && \
+- cd "$$am__cwd"; \
+- if $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) \
+- -o $@ $<; \
+- then \
+- rc=0; \
+- cd $(srcdir); \
+- else \
+- rc=$$?; \
+- cd $(srcdir) && \
+- $$restore $$backupdir/* `echo "./$@" | sed 's|[^/]*$$||'`; \
+- fi; \
+- rm -rf $$backupdir; exit $$rc
+-
+-.texi.dvi:
+- TEXINPUTS="$(am__TEXINFO_TEX_DIR)$(PATH_SEPARATOR)$$TEXINPUTS" \
+- MAKEINFO='$(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir)' \
+- $(TEXI2DVI) $<
+-
+-.texi.pdf:
+- TEXINPUTS="$(am__TEXINFO_TEX_DIR)$(PATH_SEPARATOR)$$TEXINPUTS" \
+- MAKEINFO='$(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir)' \
+- $(TEXI2PDF) $<
+-
+-.texi.html:
+- rm -rf $(@:.html=.htp)
+- if $(MAKEINFOHTML) $(AM_MAKEINFOHTMLFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) \
+- -o $(@:.html=.htp) $<; \
+- then \
+- rm -rf $@; \
+- if test ! -d $(@:.html=.htp) && test -d $(@:.html=); then \
+- mv $(@:.html=) $@; else mv $(@:.html=.htp) $@; fi; \
+- else \
+- if test ! -d $(@:.html=.htp) && test -d $(@:.html=); then \
+- rm -rf $(@:.html=); else rm -Rf $(@:.html=.htp) $@; fi; \
+- exit 1; \
+- fi
+-$(srcdir)/grub.info: grub.texi $(srcdir)/version.texi $(grub_TEXINFOS)
+-grub.dvi: grub.texi $(srcdir)/version.texi $(grub_TEXINFOS)
+-grub.pdf: grub.texi $(srcdir)/version.texi $(grub_TEXINFOS)
+-grub.html: grub.texi $(srcdir)/version.texi $(grub_TEXINFOS)
+-$(srcdir)/version.texi: @MAINTAINER_MODE_TRUE@ $(srcdir)/stamp-vti
+-$(srcdir)/stamp-vti: grub.texi $(top_srcdir)/configure
+- @(dir=.; test -f ./grub.texi || dir=$(srcdir); \
+- set `$(SHELL) $(srcdir)/mdate-sh $$dir/grub.texi`; \
+- echo "@set UPDATED $$1 $$2 $$3"; \
+- echo "@set UPDATED-MONTH $$2 $$3"; \
+- echo "@set EDITION $(VERSION)"; \
+- echo "@set VERSION $(VERSION)") > vti.tmp
+- @cmp -s vti.tmp $(srcdir)/version.texi \
+- || (echo "Updating $(srcdir)/version.texi"; \
+- cp vti.tmp $(srcdir)/version.texi)
+- -@rm -f vti.tmp
+- @cp $(srcdir)/version.texi $@
+-
+-mostlyclean-vti:
+- -rm -f vti.tmp
+-
+-maintainer-clean-vti:
+-@MAINTAINER_MODE_TRUE@ -rm -f $(srcdir)/stamp-vti $(srcdir)/version.texi
+-$(srcdir)/multiboot.info: multiboot.texi $(multiboot_TEXINFOS)
+-multiboot.dvi: multiboot.texi $(multiboot_TEXINFOS)
+-multiboot.pdf: multiboot.texi $(multiboot_TEXINFOS)
+-multiboot.html: multiboot.texi $(multiboot_TEXINFOS)
+-.dvi.ps:
+- TEXINPUTS="$(am__TEXINFO_TEX_DIR)$(PATH_SEPARATOR)$$TEXINPUTS" \
+- $(DVIPS) -o $@ $<
+-
+-uninstall-dvi-am:
+- @$(NORMAL_UNINSTALL)
+- @list='$(DVIS)'; for p in $$list; do \
+- f=$(am__strip_dir) \
+- echo " rm -f '$(DESTDIR)$(dvidir)/$$f'"; \
+- rm -f "$(DESTDIR)$(dvidir)/$$f"; \
+- done
+-
+-uninstall-html-am:
+- @$(NORMAL_UNINSTALL)
+- @list='$(HTMLS)'; for p in $$list; do \
+- f=$(am__strip_dir) \
+- echo " rm -rf '$(DESTDIR)$(htmldir)/$$f'"; \
+- rm -rf "$(DESTDIR)$(htmldir)/$$f"; \
+- done
+-
+-uninstall-info-am:
+- @$(PRE_UNINSTALL)
+- @if test -d '$(DESTDIR)$(infodir)' && \
+- (install-info --version && \
+- install-info --version 2>&1 | sed 1q | grep -i -v debian) >/dev/null 2>&1; then \
+- list='$(INFO_DEPS)'; \
+- for file in $$list; do \
+- relfile=`echo "$$file" | sed 's|^.*/||'`; \
+- echo " install-info --info-dir='$(DESTDIR)$(infodir)' --remove '$(DESTDIR)$(infodir)/$$relfile'"; \
+- install-info --info-dir="$(DESTDIR)$(infodir)" --remove "$(DESTDIR)$(infodir)/$$relfile"; \
+- done; \
+- else :; fi
+- @$(NORMAL_UNINSTALL)
+- @list='$(INFO_DEPS)'; \
+- for file in $$list; do \
+- relfile=`echo "$$file" | sed 's|^.*/||'`; \
+- relfile_i=`echo "$$relfile" | sed 's|\.info$$||;s|$$|.i|'`; \
+- (if test -d "$(DESTDIR)$(infodir)" && cd "$(DESTDIR)$(infodir)"; then \
+- echo " cd '$(DESTDIR)$(infodir)' && rm -f $$relfile $$relfile-[0-9] $$relfile-[0-9][0-9] $$relfile_i[0-9] $$relfile_i[0-9][0-9]"; \
+- rm -f $$relfile $$relfile-[0-9] $$relfile-[0-9][0-9] $$relfile_i[0-9] $$relfile_i[0-9][0-9]; \
+- else :; fi); \
+- done
+-
+-uninstall-pdf-am:
+- @$(NORMAL_UNINSTALL)
+- @list='$(PDFS)'; for p in $$list; do \
+- f=$(am__strip_dir) \
+- echo " rm -f '$(DESTDIR)$(pdfdir)/$$f'"; \
+- rm -f "$(DESTDIR)$(pdfdir)/$$f"; \
+- done
+-
+-uninstall-ps-am:
+- @$(NORMAL_UNINSTALL)
+- @list='$(PSS)'; for p in $$list; do \
+- f=$(am__strip_dir) \
+- echo " rm -f '$(DESTDIR)$(psdir)/$$f'"; \
+- rm -f "$(DESTDIR)$(psdir)/$$f"; \
+- done
+-
+-dist-info: $(INFO_DEPS)
+- @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
+- list='$(INFO_DEPS)'; \
+- for base in $$list; do \
+- case $$base in \
+- $(srcdir)/*) base=`echo "$$base" | sed "s|^$$srcdirstrip/||"`;; \
+- esac; \
+- if test -f $$base; then d=.; else d=$(srcdir); fi; \
+- base_i=`echo "$$base" | sed 's|\.info$$||;s|$$|.i|'`; \
+- for file in $$d/$$base $$d/$$base-[0-9] $$d/$$base-[0-9][0-9] $$d/$$base_i[0-9] $$d/$$base_i[0-9][0-9]; do \
+- if test -f $$file; then \
+- relfile=`expr "$$file" : "$$d/\(.*\)"`; \
+- test -f $(distdir)/$$relfile || \
+- cp -p $$file $(distdir)/$$relfile; \
+- else :; fi; \
+- done; \
+- done
+-
+-mostlyclean-aminfo:
+- -rm -rf grub.aux grub.cp grub.cps grub.fn grub.ky grub.log grub.pg grub.tmp \
+- grub.toc grub.tp grub.vr grub.dvi grub.pdf grub.ps grub.html \
+- multiboot.aux multiboot.cp multiboot.cps multiboot.fn \
+- multiboot.ky multiboot.log multiboot.pg multiboot.tmp \
+- multiboot.toc multiboot.tp multiboot.vr multiboot.dvi \
+- multiboot.pdf multiboot.ps multiboot.html
+-
+-maintainer-clean-aminfo:
+- @list='$(INFO_DEPS)'; for i in $$list; do \
+- i_i=`echo "$$i" | sed 's|\.info$$||;s|$$|.i|'`; \
+- echo " rm -f $$i $$i-[0-9] $$i-[0-9][0-9] $$i_i[0-9] $$i_i[0-9][0-9]"; \
+- rm -f $$i $$i-[0-9] $$i-[0-9][0-9] $$i_i[0-9] $$i_i[0-9][0-9]; \
+- done
+-install-man1: $(man1_MANS) $(man_MANS)
+- @$(NORMAL_INSTALL)
+- test -z "$(man1dir)" || $(MKDIR_P) "$(DESTDIR)$(man1dir)"
+- @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \
+- l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
+- for i in $$l2; do \
+- case "$$i" in \
+- *.1*) list="$$list $$i" ;; \
+- esac; \
+- done; \
+- for i in $$list; do \
+- if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
+- else file=$$i; fi; \
+- ext=`echo $$i | sed -e 's/^.*\\.//'`; \
+- case "$$ext" in \
+- 1*) ;; \
+- *) ext='1' ;; \
+- esac; \
+- inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
+- inst=`echo $$inst | sed -e 's/^.*\///'`; \
+- inst=`echo $$inst | sed '$(transform)'`.$$ext; \
+- echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \
+- $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst"; \
+- done
+-uninstall-man1:
+- @$(NORMAL_UNINSTALL)
+- @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \
+- l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
+- for i in $$l2; do \
+- case "$$i" in \
+- *.1*) list="$$list $$i" ;; \
+- esac; \
+- done; \
+- for i in $$list; do \
+- ext=`echo $$i | sed -e 's/^.*\\.//'`; \
+- case "$$ext" in \
+- 1*) ;; \
+- *) ext='1' ;; \
+- esac; \
+- inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
+- inst=`echo $$inst | sed -e 's/^.*\///'`; \
+- inst=`echo $$inst | sed '$(transform)'`.$$ext; \
+- echo " rm -f '$(DESTDIR)$(man1dir)/$$inst'"; \
+- rm -f "$(DESTDIR)$(man1dir)/$$inst"; \
+- done
+-install-man8: $(man8_MANS) $(man_MANS)
+- @$(NORMAL_INSTALL)
+- test -z "$(man8dir)" || $(MKDIR_P) "$(DESTDIR)$(man8dir)"
+- @list='$(man8_MANS) $(dist_man8_MANS) $(nodist_man8_MANS)'; \
+- l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
+- for i in $$l2; do \
+- case "$$i" in \
+- *.8*) list="$$list $$i" ;; \
+- esac; \
+- done; \
+- for i in $$list; do \
+- if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
+- else file=$$i; fi; \
+- ext=`echo $$i | sed -e 's/^.*\\.//'`; \
+- case "$$ext" in \
+- 8*) ;; \
+- *) ext='8' ;; \
+- esac; \
+- inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
+- inst=`echo $$inst | sed -e 's/^.*\///'`; \
+- inst=`echo $$inst | sed '$(transform)'`.$$ext; \
+- echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man8dir)/$$inst'"; \
+- $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man8dir)/$$inst"; \
+- done
+-uninstall-man8:
+- @$(NORMAL_UNINSTALL)
+- @list='$(man8_MANS) $(dist_man8_MANS) $(nodist_man8_MANS)'; \
+- l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
+- for i in $$l2; do \
+- case "$$i" in \
+- *.8*) list="$$list $$i" ;; \
+- esac; \
+- done; \
+- for i in $$list; do \
+- ext=`echo $$i | sed -e 's/^.*\\.//'`; \
+- case "$$ext" in \
+- 8*) ;; \
+- *) ext='8' ;; \
+- esac; \
+- inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
+- inst=`echo $$inst | sed -e 's/^.*\///'`; \
+- inst=`echo $$inst | sed '$(transform)'`.$$ext; \
+- echo " rm -f '$(DESTDIR)$(man8dir)/$$inst'"; \
+- rm -f "$(DESTDIR)$(man8dir)/$$inst"; \
+- done
+-
+-ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
+- list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+- unique=`for i in $$list; do \
+- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+- done | \
+- $(AWK) ' { files[$$0] = 1; } \
+- END { for (i in files) print i; }'`; \
+- mkid -fID $$unique
+-tags: TAGS
+-
+-TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
+- $(TAGS_FILES) $(LISP)
+- tags=; \
+- here=`pwd`; \
+- list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+- unique=`for i in $$list; do \
+- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+- done | \
+- $(AWK) ' { files[$$0] = 1; } \
+- END { for (i in files) print i; }'`; \
+- if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
+- test -n "$$unique" || unique=$$empty_fix; \
+- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+- $$tags $$unique; \
+- fi
+-ctags: CTAGS
+-CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
+- $(TAGS_FILES) $(LISP)
+- tags=; \
+- here=`pwd`; \
+- list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+- unique=`for i in $$list; do \
+- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+- done | \
+- $(AWK) ' { files[$$0] = 1; } \
+- END { for (i in files) print i; }'`; \
+- test -z "$(CTAGS_ARGS)$$tags$$unique" \
+- || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
+- $$tags $$unique
+-
+-GTAGS:
+- here=`$(am__cd) $(top_builddir) && pwd` \
+- && cd $(top_srcdir) \
+- && gtags -i $(GTAGS_ARGS) $$here
+-
+-distclean-tags:
+- -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
+-
+-distdir: $(DISTFILES)
+- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+- list='$(DISTFILES)'; \
+- dist_files=`for file in $$list; do echo $$file; done | \
+- sed -e "s|^$$srcdirstrip/||;t" \
+- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+- case $$dist_files in \
+- */*) $(MKDIR_P) `echo "$$dist_files" | \
+- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+- sort -u` ;; \
+- esac; \
+- for file in $$dist_files; do \
+- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+- if test -d $$d/$$file; then \
+- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+- cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
+- fi; \
+- cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
+- else \
+- test -f $(distdir)/$$file \
+- || cp -p $$d/$$file $(distdir)/$$file \
+- || exit 1; \
+- fi; \
+- done
+- $(MAKE) $(AM_MAKEFLAGS) \
+- top_distdir="$(top_distdir)" distdir="$(distdir)" \
+- dist-info
+-check-am: all-am
+-check: check-am
+-all-am: Makefile $(INFO_DEPS) $(PROGRAMS) $(SCRIPTS) $(MANS)
+-installdirs:
+- for dir in "$(DESTDIR)$(infodir)" "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(man8dir)"; do \
+- test -z "$$dir" || $(MKDIR_P) "$$dir"; \
+- done
+-install: install-am
+-install-exec: install-exec-am
+-install-data: install-data-am
+-uninstall: uninstall-am
+-
+-install-am: all-am
+- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+-
+-installcheck: installcheck-am
+-install-strip:
+- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+- `test -z '$(STRIP)' || \
+- echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
+-mostlyclean-generic:
+-
+-clean-generic:
+- -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
+-
+-distclean-generic:
+- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+-
+-maintainer-clean-generic:
+- @echo "This command is intended for maintainers to use"
+- @echo "it deletes files that may require special tools to rebuild."
+-clean: clean-am
+-
+-clean-am: clean-generic clean-noinstPROGRAMS mostlyclean-am
+-
+-distclean: distclean-am
+- -rm -rf ./$(DEPDIR)
+- -rm -f Makefile
+-distclean-am: clean-am distclean-compile distclean-generic \
+- distclean-tags
+-
+-dvi: dvi-am
+-
+-dvi-am: $(DVIS)
+-
+-html: html-am
+-
+-html-am: $(HTMLS)
+-
+-info: info-am
+-
+-info-am: $(INFO_DEPS)
+-
+-install-data-am: install-info-am install-man
+-
+-install-dvi: install-dvi-am
+-
+-install-dvi-am: $(DVIS)
+- @$(NORMAL_INSTALL)
+- test -z "$(dvidir)" || $(MKDIR_P) "$(DESTDIR)$(dvidir)"
+- @list='$(DVIS)'; for p in $$list; do \
+- if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+- f=$(am__strip_dir) \
+- echo " $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(dvidir)/$$f'"; \
+- $(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(dvidir)/$$f"; \
+- done
+-install-exec-am:
+-
+-install-html: install-html-am
+-
+-install-html-am: $(HTMLS)
+- @$(NORMAL_INSTALL)
+- test -z "$(htmldir)" || $(MKDIR_P) "$(DESTDIR)$(htmldir)"
+- @list='$(HTMLS)'; for p in $$list; do \
+- if test -f "$$p" || test -d "$$p"; then d=; else d="$(srcdir)/"; fi; \
+- f=$(am__strip_dir) \
+- if test -d "$$d$$p"; then \
+- echo " $(MKDIR_P) '$(DESTDIR)$(htmldir)/$$f'"; \
+- $(MKDIR_P) "$(DESTDIR)$(htmldir)/$$f" || exit 1; \
+- echo " $(INSTALL_DATA) '$$d$$p'/* '$(DESTDIR)$(htmldir)/$$f'"; \
+- $(INSTALL_DATA) "$$d$$p"/* "$(DESTDIR)$(htmldir)/$$f"; \
+- else \
+- echo " $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(htmldir)/$$f'"; \
+- $(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(htmldir)/$$f"; \
+- fi; \
+- done
+-install-info: install-info-am
+-
+-install-info-am: $(INFO_DEPS)
+- @$(NORMAL_INSTALL)
+- test -z "$(infodir)" || $(MKDIR_P) "$(DESTDIR)$(infodir)"
+- @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
+- list='$(INFO_DEPS)'; \
+- for file in $$list; do \
+- case $$file in \
+- $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
+- esac; \
+- if test -f $$file; then d=.; else d=$(srcdir); fi; \
+- file_i=`echo "$$file" | sed 's|\.info$$||;s|$$|.i|'`; \
+- for ifile in $$d/$$file $$d/$$file-[0-9] $$d/$$file-[0-9][0-9] \
+- $$d/$$file_i[0-9] $$d/$$file_i[0-9][0-9] ; do \
+- if test -f $$ifile; then \
+- relfile=`echo "$$ifile" | sed 's|^.*/||'`; \
+- echo " $(INSTALL_DATA) '$$ifile' '$(DESTDIR)$(infodir)/$$relfile'"; \
+- $(INSTALL_DATA) "$$ifile" "$(DESTDIR)$(infodir)/$$relfile"; \
+- else : ; fi; \
+- done; \
+- done
+- @$(POST_INSTALL)
+- @if (install-info --version && \
+- install-info --version 2>&1 | sed 1q | grep -i -v debian) >/dev/null 2>&1; then \
+- list='$(INFO_DEPS)'; \
+- for file in $$list; do \
+- relfile=`echo "$$file" | sed 's|^.*/||'`; \
+- echo " install-info --info-dir='$(DESTDIR)$(infodir)' '$(DESTDIR)$(infodir)/$$relfile'";\
+- install-info --info-dir="$(DESTDIR)$(infodir)" "$(DESTDIR)$(infodir)/$$relfile" || :;\
+- done; \
+- else : ; fi
+-install-man: install-man1 install-man8
+-
+-install-pdf: install-pdf-am
+-
+-install-pdf-am: $(PDFS)
+- @$(NORMAL_INSTALL)
+- test -z "$(pdfdir)" || $(MKDIR_P) "$(DESTDIR)$(pdfdir)"
+- @list='$(PDFS)'; for p in $$list; do \
+- if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+- f=$(am__strip_dir) \
+- echo " $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(pdfdir)/$$f'"; \
+- $(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(pdfdir)/$$f"; \
+- done
+-install-ps: install-ps-am
+-
+-install-ps-am: $(PSS)
+- @$(NORMAL_INSTALL)
+- test -z "$(psdir)" || $(MKDIR_P) "$(DESTDIR)$(psdir)"
+- @list='$(PSS)'; for p in $$list; do \
+- if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+- f=$(am__strip_dir) \
+- echo " $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(psdir)/$$f'"; \
+- $(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(psdir)/$$f"; \
+- done
+-installcheck-am:
+-
+-maintainer-clean: maintainer-clean-am
+- -rm -rf ./$(DEPDIR)
+- -rm -f Makefile
+-maintainer-clean-am: distclean-am maintainer-clean-aminfo \
+- maintainer-clean-generic maintainer-clean-vti
+-
+-mostlyclean: mostlyclean-am
+-
+-mostlyclean-am: mostlyclean-aminfo mostlyclean-compile \
+- mostlyclean-generic mostlyclean-vti
+-
+-pdf: pdf-am
+-
+-pdf-am: $(PDFS)
+-
+-ps: ps-am
+-
+-ps-am: $(PSS)
+-
+-uninstall-am: uninstall-dvi-am uninstall-html-am uninstall-info-am \
+- uninstall-man uninstall-pdf-am uninstall-ps-am
+-
+-uninstall-man: uninstall-man1 uninstall-man8
+-
+-.MAKE: install-am install-strip
+-
+-.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
+- clean-noinstPROGRAMS ctags dist-info distclean \
+- distclean-compile distclean-generic distclean-tags distdir dvi \
+- dvi-am html html-am info info-am install install-am \
+- install-data install-data-am install-dvi install-dvi-am \
+- install-exec install-exec-am install-html install-html-am \
+- install-info install-info-am install-man install-man1 \
+- install-man8 install-pdf install-pdf-am install-ps \
+- install-ps-am install-strip installcheck installcheck-am \
+- installdirs maintainer-clean maintainer-clean-aminfo \
+- maintainer-clean-generic maintainer-clean-vti mostlyclean \
+- mostlyclean-aminfo mostlyclean-compile mostlyclean-generic \
+- mostlyclean-vti pdf pdf-am ps ps-am tags uninstall \
+- uninstall-am uninstall-dvi-am uninstall-html-am \
+- uninstall-info-am uninstall-man uninstall-man1 uninstall-man8 \
+- uninstall-pdf-am uninstall-ps-am
+-
+-
+-@BUILD_EXAMPLE_KERNEL_TRUE@boot.o: multiboot.h
+-
+-# Cancel the rule %.texi -> %. This rule may confuse make to determine
+-# the dependecies.
+-.texi:
+-
+-%.c.texi: %.c $(srcdir)/$(SRC2TEXI)
+- $(SHELL) $(srcdir)/$(SRC2TEXI) $(srcdir) $< $@
+-
+-%.h.texi: %.h $(srcdir)/$(SRC2TEXI)
+- $(SHELL) $(srcdir)/$(SRC2TEXI) $(srcdir) $< $@
+-
+-%.S.texi: %.S $(srcdir)/$(SRC2TEXI)
+- $(SHELL) $(srcdir)/$(SRC2TEXI) $(srcdir) $< $@
+-
+-@MAINTAINER_MODE_TRUE@$(srcdir)/grub.8: ../grub/grub $(srcdir)/$(HELP2MAN)
+-@MAINTAINER_MODE_TRUE@ $(PERL) $(srcdir)/$(HELP2MAN) --name="the grub shell" \
+-@MAINTAINER_MODE_TRUE@ --section=8 --output=$@ $<
+-
+-@MAINTAINER_MODE_TRUE@$(srcdir)/grub-install.8: ../util/grub-install $(srcdir)/$(HELP2MAN)
+-@MAINTAINER_MODE_TRUE@ chmod 755 $<
+-@MAINTAINER_MODE_TRUE@ $(PERL) $(srcdir)/$(HELP2MAN) --name="install GRUB on your drive" \
+-@MAINTAINER_MODE_TRUE@ --section=8 --output=$@ $<
+-
+-@MAINTAINER_MODE_TRUE@$(srcdir)/mbchk.1: ../util/mbchk $(srcdir)/$(HELP2MAN)
+-@MAINTAINER_MODE_TRUE@ $(PERL) $(srcdir)/$(HELP2MAN) \
+-@MAINTAINER_MODE_TRUE@ --name="check the format of a Multiboot kernel" \
+-@MAINTAINER_MODE_TRUE@ --section=1 --output=$@ $<
+-
+-@MAINTAINER_MODE_TRUE@$(srcdir)/grub-md5-crypt.8: ../util/grub-md5-crypt $(srcdir)/$(HELP2MAN)
+-@MAINTAINER_MODE_TRUE@ chmod 755 $<
+-@MAINTAINER_MODE_TRUE@ $(PERL) $(srcdir)/$(HELP2MAN) \
+-@MAINTAINER_MODE_TRUE@ --name="Encrypt a password in MD5 format" \
+-@MAINTAINER_MODE_TRUE@ --section=8 --output=$@ $<
+-
+-@MAINTAINER_MODE_TRUE@$(srcdir)/grub-terminfo.8: ../util/grub-terminfo $(srcdir)/$(HELP2MAN)
+-@MAINTAINER_MODE_TRUE@ chmod 755 $<
+-@MAINTAINER_MODE_TRUE@ $(PERL) $(srcdir)/$(HELP2MAN) \
+-@MAINTAINER_MODE_TRUE@ --name="Generate a terminfo command from a terminfo name" \
+-@MAINTAINER_MODE_TRUE@ --section=8 --output=$@ $<
+-# Tell versions [3.59,3.63) of GNU make to not export all variables.
+-# Otherwise a system limit (for SysV at least) may be exceeded.
+-.NOEXPORT:
+diff --git a/docs/grub.info b/docs/grub.info
+deleted file mode 100644
+index 7692f31..0000000
+--- a/docs/grub.info
++++ /dev/null
+@@ -1,4469 +0,0 @@
+-This is grub.info, produced by makeinfo version 4.9 from grub.texi.
+-
+-INFO-DIR-SECTION Kernel
+-START-INFO-DIR-ENTRY
+-* GRUB: (grub). The GRand Unified Bootloader
+-* grub-install: (grub)Invoking grub-install. Install GRUB on your drive
+-* grub-md5-crypt: (grub)Invoking grub-md5-crypt. Encrypt a password
+- in MD5 format
+-* grub-terminfo: (grub)Invoking grub-terminfo. Generate a terminfo
+- command from a
+- terminfo name
+-* grub-set-default: (grub)Invoking grub-set-default. Set a default boot
+- entry
+-* mbchk: (grub)Invoking mbchk. Check for the format of a Multiboot kernel
+-END-INFO-DIR-ENTRY
+-
+- Copyright (C) 1999,2000,2001,2002,2004 Free Software Foundation, Inc.
+-
+- Permission is granted to make and distribute verbatim copies of this
+-manual provided the copyright notice and this permission notice are
+-preserved on all copies.
+-
+- Permission is granted to copy and distribute modified versions of
+-this manual under the conditions for verbatim copying, provided also
+-that the entire resulting derived work is distributed under the terms
+-of a permission notice identical to this one.
+-
+- Permission is granted to copy and distribute translations of this
+-manual into another language, under the above conditions for modified
+-versions.
+-
+-
+-File: grub.info, Node: Top, Next: Introduction, Up: (dir)
+-
+-GRUB manual
+-***********
+-
+-This is the documentation of GNU GRUB, the GRand Unified Bootloader, a
+-flexible and powerful boot loader program for PCs.
+-
+- This edition documents version 0.97.
+-
+-* Menu:
+-
+-* Introduction:: Capturing the spirit of GRUB
+-* Naming convention:: Names of your drives in GRUB
+-* Installation:: Installing GRUB on your drive
+-* Booting:: How to boot different operating systems
+-* Configuration:: Writing your own configuration file
+-* Network:: Downloading OS images from a network
+-* Serial terminal:: Using GRUB via a serial line
+-* Preset Menu:: Embedding a configuration file into GRUB
+-* Security:: Improving the security
+-* Images:: GRUB image files
+-* Filesystem:: Filesystem syntax and semantics
+-* Interface:: The menu and the command-line
+-* Commands:: The list of available builtin commands
+-* Troubleshooting:: Error messages produced by GRUB
+-* Invoking the grub shell:: How to use the grub shell
+-* Invoking grub-install:: How to use the GRUB installer
+-* Invoking grub-md5-crypt:: How to generate a cryptic password
+-* Invoking grub-terminfo:: How to generate a terminfo command
+-* Invoking grub-set-default:: How to set a default boot entry
+-* Invoking mbchk:: How to use the Multiboot checker
+-* Obtaining and Building GRUB:: How to obtain and build GRUB
+-* Reporting bugs:: Where you should send a bug report
+-* Future:: Some future plans on GRUB
+-* Internals:: Hacking GRUB
+-* Index::
+-
+-
+-File: grub.info, Node: Introduction, Next: Naming convention, Prev: Top, Up: Top
+-
+-1 Introduction to GRUB
+-**********************
+-
+-* Menu:
+-
+-* Overview:: What exactly GRUB is and how to use it
+-* History:: From maggot to house fly
+-* Features:: GRUB features
+-* Role of a boot loader:: The role of a boot loader
+-
+-
+-File: grub.info, Node: Overview, Next: History, Up: Introduction
+-
+-1.1 Overview
+-============
+-
+-Briefly, a "boot loader" is the first software program that runs when a
+-computer starts. It is responsible for loading and transferring
+-control to an operating system "kernel" software (such as Linux or GNU
+-Mach). The kernel, in turn, initializes the rest of the operating
+-system (e.g. a GNU system).
+-
+- GNU GRUB is a very powerful boot loader, which can load a wide
+-variety of free operating systems, as well as proprietary operating
+-systems with chain-loading(1) (*note Overview-Footnote-1::). GRUB is
+-designed to address the complexity of booting a personal computer; both
+-the program and this manual are tightly bound to that computer platform,
+-although porting to other platforms may be addressed in the future.
+-
+- One of the important features in GRUB is flexibility; GRUB
+-understands filesystems and kernel executable formats, so you can load
+-an arbitrary operating system the way you like, without recording the
+-physical position of your kernel on the disk. Thus you can load the
+-kernel just by specifying its file name and the drive and partition
+-where the kernel resides.
+-
+- When booting with GRUB, you can use either a command-line interface
+-(*note Command-line interface::), or a menu interface (*note Menu
+-interface::). Using the command-line interface, you type the drive
+-specification and file name of the kernel manually. In the menu
+-interface, you just select an OS using the arrow keys. The menu is
+-based on a configuration file which you prepare beforehand (*note
+-Configuration::). While in the menu, you can switch to the command-line
+-mode, and vice-versa. You can even edit menu entries before using them.
+-
+- In the following chapters, you will learn how to specify a drive, a
+-partition, and a file name (*note Naming convention::) to GRUB, how to
+-install GRUB on your drive (*note Installation::), and how to boot your
+-OSes (*note Booting::), step by step.
+-
+- Besides the GRUB boot loader itself, there is a "grub shell" `grub'
+-(*note Invoking the grub shell::) which can be run when you are in your
+-operating system. It emulates the boot loader and can be used for
+-installing the boot loader.
+-
+-
+-File: grub.info, Node: Overview-Footnotes, Up: Overview
+-
+- (1) "chain-load" is the mechanism for loading unsupported operating
+-systems by loading another boot loader. It is typically used for
+-loading DOS or Windows.
+-
+-
+-File: grub.info, Node: History, Next: Features, Prev: Overview, Up: Introduction
+-
+-1.2 History of GRUB
+-===================
+-
+-GRUB originated in 1995 when Erich Boleyn was trying to boot the GNU
+-Hurd with the University of Utah's Mach 4 microkernel (now known as GNU
+-Mach). Erich and Brian Ford designed the Multiboot Specification
+-(*note Multiboot Specification: (multiboot)Top.), because they were
+-determined not to add to the large number of mutually-incompatible PC
+-boot methods.
+-
+- Erich then began modifying the FreeBSD boot loader so that it would
+-understand Multiboot. He soon realized that it would be a lot easier to
+-write his own boot loader from scratch than to keep working on the
+-FreeBSD boot loader, and so GRUB was born.
+-
+- Erich added many features to GRUB, but other priorities prevented him
+-from keeping up with the demands of its quickly-expanding user base. In
+-1999, Gordon Matzigkeit and Yoshinori K. Okuji adopted GRUB as an
+-official GNU package, and opened its development by making the latest
+-sources available via anonymous CVS. *Note Obtaining and Building
+-GRUB::, for more information.
+-
+-
+-File: grub.info, Node: Features, Next: Role of a boot loader, Prev: History, Up: Introduction
+-
+-1.3 GRUB features
+-=================
+-
+-The primary requirement for GRUB is that it be compliant with the
+-"Multiboot Specification", which is described in *Note Multiboot
+-Specification: (multiboot)Top.
+-
+- The other goals, listed in approximate order of importance, are:
+-
+- * Basic functions must be straightforward for end-users.
+-
+- * Rich functionality to support kernel experts and designers.
+-
+- * Backward compatibility for booting FreeBSD, NetBSD, OpenBSD, and
+- Linux. Proprietary kernels (such as DOS, Windows NT, and OS/2) are
+- supported via a chain-loading function.
+-
+- Except for specific compatibility modes (chain-loading and the Linux
+-"piggyback" format), all kernels will be started in much the same state
+-as in the Multiboot Specification. Only kernels loaded at 1 megabyte or
+-above are presently supported. Any attempt to load below that boundary
+-will simply result in immediate failure and an error message reporting
+-the problem.
+-
+- In addition to the requirements above, GRUB has the following
+-features (note that the Multiboot Specification doesn't require all the
+-features that GRUB supports):
+-
+-Recognize multiple executable formats
+- Support many of the "a.out" variants plus "ELF". Symbol tables are
+- also loaded.
+-
+-Support non-Multiboot kernels
+- Support many of the various free 32-bit kernels that lack Multiboot
+- compliance (primarily FreeBSD, NetBSD, OpenBSD, and Linux).
+- Chain-loading of other boot loaders is also supported.
+-
+-Load multiples modules
+- Fully support the Multiboot feature of loading multiple modules.
+-
+-Load a configuration file
+- Support a human-readable text configuration file with preset boot
+- commands. You can also load another configuration file dynamically
+- and embed a preset configuration file in a GRUB image file. The
+- list of commands (*note Commands::) are a superset of those
+- supported on the command-line. An example configuration file is
+- provided in *Note Configuration::.
+-
+-Provide a menu interface
+- A menu interface listing preset boot commands, with a programmable
+- timeout, is available. There is no fixed limit on the number of
+- boot entries, and the current implementation has space for several
+- hundred.
+-
+-Have a flexible command-line interface
+- A fairly flexible command-line interface, accessible from the menu,
+- is available to edit any preset commands, or write a new boot
+- command set from scratch. If no configuration file is present,
+- GRUB drops to the command-line.
+-
+- The list of commands (*note Commands::) are a subset of those
+- supported for configuration files. Editing commands closely
+- resembles the Bash command-line (*note Bash: (features)Command
+- Line Editing.), with <TAB>-completion of commands, devices,
+- partitions, and files in a directory depending on context.
+-
+-Support multiple filesystem types
+- Support multiple filesystem types transparently, plus a useful
+- explicit blocklist notation. The currently supported filesystem
+- types are "BSD FFS", "DOS FAT16 and FAT32", "Minix fs", "Linux
+- ext2fs", "ReiserFS", "JFS", "XFS", and "VSTa fs". *Note
+- Filesystem::, for more information.
+-
+-Support automatic decompression
+- Can decompress files which were compressed by `gzip'. This
+- function is both automatic and transparent to the user (i.e. all
+- functions operate upon the uncompressed contents of the specified
+- files). This greatly reduces a file size and loading time, a
+- particularly great benefit for floppies.(1) (*note
+- Features-Footnote-1::)
+-
+- It is conceivable that some kernel modules should be loaded in a
+- compressed state, so a different module-loading command can be
+- specified to avoid uncompressing the modules.
+-
+-Access data on any installed device
+- Support reading data from any or all floppies or hard disk(s)
+- recognized by the BIOS, independent of the setting of the root
+- device.
+-
+-Be independent of drive geometry translations
+- Unlike many other boot loaders, GRUB makes the particular drive
+- translation irrelevant. A drive installed and running with one
+- translation may be converted to another translation without any
+- adverse effects or changes in GRUB's configuration.
+-
+-Detect all installed RAM
+- GRUB can generally find all the installed RAM on a PC-compatible
+- machine. It uses an advanced BIOS query technique for finding all
+- memory regions. As described on the Multiboot Specification (*note
+- Multiboot Specification: (multiboot)Top.), not all kernels make
+- use of this information, but GRUB provides it for those who do.
+-
+-Support Logical Block Address mode
+- In traditional disk calls (called "CHS mode"), there is a geometry
+- translation problem, that is, the BIOS cannot access over 1024
+- cylinders, so the accessible space is limited to at least 508 MB
+- and to at most 8GB. GRUB can't universally solve this problem, as
+- there is no standard interface used in all machines. However,
+- several newer machines have the new interface, Logical Block
+- Address ("LBA") mode. GRUB automatically detects if LBA mode is
+- available and uses it if available. In LBA mode, GRUB can access
+- the entire disk.
+-
+-Support network booting
+- GRUB is basically a disk-based boot loader but also has network
+- support. You can load OS images from a network by using the "TFTP"
+- protocol.
+-
+-Support remote terminals
+- To support computers with no console, GRUB provides remote terminal
+- support, so that you can control GRUB from a remote host. Only
+- serial terminal support is implemented at the moment.
+-
+-
+-File: grub.info, Node: Features-Footnotes, Up: Features
+-
+- (1) There are a few pathological cases where loading a very badly
+-organized ELF kernel might take longer, but in practice this never
+-happen.
+-
+-
+-File: grub.info, Node: Role of a boot loader, Prev: Features, Up: Introduction
+-
+-1.4 The role of a boot loader
+-=============================
+-
+-The following is a quotation from Gordon Matzigkeit, a GRUB fanatic:
+-
+- Some people like to acknowledge both the operating system and
+- kernel when they talk about their computers, so they might say
+- they use "GNU/Linux" or "GNU/Hurd". Other people seem to think
+- that the kernel is the most important part of the system, so they
+- like to call their GNU operating systems "Linux systems."
+-
+- I, personally, believe that this is a grave injustice, because the
+- _boot loader_ is the most important software of all. I used to
+- refer to the above systems as either "LILO"(1) (*note Role of a
+- boot loader-Footnote-1::) or "GRUB" systems.
+-
+- Unfortunately, nobody ever understood what I was talking about;
+- now I just use the word "GNU" as a pseudonym for GRUB.
+-
+- So, if you ever hear people talking about their alleged "GNU"
+- systems, remember that they are actually paying homage to the best
+- boot loader around... GRUB!
+-
+- We, the GRUB maintainers, do not (usually) encourage Gordon's level
+-of fanaticism, but it helps to remember that boot loaders deserve
+-recognition. We hope that you enjoy using GNU GRUB as much as we did
+-writing it.
+-
+-
+-File: grub.info, Node: Role of a boot loader-Footnotes, Up: Role of a boot loader
+-
+- (1) The LInux LOader, a boot loader that everybody uses, but nobody
+-likes.
+-
+-
+-File: grub.info, Node: Naming convention, Next: Installation, Prev: Introduction, Up: Top
+-
+-2 Naming convention
+-*******************
+-
+-The device syntax used in GRUB is a wee bit different from what you may
+-have seen before in your operating system(s), and you need to know it so
+-that you can specify a drive/partition.
+-
+- Look at the following examples and explanations:
+-
+- (fd0)
+-
+- First of all, GRUB requires that the device name be enclosed with
+-`(' and `)'. The `fd' part means that it is a floppy disk. The number
+-`0' is the drive number, which is counted from _zero_. This expression
+-means that GRUB will use the whole floppy disk.
+-
+- (hd0,1)
+-
+- Here, `hd' means it is a hard disk drive. The first integer `0'
+-indicates the drive number, that is, the first hard disk, while the
+-second integer, `1', indicates the partition number (or the PC slice
+-number in the BSD terminology). Once again, please note that the
+-partition numbers are counted from _zero_, not from one. This
+-expression means the second partition of the first hard disk drive. In
+-this case, GRUB uses one partition of the disk, instead of the whole
+-disk.
+-
+- (hd0,4)
+-
+- This specifies the first "extended partition" of the first hard disk
+-drive. Note that the partition numbers for extended partitions are
+-counted from `4', regardless of the actual number of primary partitions
+-on your hard disk.
+-
+- (hd1,a)
+-
+- This means the BSD `a' partition of the second hard disk. If you
+-need to specify which PC slice number should be used, use something
+-like this: `(hd1,0,a)'. If the PC slice number is omitted, GRUB
+-searches for the first PC slice which has a BSD `a' partition.
+-
+- Of course, to actually access the disks or partitions with GRUB, you
+-need to use the device specification in a command, like `root (fd0)' or
+-`unhide (hd0,2)'. To help you find out which number specifies a
+-partition you want, the GRUB command-line (*note Command-line
+-interface::) options have argument completion. This means that, for
+-example, you only need to type
+-
+- root (
+-
+- followed by a <TAB>, and GRUB will display the list of drives,
+-partitions, or file names. So it should be quite easy to determine the
+-name of your target partition, even with minimal knowledge of the
+-syntax.
+-
+- Note that GRUB does _not_ distinguish IDE from SCSI - it simply
+-counts the drive numbers from zero, regardless of their type. Normally,
+-any IDE drive number is less than any SCSI drive number, although that
+-is not true if you change the boot sequence by swapping IDE and SCSI
+-drives in your BIOS.
+-
+- Now the question is, how to specify a file? Again, consider an
+-example:
+-
+- (hd0,0)/vmlinuz
+-
+- This specifies the file named `vmlinuz', found on the first
+-partition of the first hard disk drive. Note that the argument
+-completion works with file names, too.
+-
+- That was easy, admit it. Now read the next chapter, to find out how
+-to actually install GRUB on your drive.
+-
+-
+-File: grub.info, Node: Installation, Next: Booting, Prev: Naming convention, Up: Top
+-
+-3 Installation
+-**************
+-
+-In order to install GRUB as your boot loader, you need to first install
+-the GRUB system and utilities under your UNIX-like operating system
+-(*note Obtaining and Building GRUB::). You can do this either from the
+-source tarball, or as a package for your OS.
+-
+- After you have done that, you need to install the boot loader on a
+-drive (floppy or hard disk). There are two ways of doing that - either
+-using the utility `grub-install' (*note Invoking grub-install::) on a
+-UNIX-like OS, or by running GRUB itself from a floppy. These are quite
+-similar, however the utility might probe a wrong BIOS drive, so you
+-should be careful.
+-
+- Also, if you install GRUB on a UNIX-like OS, please make sure that
+-you have an emergency boot disk ready, so that you can rescue your
+-computer if, by any chance, your hard drive becomes unusable
+-(unbootable).
+-
+- GRUB comes with boot images, which are normally put in the directory
+-`/usr/lib/grub/i386-pc'. If you do not use grub-install, then you need
+-to copy the files `stage1', `stage2', and `*stage1_5' to the directory
+-`/boot/grub', and run the `grub-set-default' (*note Invoking
+-grub-set-default::) if you intend to use `default saved' (*note
+-default::) in your configuration file. Hereafter, the directory where
+-GRUB images are initially placed (normally `/usr/lib/grub/i386-pc')
+-will be called the "image directory", and the directory where the boot
+-loader needs to find them (usually `/boot/grub') will be called the
+-"boot directory".
+-
+-* Menu:
+-
+-* Creating a GRUB boot floppy::
+-* Installing GRUB natively::
+-* Installing GRUB using grub-install::
+-* Making a GRUB bootable CD-ROM::
+-
+-
+-File: grub.info, Node: Creating a GRUB boot floppy, Next: Installing GRUB natively, Up: Installation
+-
+-3.1 Creating a GRUB boot floppy
+-===============================
+-
+-To create a GRUB boot floppy, you need to take the files `stage1' and
+-`stage2' from the image directory, and write them to the first and the
+-second block of the floppy disk, respectively.
+-
+- *Caution:* This procedure will destroy any data currently stored on
+-the floppy.
+-
+- On a UNIX-like operating system, that is done with the following
+-commands:
+-
+- # cd /usr/lib/grub/i386-pc
+- # dd if=stage1 of=/dev/fd0 bs=512 count=1
+- 1+0 records in
+- 1+0 records out
+- # dd if=stage2 of=/dev/fd0 bs=512 seek=1
+- 153+1 records in
+- 153+1 records out
+- #
+-
+- The device file name may be different. Consult the manual for your
+-OS.
+-
+-
+-File: grub.info, Node: Installing GRUB natively, Next: Installing GRUB using grub-install, Prev: Creating a GRUB boot floppy, Up: Installation
+-
+-3.2 Installing GRUB natively
+-============================
+-
+-*Caution:* Installing GRUB's stage1 in this manner will erase the
+-normal boot-sector used by an OS.
+-
+- GRUB can currently boot GNU Mach, Linux, FreeBSD, NetBSD, and OpenBSD
+-directly, so using it on a boot sector (the first sector of a
+-partition) should be okay. But generally, it would be a good idea to
+-back up the first sector of the partition on which you are installing
+-GRUB's stage1. This isn't as important if you are installing GRUB on
+-the first sector of a hard disk, since it's easy to reinitialize it
+-(e.g. by running `FDISK /MBR' from DOS).
+-
+- If you decide to install GRUB in the native environment, which is
+-definitely desirable, you'll need to create a GRUB boot disk, and
+-reboot your computer with it. Otherwise, see *Note Installing GRUB
+-using grub-install::.
+-
+- Once started, GRUB will show the command-line interface (*note
+-Command-line interface::). First, set the GRUB's "root device"(1)
+-(*note Installing GRUB natively-Footnote-1::) to the partition
+-containing the boot directory, like this:
+-
+- grub> root (hd0,0)
+-
+- If you are not sure which partition actually holds this directory,
+-use the command `find' (*note find::), like this:
+-
+- grub> find /boot/grub/stage1
+-
+- This will search for the file name `/boot/grub/stage1' and show the
+-devices which contain the file.
+-
+- Once you've set the root device correctly, run the command `setup'
+-(*note setup::):
+-
+- grub> setup (hd0)
+-
+- This command will install the GRUB boot loader on the Master Boot
+-Record (MBR) of the first drive. If you want to put GRUB into the boot
+-sector of a partition instead of putting it in the MBR, specify the
+-partition into which you want to install GRUB:
+-
+- grub> setup (hd0,0)
+-
+- If you install GRUB into a partition or a drive other than the first
+-one, you must chain-load GRUB from another boot loader. Refer to the
+-manual for the boot loader to know how to chain-load GRUB.
+-
+- After using the setup command, you will boot into GRUB without the
+-GRUB floppy. See the chapter *Note Booting:: to find out how to boot
+-your operating systems from GRUB.
+-
+-
+-File: grub.info, Node: Installing GRUB natively-Footnotes, Up: Installing GRUB natively
+-
+- (1) Note that GRUB's root device doesn't necessarily mean your OS's
+-root partition; if you need to specify a root partition for your OS,
+-add the argument into the command `kernel'.
+-
+-
+-File: grub.info, Node: Installing GRUB using grub-install, Next: Making a GRUB bootable CD-ROM, Prev: Installing GRUB natively, Up: Installation
+-
+-3.3 Installing GRUB using grub-install
+-======================================
+-
+-*Caution:* This procedure is definitely less safe, because there are
+-several ways in which your computer can become unbootable. For example,
+-most operating systems don't tell GRUB how to map BIOS drives to OS
+-devices correctly--GRUB merely "guesses" the mapping. This will succeed
+-in most cases, but not always. Therefore, GRUB provides you with a map
+-file called the "device map", which you must fix if it is wrong. *Note
+-Device map::, for more details.
+-
+- If you still do want to install GRUB under a UNIX-like OS (such as
+-GNU), invoke the program `grub-install' (*note Invoking grub-install::)
+-as the superuser ("root").
+-
+- The usage is basically very simple. You only need to specify one
+-argument to the program, namely, where to install the boot loader. The
+-argument can be either a device file (like `/dev/hda') or a partition
+-specified in GRUB's notation. For example, under Linux the following
+-will install GRUB into the MBR of the first IDE disk:
+-
+- # grub-install /dev/hda
+-
+- Likewise, under GNU/Hurd, this has the same effect:
+-
+- # grub-install /dev/hd0
+-
+- If it is the first BIOS drive, this is the same as well:
+-
+- # grub-install '(hd0)'
+-
+- Or you can omit the parentheses:
+-
+- # grub-install hd0
+-
+- But all the above examples assume that GRUB should use images under
+-the root directory. If you want GRUB to use images under a directory
+-other than the root directory, you need to specify the option
+-`--root-directory'. The typical usage is that you create a GRUB boot
+-floppy with a filesystem. Here is an example:
+-
+- # mke2fs /dev/fd0
+- # mount -t ext2 /dev/fd0 /mnt
+- # grub-install --root-directory=/mnt fd0
+- # umount /mnt
+-
+- Another example is when you have a separate boot partition which is
+-mounted at `/boot'. Since GRUB is a boot loader, it doesn't know
+-anything about mountpoints at all. Thus, you need to run `grub-install'
+-like this:
+-
+- # grub-install --root-directory=/boot /dev/hda
+-
+- By the way, as noted above, it is quite difficult to guess BIOS
+-drives correctly under a UNIX-like OS. Thus, `grub-install' will prompt
+-you to check if it could really guess the correct mappings, after the
+-installation. The format is defined in *Note Device map::. Please be
+-quite careful. If the output is wrong, it is unlikely that your
+-computer will be able to boot with no problem.
+-
+- Note that `grub-install' is actually just a shell script and the
+-real task is done by the grub shell `grub' (*note Invoking the grub
+-shell::). Therefore, you may run `grub' directly to install GRUB,
+-without using `grub-install'. Don't do that, however, unless you are
+-very familiar with the internals of GRUB. Installing a boot loader on a
+-running OS may be extremely dangerous.
+-
+-
+-File: grub.info, Node: Making a GRUB bootable CD-ROM, Prev: Installing GRUB using grub-install, Up: Installation
+-
+-3.4 Making a GRUB bootable CD-ROM
+-=================================
+-
+-GRUB supports the "no emulation mode" in the El Torito specification(1)
+-(*note Making a GRUB bootable CD-ROM-Footnote-1::). This means that you
+-can use the whole CD-ROM from GRUB and you don't have to make a floppy
+-or hard disk image file, which can cause compatibility problems.
+-
+- For booting from a CD-ROM, GRUB uses a special Stage 2 called
+-`stage2_eltorito'. The only GRUB files you need to have in your
+-bootable CD-ROM are this `stage2_eltorito' and optionally a config file
+-`menu.lst'. You don't need to use `stage1' or `stage2', because El
+-Torito is quite different from the standard boot process.
+-
+- Here is an example of procedures to make a bootable CD-ROM image.
+-First, make a top directory for the bootable image, say, `iso':
+-
+- $ mkdir iso
+-
+- Make a directory for GRUB:
+-
+- $ mkdir -p iso/boot/grub
+-
+- Copy the file `stage2_eltorito':
+-
+- $ cp /usr/lib/grub/i386-pc/stage2_eltorito iso/boot/grub
+-
+- If desired, make the config file `menu.lst' under `iso/boot/grub'
+-(*note Configuration::), and copy any files and directories for the
+-disc to the directory `iso/'.
+-
+- Finally, make a ISO9660 image file like this:
+-
+- $ mkisofs -R -b boot/grub/stage2_eltorito -no-emul-boot \
+- -boot-load-size 4 -boot-info-table -o grub.iso iso
+-
+- This produces a file named `grub.iso', which then can be burned into
+-a CD (or a DVD). `mkisofs' has already set up the disc to boot from
+-the `boot/grub/stage2_eltorito' file, so there is no need to setup GRUB
+-on the disc. (Note that the `-boot-load-size 4' bit is required for
+-compatibility with the BIOS on many older machines.)
+-
+- You can use the device `(cd)' to access a CD-ROM in your config
+-file. This is not required; GRUB automatically sets the root device to
+-`(cd)' when booted from a CD-ROM. It is only necessary to refer to
+-`(cd)' if you want to access other drives as well.
+-
+-
+-File: grub.info, Node: Making a GRUB bootable CD-ROM-Footnotes, Up: Making a GRUB bootable CD-ROM
+-
+- (1) El Torito is a specification for bootable CD using BIOS
+-functions.
+-
+-
+-File: grub.info, Node: Booting, Next: Configuration, Prev: Installation, Up: Top
+-
+-4 Booting
+-*********
+-
+-GRUB can load Multiboot-compliant kernels in a consistent way, but for
+-some free operating systems you need to use some OS-specific magic.
+-
+-* Menu:
+-
+-* General boot methods:: How to boot OSes with GRUB generally
+-* OS-specific notes:: Notes on some operating systems
+-* Making your system robust:: How to make your system robust
+-
+-
+-File: grub.info, Node: General boot methods, Next: OS-specific notes, Up: Booting
+-
+-4.1 How to boot operating systems
+-=================================
+-
+-GRUB has two distinct boot methods. One of the two is to load an
+-operating system directly, and the other is to chain-load another boot
+-loader which then will load an operating system actually. Generally
+-speaking, the former is more desirable, because you don't need to
+-install or maintain other boot loaders and GRUB is flexible enough to
+-load an operating system from an arbitrary disk/partition. However, the
+-latter is sometimes required, since GRUB doesn't support all the
+-existing operating systems natively.
+-
+-* Menu:
+-
+-* Loading an operating system directly::
+-* Chain-loading::
+-
+-
+-File: grub.info, Node: Loading an operating system directly, Next: Chain-loading, Up: General boot methods
+-
+-4.1.1 How to boot an OS directly with GRUB
+-------------------------------------------
+-
+-Multiboot (*note Multiboot Specification: (multiboot)Top.) is the
+-native format supported by GRUB. For the sake of convenience, there is
+-also support for Linux, FreeBSD, NetBSD and OpenBSD. If you want to
+-boot other operating systems, you will have to chain-load them (*note
+-Chain-loading::).
+-
+- Generally, GRUB can boot any Multiboot-compliant OS in the following
+-steps:
+-
+- 1. Set GRUB's root device to the drive where the OS images are stored
+- with the command `root' (*note root::).
+-
+- 2. Load the kernel image with the command `kernel' (*note kernel::).
+-
+- 3. If you need modules, load them with the command `module' (*note
+- module::) or `modulenounzip' (*note modulenounzip::).
+-
+- 4. Run the command `boot' (*note boot::).
+-
+- Linux, FreeBSD, NetBSD and OpenBSD can be booted in a similar
+-manner. You load a kernel image with the command `kernel' and then run
+-the command `boot'. If the kernel requires some parameters, just append
+-the parameters to `kernel', after the file name of the kernel. Also,
+-please refer to *Note OS-specific notes::, for information on your
+-OS-specific issues.
+-
+-
+-File: grub.info, Node: Chain-loading, Prev: Loading an operating system directly, Up: General boot methods
+-
+-4.1.2 Load another boot loader to boot unsupported operating systems
+---------------------------------------------------------------------
+-
+-If you want to boot an unsupported operating system (e.g. Windows 95),
+-chain-load a boot loader for the operating system. Normally, the boot
+-loader is embedded in the "boot sector" of the partition on which the
+-operating system is installed.
+-
+- 1. Set GRUB's root device to the partition by the command
+- `rootnoverify' (*note rootnoverify::):
+-
+- grub> rootnoverify (hd0,0)
+-
+- 2. Set the "active" flag in the partition using the command
+- `makeactive'(1) (*note Chain-loading-Footnote-1::) (*note
+- makeactive::):
+-
+- grub> makeactive
+-
+- 3. Load the boot loader with the command `chainloader' (*note
+- chainloader::):
+-
+- grub> chainloader +1
+-
+- `+1' indicates that GRUB should read one sector from the start of
+- the partition. The complete description about this syntax can be
+- found in *Note Block list syntax::.
+-
+- 4. Run the command `boot' (*note boot::).
+-
+- However, DOS and Windows have some deficiencies, so you might have to
+-use more complicated instructions. *Note DOS/Windows::, for more
+-information.
+-
+-
+-File: grub.info, Node: Chain-loading-Footnotes, Up: Chain-loading
+-
+- (1) This is not necessary for most of the modern operating systems.
+-
+-
+-File: grub.info, Node: OS-specific notes, Next: Making your system robust, Prev: General boot methods, Up: Booting
+-
+-4.2 Some caveats on OS-specific issues
+-======================================
+-
+-Here, we describe some caveats on several operating systems.
+-
+-* Menu:
+-
+-* GNU/Hurd::
+-* GNU/Linux::
+-* FreeBSD::
+-* NetBSD::
+-* OpenBSD::
+-* DOS/Windows::
+-* SCO UnixWare::
+-* QNX::
+-
+-
+-File: grub.info, Node: GNU/Hurd, Next: GNU/Linux, Up: OS-specific notes
+-
+-4.2.1 GNU/Hurd
+---------------
+-
+-Since GNU/Hurd is Multiboot-compliant, it is easy to boot it; there is
+-nothing special about it. But do not forget that you have to specify a
+-root partition to the kernel.
+-
+- 1. Set GRUB's root device to the same drive as GNU/Hurd's. Probably
+- the command `find /boot/gnumach' or similar can help you (*note
+- find::).
+-
+- 2. Load the kernel and the module, like this:
+-
+- grub> kernel /boot/gnumach root=hd0s1
+- grub> module /boot/serverboot
+-
+- 3. Run the command `boot' (*note boot::).
+-
+-
+-File: grub.info, Node: GNU/Linux, Next: FreeBSD, Prev: GNU/Hurd, Up: OS-specific notes
+-
+-4.2.2 GNU/Linux
+----------------
+-
+-It is relatively easy to boot GNU/Linux from GRUB, because it somewhat
+-resembles to boot a Multiboot-compliant OS.
+-
+- 1. Set GRUB's root device to the same drive as GNU/Linux's. Probably
+- the command `find /vmlinuz' or similar can help you (*note find::).
+-
+- 2. Load the kernel:
+-
+- grub> kernel /vmlinuz root=/dev/hda1
+-
+- If you need to specify some kernel parameters, just append them to
+- the command. For example, to set `vga' to `ext', do this:
+-
+- grub> kernel /vmlinuz root=/dev/hda1 vga=ext
+-
+- See the documentation in the Linux source tree for complete
+- information on the available options.
+-
+- 3. If you use an initrd, execute the command `initrd' (*note
+- initrd::) after `kernel':
+-
+- grub> initrd /initrd
+-
+- 4. Finally, run the command `boot' (*note boot::).
+-
+- *Caution:* If you use an initrd and specify the `mem=' option to the
+-kernel to let it use less than actual memory size, you will also have
+-to specify the same memory size to GRUB. To let GRUB know the size, run
+-the command `uppermem' _before_ loading the kernel. *Note uppermem::,
+-for more information.
+-
+-
+-File: grub.info, Node: FreeBSD, Next: NetBSD, Prev: GNU/Linux, Up: OS-specific notes
+-
+-4.2.3 FreeBSD
+--------------
+-
+-GRUB can load the kernel directly, either in ELF or a.out format. But
+-this is not recommended, since FreeBSD's bootstrap interface sometimes
+-changes heavily, so GRUB can't guarantee to pass kernel parameters
+-correctly.
+-
+- Thus, we'd recommend loading the very flexible loader `/boot/loader'
+-instead. See this example:
+-
+- grub> root (hd0,a)
+- grub> kernel /boot/loader
+- grub> boot
+-
+-
+-File: grub.info, Node: NetBSD, Next: OpenBSD, Prev: FreeBSD, Up: OS-specific notes
+-
+-4.2.4 NetBSD
+-------------
+-
+-GRUB can load NetBSD a.out and ELF directly, follow these steps:
+-
+- 1. Set GRUB's root device with `root' (*note root::).
+-
+- 2. Load the kernel with `kernel' (*note kernel::). You should append
+- the ugly option `--type=netbsd', if you want to load an ELF
+- kernel, like this:
+-
+- grub> kernel --type=netbsd /netbsd-elf
+-
+- 3. Run `boot' (*note boot::).
+-
+- For now, however, GRUB doesn't allow you to pass kernel parameters,
+-so it may be better to chain-load it instead. For more information,
+-please see *Note Chain-loading::.
+-
+-
+-File: grub.info, Node: OpenBSD, Next: DOS/Windows, Prev: NetBSD, Up: OS-specific notes
+-
+-4.2.5 OpenBSD
+--------------
+-
+-The booting instruction is exactly the same as for NetBSD (*note
+-NetBSD::).
+-
+-
+-File: grub.info, Node: DOS/Windows, Next: SCO UnixWare, Prev: OpenBSD, Up: OS-specific notes
+-
+-4.2.6 DOS/Windows
+------------------
+-
+-GRUB cannot boot DOS or Windows directly, so you must chain-load them
+-(*note Chain-loading::). However, their boot loaders have some critical
+-deficiencies, so it may not work to just chain-load them. To overcome
+-the problems, GRUB provides you with two helper functions.
+-
+- If you have installed DOS (or Windows) on a non-first hard disk, you
+-have to use the disk swapping technique, because that OS cannot boot
+-from any disks but the first one. The workaround used in GRUB is the
+-command `map' (*note map::), like this:
+-
+- grub> map (hd0) (hd1)
+- grub> map (hd1) (hd0)
+-
+- This performs a "virtual" swap between your first and second hard
+-drive.
+-
+- *Caution:* This is effective only if DOS (or Windows) uses BIOS to
+-access the swapped disks. If that OS uses a special driver for the
+-disks, this probably won't work.
+-
+- Another problem arises if you installed more than one set of
+-DOS/Windows onto one disk, because they could be confused if there are
+-more than one primary partitions for DOS/Windows. Certainly you should
+-avoid doing this, but there is a solution if you do want to do so. Use
+-the partition hiding/unhiding technique.
+-
+- If GRUB "hide"s a DOS (or Windows) partition (*note hide::), DOS (or
+-Windows) will ignore the partition. If GRUB "unhide"s a DOS (or
+-Windows) partition (*note unhide::), DOS (or Windows) will detect the
+-partition. Thus, if you have installed DOS (or Windows) on the first
+-and the second partition of the first hard disk, and you want to boot
+-the copy on the first partition, do the following:
+-
+- grub> unhide (hd0,0)
+- grub> hide (hd0,1)
+- grub> rootnoverify (hd0,0)
+- grub> chainloader +1
+- grub> makeactive
+- grub> boot
+-
+-
+-File: grub.info, Node: SCO UnixWare, Next: QNX, Prev: DOS/Windows, Up: OS-specific notes
+-
+-4.2.7 SCO UnixWare
+-------------------
+-
+-It is known that the signature in the boot loader for SCO UnixWare is
+-wrong, so you will have to specify the option `--force' to
+-`chainloader' (*note chainloader::), like this:
+-
+- grub> rootnoverify (hd1,0)
+- grub> chainloader --force +1
+- grub> makeactive
+- grub> boot
+-
+-
+-File: grub.info, Node: QNX, Prev: SCO UnixWare, Up: OS-specific notes
+-
+-4.2.8 QNX
+----------
+-
+-QNX seems to use a bigger boot loader, so you need to boot it up, like
+-this:
+-
+- grub> rootnoverify (hd1,1)
+- grub> chainloader +4
+- grub> boot
+-
+-
+-File: grub.info, Node: Making your system robust, Prev: OS-specific notes, Up: Booting
+-
+-4.3 How to make your system robust
+-==================================
+-
+-When you test a new kernel or a new OS, it is important to make sure
+-that your computer can boot even if the new system is unbootable. This
+-is crucial especially if you maintain servers or remote systems. To
+-accomplish this goal, you need to set up two things:
+-
+- 1. You must maintain a system which is always bootable. For instance,
+- if you test a new kernel, you need to keep a working kernel in a
+- different place. And, it would sometimes be very nice to even have
+- a complete copy of a working system in a different partition or
+- disk.
+-
+- 2. You must direct GRUB to boot a working system when the new system
+- fails. This is possible with the "fallback" system in GRUB.
+-
+- The former requirement is very specific to each OS, so this
+-documentation does not cover that topic. It is better to consult some
+-backup tools.
+-
+- So let's see the GRUB part. There are two possibilities: one of them
+-is quite simple but not very robust, and the other is a bit complex to
+-set up but probably the best solution to make sure that your system can
+-start as long as GRUB itself is bootable.
+-
+-* Menu:
+-
+-* Booting once-only::
+-* Booting fallback systems::
+-
+-
+-File: grub.info, Node: Booting once-only, Next: Booting fallback systems, Up: Making your system robust
+-
+-4.3.1 Booting once-only
+------------------------
+-
+-You can teach GRUB to boot an entry only at next boot time. Suppose
+-that your have an old kernel `old_kernel' and a new kernel
+-`new_kernel'. You know that `old_kernel' can boot your system
+-correctly, and you want to test `new_kernel'.
+-
+- To ensure that your system will go back to the old kernel even if the
+-new kernel fails (e.g. it panics), you can specify that GRUB should try
+-the new kernel only once and boot the old kernel after that.
+-
+- First, modify your configuration file. Here is an example:
+-
+- default saved # This is important!!!
+- timeout 10
+-
+- title the old kernel
+- root (hd0,0)
+- kernel /old_kernel
+- savedefault
+-
+- title the new kernel
+- root (hd0,0)
+- kernel /new_kernel
+- savedefault 0 # This is important!!!
+-
+- Note that this configuration file uses `default saved' (*note
+-default::) at the head and `savedefault 0' (*note savedefault::) in the
+-entry for the new kernel. This means that GRUB boots a saved entry by
+-default, and booting the entry for the new kernel saves `0' as the
+-saved entry.
+-
+- With this configuration file, after all, GRUB always tries to boot
+-the old kernel after it booted the new one, because `0' is the entry of
+-`the old kernel'.
+-
+- The next step is to tell GRUB to boot the new kernel at next boot
+-time. For this, execute `grub-set-default' (*note Invoking
+-grub-set-default::):
+-
+- # grub-set-default 1
+-
+- This command sets the saved entry to `1', that is, to the new kernel.
+-
+- This method is useful, but still not very robust, because GRUB stops
+-booting, if there is any error in the boot entry, such that the new
+-kernel has an invalid executable format. Thus, it it even better to use
+-the "fallback" mechanism of GRUB. Look at next subsection for this
+-feature.
+-
+-
+-File: grub.info, Node: Booting fallback systems, Prev: Booting once-only, Up: Making your system robust
+-
+-4.3.2 Booting fallback systems
+-------------------------------
+-
+-GRUB supports a fallback mechanism of booting one or more other entries
+-if a default boot entry fails. You can specify multiple fallback
+-entries if you wish.
+-
+- Suppose that you have three systems, `A', `B' and `C'. `A' is a
+-system which you want to boot by default. `B' is a backup system which
+-is supposed to boot safely. `C' is another backup system which is used
+-in case where `B' is broken.
+-
+- Then you may want GRUB to boot the first system which is bootable
+-among `A', `B' and `C'. A configuration file can be written in this way:
+-
+- default saved # This is important!!!
+- timeout 10
+- fallback 1 2 # This is important!!!
+-
+- title A
+- root (hd0,0)
+- kernel /kernel
+- savedefault fallback # This is important!!!
+-
+- title B
+- root (hd1,0)
+- kernel /kernel
+- savedefault fallback # This is important!!!
+-
+- title C
+- root (hd2,0)
+- kernel /kernel
+- savedefault
+-
+- Note that `default saved' (*note default::), `fallback 1 2' and
+-`savedefault fallback' are used. GRUB will boot a saved entry by
+-default and save a fallback entry as next boot entry with this
+-configuration.
+-
+- When GRUB tries to boot `A', GRUB saves `1' as next boot entry,
+-because the command `fallback' specifies that `1' is the first fallback
+-entry. The entry `1' is `B', so GRUB will try to boot `B' at next boot
+-time.
+-
+- Likewise, when GRUB tries to boot `B', GRUB saves `2' as next boot
+-entry, because `fallback' specifies `2' as next fallback entry. This
+-makes sure that GRUB will boot `C' after booting `B'.
+-
+- It is noteworthy that GRUB uses fallback entries both when GRUB
+-itself fails in booting an entry and when `A' or `B' fails in starting
+-up your system. So this solution ensures that your system is started
+-even if GRUB cannot find your kernel or if your kernel panics.
+-
+- However, you need to run `grub-set-default' (*note Invoking
+-grub-set-default::) when `A' starts correctly or you fix `A' after it
+-crashes, since GRUB always sets next boot entry to a fallback entry.
+-You should run this command in a startup script such as `rc.local' to
+-boot `A' by default:
+-
+- # grub-set-default 0
+-
+- where `0' is the number of the boot entry for the system `A'.
+-
+- If you want to see what is current default entry, you can look at the
+-file `/boot/grub/default' (or `/grub/default' in some systems). Because
+-this file is plain-text, you can just `cat' this file. But it is
+-strongly recommended *not to modify this file directly*, because GRUB
+-may fail in saving a default entry in this file, if you change this
+-file in an unintended manner. Therefore, you should use
+-`grub-set-default' when you need to change the default entry.
+-
+-
+-File: grub.info, Node: Configuration, Next: Network, Prev: Booting, Up: Top
+-
+-5 Configuration
+-***************
+-
+-You've probably noticed that you need to type several commands to boot
+-your OS. There's a solution to that - GRUB provides a menu interface
+-(*note Menu interface::) from which you can select an item (using arrow
+-keys) that will do everything to boot an OS.
+-
+- To enable the menu, you need a configuration file, `grub.conf' under
+-the boot directory. We'll analyze an example file.
+-
+- The file first contains some general settings, the menu interface
+-related options. You can put these commands (*note Menu-specific
+-commands::) before any of the items (starting with `title' (*note
+-title::)).
+-
+- #
+- # Sample boot menu configuration file
+- #
+-
+- As you may have guessed, these lines are comments. Lines starting
+-with a hash character (`#'), and blank lines, are ignored by GRUB.
+-
+- # By default, boot the first entry.
+- default 0
+-
+- The first entry (here, counting starts with number zero, not one!)
+-will be the default choice.
+-
+- # Boot automatically after 30 secs.
+- timeout 30
+-
+- As the comment says, GRUB will boot automatically in 30 seconds,
+-unless interrupted with a keypress.
+-
+- # Fallback to the second entry.
+- fallback 1
+-
+- If, for any reason, the default entry doesn't work, fall back to the
+-second one (this is rarely used, for obvious reasons).
+-
+- Note that the complete descriptions of these commands, which are menu
+-interface specific, can be found in *Note Menu-specific commands::.
+-Other descriptions can be found in *Note Commands::.
+-
+- Now, on to the actual OS definitions. You will see that each entry
+-begins with a special command, `title' (*note title::), and the action
+-is described after it. Note that there is no command `boot' (*note
+-boot::) at the end of each item. That is because GRUB automatically
+-executes `boot' if it loads other commands successfully.
+-
+- The argument for the command `title' is used to display a short
+-title/description of the entry in the menu. Since `title' displays the
+-argument as is, you can write basically anything there.
+-
+- # For booting GNU/Hurd
+- title GNU/Hurd
+- root (hd0,0)
+- kernel /boot/gnumach.gz root=hd0s1
+- module /boot/serverboot.gz
+-
+- This boots GNU/Hurd from the first hard disk.
+-
+- # For booting GNU/Linux
+- title GNU/Linux
+- kernel (hd1,0)/vmlinuz root=/dev/hdb1
+-
+- This boots GNU/Linux, but from the second hard disk.
+-
+- # For booting Mach (getting kernel from floppy)
+- title Utah Mach4 multiboot
+- root (hd0,2)
+- pause Insert the diskette now^G!!
+- kernel (fd0)/boot/kernel root=hd0s3
+- module (fd0)/boot/bootstrap
+-
+- This boots Mach with a kernel on a floppy, but the root filesystem at
+-hd0s3. It also contains a `pause' line (*note pause::), which will
+-cause GRUB to display a prompt and delay, before actually executing the
+-rest of the commands and booting.
+-
+- # For booting FreeBSD
+- title FreeBSD
+- root (hd0,2,a)
+- kernel /boot/loader
+-
+- This item will boot FreeBSD kernel loaded from the `a' partition of
+-the third PC slice of the first hard disk.
+-
+- # For booting OS/2
+- title OS/2
+- root (hd0,1)
+- makeactive
+- # chainload OS/2 bootloader from the first sector
+- chainloader +1
+- # This is similar to "chainload", but loads a specific file
+- #chainloader /boot/chain.os2
+-
+- This will boot OS/2, using a chain-loader (*note Chain-loading::).
+-
+- # For booting Windows NT or Windows95
+- title Windows NT / Windows 95 boot menu
+- root (hd0,0)
+- makeactive
+- chainloader +1
+- # For loading DOS if Windows NT is installed
+- # chainload /bootsect.dos
+-
+- The same as the above, but for Windows.
+-
+- # For installing GRUB into the hard disk
+- title Install GRUB into the hard disk
+- root (hd0,0)
+- setup (hd0)
+-
+- This will just (re)install GRUB onto the hard disk.
+-
+- # Change the colors.
+- title Change the colors
+- color light-green/brown blink-red/blue
+-
+- In the last entry, the command `color' is used (*note color::), to
+-change the menu colors (try it!). This command is somewhat special,
+-because it can be used both in the command-line and in the menu. GRUB
+-has several such commands, see *Note General commands::.
+-
+- We hope that you now understand how to use the basic features of
+-GRUB. To learn more about GRUB, see the following chapters.
+-
+-
+-File: grub.info, Node: Network, Next: Serial terminal, Prev: Configuration, Up: Top
+-
+-6 Downloading OS images from a network
+-**************************************
+-
+-Although GRUB is a disk-based boot loader, it does provide network
+-support. To use the network support, you need to enable at least one
+-network driver in the GRUB build process. For more information please
+-see `netboot/README.netboot' in the source distribution.
+-
+-* Menu:
+-
+-* General usage of network support::
+-* Diskless::
+-
+-
+-File: grub.info, Node: General usage of network support, Next: Diskless, Up: Network
+-
+-6.1 How to set up your network
+-==============================
+-
+-GRUB requires a file server and optionally a server that will assign an
+-IP address to the machine on which GRUB is running. For the former, only
+-TFTP is supported at the moment. The latter is either BOOTP, DHCP or a
+-RARP server(1) (*note General usage of network support-Footnote-1::).
+-It is not necessary to run both the servers on one computer. How to
+-configure these servers is beyond the scope of this document, so please
+-refer to the manuals specific to those protocols/servers.
+-
+- If you decided to use a server to assign an IP address, set up the
+-server and run `bootp' (*note bootp::), `dhcp' (*note dhcp::) or `rarp'
+-(*note rarp::) for BOOTP, DHCP or RARP, respectively. Each command will
+-show an assigned IP address, a netmask, an IP address for your TFTP
+-server and a gateway. If any of the addresses is wrong or it causes an
+-error, probably the configuration of your servers isn't set up properly.
+-
+- Otherwise, run `ifconfig', like this:
+-
+- grub> ifconfig --address=192.168.110.23 --server=192.168.110.14
+-
+- You can also use `ifconfig' in conjuction with `bootp', `dhcp' or
+-`rarp' (e.g. to reassign the server address manually). *Note
+-ifconfig::, for more details.
+-
+- Finally, download your OS images from your network. The network can
+-be accessed using the network drive `(nd)'. Everything else is very
+-similar to the normal instructions (*note Booting::).
+-
+- Here is an example:
+-
+- grub> bootp
+- Probing... [NE*000]
+- NE2000 base ...
+- Address: 192.168.110.23 Netmask: 255.255.255.0
+- Server: 192.168.110.14 Gateway: 192.168.110.1
+-
+- grub> root (nd)
+- grub> kernel /tftproot/gnumach.gz root=sd0s1
+- grub> module /tftproot/serverboot.gz
+- grub> boot
+-
+-
+-File: grub.info, Node: General usage of network support-Footnotes, Up: General usage of network support
+-
+- (1) RARP is not advised, since it cannot serve much information
+-
+-
+-File: grub.info, Node: Diskless, Prev: General usage of network support, Up: Network
+-
+-6.2 Booting from a network
+-==========================
+-
+-It is sometimes very useful to boot from a network, especially when you
+-use a machine which has no local disk. In this case, you need to obtain
+-a kind of Net Boot ROM, such as a PXE ROM or a free software package
+-like Etherboot. Such a Boot ROM first boots the machine, sets up the
+-network card installed into the machine, and downloads a second stage
+-boot image from the network. Then, the second image will try to boot an
+-operating system actually from the network.
+-
+- GRUB provides two second stage images, `nbgrub' and `pxegrub' (*note
+-Images::). These images are the same as the normal Stage 2, except that
+-they set up a network automatically, and try to load a configuration
+-file from the network, if specified. The usage is very simple: If the
+-machine has a PXE ROM, use `pxegrub'. If the machine has an NBI loader
+-such as Etherboot, use `nbgrub'. There is no difference between them
+-except their formats. Since the way to load a second stage image you
+-want to use should be described in the manual on your Net Boot ROM,
+-please refer to the manual, for more information.
+-
+- However, there is one thing specific to GRUB. Namely, how to specify
+-a configuration file in a BOOTP/DHCP server. For now, GRUB uses the tag
+-`150', to get the name of a configuration file. The following is an
+-example with a BOOTP configuration:
+-
+- .allhost:hd=/tmp:bf=null:\
+- :ds=145.71.35.1 145.71.32.1:\
+- :sm=255.255.254.0:\
+- :gw=145.71.35.1:\
+- :sa=145.71.35.5:
+-
+- foo:ht=1:ha=63655d0334a7:ip=145.71.35.127:\
+- :bf=/nbgrub:\
+- :tc=.allhost:\
+- :T150="(nd)/tftpboot/menu.lst.foo":
+-
+- Note that you should specify the drive name `(nd)' in the name of
+-the configuration file. This is because you might change the root drive
+-before downloading the configuration from the TFTP server when the
+-preset menu feature is used (*note Preset Menu::).
+-
+- See the manual of your BOOTP/DHCP server for more information. The
+-exact syntax should differ a little from the example.
+-
+-
+-File: grub.info, Node: Serial terminal, Next: Preset Menu, Prev: Network, Up: Top
+-
+-7 Using GRUB via a serial line
+-******************************
+-
+-This chapter describes how to use the serial terminal support in GRUB.
+-
+- If you have many computers or computers with no display/keyboard, it
+-could be very useful to control the computers through serial
+-communications. To connect one computer with another via a serial line,
+-you need to prepare a null-modem (cross) serial cable, and you may need
+-to have multiport serial boards, if your computer doesn't have extra
+-serial ports. In addition, a terminal emulator is also required, such as
+-minicom. Refer to a manual of your operating system, for more
+-information.
+-
+- As for GRUB, the instruction to set up a serial terminal is quite
+-simple. First of all, make sure that you haven't specified the option
+-`--disable-serial' to the configure script when you built your GRUB
+-images. If you get them in binary form, probably they have serial
+-terminal support already.
+-
+- Then, initialize your serial terminal after GRUB starts up. Here is
+-an example:
+-
+- grub> serial --unit=0 --speed=9600
+- grub> terminal serial
+-
+- The command `serial' initializes the serial unit 0 with the speed
+-9600bps. The serial unit 0 is usually called `COM1', so, if you want to
+-use COM2, you must specify `--unit=1' instead. This command accepts
+-many other options, so please refer to *Note serial::, for more details.
+-
+- The command `terminal' (*note terminal::) chooses which type of
+-terminal you want to use. In the case above, the terminal will be a
+-serial terminal, but you can also pass `console' to the command, as
+-`terminal serial console'. In this case, a terminal in which you press
+-any key will be selected as a GRUB terminal.
+-
+- However, note that GRUB assumes that your terminal emulator is
+-compatible with VT100 by default. This is true for most terminal
+-emulators nowadays, but you should pass the option `--dumb' to the
+-command if your terminal emulator is not VT100-compatible or implements
+-few VT100 escape sequences. If you specify this option then GRUB
+-provides you with an alternative menu interface, because the normal
+-menu requires several fancy features of your terminal.
+-
+-
+-File: grub.info, Node: Preset Menu, Next: Security, Prev: Serial terminal, Up: Top
+-
+-8 Embedding a configuration file into GRUB
+-******************************************
+-
+-GRUB supports a "preset menu" which is to be always loaded before
+-starting. The preset menu feature is useful, for example, when your
+-computer has no console but a serial cable. In this case, it is
+-critical to set up the serial terminal as soon as possible, since you
+-cannot see any message until the serial terminal begins to work. So it
+-is good to run the commands `serial' (*note serial::) and `terminal'
+-(*note terminal::) before anything else at the start-up time.
+-
+- How the preset menu works is slightly complicated:
+-
+- 1. GRUB checks if the preset menu feature is used, and loads the
+- preset menu, if available. This includes running commands and
+- reading boot entries, like an ordinary configuration file.
+-
+- 2. GRUB checks if the configuration file is available. Note that this
+- check is performed *regardless of the existence of the preset
+- menu*. The configuration file is loaded even if the preset menu was
+- loaded.
+-
+- 3. If the preset menu includes any boot entries, they are cleared when
+- the configuration file is loaded. It doesn't matter whether the
+- configuration file has any entries or no entry. The boot entries
+- in the preset menu are used only when GRUB fails in loading the
+- configuration file.
+-
+- To enable the preset menu feature, you must rebuild GRUB specifying a
+-file to the configure script with the option `--enable-preset-menu'.
+-The file has the same semantics as normal configuration files (*note
+-Configuration::).
+-
+- Another point you should take care is that the diskless support
+-(*note Diskless::) diverts the preset menu. Diskless images embed a
+-preset menu to execute the command `bootp' (*note bootp::)
+-automatically, unless you specify your own preset menu to the configure
+-script. This means that you must put commands to initialize a network in
+-the preset menu yourself, because diskless images don't set it up
+-implicitly, when you use the preset menu explicitly.
+-
+- Therefore, a typical preset menu used with diskless support would be
+-like this:
+-
+- # Set up the serial terminal, first of all.
+- serial --unit=0 --speed=19200
+- terminal --timeout=0 serial
+-
+- # Initialize the network.
+- dhcp
+-
+-
+-File: grub.info, Node: Security, Next: Images, Prev: Preset Menu, Up: Top
+-
+-9 Protecting your computer from cracking
+-****************************************
+-
+-You may be interested in how to prevent ordinary users from doing
+-whatever they like, if you share your computer with other people. So
+-this chapter describes how to improve the security of GRUB.
+-
+- One thing which could be a security hole is that the user can do too
+-many things with GRUB, because GRUB allows one to modify its
+-configuration and run arbitrary commands at run-time. For example, the
+-user can even read `/etc/passwd' in the command-line interface by the
+-command `cat' (*note cat::). So it is necessary to disable all the
+-interactive operations.
+-
+- Thus, GRUB provides a "password" feature, so that only administrators
+-can start the interactive operations (i.e. editing menu entries and
+-entering the command-line interface). To use this feature, you need to
+-run the command `password' in your configuration file (*note
+-password::), like this:
+-
+- password --md5 PASSWORD
+-
+- If this is specified, GRUB disallows any interactive control, until
+-you press the key <p> and enter a correct password. The option `--md5'
+-tells GRUB that `PASSWORD' is in MD5 format. If it is omitted, GRUB
+-assumes the `PASSWORD' is in clear text.
+-
+- You can encrypt your password with the command `md5crypt' (*note
+-md5crypt::). For example, run the grub shell (*note Invoking the grub
+-shell::), and enter your password:
+-
+- grub> md5crypt
+- Password: **********
+- Encrypted: $1$U$JK7xFegdxWH6VuppCUSIb.
+-
+- Then, cut and paste the encrypted password to your configuration
+-file.
+-
+- Also, you can specify an optional argument to `password'. See this
+-example:
+-
+- password PASSWORD /boot/grub/menu-admin.lst
+-
+- In this case, GRUB will load `/boot/grub/menu-admin.lst' as a
+-configuration file when you enter the valid password.
+-
+- Another thing which may be dangerous is that any user can choose any
+-menu entry. Usually, this wouldn't be problematic, but you might want to
+-permit only administrators to run some of your menu entries, such as an
+-entry for booting an insecure OS like DOS.
+-
+- GRUB provides the command `lock' (*note lock::). This command always
+-fails until you enter the valid password, so you can use it, like this:
+-
+- title Boot DOS
+- lock
+- rootnoverify (hd0,1)
+- makeactive
+- chainload +1
+-
+- You should insert `lock' right after `title', because any user can
+-execute commands in an entry until GRUB encounters `lock'.
+-
+- You can also use the command `password' instead of `lock'. In this
+-case the boot process will ask for the password and stop if it was
+-entered incorrectly. Since the `password' takes its own PASSWORD
+-argument this is useful if you want different passwords for different
+-entries.
+-
+-
+-File: grub.info, Node: Images, Next: Filesystem, Prev: Security, Up: Top
+-
+-10 GRUB image files
+-*******************
+-
+-GRUB consists of several images: two essential stages, optional stages
+-called "Stage 1.5", one image for bootable CD-ROM, and two network boot
+-images. Here is a short overview of them. *Note Internals::, for more
+-details.
+-
+-`stage1'
+- This is an essential image used for booting up GRUB. Usually, this
+- is embedded in an MBR or the boot sector of a partition. Because a
+- PC boot sector is 512 bytes, the size of this image is exactly 512
+- bytes.
+-
+- All `stage1' must do is to load Stage 2 or Stage 1.5 from a local
+- disk. Because of the size restriction, `stage1' encodes the
+- location of Stage 2 (or Stage 1.5) in a block list format, so it
+- never understand any filesystem structure.
+-
+-`stage2'
+- This is the core image of GRUB. It does everything but booting up
+- itself. Usually, this is put in a filesystem, but that is not
+- required.
+-
+-`e2fs_stage1_5'
+-`fat_stage1_5'
+-`ffs_stage1_5'
+-`jfs_stage1_5'
+-`minix_stage1_5'
+-`reiserfs_stage1_5'
+-`vstafs_stage1_5'
+-`xfs_stage1_5'
+- These are called "Stage 1.5", because they serve as a bridge
+- between `stage1' and `stage2', that is to say, Stage 1.5 is loaded
+- by Stage 1 and Stage 1.5 loads Stage 2. The difference between
+- `stage1' and `*_stage1_5' is that the former doesn't understand
+- any filesystem while the latter understands one filesystem (e.g.
+- `e2fs_stage1_5' understands ext2fs). So you can move the Stage 2
+- image to another location safely, even after GRUB has been
+- installed.
+-
+- While Stage 2 cannot generally be embedded in a fixed area as the
+- size is so large, Stage 1.5 can be installed into the area right
+- after an MBR, or the boot loader area of a ReiserFS or a FFS.
+-
+-`stage2_eltorito'
+- This is a boot image for CD-ROMs using the "no emulation mode" in
+- El Torito specification. This is identical to Stage 2, except that
+- this boots up without Stage 1 and sets up a special drive `(cd)'.
+-
+-`nbgrub'
+- This is a network boot image for the Network Image Proposal used
+- by some network boot loaders, such as Etherboot. This is mostly
+- the same as Stage 2, but it also sets up a network and loads a
+- configuration file from the network.
+-
+-`pxegrub'
+- This is another network boot image for the Preboot Execution
+- Environment used by several Netboot ROMs. This is identical to
+- `nbgrub', except for the format.
+-
+-
+-File: grub.info, Node: Filesystem, Next: Interface, Prev: Images, Up: Top
+-
+-11 Filesystem syntax and semantics
+-**********************************
+-
+-GRUB uses a special syntax for specifying disk drives which can be
+-accessed by BIOS. Because of BIOS limitations, GRUB cannot distinguish
+-between IDE, ESDI, SCSI, or others. You must know yourself which BIOS
+-device is equivalent to which OS device. Normally, that will be clear if
+-you see the files in a device or use the command `find' (*note find::).
+-
+-* Menu:
+-
+-* Device syntax:: How to specify devices
+-* File name syntax:: How to specify files
+-* Block list syntax:: How to specify block lists
+-
+-
+-File: grub.info, Node: Device syntax, Next: File name syntax, Up: Filesystem
+-
+-11.1 How to specify devices
+-===========================
+-
+-The device syntax is like this:
+-
+- `(DEVICE[,PART-NUM][,BSD-SUBPART-LETTER])'
+-
+- `[]' means the parameter is optional. DEVICE should be either `fd'
+-or `hd' followed by a digit, like `fd0'. But you can also set DEVICE
+-to a hexadecimal or a decimal number which is a BIOS drive number, so
+-the following are equivalent:
+-
+- (hd0)
+- (0x80)
+- (128)
+-
+- PART-NUM represents the partition number of DEVICE, starting from
+-zero for primary partitions and from four for extended partitions, and
+-BSD-SUBPART-LETTER represents the BSD disklabel subpartition, such as
+-`a' or `e'.
+-
+- A shortcut for specifying BSD subpartitions is
+-`(DEVICE,BSD-SUBPART-LETTER)', in this case, GRUB searches for the
+-first PC partition containing a BSD disklabel, then finds the
+-subpartition BSD-SUBPART-LETTER. Here is an example:
+-
+- (hd0,a)
+-
+- The syntax `(hd0)' represents using the entire disk (or the MBR when
+-installing GRUB), while the syntax `(hd0,0)' represents using the first
+-partition of the disk (or the boot sector of the partition when
+-installing GRUB).
+-
+- If you enabled the network support, the special drive, `(nd)', is
+-also available. Before using the network drive, you must initialize the
+-network. *Note Network::, for more information.
+-
+- If you boot GRUB from a CD-ROM, `(cd)' is available. *Note Making a
+-GRUB bootable CD-ROM::, for details.
+-
+-
+-File: grub.info, Node: File name syntax, Next: Block list syntax, Prev: Device syntax, Up: Filesystem
+-
+-11.2 How to specify files
+-=========================
+-
+-There are two ways to specify files, by "absolute file name" and by
+-"block list".
+-
+- An absolute file name resembles a Unix absolute file name, using `/'
+-for the directory separator (not `\' as in DOS). One example is
+-`(hd0,0)/boot/grub/grub.conf'. This means the file
+-`/boot/grub/grub.conf' in the first partition of the first hard disk.
+-If you omit the device name in an absolute file name, GRUB uses GRUB's
+-"root device" implicitly. So if you set the root device to, say,
+-`(hd1,0)' by the command `root' (*note root::), then `/boot/kernel' is
+-the same as `(hd1,0)/boot/kernel'.
+-
+-
+-File: grub.info, Node: Block list syntax, Prev: File name syntax, Up: Filesystem
+-
+-11.3 How to specify block lists
+-===============================
+-
+-A block list is used for specifying a file that doesn't appear in the
+-filesystem, like a chainloader. The syntax is
+-`[OFFSET]+LENGTH[,[OFFSET]+LENGTH]...'. Here is an example:
+-
+- `0+100,200+1,300+300'
+-
+- This represents that GRUB should read blocks 0 through 99, block 200,
+-and blocks 300 through 599. If you omit an offset, then GRUB assumes
+-the offset is zero.
+-
+- Like the file name syntax (*note File name syntax::), if a blocklist
+-does not contain a device name, then GRUB uses GRUB's "root device". So
+-`(hd0,1)+1' is the same as `+1' when the root device is `(hd0,1)'.
+-
+-
+-File: grub.info, Node: Interface, Next: Commands, Prev: Filesystem, Up: Top
+-
+-12 GRUB's user interface
+-************************
+-
+-GRUB has both a simple menu interface for choosing preset entries from a
+-configuration file, and a highly flexible command-line for performing
+-any desired combination of boot commands.
+-
+- GRUB looks for its configuration file as soon as it is loaded. If one
+-is found, then the full menu interface is activated using whatever
+-entries were found in the file. If you choose the "command-line" menu
+-option, or if the configuration file was not found, then GRUB drops to
+-the command-line interface.
+-
+-* Menu:
+-
+-* Command-line interface:: The flexible command-line interface
+-* Menu interface:: The simple menu interface
+-* Menu entry editor:: Editing a menu entry
+-* Hidden menu interface:: The hidden menu interface
+-
+-
+-File: grub.info, Node: Command-line interface, Next: Menu interface, Up: Interface
+-
+-12.1 The flexible command-line interface
+-========================================
+-
+-The command-line interface provides a prompt and after it an editable
+-text area much like a command-line in Unix or DOS. Each command is
+-immediately executed after it is entered(1) (*note Command-line
+-interface-Footnote-1::). The commands (*note Command-line and menu
+-entry commands::) are a subset of those available in the configuration
+-file, used with exactly the same syntax.
+-
+- Cursor movement and editing of the text on the line can be done via a
+-subset of the functions available in the Bash shell:
+-
+-<C-f>
+-<PC right key>
+- Move forward one character.
+-
+-<C-b>
+-<PC left key>
+- Move back one character.
+-
+-<C-a>
+-<HOME>
+- Move to the start of the line.
+-
+-<C-e>
+-<END>
+- Move the the end of the line.
+-
+-<C-d>
+-<DEL>
+- Delete the character underneath the cursor.
+-
+-<C-h>
+-<BS>
+- Delete the character to the left of the cursor.
+-
+-<C-k>
+- Kill the text from the current cursor position to the end of the
+- line.
+-
+-<C-u>
+- Kill backward from the cursor to the beginning of the line.
+-
+-<C-y>
+- Yank the killed text back into the buffer at the cursor.
+-
+-<C-p>
+-<PC up key>
+- Move up through the history list.
+-
+-<C-n>
+-<PC down key>
+- Move down through the history list.
+-
+- When typing commands interactively, if the cursor is within or before
+-the first word in the command-line, pressing the <TAB> key (or <C-i>)
+-will display a listing of the available commands, and if the cursor is
+-after the first word, the `<TAB>' will provide a completion listing of
+-disks, partitions, and file names depending on the context. Note that
+-to obtain a list of drives, one must open a parenthesis, as `root ('.
+-
+- Note that you cannot use the completion functionality in the TFTP
+-filesystem. This is because TFTP doesn't support file name listing for
+-the security.
+-
+-
+-File: grub.info, Node: Command-line interface-Footnotes, Up: Command-line interface
+-
+- (1) However, this behavior will be changed in the future version, in
+-a user-invisible way.
+-
+-
+-File: grub.info, Node: Menu interface, Next: Menu entry editor, Prev: Command-line interface, Up: Interface
+-
+-12.2 The simple menu interface
+-==============================
+-
+-The menu interface is quite easy to use. Its commands are both
+-reasonably intuitive and described on screen.
+-
+- Basically, the menu interface provides a list of "boot entries" to
+-the user to choose from. Use the arrow keys to select the entry of
+-choice, then press <RET> to run it. An optional timeout is available
+-to boot the default entry (the first one if not set), which is aborted
+-by pressing any key.
+-
+- Commands are available to enter a bare command-line by pressing <c>
+-(which operates exactly like the non-config-file version of GRUB, but
+-allows one to return to the menu if desired by pressing <ESC>) or to
+-edit any of the "boot entries" by pressing <e>.
+-
+- If you protect the menu interface with a password (*note Security::),
+-all you can do is choose an entry by pressing <RET>, or press <p> to
+-enter the password.
+-
+-
+-File: grub.info, Node: Menu entry editor, Next: Hidden menu interface, Prev: Menu interface, Up: Interface
+-
+-12.3 Editing a menu entry
+-=========================
+-
+-The menu entry editor looks much like the main menu interface, but the
+-lines in the menu are individual commands in the selected entry instead
+-of entry names.
+-
+- If an <ESC> is pressed in the editor, it aborts all the changes made
+-to the configuration entry and returns to the main menu interface.
+-
+- When a particular line is selected, the editor places the user in a
+-special version of the GRUB command-line to edit that line. When the
+-user hits <RET>, GRUB replaces the line in question in the boot entry
+-with the changes (unless it was aborted via <ESC>, in which case the
+-changes are thrown away).
+-
+- If you want to add a new line to the menu entry, press <o> if adding
+-a line after the current line or press <O> if before the current line.
+-
+- To delete a line, hit the key <d>. Although GRUB unfortunately does
+-not support "undo", you can do almost the same thing by just returning
+-to the main menu.
+-
+-
+-File: grub.info, Node: Hidden menu interface, Prev: Menu entry editor, Up: Interface
+-
+-12.4 The hidden menu interface
+-==============================
+-
+-When your terminal is dumb or you request GRUB to hide the menu
+-interface explicitly with the command `hiddenmenu' (*note
+-hiddenmenu::), GRUB doesn't show the menu interface (*note Menu
+-interface::) and automatically boots the default entry, unless
+-interrupted by pressing <ESC>.
+-
+- When you interrupt the timeout and your terminal is dumb, GRUB falls
+-back to the command-line interface (*note Command-line interface::).
+-
+-
+-File: grub.info, Node: Commands, Next: Troubleshooting, Prev: Interface, Up: Top
+-
+-13 The list of available commands
+-*********************************
+-
+-In this chapter, we list all commands that are available in GRUB.
+-
+- Commands belong to different groups. A few can only be used in the
+-global section of the configuration file (or "menu"); most of them can
+-be entered on the command-line and can be used either anywhere in the
+-menu or specifically in the menu entries.
+-
+-* Menu:
+-
+-* Menu-specific commands::
+-* General commands::
+-* Command-line and menu entry commands::
+-
+-
+-File: grub.info, Node: Menu-specific commands, Next: General commands, Up: Commands
+-
+-13.1 The list of commands for the menu only
+-===========================================
+-
+-The semantics used in parsing the configuration file are the following:
+-
+- * The menu-specific commands have to be used before any others.
+-
+- * The files _must_ be in plain-text format.
+-
+- * `#' at the beginning of a line in a configuration file means it is
+- only a comment.
+-
+- * Options are separated by spaces.
+-
+- * All numbers can be either decimal or hexadecimal. A hexadecimal
+- number must be preceded by `0x', and is case-insensitive.
+-
+- * Extra options or text at the end of the line are ignored unless
+- otherwise specified.
+-
+- * Unrecognized commands are added to the current entry, except
+- before entries start, where they are ignored.
+-
+- These commands can only be used in the menu:
+-
+-* Menu:
+-
+-* default:: Set the default entry
+-* fallback:: Set the fallback entry
+-* hiddenmenu:: Hide the menu interface
+-* timeout:: Set the timeout
+-* title:: Start a menu entry
+-
+-
+-File: grub.info, Node: default, Next: fallback, Up: Menu-specific commands
+-
+-13.1.1 default
+---------------
+-
+- -- Command: default num
+- Set the default entry to the entry number NUM. Numbering starts
+- from 0, and the entry number 0 is the default if the command is not
+- used.
+-
+- You can specify `saved' instead of a number. In this case, the
+- default entry is the entry saved with the command `savedefault'.
+- *Note savedefault::, for more information.
+-
+-
+-File: grub.info, Node: fallback, Next: hiddenmenu, Prev: default, Up: Menu-specific commands
+-
+-13.1.2 fallback
+----------------
+-
+- -- Command: fallback num...
+- Go into unattended boot mode: if the default boot entry has any
+- errors, instead of waiting for the user to do something,
+- immediately start over using the NUM entry (same numbering as the
+- `default' command (*note default::)). This obviously won't help if
+- the machine was rebooted by a kernel that GRUB loaded. You can
+- specify multiple fallback entry numbers.
+-
+-
+-File: grub.info, Node: hiddenmenu, Next: timeout, Prev: fallback, Up: Menu-specific commands
+-
+-13.1.3 hiddenmenu
+------------------
+-
+- -- Command: hiddenmenu
+- Don't display the menu. If the command is used, no menu will be
+- displayed on the control terminal, and the default entry will be
+- booted after the timeout expired. The user can still request the
+- menu to be displayed by pressing <ESC> before the timeout expires.
+- See also *Note Hidden menu interface::.
+-
+-
+-File: grub.info, Node: timeout, Next: title, Prev: hiddenmenu, Up: Menu-specific commands
+-
+-13.1.4 timeout
+---------------
+-
+- -- Command: timeout sec
+- Set a timeout, in SEC seconds, before automatically booting the
+- default entry (normally the first entry defined).
+-
+-
+-File: grub.info, Node: title, Prev: timeout, Up: Menu-specific commands
+-
+-13.1.5 title
+-------------
+-
+- -- Command: title name ...
+- Start a new boot entry, and set its name to the contents of the
+- rest of the line, starting with the first non-space character.
+-
+-
+-File: grub.info, Node: General commands, Next: Command-line and menu entry commands, Prev: Menu-specific commands, Up: Commands
+-
+-13.2 The list of general commands
+-=================================
+-
+-Commands usable anywhere in the menu and in the command-line.
+-
+-* Menu:
+-
+-* bootp:: Initialize a network device via BOOTP
+-* color:: Color the menu interface
+-* device:: Specify a file as a drive
+-* dhcp:: Initialize a network device via DHCP
+-* hide:: Hide a partition
+-* ifconfig:: Configure a network device manually
+-* pager:: Change the state of the internal pager
+-* partnew:: Make a primary partition
+-* parttype:: Change the type of a partition
+-* password:: Set a password for the menu interface
+-* rarp:: Initialize a network device via RARP
+-* serial:: Set up a serial device
+-* setkey:: Configure the key map
+-* splashimage:: Use a splash image
+-* terminal:: Choose a terminal
+-* terminfo:: Define escape sequences for a terminal
+-* tftpserver:: Specify a TFTP server
+-* unhide:: Unhide a partition
+-
+-
+-File: grub.info, Node: bootp, Next: color, Up: General commands
+-
+-13.2.1 bootp
+-------------
+-
+- -- Command: bootp [`--with-configfile']
+- Initialize a network device via the "BOOTP" protocol. This command
+- is only available if GRUB is compiled with netboot support. See
+- also *Note Network::.
+-
+- If you specify `--with-configfile' to this command, GRUB will
+- fetch and load a configuration file specified by your BOOTP server
+- with the vendor tag `150'.
+-
+-
+-File: grub.info, Node: color, Next: device, Prev: bootp, Up: General commands
+-
+-13.2.2 color
+-------------
+-
+- -- Command: color normal [highlight]
+- Change the menu colors. The color NORMAL is used for most lines in
+- the menu (*note Menu interface::), and the color HIGHLIGHT is used
+- to highlight the line where the cursor points. If you omit
+- HIGHLIGHT, then the inverted color of NORMAL is used for the
+- highlighted line. The format of a color is
+- `FOREGROUND/BACKGROUND'. FOREGROUND and BACKGROUND are symbolic
+- color names. A symbolic color name must be one of these:
+-
+- * black
+-
+- * blue
+-
+- * green
+-
+- * cyan
+-
+- * red
+-
+- * magenta
+-
+- * brown
+-
+- * light-gray
+-
+- *These below can be specified only for the foreground.*
+-
+- * dark-gray
+-
+- * light-blue
+-
+- * light-green
+-
+- * light-cyan
+-
+- * light-red
+-
+- * light-magenta
+-
+- * yellow
+-
+- * white
+-
+- But only the first eight names can be used for BACKGROUND. You can
+- prefix `blink-' to FOREGROUND if you want a blinking foreground
+- color.
+-
+- This command can be used in the configuration file and on the
+- command line, so you may write something like this in your
+- configuration file:
+-
+- # Set default colors.
+- color light-gray/blue black/light-gray
+-
+- # Change the colors.
+- title OS-BS like
+- color magenta/blue black/magenta
+-
+-
+-File: grub.info, Node: device, Next: dhcp, Prev: color, Up: General commands
+-
+-13.2.3 device
+--------------
+-
+- -- Command: device drive file
+- In the grub shell, specify the file FILE as the actual drive for a
+- BIOS drive DRIVE. You can use this command to create a disk image,
+- and/or to fix the drives guessed by GRUB when GRUB fails to
+- determine them correctly, like this:
+-
+- grub> device (fd0) /floppy-image
+- grub> device (hd0) /dev/sd0
+-
+- This command can be used only in the grub shell (*note Invoking
+- the grub shell::).
+-
+-
+-File: grub.info, Node: dhcp, Next: hide, Prev: device, Up: General commands
+-
+-13.2.4 dhcp
+------------
+-
+- -- Command: dhcp [-with-configfile]
+- Initialize a network device via the "DHCP" protocol. Currently,
+- this command is just an alias for `bootp', since the two protocols
+- are very similar. This command is only available if GRUB is
+- compiled with netboot support. See also *Note Network::.
+-
+- If you specify `--with-configfile' to this command, GRUB will
+- fetch and load a configuration file specified by your DHCP server
+- with the vendor tag `150'.
+-
+-
+-File: grub.info, Node: hide, Next: ifconfig, Prev: dhcp, Up: General commands
+-
+-13.2.5 hide
+------------
+-
+- -- Command: hide partition
+- Hide the partition PARTITION by setting the "hidden" bit in its
+- partition type code. This is useful only when booting DOS or
+- Windows and multiple primary FAT partitions exist in one disk. See
+- also *Note DOS/Windows::.
+-
+-
+-File: grub.info, Node: ifconfig, Next: pager, Prev: hide, Up: General commands
+-
+-13.2.6 ifconfig
+----------------
+-
+- -- Command: ifconfig [`--server=server'] [`--gateway=gateway']
+- [`--mask=mask'] [`--address=address']
+- Configure the IP address, the netmask, the gateway, and the server
+- address of a network device manually. The values must be in dotted
+- decimal format, like `192.168.11.178'. The order of the options is
+- not important. This command shows current network configuration,
+- if no option is specified. See also *Note Network::.
+-
+-
+-File: grub.info, Node: pager, Next: partnew, Prev: ifconfig, Up: General commands
+-
+-13.2.7 pager
+-------------
+-
+- -- Command: pager [flag]
+- Toggle or set the state of the internal pager. If FLAG is `on',
+- the internal pager is enabled. If FLAG is `off', it is disabled.
+- If no argument is given, the state is toggled.
+-
+-
+-File: grub.info, Node: partnew, Next: parttype, Prev: pager, Up: General commands
+-
+-13.2.8 partnew
+---------------
+-
+- -- Command: partnew part type from len
+- Create a new primary partition. PART is a partition specification
+- in GRUB syntax (*note Naming convention::); TYPE is the partition
+- type and must be a number in the range `0-0xff'; FROM is the
+- starting address and LEN is the length, both in sector units.
+-
+-
+-File: grub.info, Node: parttype, Next: password, Prev: partnew, Up: General commands
+-
+-13.2.9 parttype
+----------------
+-
+- -- Command: parttype part type
+- Change the type of an existing partition. PART is a partition
+- specification in GRUB syntax (*note Naming convention::); TYPE is
+- the new partition type and must be a number in the range 0-0xff.
+-
+-
+-File: grub.info, Node: password, Next: rarp, Prev: parttype, Up: General commands
+-
+-13.2.10 password
+-----------------
+-
+- -- Command: password [`--md5'] passwd [new-config-file]
+- If used in the first section of a menu file, disable all
+- interactive editing control (menu entry editor and command-line)
+- and entries protected by the command `lock'. If the password
+- PASSWD is entered, it loads the NEW-CONFIG-FILE as a new config
+- file and restarts the GRUB Stage 2, if NEW-CONFIG-FILE is
+- specified. Otherwise, GRUB will just unlock the privileged
+- instructions. You can also use this command in the script
+- section, in which case it will ask for the password, before
+- continuing. The option `--md5' tells GRUB that PASSWD is
+- encrypted with `md5crypt' (*note md5crypt::).
+-
+-
+-File: grub.info, Node: rarp, Next: serial, Prev: password, Up: General commands
+-
+-13.2.11 rarp
+-------------
+-
+- -- Command: rarp
+- Initialize a network device via the "RARP" protocol. This command
+- is only available if GRUB is compiled with netboot support. See
+- also *Note Network::.
+-
+-
+-File: grub.info, Node: serial, Next: setkey, Prev: rarp, Up: General commands
+-
+-13.2.12 serial
+---------------
+-
+- -- Command: serial [`--unit=unit'] [`--port=port'] [`--speed=speed']
+- [`--word=word'] [`--parity=parity'] [`--stop=stop']
+- [`--device=dev']
+- Initialize a serial device. UNIT is a number in the range 0-3
+- specifying which serial port to use; default is 0, which
+- corresponds to the port often called COM1. PORT is the I/O port
+- where the UART is to be found; if specified it takes precedence
+- over UNIT. SPEED is the transmission speed; default is 9600. WORD
+- and STOP are the number of data bits and stop bits. Data bits must
+- be in the range 5-8 and stop bits must be 1 or 2. Default is 8 data
+- bits and one stop bit. PARITY is one of `no', `odd', `even' and
+- defaults to `no'. The option `--device' can only be used in the
+- grub shell and is used to specify the tty device to be used in the
+- host operating system (*note Invoking the grub shell::).
+-
+- The serial port is not used as a communication channel unless the
+- `terminal' command is used (*note terminal::).
+-
+- This command is only available if GRUB is compiled with serial
+- support. See also *Note Serial terminal::.
+-
+-
+-File: grub.info, Node: setkey, Next: splashimage, Prev: serial, Up: General commands
+-
+-13.2.13 setkey
+---------------
+-
+- -- Command: setkey [to_key from_key]
+- Change the keyboard map. The key FROM_KEY is mapped to the key
+- TO_KEY. If no argument is specified, reset key mappings. Note that
+- this command _does not_ exchange the keys. If you want to exchange
+- the keys, run this command again with the arguments exchanged,
+- like this:
+-
+- grub> setkey capslock control
+- grub> setkey control capslock
+-
+- A key must be an alphabet letter, a digit, or one of these symbols:
+- `escape', `exclam', `at', `numbersign', `dollar', `percent',
+- `caret', `ampersand', `asterisk', `parenleft', `parenright',
+- `minus', `underscore', `equal', `plus', `backspace', `tab',
+- `bracketleft', `braceleft', `bracketright', `braceright', `enter',
+- `control', `semicolon', `colon', `quote', `doublequote',
+- `backquote', `tilde', `shift', `backslash', `bar', `comma',
+- `less', `period', `greater', `slash', `question', `alt', `space',
+- `capslock', `FX' (`X' is a digit), and `delete'. This table
+- describes to which character each of the symbols corresponds:
+-
+- `exclam'
+- `!'
+-
+- `at'
+- `@'
+-
+- `numbersign'
+- `#'
+-
+- `dollar'
+- `$'
+-
+- `percent'
+- `%'
+-
+- `caret'
+- `^'
+-
+- `ampersand'
+- `&'
+-
+- `asterisk'
+- `*'
+-
+- `parenleft'
+- `('
+-
+- `parenright'
+- `)'
+-
+- `minus'
+- `-'
+-
+- `underscore'
+- `_'
+-
+- `equal'
+- `='
+-
+- `plus'
+- `+'
+-
+- `bracketleft'
+- `['
+-
+- `braceleft'
+- `{'
+-
+- `bracketright'
+- `]'
+-
+- `braceright'
+- `}'
+-
+- `semicolon'
+- `;'
+-
+- `colon'
+- `:'
+-
+- `quote'
+- `''
+-
+- `doublequote'
+- `"'
+-
+- `backquote'
+- ``'
+-
+- `tilde'
+- `~'
+-
+- `backslash'
+- `\'
+-
+- `bar'
+- `|'
+-
+- `comma'
+- `,'
+-
+- `less'
+- `<'
+-
+- `period'
+- `.'
+-
+- `greater'
+- `>'
+-
+- `slash'
+- `/'
+-
+- `question'
+- `?'
+-
+- `space'
+- ` '
+-
+-
+-File: grub.info, Node: splashimage, Next: terminal, Prev: setkey, Up: General commands
+-
+-13.2.14 splashimage
+--------------------
+-
+- -- Command: splashimage file
+- Select an image to use as the background image. This should be
+- specified using normal GRUB device naming syntax. The format of
+- the file is a gzipped xpm which is 640x480 with a 14 color palette.
+-
+-
+-File: grub.info, Node: terminal, Next: terminfo, Prev: splashimage, Up: General commands
+-
+-13.2.15 terminal
+-----------------
+-
+- -- Command: terminal [`--dumb'] [`--no-echo'] [`--no-edit']
+- [`--timeout=secs'] [`--lines=lines'] [`--silent'] [`console']
+- [`serial'] [`hercules']
+- Select a terminal for user interaction. The terminal is assumed to
+- be VT100-compatible unless `--dumb' is specified. If both
+- `console' and `serial' are specified, then GRUB will use the one
+- where a key is entered first or the first when the timeout
+- expires. If neither are specified, the current setting is
+- reported. This command is only available if GRUB is compiled with
+- serial support. See also *Note Serial terminal::.
+-
+- This may not make sense for most users, but GRUB supports Hercules
+- console as well. Hercules console is usable like the ordinary
+- console, and the usage is quite similar to that for serial
+- terminals: specify `hercules' as the argument.
+-
+- The option `--lines' defines the number of lines in your terminal,
+- and it is used for the internal pager function. If you don't
+- specify this option, the number is assumed as 24.
+-
+- The option `--silent' suppresses the message to prompt you to hit
+- any key. This might be useful if your system has no terminal
+- device.
+-
+- The option `--no-echo' has GRUB not to echo back input characters.
+- This implies the option `--no-edit'.
+-
+- The option `--no-edit' disables the BASH-like editing feature.
+-
+-
+-File: grub.info, Node: terminfo, Next: tftpserver, Prev: terminal, Up: General commands
+-
+-13.2.16 terminfo
+-----------------
+-
+- -- Command: terminfo `--name=name' `--cursor-address=seq'
+- [`--clear-screen=seq'] [`--enter-standout-mode=seq']
+- [`--exit-standout-mode=seq']
+- Define the capabilities of your terminal. Use this command to
+- define escape sequences, if it is not vt100-compatible. You may
+- use `\e' for <ESC> and `^X' for a control character.
+-
+- You can use the utility `grub-terminfo' to generate appropriate
+- arguments to this command. *Note Invoking grub-terminfo::.
+-
+- If no option is specified, the current settings are printed.
+-
+-
+-File: grub.info, Node: tftpserver, Next: unhide, Prev: terminfo, Up: General commands
+-
+-13.2.17 tftpserver
+-------------------
+-
+- -- Command: tftpserver ipaddr
+- *Caution:* This command exists only for backward compatibility.
+- Use `ifconfig' (*note ifconfig::) instead.
+-
+- Override a TFTP server address returned by a BOOTP/DHCP/RARP
+- server. The argument IPADDR must be in dotted decimal format, like
+- `192.168.0.15'. This command is only available if GRUB is compiled
+- with netboot support. See also *Note Network::.
+-
+-
+-File: grub.info, Node: unhide, Prev: tftpserver, Up: General commands
+-
+-13.2.18 unhide
+---------------
+-
+- -- Command: unhide partition
+- Unhide the partition PARTITION by clearing the "hidden" bit in its
+- partition type code. This is useful only when booting DOS or
+- Windows and multiple primary partitions exist on one disk. See also
+- *Note DOS/Windows::.
+-
+-
+-File: grub.info, Node: Command-line and menu entry commands, Prev: General commands, Up: Commands
+-
+-13.3 The list of command-line and menu entry commands
+-=====================================================
+-
+-These commands are usable in the command-line and in menu entries. If
+-you forget a command, you can run the command `help' (*note help::).
+-
+-* Menu:
+-
+-* blocklist:: Get the block list notation of a file
+-* boot:: Start up your operating system
+-* cat:: Show the contents of a file
+-* chainloader:: Chain-load another boot loader
+-* cmp:: Compare two files
+-* configfile:: Load a configuration file
+-* debug:: Toggle the debug flag
+-* displayapm:: Display APM information
+-* displaymem:: Display memory configuration
+-* embed:: Embed Stage 1.5
+-* find:: Find a file
+-* fstest:: Test a filesystem
+-* geometry:: Manipulate the geometry of a drive
+-* halt:: Shut down your computer
+-* help:: Show help messages
+-* impsprobe:: Probe SMP
+-* initrd:: Load an initrd
+-* install:: Install GRUB
+-* ioprobe:: Probe I/O ports used for a drive
+-* kernel:: Load a kernel
+-* lock:: Lock a menu entry
+-* makeactive:: Make a partition active
+-* map:: Map a drive to another
+-* md5crypt:: Encrypt a password in MD5 format
+-* module:: Load a module
+-* modulenounzip:: Load a module without decompression
+-* pause:: Wait for a key press
+-* quit:: Exit from the grub shell
+-* reboot:: Reboot your computer
+-* read:: Read data from memory
+-* root:: Set GRUB's root device
+-* rootnoverify:: Set GRUB's root device without mounting
+-* savedefault:: Save current entry as the default entry
+-* setup:: Set up GRUB's installation automatically
+-* testload:: Load a file for testing a filesystem
+-* testvbe:: Test VESA BIOS EXTENSION
+-* uppermem:: Set the upper memory size
+-* vbeprobe:: Probe VESA BIOS EXTENSION
+-
+-
+-File: grub.info, Node: blocklist, Next: boot, Up: Command-line and menu entry commands
+-
+-13.3.1 blocklist
+-----------------
+-
+- -- Command: blocklist file
+- Print the block list notation of the file FILE. *Note Block list
+- syntax::.
+-
+-
+-File: grub.info, Node: boot, Next: cat, Prev: blocklist, Up: Command-line and menu entry commands
+-
+-13.3.2 boot
+------------
+-
+- -- Command: boot
+- Boot the OS or chain-loader which has been loaded. Only necessary
+- if running the fully interactive command-line (it is implicit at
+- the end of a menu entry).
+-
+-
+-File: grub.info, Node: cat, Next: chainloader, Prev: boot, Up: Command-line and menu entry commands
+-
+-13.3.3 cat
+-----------
+-
+- -- Command: cat file
+- Display the contents of the file FILE. This command may be useful
+- to remind you of your OS's root partition:
+-
+- grub> cat /etc/fstab
+-
+-
+-File: grub.info, Node: chainloader, Next: cmp, Prev: cat, Up: Command-line and menu entry commands
+-
+-13.3.4 chainloader
+-------------------
+-
+- -- Command: chainloader [`--force'] file
+- Load FILE as a chain-loader. Like any other file loaded by the
+- filesystem code, it can use the blocklist notation to grab the
+- first sector of the current partition with `+1'. If you specify the
+- option `--force', then load FILE forcibly, whether it has a
+- correct signature or not. This is required when you want to load a
+- defective boot loader, such as SCO UnixWare 7.1 (*note SCO
+- UnixWare::).
+-
+-
+-File: grub.info, Node: cmp, Next: configfile, Prev: chainloader, Up: Command-line and menu entry commands
+-
+-13.3.5 cmp
+-----------
+-
+- -- Command: cmp file1 file2
+- Compare the file FILE1 with the file FILE2. If they differ in
+- size, print the sizes like this:
+-
+- Differ in size: 0x1234 [foo], 0x4321 [bar]
+-
+- If the sizes are equal but the bytes at an offset differ, then
+- print the bytes like this:
+-
+- Differ at the offset 777: 0xbe [foo], 0xef [bar]
+-
+- If they are completely identical, nothing will be printed.
+-
+-
+-File: grub.info, Node: configfile, Next: debug, Prev: cmp, Up: Command-line and menu entry commands
+-
+-13.3.6 configfile
+------------------
+-
+- -- Command: configfile file
+- Load FILE as a configuration file.
+-
+-
+-File: grub.info, Node: debug, Next: displayapm, Prev: configfile, Up: Command-line and menu entry commands
+-
+-13.3.7 debug
+-------------
+-
+- -- Command: debug
+- Toggle debug mode (by default it is off). When debug mode is on,
+- some extra messages are printed to show disk activity. This global
+- debug flag is mainly useful for GRUB developers when testing new
+- code.
+-
+-
+-File: grub.info, Node: displayapm, Next: displaymem, Prev: debug, Up: Command-line and menu entry commands
+-
+-13.3.8 displayapm
+------------------
+-
+- -- Command: displayapm
+- Display APM BIOS information.
+-
+-
+-File: grub.info, Node: displaymem, Next: embed, Prev: displayapm, Up: Command-line and menu entry commands
+-
+-13.3.9 displaymem
+------------------
+-
+- -- Command: displaymem
+- Display what GRUB thinks the system address space map of the
+- machine is, including all regions of physical RAM installed. GRUB's
+- "upper/lower memory" display uses the standard BIOS interface for
+- the available memory in the first megabyte, or "lower memory", and
+- a synthesized number from various BIOS interfaces of the memory
+- starting at 1MB and going up to the first chipset hole for "upper
+- memory" (the standard PC "upper memory" interface is limited to
+- reporting a maximum of 64MB).
+-
+-
+-File: grub.info, Node: embed, Next: find, Prev: displaymem, Up: Command-line and menu entry commands
+-
+-13.3.10 embed
+--------------
+-
+- -- Command: embed stage1_5 device
+- Embed the Stage 1.5 STAGE1_5 in the sectors after the MBR if
+- DEVICE is a drive, or in the "boot loader" area if DEVICE is a FFS
+- partition or a ReiserFS partition.(1) (*note embed-Footnote-1::)
+- Print the number of sectors which STAGE1_5 occupies, if successful.
+-
+- Usually, you don't need to run this command directly. *Note
+- setup::.
+-
+-
+-File: grub.info, Node: embed-Footnotes, Up: embed
+-
+- (1) The latter feature has not been implemented yet.
+-
+-
+-File: grub.info, Node: find, Next: fstest, Prev: embed, Up: Command-line and menu entry commands
+-
+-13.3.11 find
+-------------
+-
+- -- Command: find filename
+- Search for the file name FILENAME in all mountable partitions and
+- print the list of the devices which contain the file. The file
+- name FILENAME should be an absolute file name like
+- `/boot/grub/stage1'.
+-
+-
+-File: grub.info, Node: fstest, Next: geometry, Prev: find, Up: Command-line and menu entry commands
+-
+-13.3.12 fstest
+---------------
+-
+- -- Command: fstest
+- Toggle filesystem test mode. Filesystem test mode, when turned
+- on, prints out data corresponding to all the device reads and what
+- values are being sent to the low-level routines. The format is
+- `<PARTITION-OFFSET-SECTOR, BYTE-OFFSET, BYTE-LENGTH>' for
+- high-level reads inside a partition, and `[DISK-OFFSET-SECTOR]'
+- for low-level sector requests from the disk. Filesystem test mode
+- is turned off by any use of the `install' (*note install::) or
+- `testload' (*note testload::) commands.
+-
+-
+-File: grub.info, Node: geometry, Next: halt, Prev: fstest, Up: Command-line and menu entry commands
+-
+-13.3.13 geometry
+-----------------
+-
+- -- Command: geometry drive [cylinder head sector [total_sector]]
+- Print the information for the drive DRIVE. In the grub shell, you
+- can set the geometry of the drive arbitrarily. The number of
+- cylinders, the number of heads, the number of sectors and the
+- number of total sectors are set to CYLINDER, HEAD, SECTOR and
+- TOTAL_SECTOR, respectively. If you omit TOTAL_SECTOR, then it will
+- be calculated based on the C/H/S values automatically.
+-
+-
+-File: grub.info, Node: halt, Next: help, Prev: geometry, Up: Command-line and menu entry commands
+-
+-13.3.14 halt
+-------------
+-
+- -- Command: halt `--no-apm'
+- The command halts the computer. If the `--no-apm' option is
+- specified, no APM BIOS call is performed. Otherwise, the computer
+- is shut down using APM.
+-
+-
+-File: grub.info, Node: help, Next: impsprobe, Prev: halt, Up: Command-line and menu entry commands
+-
+-13.3.15 help
+-------------
+-
+- -- Command: help `--all' [pattern ...]
+- Display helpful information about builtin commands. If you do not
+- specify PATTERN, this command shows short descriptions of most of
+- available commands. If you specify the option `--all' to this
+- command, short descriptions of rarely used commands (such as *Note
+- testload::) are displayed as well.
+-
+- If you specify any PATTERNS, it displays longer information about
+- each of the commands which match those PATTERNS.
+-
+-
+-File: grub.info, Node: impsprobe, Next: initrd, Prev: help, Up: Command-line and menu entry commands
+-
+-13.3.16 impsprobe
+------------------
+-
+- -- Command: impsprobe
+- Probe the Intel Multiprocessor Specification 1.1 or 1.4
+- configuration table and boot the various CPUs which are found into
+- a tight loop. This command can be used only in the Stage 2, but
+- not in the grub shell.
+-
+-
+-File: grub.info, Node: initrd, Next: install, Prev: impsprobe, Up: Command-line and menu entry commands
+-
+-13.3.17 initrd
+---------------
+-
+- -- Command: initrd file ...
+- Load an initial ramdisk for a Linux format boot image and set the
+- appropriate parameters in the Linux setup area in memory. See also
+- *Note GNU/Linux::.
+-
+-
+-File: grub.info, Node: install, Next: ioprobe, Prev: initrd, Up: Command-line and menu entry commands
+-
+-13.3.18 install
+----------------
+-
+- -- Command: install [`--force-lba'] [`--stage2=os_stage2_file']
+- stage1_file [`d'] dest_dev stage2_file [addr] [`p']
+- [config_file] [real_config_file]
+- This command is fairly complex, and you should not use this command
+- unless you are familiar with GRUB. Use `setup' (*note setup::)
+- instead.
+-
+- In short, it will perform a full install presuming the Stage 2 or
+- Stage 1.5(1) (*note install-Footnote-1::) is in its final install
+- location.
+-
+- In slightly more detail, it will load STAGE1_FILE, validate that
+- it is a GRUB Stage 1 of the right version number, install in it a
+- blocklist for loading STAGE2_FILE as a Stage 2. If the option `d'
+- is present, the Stage 1 will always look for the actual disk
+- STAGE2_FILE was installed on, rather than using the booting drive.
+- The Stage 2 will be loaded at address ADDR, which must be `0x8000'
+- for a true Stage 2, and `0x2000' for a Stage 1.5. If ADDR is not
+- present, GRUB will determine the address automatically. It then
+- writes the completed Stage 1 to the first block of the device
+- DEST_DEV. If the options `p' or CONFIG_FILE are present, then it
+- reads the first block of stage2, modifies it with the values of
+- the partition STAGE2_FILE was found on (for `p') or places the
+- string CONFIG_FILE into the area telling the stage2 where to look
+- for a configuration file at boot time. Likewise, if
+- REAL_CONFIG_FILE is present and STAGE2_FILE is a Stage 1.5, then
+- the Stage 2 CONFIG_FILE is patched with the configuration file
+- name REAL_CONFIG_FILE. This command preserves the DOS BPB (and for
+- hard disks, the partition table) of the sector the Stage 1 is to
+- be installed into.
+-
+- *Caution:* Several buggy BIOSes don't pass a booting drive
+- properly when booting from a hard disk drive. Therefore, you will
+- unfortunately have to specify the option `d', whether your Stage2
+- resides at the booting drive or not, if you have such a BIOS. We
+- know these are defective in this way:
+-
+-
+- Fujitsu LifeBook 400 BIOS version 31J0103A
+-
+-
+- HP Vectra XU 6/200 BIOS version GG.06.11
+-
+- *Caution2:* A number of BIOSes don't return a correct LBA support
+- bitmap even if they do have the support. So GRUB provides a
+- solution to ignore the wrong bitmap, that is, the option
+- `--force-lba'. Don't use this option if you know that your BIOS
+- doesn't have LBA support.
+-
+- *Caution3:* You must specify the option `--stage2' in the grub
+- shell, if you cannot unmount the filesystem where your stage2 file
+- resides. The argument should be the file name in your operating
+- system.
+-
+-
+-File: grub.info, Node: install-Footnotes, Up: install
+-
+- (1) They're loaded the same way, so we will refer to the Stage 1.5
+-as a Stage 2 from now on.
+-
+-
+-File: grub.info, Node: ioprobe, Next: kernel, Prev: install, Up: Command-line and menu entry commands
+-
+-13.3.19 ioprobe
+----------------
+-
+- -- Command: ioprobe drive
+- Probe I/O ports used for the drive DRIVE. This command will list
+- the I/O ports on the screen. For technical information, *Note
+- Internals::.
+-
+-
+-File: grub.info, Node: kernel, Next: lock, Prev: ioprobe, Up: Command-line and menu entry commands
+-
+-13.3.20 kernel
+---------------
+-
+- -- Command: kernel [`--type=type'] [`--no-mem-option'] file ...
+- Attempt to load the primary boot image (Multiboot a.out or ELF,
+- Linux zImage or bzImage, FreeBSD a.out, NetBSD a.out, etc.) from
+- FILE. The rest of the line is passed verbatim as the "kernel
+- command-line". Any modules must be reloaded after using this
+- command.
+-
+- This command also accepts the option `--type' so that you can
+- specify the kernel type of FILE explicitly. The argument TYPE must
+- be one of these: `netbsd', `freebsd', `openbsd', `linux',
+- `biglinux', and `multiboot'. However, you need to specify it only
+- if you want to load a NetBSD ELF kernel, because GRUB can
+- automatically determine a kernel type in the other cases, quite
+- safely.
+-
+- The option `--no-mem-option' is effective only for Linux. If the
+- option is specified, GRUB doesn't pass the option `mem=' to the
+- kernel. This option is implied for Linux kernels 2.4.18 and newer.
+-
+-
+-File: grub.info, Node: lock, Next: makeactive, Prev: kernel, Up: Command-line and menu entry commands
+-
+-13.3.21 lock
+-------------
+-
+- -- Command: lock
+- Prevent normal users from executing arbitrary menu entries. You
+- must use the command `password' if you really want this command to
+- be useful (*note password::).
+-
+- This command is used in a menu, as shown in this example:
+-
+- title This entry is too dangerous to be executed by normal users
+- lock
+- root (hd0,a)
+- kernel /no-security-os
+-
+- See also *Note Security::.
+-
+-
+-File: grub.info, Node: makeactive, Next: map, Prev: lock, Up: Command-line and menu entry commands
+-
+-13.3.22 makeactive
+-------------------
+-
+- -- Command: makeactive
+- Set the active partition on the root disk to GRUB's root device.
+- This command is limited to _primary_ PC partitions on a hard disk.
+-
+-
+-File: grub.info, Node: map, Next: md5crypt, Prev: makeactive, Up: Command-line and menu entry commands
+-
+-13.3.23 map
+------------
+-
+- -- Command: map to_drive from_drive
+- Map the drive FROM_DRIVE to the drive TO_DRIVE. This is necessary
+- when you chain-load some operating systems, such as DOS, if such
+- an OS resides at a non-first drive. Here is an example:
+-
+- grub> map (hd0) (hd1)
+- grub> map (hd1) (hd0)
+-
+- The example exchanges the order between the first hard disk and the
+- second hard disk. See also *Note DOS/Windows::.
+-
+-
+-File: grub.info, Node: md5crypt, Next: module, Prev: map, Up: Command-line and menu entry commands
+-
+-13.3.24 md5crypt
+-----------------
+-
+- -- Command: md5crypt
+- Prompt to enter a password, and encrypt it in MD5 format. The
+- encrypted password can be used with the command `password' (*note
+- password::). See also *Note Security::.
+-
+-
+-File: grub.info, Node: module, Next: modulenounzip, Prev: md5crypt, Up: Command-line and menu entry commands
+-
+-13.3.25 module
+---------------
+-
+- -- Command: module file ...
+- Load a boot module FILE for a Multiboot format boot image (no
+- interpretation of the file contents are made, so the user of this
+- command must know what the kernel in question expects). The rest
+- of the line is passed as the "module command-line", like the
+- `kernel' command. You must load a Multiboot kernel image before
+- loading any module. See also *Note modulenounzip::.
+-
+-
+-File: grub.info, Node: modulenounzip, Next: pause, Prev: module, Up: Command-line and menu entry commands
+-
+-13.3.26 modulenounzip
+----------------------
+-
+- -- Command: modulenounzip file ...
+- The same as `module' (*note module::), except that automatic
+- decompression is disabled.
+-
+-
+-File: grub.info, Node: pause, Next: quit, Prev: modulenounzip, Up: Command-line and menu entry commands
+-
+-13.3.27 pause
+--------------
+-
+- -- Command: pause message ...
+- Print the MESSAGE, then wait until a key is pressed. Note that
+- placing <^G> (ASCII code 7) in the message will cause the speaker
+- to emit the standard beep sound, which is useful when prompting
+- the user to change floppies.
+-
+-
+-File: grub.info, Node: quit, Next: reboot, Prev: pause, Up: Command-line and menu entry commands
+-
+-13.3.28 quit
+-------------
+-
+- -- Command: quit
+- Exit from the grub shell `grub' (*note Invoking the grub shell::).
+- This command can be used only in the grub shell.
+-
+-
+-File: grub.info, Node: reboot, Next: read, Prev: quit, Up: Command-line and menu entry commands
+-
+-13.3.29 reboot
+---------------
+-
+- -- Command: reboot
+- Reboot the computer.
+-
+-
+-File: grub.info, Node: read, Next: root, Prev: reboot, Up: Command-line and menu entry commands
+-
+-13.3.30 read
+-------------
+-
+- -- Command: read addr
+- Read a 32-bit value from memory at address ADDR and display it in
+- hex format.
+-
+-
+-File: grub.info, Node: root, Next: rootnoverify, Prev: read, Up: Command-line and menu entry commands
+-
+-13.3.31 root
+-------------
+-
+- -- Command: root device [hdbias]
+- Set the current "root device" to the device DEVICE, then attempt
+- to mount it to get the partition size (for passing the partition
+- descriptor in `ES:ESI', used by some chain-loaded boot loaders),
+- the BSD drive-type (for booting BSD kernels using their native
+- boot format), and correctly determine the PC partition where a BSD
+- sub-partition is located. The optional HDBIAS parameter is a
+- number to tell a BSD kernel how many BIOS drive numbers are on
+- controllers before the current one. For example, if there is an
+- IDE disk and a SCSI disk, and your FreeBSD root partition is on
+- the SCSI disk, then use a `1' for HDBIAS.
+-
+- See also *Note rootnoverify::.
+-
+-
+-File: grub.info, Node: rootnoverify, Next: savedefault, Prev: root, Up: Command-line and menu entry commands
+-
+-13.3.32 rootnoverify
+---------------------
+-
+- -- Command: rootnoverify device [hdbias]
+- Similar to `root' (*note root::), but don't attempt to mount the
+- partition. This is useful for when an OS is outside of the area of
+- the disk that GRUB can read, but setting the correct root device
+- is still desired. Note that the items mentioned in `root' above
+- which derived from attempting the mount will _not_ work correctly.
+-
+-
+-File: grub.info, Node: savedefault, Next: setup, Prev: rootnoverify, Up: Command-line and menu entry commands
+-
+-13.3.33 savedefault
+--------------------
+-
+- -- Command: savedefault num
+- Save the current menu entry or NUM if specified as a default
+- entry. Here is an example:
+-
+- default saved
+- timeout 10
+-
+- title GNU/Linux
+- root (hd0,0)
+- kernel /boot/vmlinuz root=/dev/sda1 vga=ext
+- initrd /boot/initrd
+- savedefault
+-
+- title FreeBSD
+- root (hd0,a)
+- kernel /boot/loader
+- savedefault
+-
+- With this configuration, GRUB will choose the entry booted
+- previously as the default entry.
+-
+- You can specify `fallback' instead of a number. Then, next
+- fallback entry is saved. Next fallback entry is chosen from
+- fallback entries. Normally, this will be the first entry in
+- fallback ones.
+-
+- See also *Note default:: and *Note Invoking grub-set-default::.
+-
+-
+-File: grub.info, Node: setup, Next: testload, Prev: savedefault, Up: Command-line and menu entry commands
+-
+-13.3.34 setup
+--------------
+-
+- -- Command: setup [`--force-lba'] [`--stage2=os_stage2_file']
+- [`--prefix=dir'] install_device [image_device]
+- Set up the installation of GRUB automatically. This command uses
+- the more flexible command `install' (*note install::) in the
+- backend and installs GRUB into the device INSTALL_DEVICE. If
+- IMAGE_DEVICE is specified, then find the GRUB images (*note
+- Images::) in the device IMAGE_DEVICE, otherwise use the current
+- "root device", which can be set by the command `root'. If
+- INSTALL_DEVICE is a hard disk, then embed a Stage 1.5 in the disk
+- if possible.
+-
+- The option `--prefix' specifies the directory under which GRUB
+- images are put. If it is not specified, GRUB automatically
+- searches them in `/boot/grub' and `/grub'.
+-
+- The options `--force-lba' and `--stage2' are just passed to
+- `install' if specified. *Note install::, for more information.
+-
+-
+-File: grub.info, Node: testload, Next: testvbe, Prev: setup, Up: Command-line and menu entry commands
+-
+-13.3.35 testload
+-----------------
+-
+- -- Command: testload file
+- Read the entire contents of FILE in several different ways and
+- compare them, to test the filesystem code. The output is somewhat
+- cryptic, but if no errors are reported and the final `i=X,
+- filepos=Y' reading has X and Y equal, then it is definitely
+- consistent, and very likely works correctly subject to a
+- consistent offset error. If this test succeeds, then a good next
+- step is to try loading a kernel.
+-
+-
+-File: grub.info, Node: testvbe, Next: uppermem, Prev: testload, Up: Command-line and menu entry commands
+-
+-13.3.36 testvbe
+----------------
+-
+- -- Command: testvbe mode
+- Test the VESA BIOS EXTENSION mode MODE. This command will switch
+- your video card to the graphics mode, and show an endless
+- animation. Hit any key to return. See also *Note vbeprobe::.
+-
+-
+-File: grub.info, Node: uppermem, Next: vbeprobe, Prev: testvbe, Up: Command-line and menu entry commands
+-
+-13.3.37 uppermem
+-----------------
+-
+- -- Command: uppermem kbytes
+- Force GRUB to assume that only KBYTES kilobytes of upper memory
+- are installed. Any system address range maps are discarded.
+-
+- *Caution:* This should be used with great caution, and should only
+- be necessary on some old machines. GRUB's BIOS probe can pick up
+- all RAM on all new machines the author has ever heard of. It can
+- also be used for debugging purposes to lie to an OS.
+-
+-
+-File: grub.info, Node: vbeprobe, Prev: uppermem, Up: Command-line and menu entry commands
+-
+-13.3.38 vbeprobe
+-----------------
+-
+- -- Command: vbeprobe [mode]
+- Probe VESA BIOS EXTENSION information. If the mode MODE is
+- specified, show only the information about MODE. Otherwise, this
+- command lists up available VBE modes on the screen. See also *Note
+- testvbe::.
+-
+-
+-File: grub.info, Node: Troubleshooting, Next: Invoking the grub shell, Prev: Commands, Up: Top
+-
+-14 Error messages reported by GRUB
+-**********************************
+-
+-This chapter describes error messages reported by GRUB when you
+-encounter trouble. *Note Invoking the grub shell::, if your problem is
+-specific to the grub shell.
+-
+-* Menu:
+-
+-* Stage1 errors:: Errors reported by the Stage 1
+-* Stage1.5 errors:: Errors reported by the Stage 1.5
+-* Stage2 errors:: Errors reported by the Stage 2
+-
+-
+-File: grub.info, Node: Stage1 errors, Next: Stage1.5 errors, Up: Troubleshooting
+-
+-14.1 Errors reported by the Stage 1
+-===================================
+-
+-The general way that the Stage 1 handles errors is to print an error
+-string and then halt. Pressing `<CTRL>-<ALT>-<DEL>' will reboot.
+-
+- The following is a comprehensive list of error messages for the
+-Stage 1:
+-
+-Hard Disk Error
+- The stage2 or stage1.5 is being read from a hard disk, and the
+- attempt to determine the size and geometry of the hard disk failed.
+-
+-Floppy Error
+- The stage2 or stage1.5 is being read from a floppy disk, and the
+- attempt to determine the size and geometry of the floppy disk
+- failed. It's listed as a separate error since the probe sequence
+- is different than for hard disks.
+-
+-Read Error
+- A disk read error happened while trying to read the stage2 or
+- stage1.5.
+-
+-Geom Error
+- The location of the stage2 or stage1.5 is not in the portion of
+- the disk supported directly by the BIOS read calls. This could
+- occur because the BIOS translated geometry has been changed by the
+- user or the disk is moved to another machine or controller after
+- installation, or GRUB was not installed using itself (if it was,
+- the Stage 2 version of this error would have been seen during that
+- process and it would not have completed the install).
+-
+-
+-File: grub.info, Node: Stage1.5 errors, Next: Stage2 errors, Prev: Stage1 errors, Up: Troubleshooting
+-
+-14.2 Errors reported by the Stage 1.5
+-=====================================
+-
+-The general way that the Stage 1.5 handles errors is to print an error
+-number in the form `Error NUM' and then halt. Pressing
+-`<CTRL>-<ALT>-<DEL>' will reboot.
+-
+- The error numbers correspond to the errors reported by Stage 2.
+-*Note Stage2 errors::.
+-
+-
+-File: grub.info, Node: Stage2 errors, Prev: Stage1.5 errors, Up: Troubleshooting
+-
+-14.3 Errors reported by the Stage 2
+-===================================
+-
+-The general way that the Stage 2 handles errors is to abort the
+-operation in question, print an error string, then (if possible) either
+-continue based on the fact that an error occurred or wait for the user
+-to deal with the error.
+-
+- The following is a comprehensive list of error messages for the
+-Stage 2 (error numbers for the Stage 1.5 are listed before the colon in
+-each description):
+-
+-1 : Filename must be either an absolute filename or blocklist
+- This error is returned if a file name is requested which doesn't
+- fit the syntax/rules listed in the *Note Filesystem::.
+-
+-2 : Bad file or directory type
+- This error is returned if a file requested is not a regular file,
+- but something like a symbolic link, directory, or FIFO.
+-
+-3 : Bad or corrupt data while decompressing file
+- This error is returned if the run-length decompression code gets an
+- internal error. This is usually from a corrupt file.
+-
+-4 : Bad or incompatible header in compressed file
+- This error is returned if the file header for a supposedly
+- compressed file is bad.
+-
+-5 : Partition table invalid or corrupt
+- This error is returned if the sanity checks on the integrity of the
+- partition table fail. This is a bad sign.
+-
+-6 : Mismatched or corrupt version of stage1/stage2
+- This error is returned if the install command points to
+- incompatible or corrupt versions of the stage1 or stage2. It can't
+- detect corruption in general, but this is a sanity check on the
+- version numbers, which should be correct.
+-
+-7 : Loading below 1MB is not supported
+- This error is returned if the lowest address in a kernel is below
+- the 1MB boundary. The Linux zImage format is a special case and
+- can be handled since it has a fixed loading address and maximum
+- size.
+-
+-8 : Kernel must be loaded before booting
+- This error is returned if GRUB is told to execute the boot sequence
+- without having a kernel to start.
+-
+-9 : Unknown boot failure
+- This error is returned if the boot attempt did not succeed for
+- reasons which are unknown.
+-
+-10 : Unsupported Multiboot features requested
+- This error is returned when the Multiboot features word in the
+- Multiboot header requires a feature that is not recognized. The
+- point of this is that the kernel requires special handling which
+- GRUB is probably unable to provide.
+-
+-11 : Unrecognized device string
+- This error is returned if a device string was expected, and the
+- string encountered didn't fit the syntax/rules listed in the *Note
+- Filesystem::.
+-
+-12 : Invalid device requested
+- This error is returned if a device string is recognizable but does
+- not fall under the other device errors.
+-
+-13 : Invalid or unsupported executable format
+- This error is returned if the kernel image being loaded is not
+- recognized as Multiboot or one of the supported native formats
+- (Linux zImage or bzImage, FreeBSD, or NetBSD).
+-
+-14 : Filesystem compatibility error, cannot read whole file
+- Some of the filesystem reading code in GRUB has limits on the
+- length of the files it can read. This error is returned when the
+- user runs into such a limit.
+-
+-15 : File not found
+- This error is returned if the specified file name cannot be found,
+- but everything else (like the disk/partition info) is OK.
+-
+-16 : Inconsistent filesystem structure
+- This error is returned by the filesystem code to denote an internal
+- error caused by the sanity checks of the filesystem structure on
+- disk not matching what it expects. This is usually caused by a
+- corrupt filesystem or bugs in the code handling it in GRUB.
+-
+-17 : Cannot mount selected partition
+- This error is returned if the partition requested exists, but the
+- filesystem type cannot be recognized by GRUB.
+-
+-18 : Selected cylinder exceeds maximum supported by BIOS
+- This error is returned when a read is attempted at a linear block
+- address beyond the end of the BIOS translated area. This generally
+- happens if your disk is larger than the BIOS can handle (512MB for
+- (E)IDE disks on older machines or larger than 8GB in general).
+-
+-19 : Linux kernel must be loaded before initrd
+- This error is returned if the initrd command is used before
+- loading a Linux kernel.
+-
+-20 : Multiboot kernel must be loaded before modules
+- This error is returned if the module load command is used before
+- loading a Multiboot kernel. It only makes sense in this case
+- anyway, as GRUB has no idea how to communicate the presence of
+- such modules to a non-Multiboot-aware kernel.
+-
+-21 : Selected disk does not exist
+- This error is returned if the device part of a device- or full
+- file name refers to a disk or BIOS device that is not present or
+- not recognized by the BIOS in the system.
+-
+-22 : No such partition
+- This error is returned if a partition is requested in the device
+- part of a device- or full file name which isn't on the selected
+- disk.
+-
+-23 : Error while parsing number
+- This error is returned if GRUB was expecting to read a number and
+- encountered bad data.
+-
+-24 : Attempt to access block outside partition
+- This error is returned if a linear block address is outside of the
+- disk partition. This generally happens because of a corrupt
+- filesystem on the disk or a bug in the code handling it in GRUB
+- (it's a great debugging tool).
+-
+-25 : Disk read error
+- This error is returned if there is a disk read error when trying to
+- probe or read data from a particular disk.
+-
+-26 : Too many symbolic links
+- This error is returned if the link count is beyond the maximum
+- (currently 5), possibly the symbolic links are looped.
+-
+-27 : Unrecognized command
+- This error is returned if an unrecognized command is entered on the
+- command-line or in a boot sequence section of a configuration file
+- and that entry is selected.
+-
+-28 : Selected item cannot fit into memory
+- This error is returned if a kernel, module, or raw file load
+- command is either trying to load its data such that it won't fit
+- into memory or it is simply too big.
+-
+-29 : Disk write error
+- This error is returned if there is a disk write error when trying
+- to write to a particular disk. This would generally only occur
+- during an install of set active partition command.
+-
+-30 : Invalid argument
+- This error is returned if an argument specified to a command is
+- invalid.
+-
+-31 : File is not sector aligned
+- This error may occur only when you access a ReiserFS partition by
+- block-lists (e.g. the command `install'). In this case, you should
+- mount the partition with the `-o notail' option.
+-
+-32 : Must be authenticated
+- This error is returned if you try to run a locked entry. You should
+- enter a correct password before running such an entry.
+-
+-33 : Serial device not configured
+- This error is returned if you try to change your terminal to a
+- serial one before initializing any serial device.
+-
+-34 : No spare sectors on the disk
+- This error is returned if a disk doesn't have enough spare space.
+- This happens when you try to embed Stage 1.5 into the unused
+- sectors after the MBR, but the first partition starts right after
+- the MBR or they are used by EZ-BIOS.
+-
+-
+-File: grub.info, Node: Invoking the grub shell, Next: Invoking grub-install, Prev: Troubleshooting, Up: Top
+-
+-15 Invoking the grub shell
+-**************************
+-
+-This chapter documents the grub shell `grub'. Note that the grub shell
+-is an emulator; it doesn't run under the native environment, so it
+-sometimes does something wrong. Therefore, you shouldn't trust it too
+-much. If there is anything wrong with it, don't hesitate to try the
+-native GRUB environment, especially when it guesses a wrong map between
+-BIOS drives and OS devices.
+-
+-* Menu:
+-
+-* Basic usage:: How to use the grub shell
+-* Installation under UNIX:: How to install GRUB via `grub'
+-* Device map:: The map between BIOS drives and OS devices
+-
+-
+-File: grub.info, Node: Basic usage, Next: Installation under UNIX, Up: Invoking the grub shell
+-
+-15.1 Introduction into the grub shell
+-=====================================
+-
+-You can use the command `grub' for installing GRUB under your operating
+-systems and for a testbed when you add a new feature into GRUB or when
+-fixing a bug. `grub' is almost the same as the Stage 2, and, in fact,
+-it shares the source code with the Stage 2 and you can use the same
+-commands (*note Commands::) in `grub'. It is emulated by replacing BIOS
+-calls with UNIX system calls and libc functions.
+-
+- The command `grub' accepts the following options:
+-
+-`--help'
+- Print a summary of the command-line options and exit.
+-
+-`--version'
+- Print the version number of GRUB and exit.
+-
+-`--verbose'
+- Print some verbose messages for debugging purpose.
+-
+-`--device-map=FILE'
+- Use the device map file FILE. The format is described in *Note
+- Device map::.
+-
+-`--no-floppy'
+- Do not probe any floppy drive. This option has no effect if the
+- option `--device-map' is specified (*note Device map::).
+-
+-`--probe-second-floppy'
+- Probe the second floppy drive. If this option is not specified,
+- the grub shell does not probe it, as that sometimes takes a long
+- time. If you specify the device map file (*note Device map::), the
+- grub shell just ignores this option.
+-
+-`--config-file=FILE'
+- Read the configuration file FILE instead of
+- `/boot/grub/grub.conf'. The format is the same as the normal GRUB
+- syntax. See *Note Filesystem::, for more information.
+-
+-`--boot-drive=DRIVE'
+- Set the stage2 BOOT_DRIVE to DRIVE. This argument should be an
+- integer (decimal, octal or hexadecimal).
+-
+-`--install-partition=PAR'
+- Set the stage2 INSTALL_PARTITION to PAR. This argument should be
+- an integer (decimal, octal or hexadecimal).
+-
+-`--no-config-file'
+- Do not use the configuration file even if it can be read.
+-
+-`--no-curses'
+- Do not use the screen handling interface by the curses even if it
+- is available.
+-
+-`--batch'
+- This option has the same meaning as `--no-config-file --no-curses'.
+-
+-`--read-only'
+- Disable writing to any disk.
+-
+-`--hold'
+- Wait until a debugger will attach. This option is useful when you
+- want to debug the startup code.
+-
+-
+-File: grub.info, Node: Installation under UNIX, Next: Device map, Prev: Basic usage, Up: Invoking the grub shell
+-
+-15.2 How to install GRUB via `grub'
+-===================================
+-
+-The installation procedure is the same as under the "native" Stage 2.
+-*Note Installation::, for more information. The command `grub'-specific
+-information is described here.
+-
+- What you should be careful about is "buffer cache". `grub' makes use
+-of raw devices instead of filesystems that your operating systems
+-serve, so there exists a potential problem that some cache
+-inconsistency may corrupt your filesystems. What we recommend is:
+-
+- * If you can unmount drives to which GRUB may write any amount of
+- data, unmount them before running `grub'.
+-
+- * If a drive cannot be unmounted but can be mounted with the
+- read-only flag, mount it in read-only mode. That should be secure.
+-
+- * If a drive must be mounted with the read-write flag, make sure
+- that no activity is being done on it while the command `grub' is
+- running.
+-
+- * Reboot your operating system as soon as possible. This is probably
+- not required if you follow the rules above, but reboot is the most
+- secure way.
+-
+- In addition, enter the command `quit' when you finish the
+-installation. That is _very important_ because `quit' makes the buffer
+-cache consistent. Do not push <C-c>.
+-
+- If you want to install GRUB non-interactively, specify `--batch'
+-option in the command-line. This is a simple example:
+-
+- #!/bin/sh
+-
+- # Use /usr/sbin/grub if you are on an older system.
+- /sbin/grub --batch <<EOT 1>/dev/null 2>/dev/null
+- root (hd0,0)
+- setup (hd0)
+- quit
+- EOT
+-
+-
+-File: grub.info, Node: Device map, Prev: Installation under UNIX, Up: Invoking the grub shell
+-
+-15.3 The map between BIOS drives and OS devices
+-===============================================
+-
+-When you specify the option `--device-map' (*note Basic usage::), the
+-grub shell creates the "device map file" automatically unless it
+-already exists. The file name `/boot/grub/device.map' is preferred.
+-
+- If the device map file exists, the grub shell reads it to map BIOS
+-drives to OS devices. This file consists of lines like this:
+-
+- DEVICE FILE
+-
+- DEVICE is a drive specified in the GRUB syntax (*note Device
+-syntax::), and FILE is an OS file, which is normally a device file.
+-
+- The reason why the grub shell gives you the device map file is that
+-it cannot guess the map between BIOS drives and OS devices correctly in
+-some environments. For example, if you exchange the boot sequence
+-between IDE and SCSI in your BIOS, it gets the order wrong.
+-
+- Thus, edit the file if the grub shell makes a mistake. You can put
+-any comments in the file if needed, as the grub shell assumes that a
+-line is just a comment if the first character is `#'.
+-
+-
+-File: grub.info, Node: Invoking grub-install, Next: Invoking grub-md5-crypt, Prev: Invoking the grub shell, Up: Top
+-
+-16 Invoking grub-install
+-************************
+-
+-The program `grub-install' installs GRUB on your drive using the grub
+-shell (*note Invoking the grub shell::). You must specify the device
+-name on which you want to install GRUB, like this:
+-
+- grub-install INSTALL_DEVICE
+-
+- The device name INSTALL_DEVICE is an OS device name or a GRUB device
+-name.
+-
+- `grub-install' accepts the following options:
+-
+-`--help'
+- Print a summary of the command-line options and exit.
+-
+-`--version'
+- Print the version number of GRUB and exit.
+-
+-`--force-lba'
+- Force GRUB to use LBA mode even for a buggy BIOS. Use this option
+- only if your BIOS doesn't work properly in LBA mode even though it
+- supports LBA mode.
+-
+-`--root-directory=DIR'
+- Install GRUB images under the directory DIR instead of the root
+- directory. This option is useful when you want to install GRUB
+- into a separate partition or a removable disk. Here is an example
+- in which you have a separate "boot" partition which is mounted on
+- `/boot':
+-
+- grub-install --root-directory=/boot hd0
+-
+-`--grub-shell=FILE'
+- Use FILE as the grub shell. You can append arbitrary options to
+- FILE after the file name, like this:
+-
+- grub-install --grub-shell="grub --read-only" /dev/fd0
+-
+-`--recheck'
+- Recheck the device map, even if `/boot/grub/device.map' already
+- exists.
+-
+- This option is unreliable and its use is strongly discouraged.
+-
+-
+-File: grub.info, Node: Invoking grub-md5-crypt, Next: Invoking grub-terminfo, Prev: Invoking grub-install, Up: Top
+-
+-17 Invoking grub-md5-crypt
+-**************************
+-
+-The program `grub-md5-crypt' encrypts a password in MD5 format. This
+-is just a frontend of the grub shell (*note Invoking the grub shell::).
+-Passwords encrypted by this program can be used with the command
+-`password' (*note password::).
+-
+- `grub-md5-crypt' accepts the following options:
+-
+-`--help'
+- Print a summary of the command-line options and exit.
+-
+-`--version'
+- Print the version information and exit.
+-
+-`--grub-shell=FILE'
+- Use FILE as the grub shell.
+-
+-
+-File: grub.info, Node: Invoking grub-terminfo, Next: Invoking grub-set-default, Prev: Invoking grub-md5-crypt, Up: Top
+-
+-18 Invoking grub-terminfo
+-*************************
+-
+-The program `grub-terminfo' generates a terminfo command from a
+-terminfo name (*note terminfo::). The result can be used in the
+-configuration file, to define escape sequences. Because GRUB assumes
+-that your terminal is vt100-compatible by default, this would be useful
+-only if your terminal is uncommon (such as vt52).
+-
+- `grub-terminfo' accepts the following options:
+-
+-`--help'
+- Print a summary of the command-line options and exit.
+-
+-`--version'
+- Print the version information and exit.
+-
+- You must specify one argument to this command. For example:
+-
+- grub-terminfo vt52
+-
+-
+-File: grub.info, Node: Invoking grub-set-default, Next: Invoking mbchk, Prev: Invoking grub-terminfo, Up: Top
+-
+-19 Invoking grub-set-default
+-****************************
+-
+-The program `grub-set-default' sets the default boot entry for GRUB.
+-This automatically creates a file named `default' under your GRUB
+-directory (i.e. `/boot/grub'), if it is not present. This file is used
+-to determine the default boot entry when GRUB boots up your system when
+-you use `default saved' in your configuration file (*note default::),
+-and to save next default boot entry when you use `savedefault' in a
+-boot entry (*note savedefault::).
+-
+- `grub-set-default' accepts the following options:
+-
+-`--help'
+- Print a summary of the command-line options and exit.
+-
+-`--version'
+- Print the version information and exit.
+-
+-`--root-directory=DIR'
+- Use the directory DIR instead of the root directory (i.e. `/') to
+- define the location of the default file. This is useful when you
+- mount a disk which is used for another system.
+-
+- You must specify a single argument to `grub-set-default'. This
+-argument is normally the number of a default boot entry. For example,
+-if you have this configuration file:
+-
+- default saved
+- timeout 10
+-
+- title GNU/Hurd
+- root (hd0,0)
+- ...
+-
+- title GNU/Linux
+- root (hd0,1)
+- ...
+-
+- and if you want to set the next default boot entry to GNU/Linux, you
+-may execute this command:
+-
+- grub-set-default 1
+-
+- Because the entry for GNU/Linux is `1'. Note that entries are
+-counted from zero. So, if you want to specify GNU/Hurd here, then you
+-should specify `0'.
+-
+- This feature is very useful if you want to test a new kernel or to
+-make your system quite robust. *Note Making your system robust::, for
+-more hints about how to set up a robust system.
+-
+-
+-File: grub.info, Node: Invoking mbchk, Next: Obtaining and Building GRUB, Prev: Invoking grub-set-default, Up: Top
+-
+-20 Invoking mbchk
+-*****************
+-
+-The program `mbchk' checks for the format of a Multiboot kernel. We
+-recommend using this program before booting your own kernel by GRUB.
+-
+- `mbchk' accepts the following options:
+-
+-`--help'
+- Print a summary of the command-line options and exit.
+-
+-`--version'
+- Print the version number of GRUB and exit.
+-
+-`--quiet'
+- Suppress all normal output.
+-
+-
+-File: grub.info, Node: Obtaining and Building GRUB, Next: Reporting bugs, Prev: Invoking mbchk, Up: Top
+-
+-Appendix A How to obtain and build GRUB
+-***************************************
+-
+- *Caution:* GRUB requires binutils-2.9.1.0.23 or later because the
+- GNU assembler has been changed so that it can produce real 16bits
+- machine code between 2.9.1 and 2.9.1.0.x. See
+- `http://sources.redhat.com/binutils/', to obtain information on
+- how to get the latest version.
+-
+- GRUB is available from the GNU alpha archive site
+-`ftp://alpha.gnu.org/gnu/grub' or any of its mirrors. The file will be
+-named grub-version.tar.gz. The current version is 0.97, so the file you
+-should grab is:
+-
+- `ftp://alpha.gnu.org/gnu/grub/grub-0.97.tar.gz'
+-
+- To unbundle GRUB use the instruction:
+-
+- zcat grub-0.97.tar.gz | tar xvf -
+-
+- which will create a directory called `grub-0.97' with all the
+-sources. You can look at the file `INSTALL' for detailed instructions
+-on how to build and install GRUB, but you should be able to just do:
+-
+- cd grub-0.97
+- ./configure
+- make install
+-
+- This will install the grub shell `grub' (*note Invoking the grub
+-shell::), the Multiboot checker `mbchk' (*note Invoking mbchk::), and
+-the GRUB images. This will also install the GRUB manual.
+-
+- Also, the latest version is available from the CVS. See
+-`http://savannah.gnu.org/cvs/?group=grub' for more information.
+-
+-
+-File: grub.info, Node: Reporting bugs, Next: Future, Prev: Obtaining and Building GRUB, Up: Top
+-
+-Appendix B Reporting bugs
+-*************************
+-
+-These are the guideline for how to report bugs. Take a look at this
+-list below before you submit bugs:
+-
+- 1. Before getting unsettled, read this manual through and through.
+- Also, see the GNU GRUB FAQ
+- (http://www.gnu.org/software/grub/grub-faq.html).
+-
+- 2. Always mention the information on your GRUB. The version number
+- and the configuration are quite important. If you build it
+- yourself, write the options specified to the configure script and
+- your operating system, including the versions of gcc and binutils.
+-
+- 3. If you have trouble with the installation, inform us of how you
+- installed GRUB. Don't omit error messages, if any. Just `GRUB hangs
+- up when it boots' is not enough.
+-
+- The information on your hardware is also essential. These are
+- especially important: the geometries and the partition tables of
+- your hard disk drives and your BIOS.
+-
+- 4. If GRUB cannot boot your operating system, write down _everything_
+- you see on the screen. Don't paraphrase them, like `The foo OS
+- crashes with GRUB, even though it can boot with the bar boot
+- loader just fine'. Mention the commands you executed, the messages
+- printed by them, and information on your operating system
+- including the version number.
+-
+- 5. Explain what you wanted to do. It is very useful to know your
+- purpose and your wish, and how GRUB didn't satisfy you.
+-
+- 6. If you can investigate the problem yourself, please do. That will
+- give you and us much more information on the problem. Attaching a
+- patch is even better.
+-
+- When you attach a patch, make the patch in unified diff format, and
+- write ChangeLog entries. But, even when you make a patch, don't
+- forget to explain the problem, so that we can understand what your
+- patch is for.
+-
+- 7. Write down anything that you think might be related. Please
+- understand that we often need to reproduce the same problem you
+- encounterred in our environment. So your information should be
+- sufficient for us to do the same thing--Don't forget that we
+- cannot see your computer directly. If you are not sure whether to
+- state a fact or leave it out, state it! Reporting too many things
+- is much better than omitting something important.
+-
+- If you follow the guideline above, submit a report to the Bug
+-Tracking System (http://savannah.gnu.org/bugs/?group=grub).
+-Alternatively, you can submit a report via electronic mail to
+-<bug-grub@gnu.org>, but we strongly recommend that you use the Bug
+-Tracking System, because e-mail can be passed over easily.
+-
+- Once we get your report, we will try to fix the bugs.
+-
+-
+-File: grub.info, Node: Future, Next: Internals, Prev: Reporting bugs, Up: Top
+-
+-Appendix C Where GRUB will go
+-*****************************
+-
+-We started the next generation of GRUB, GRUB 2. This will include
+-internationalization, dynamic module loading, real memory management,
+-multiple architecture support, a scripting language, and many other
+-nice feature. If you are interested in the development of GRUB 2, take
+-a look at the homepage (http://www.gnu.org/software/grub/grub.html).
+-
+-
+-File: grub.info, Node: Internals, Next: Index, Prev: Future, Up: Top
+-
+-Appendix D Hacking GRUB
+-***********************
+-
+-This chapter documents the user-invisible aspect of GRUB.
+-
+- As a general rule of software development, it is impossible to keep
+-the descriptions of the internals up-to-date, and it is quite hard to
+-document everything. So refer to the source code, whenever you are not
+-satisfied with this documentation. Please assume that this gives just
+-hints to you.
+-
+-* Menu:
+-
+-* Memory map:: The memory map of various components
+-* Embedded data:: Embedded variables in GRUB
+-* Filesystem interface:: The generic interface for filesystems
+-* Command interface:: The generic interface for built-ins
+-* Bootstrap tricks:: The bootstrap mechanism used in GRUB
+-* I/O ports detection:: How to probe I/O ports used by INT 13H
+-* Memory detection:: How to detect all installed RAM
+-* Low-level disk I/O:: INT 13H disk I/O interrupts
+-* MBR:: The structure of Master Boot Record
+-* Partition table:: The format of partition tables
+-* Submitting patches:: Where and how you should send patches
+-
+-
+-File: grub.info, Node: Memory map, Next: Embedded data, Up: Internals
+-
+-D.1 The memory map of various components
+-========================================
+-
+-GRUB consists of two distinct components, called "stages", which are
+-loaded at different times in the boot process. Because they run
+-mutual-exclusively, sometimes a memory area overlaps with another
+-memory area. And, even in one stage, a single memory area can be used
+-for various purposes, because their usages are mutually exclusive.
+-
+- Here is the memory map of the various components:
+-
+-0 to 4K-1
+- BIOS and real mode interrupts
+-
+-0x07BE to 0x07FF
+- Partition table passed to another boot loader
+-
+-down from 8K-1
+- Real mode stack
+-
+-0x2000 to ?
+- The optional Stage 1.5 is loaded here
+-
+-0x2000 to 0x7FFF
+- Command-line buffer for Multiboot kernels and modules
+-
+-0x7C00 to 0x7DFF
+- Stage 1 is loaded here by BIOS or another boot loader
+-
+-0x7F00 to 0x7F42
+- LBA drive parameters
+-
+-0x8000 to ?
+- Stage2 is loaded here
+-
+-The end of Stage 2 to 416K-1
+- Heap, in particular used for the menu
+-
+-down from 416K-1
+- Protected mode stack
+-
+-416K to 448K-1
+- Filesystem buffer
+-
+-448K to 479.5K-1
+- Raw device buffer
+-
+-479.5K to 480K-1
+- 512-byte scratch area
+-
+-480K to 512K-1
+- Buffers for various functions, such as password, command-line, cut
+- and paste, and completion.
+-
+-The last 1K of lower memory
+- Disk swapping code and data
+-
+- See the file `stage2/shared.h', for more information.
+-
+-
+-File: grub.info, Node: Embedded data, Next: Filesystem interface, Prev: Memory map, Up: Internals
+-
+-D.2 Embedded variables in GRUB
+-==============================
+-
+-Stage 1 and Stage 2 have embedded variables whose locations are
+-well-defined, so that the installation can patch the binary file
+-directly without recompilation of the stages.
+-
+- In Stage 1, these are defined:
+-
+-`0x3E'
+- The version number (not GRUB's, but the installation mechanism's).
+-
+-`0x40'
+- The boot drive. If it is 0xFF, use a drive passed by BIOS.
+-
+-`0x41'
+- The flag for if forcing LBA.
+-
+-`0x42'
+- The starting address of Stage 2.
+-
+-`0x44'
+- The first sector of Stage 2.
+-
+-`0x48'
+- The starting segment of Stage 2.
+-
+-`0x1FE'
+- The signature (`0xAA55').
+-
+- See the file `stage1/stage1.S', for more information.
+-
+- In the first sector of Stage 1.5 and Stage 2, the block lists are
+-recorded between `firstlist' and `lastlist'. The address of `lastlist'
+-is determined when assembling the file `stage2/start.S'.
+-
+- The trick here is that it is actually read backward, and the first
+-8-byte block list is not read here, but after the pointer is decremented
+-8 bytes, then after reading it, it decrements again, reads, and so on,
+-until it is finished. The terminating condition is when the number of
+-sectors to be read in the next block list is zero.
+-
+- The format of a block list can be seen from the example in the code
+-just before the `firstlist' label. Note that it is always from the
+-beginning of the disk, but _not_ relative to the partition boundaries.
+-
+- In the second sector of Stage 1.5 and Stage 2, these are defined:
+-
+-`0x6'
+- The version number (likewise, the installation mechanism's).
+-
+-`0x8'
+- The installed partition.
+-
+-`0xC'
+- The saved entry number.
+-
+-`0x10'
+- The identifier.
+-
+-`0x11'
+- The flag for if forcing LBA.
+-
+-`0x12'
+- The version string (GRUB's).
+-
+-`0x12' + "the length of the version string"
+- The name of a configuration file.
+-
+- See the file `stage2/asm.S', for more information.
+-
+-
+-File: grub.info, Node: Filesystem interface, Next: Command interface, Prev: Embedded data, Up: Internals
+-
+-D.3 The generic interface for filesystems
+-=========================================
+-
+-For any particular partition, it is presumed that only one of the
+-"normal" filesystems such as FAT, FFS, or ext2fs can be used, so there
+-is a switch table managed by the functions in `disk_io.c'. The notation
+-is that you can only "mount" one at a time.
+-
+- The block list filesystem has a special place in the system. In
+-addition to the "normal" filesystem (or even without one mounted), you
+-can access disk blocks directly (in the indicated partition) via the
+-block list notation. Using the block list filesystem doesn't effect any
+-other filesystem mounts.
+-
+- The variables which can be read by the filesystem backend are:
+-
+-`current_drive'
+- The current BIOS drive number (numbered from 0, if a floppy, and
+- numbered from 0x80, if a hard disk).
+-
+-`current_partition'
+- The current partition number.
+-
+-`current_slice'
+- The current partition type.
+-
+-`saved_drive'
+- The "drive" part of the root device.
+-
+-`saved_partition'
+- The "partition" part of the root device.
+-
+-`part_start'
+- The current partition starting address, in sectors.
+-
+-`part_length'
+- The current partition length, in sectors.
+-
+-`print_possibilities'
+- True when the `dir' function should print the possible completions
+- of a file, and false when it should try to actually open a file of
+- that name.
+-
+-`FSYS_BUF'
+- Filesystem buffer which is 32K in size, to use in any way which the
+- filesystem backend desires.
+-
+- The variables which need to be written by a filesystem backend are:
+-
+-`filepos'
+- The current position in the file, in sectors.
+-
+- *Caution:* the value of FILEPOS can be changed out from under the
+- filesystem code in the current implementation. Don't depend on it
+- being the same for later calls into the backend code!
+-
+-`filemax'
+- The length of the file.
+-
+-`disk_read_func'
+- The value of DISK_READ_HOOK _only_ during reading of data for the
+- file, not any other fs data, inodes, FAT tables, whatever, then
+- set to `NULL' at all other times (it will be `NULL' by default).
+- If this isn't done correctly, then the `testload' and `install'
+- commands won't work correctly.
+-
+- The functions expected to be used by the filesystem backend are:
+-
+-`devread'
+- Only read sectors from within a partition. Sector 0 is the first
+- sector in the partition.
+-
+-`grub_read'
+- If the backend uses the block list code, then `grub_read' can be
+- used, after setting BLOCK_FILE to 1.
+-
+-`print_a_completion'
+- If PRINT_POSSIBILITIES is true, call `print_a_completion' for each
+- possible file name. Otherwise, the file name completion won't work.
+-
+- The functions expected to be defined by the filesystem backend are
+-described at least moderately in the file `filesys.h'. Their usage is
+-fairly evident from their use in the functions in `disk_io.c', look for
+-the use of the FSYS_TABLE array.
+-
+- *Caution:* The semantics are such that then `mount'ing the
+-filesystem, presume the filesystem buffer `FSYS_BUF' is corrupted, and
+-(re-)load all important contents. When opening and reading a file,
+-presume that the data from the `mount' is available, and doesn't get
+-corrupted by the open/read (i.e. multiple opens and/or reads will be
+-done with only one mount if in the same filesystem).
+-
+-
+-File: grub.info, Node: Command interface, Next: Bootstrap tricks, Prev: Filesystem interface, Up: Internals
+-
+-D.4 The generic interface for built-ins
+-=======================================
+-
+-GRUB built-in commands are defined in a uniformal interface, whether
+-they are menu-specific or can be used anywhere. The definition of a
+-builtin command consists of two parts: the code itself and the table of
+-the information.
+-
+- The code must be a function which takes two arguments, a command-line
+-string and flags, and returns an `int' value. The "flags" argument
+-specifies how the function is called, using a bit mask. The return
+-value must be zero if successful, otherwise non-zero. So it is normally
+-enough to return ERRNUM.
+-
+- The table of the information is represented by the structure `struct
+-builtin', which contains the name of the command, a pointer to the
+-function, flags, a short description of the command and a long
+-description of the command. Since the descriptions are used only for
+-help messages interactively, you don't have to define them, if the
+-command may not be called interactively (such as `title').
+-
+- The table is finally registered in the table BUILTIN_TABLE, so that
+-`run_script' and `enter_cmdline' can find the command. See the files
+-`cmdline.c' and `builtins.c', for more details.
+-
+-
+-File: grub.info, Node: Bootstrap tricks, Next: I/O ports detection, Prev: Command interface, Up: Internals
+-
+-D.5 The bootstrap mechanism used in GRUB
+-========================================
+-
+-The disk space can be used in a boot loader is very restricted because
+-a MBR (*note MBR::) is only 512 bytes but it also contains a partition
+-table (*note Partition table::) and a BPB. So the question is how to
+-make a boot loader code enough small to be fit in a MBR.
+-
+- However, GRUB is a very large program, so we break GRUB into 2 (or 3)
+-distinct components, "Stage 1" and "Stage 2" (and optionally "Stage
+-1.5"). *Note Memory map::, for more information.
+-
+- We embed Stage 1 in a MBR or in the boot sector of a partition, and
+-place Stage 2 in a filesystem. The optional Stage 1.5 can be installed
+-in a filesystem, in the "boot loader" area in a FFS or a ReiserFS, and
+-in the sectors right after a MBR, because Stage 1.5 is enough small and
+-the sectors right after a MBR is normally an unused region. The size of
+-this region is the number of sectors per head minus 1.
+-
+- Thus, all Stage1 must do is just load Stage2 or Stage1.5. But even if
+-Stage 1 needs not to support the user interface or the filesystem
+-interface, it is impossible to make Stage 1 less than 400 bytes, because
+-GRUB should support both the CHS mode and the LBA mode (*note Low-level
+-disk I/O::).
+-
+- The solution used by GRUB is that Stage 1 loads only the first
+-sector of Stage 2 (or Stage 1.5) and Stage 2 itself loads the rest. The
+-flow of Stage 1 is:
+-
+- 1. Initialize the system briefly.
+-
+- 2. Detect the geometry and the accessing mode of the "loading drive".
+-
+- 3. Load the first sector of Stage 2.
+-
+- 4. Jump to the starting address of the Stage 2.
+-
+- The flow of Stage 2 (and Stage 1.5) is:
+-
+- 1. Load the rest of itself to the real starting address, that is, the
+- starting address plus 512 bytes. The block lists are stored in the
+- last part of the first sector.
+-
+- 2. Long jump to the real starting address.
+-
+- Note that Stage 2 (or Stage 1.5) does not probe the geometry or the
+-accessing mode of the "loading drive", since Stage 1 has already probed
+-them.
+-
+-
+-File: grub.info, Node: I/O ports detection, Next: Memory detection, Prev: Bootstrap tricks, Up: Internals
+-
+-D.6 How to probe I/O ports used by INT 13H
+-==========================================
+-
+-FIXME: I will write this chapter after implementing the new technique.
+-
+-
+-File: grub.info, Node: Memory detection, Next: Low-level disk I/O, Prev: I/O ports detection, Up: Internals
+-
+-D.7 How to detect all installed RAM
+-===================================
+-
+-FIXME: I doubt if Erich didn't write this chapter only himself wholly,
+-so I will rewrite this chapter.
+-
+-
+-File: grub.info, Node: Low-level disk I/O, Next: MBR, Prev: Memory detection, Up: Internals
+-
+-D.8 INT 13H disk I/O interrupts
+-===============================
+-
+-FIXME: I'm not sure where some part of the original chapter is derived,
+-so I will rewrite this chapter.
+-
+-
+-File: grub.info, Node: MBR, Next: Partition table, Prev: Low-level disk I/O, Up: Internals
+-
+-D.9 The structure of Master Boot Record
+-=======================================
+-
+-FIXME: Likewise.
+-
+-
+-File: grub.info, Node: Partition table, Next: Submitting patches, Prev: MBR, Up: Internals
+-
+-D.10 The format of partition tables
+-===================================
+-
+-FIXME: Probably the original chapter is derived from "How It Works", so
+-I will rewrite this chapter.
+-
+-
+-File: grub.info, Node: Submitting patches, Prev: Partition table, Up: Internals
+-
+-D.11 Where and how you should send patches
+-==========================================
+-
+-When you write patches for GRUB, please send them to the mailing list
+-<bug-grub@gnu.org>. Here is the list of items of which you should take
+-care:
+-
+- * Please make your patch as small as possible. Generally, it is not
+- a good thing to make one big patch which changes many things.
+- Instead, segregate features and produce many patches.
+-
+- * Use as late code as possible, for the original code. The CVS
+- repository always has the current version (*note Obtaining and
+- Building GRUB::).
+-
+- * Write ChangeLog entries. *Note Change Logs: (standards)Change
+- Logs, if you don't know how to write ChangeLog.
+-
+- * Make patches in unified diff format. `diff -urN' is appropriate in
+- most cases.
+-
+- * Don't make patches reversely. Reverse patches are difficult to
+- read and use.
+-
+- * Be careful enough of the license term and the copyright. Because
+- GRUB is under GNU General Public License, you may not steal code
+- from software whose license is incompatible against GPL. And, if
+- you copy code written by others, you must not ignore their
+- copyrights. Feel free to ask GRUB maintainers, whenever you are
+- not sure what you should do.
+-
+- * If your patch is too large to send in e-mail, put it at somewhere
+- we can see. Usually, you shouldn't send e-mail over 20K.
+-
+-
+-File: grub.info, Node: Index, Prev: Internals, Up: Top
+-
+-Index
+-*****
+-
+-
+-* Menu:
+-
+-* blocklist: blocklist. (line 7)
+-* boot: boot. (line 7)
+-* bootp: bootp. (line 7)
+-* cat: cat. (line 7)
+-* chainloader: chainloader. (line 7)
+-* cmp: cmp. (line 7)
+-* color: color. (line 7)
+-* configfile: configfile. (line 7)
+-* current_drive: Filesystem interface. (line 19)
+-* current_partition: Filesystem interface. (line 23)
+-* current_slice: Filesystem interface. (line 26)
+-* debug: debug. (line 7)
+-* default: default. (line 7)
+-* device: device. (line 7)
+-* devread: Filesystem interface. (line 71)
+-* dhcp: dhcp. (line 7)
+-* disk_read_func: Filesystem interface. (line 62)
+-* displayapm: displayapm. (line 7)
+-* displaymem: displaymem. (line 7)
+-* embed: embed. (line 7)
+-* fallback: fallback. (line 7)
+-* filemax: Filesystem interface. (line 59)
+-* filepos: Filesystem interface. (line 52)
+-* find: find. (line 7)
+-* fstest: fstest. (line 7)
+-* FSYS_BUF: Filesystem interface. (line 46)
+-* geometry: geometry. (line 7)
+-* grub_read: Filesystem interface. (line 75)
+-* halt: halt. (line 7)
+-* help: help. (line 7)
+-* hiddenmenu: hiddenmenu. (line 7)
+-* hide: hide. (line 7)
+-* ifconfig: ifconfig. (line 8)
+-* impsprobe: impsprobe. (line 7)
+-* initrd: initrd. (line 7)
+-* install: install. (line 9)
+-* ioprobe: ioprobe. (line 7)
+-* kernel: kernel. (line 7)
+-* lock: lock. (line 7)
+-* makeactive: makeactive. (line 7)
+-* map: map. (line 7)
+-* md5crypt: md5crypt. (line 7)
+-* module: module. (line 7)
+-* modulenounzip: modulenounzip. (line 7)
+-* pager: pager. (line 7)
+-* part_length: Filesystem interface. (line 38)
+-* part_start: Filesystem interface. (line 35)
+-* partnew: partnew. (line 7)
+-* parttype: parttype. (line 7)
+-* password: password. (line 7)
+-* pause: pause. (line 7)
+-* print_a_completion: Filesystem interface. (line 79)
+-* print_possibilities: Filesystem interface. (line 41)
+-* quit: quit. (line 7)
+-* rarp: rarp. (line 7)
+-* read: read. (line 7)
+-* reboot: reboot. (line 7)
+-* root: root. (line 7)
+-* rootnoverify: rootnoverify. (line 7)
+-* saved_drive: Filesystem interface. (line 29)
+-* saved_partition: Filesystem interface. (line 32)
+-* savedefault: savedefault. (line 7)
+-* serial: serial. (line 9)
+-* setkey: setkey. (line 7)
+-* setup: setup. (line 8)
+-* splashimage: splashimage. (line 7)
+-* terminal: terminal. (line 9)
+-* terminfo: terminfo. (line 9)
+-* testload: testload. (line 7)
+-* testvbe: testvbe. (line 7)
+-* tftpserver: tftpserver. (line 7)
+-* timeout: timeout. (line 7)
+-* title: title. (line 7)
+-* unhide: unhide. (line 7)
+-* uppermem: uppermem. (line 7)
+-* vbeprobe: vbeprobe. (line 7)
+-
+-
+-
+-Tag Table:
+-Node: Top1465
+-Node: Introduction3244
+-Node: Overview3621
+-Node: Overview-Footnotes5843
+-Ref: Overview-Footnote-15904
+-Node: History6065
+-Node: Features7186
+-Node: Features-Footnotes12954
+-Ref: Features-Footnote-113015
+-Node: Role of a boot loader13160
+-Node: Role of a boot loader-Footnotes14498
+-Ref: Role of a boot loader-Footnote-114585
+-Node: Naming convention14664
+-Node: Installation17599
+-Node: Creating a GRUB boot floppy19341
+-Node: Installing GRUB natively20159
+-Node: Installing GRUB natively-Footnotes22439
+-Ref: Installing GRUB natively-Footnote-122532
+-Node: Installing GRUB using grub-install22717
+-Node: Making a GRUB bootable CD-ROM25663
+-Node: Making a GRUB bootable CD-ROM-Footnotes27708
+-Ref: Making a GRUB bootable CD-ROM-Footnote-127811
+-Node: Booting27886
+-Node: General boot methods28341
+-Node: Loading an operating system directly29082
+-Node: Chain-loading30386
+-Node: Chain-loading-Footnotes31696
+-Ref: Chain-loading-Footnote-131767
+-Node: OS-specific notes31839
+-Node: GNU/Hurd32215
+-Node: GNU/Linux32834
+-Node: FreeBSD34082
+-Node: NetBSD34595
+-Node: OpenBSD35253
+-Node: DOS/Windows35453
+-Node: SCO UnixWare37279
+-Node: QNX37697
+-Node: Making your system robust37947
+-Node: Booting once-only39272
+-Node: Booting fallback systems41197
+-Node: Configuration44044
+-Node: Network48474
+-Node: General usage of network support48968
+-Node: General usage of network support-Footnotes50829
+-Ref: General usage of network support-Footnote-150938
+-Node: Diskless51006
+-Node: Serial terminal53190
+-Node: Preset Menu55423
+-Node: Security57791
+-Node: Images60599
+-Node: Filesystem63110
+-Node: Device syntax63793
+-Node: File name syntax65287
+-Node: Block list syntax66032
+-Node: Interface66765
+-Node: Command-line interface67642
+-Node: Command-line interface-Footnotes69583
+-Ref: Command-line interface-Footnote-169672
+-Node: Menu interface69767
+-Node: Menu entry editor70777
+-Node: Hidden menu interface71856
+-Node: Commands72433
+-Node: Menu-specific commands73010
+-Node: default74181
+-Node: fallback74659
+-Node: hiddenmenu75210
+-Node: timeout75698
+-Node: title75976
+-Node: General commands76247
+-Node: bootp77611
+-Node: color78090
+-Node: device79564
+-Node: dhcp80136
+-Node: hide80721
+-Node: ifconfig81098
+-Node: pager81674
+-Node: partnew82008
+-Node: parttype82444
+-Node: password82811
+-Node: rarp83630
+-Node: serial83931
+-Node: setkey85204
+-Node: splashimage87376
+-Node: terminal87754
+-Node: terminfo89296
+-Node: tftpserver89983
+-Node: unhide90529
+-Node: Command-line and menu entry commands90904
+-Node: blocklist93435
+-Node: boot93677
+-Node: cat93998
+-Node: chainloader94302
+-Node: cmp94918
+-Node: configfile95469
+-Node: debug95683
+-Node: displayapm96067
+-Node: displaymem96278
+-Node: embed96980
+-Node: embed-Footnotes97514
+-Ref: embed-Footnote-197569
+-Node: find97626
+-Node: fstest98006
+-Node: geometry98691
+-Node: halt99303
+-Node: help99630
+-Node: impsprobe100251
+-Node: initrd100650
+-Node: install100989
+-Node: install-Footnotes103833
+-Ref: install-Footnote-1103892
+-Node: ioprobe103989
+-Node: kernel104314
+-Node: lock105434
+-Node: makeactive106009
+-Node: map106321
+-Node: md5crypt106888
+-Node: module107235
+-Node: modulenounzip107812
+-Node: pause108105
+-Node: quit108519
+-Node: reboot108795
+-Node: read108976
+-Node: root109218
+-Node: rootnoverify110095
+-Node: savedefault110650
+-Node: setup111626
+-Node: testload112692
+-Node: testvbe113302
+-Node: uppermem113673
+-Node: vbeprobe114255
+-Node: Troubleshooting114638
+-Node: Stage1 errors115176
+-Node: Stage1.5 errors116553
+-Node: Stage2 errors116991
+-Node: Invoking the grub shell124451
+-Node: Basic usage125204
+-Node: Installation under UNIX127492
+-Node: Device map129167
+-Node: Invoking grub-install130315
+-Node: Invoking grub-md5-crypt131884
+-Node: Invoking grub-terminfo132533
+-Node: Invoking grub-set-default133299
+-Node: Invoking mbchk135100
+-Node: Obtaining and Building GRUB135614
+-Node: Reporting bugs137031
+-Node: Future139835
+-Node: Internals140326
+-Node: Memory map141549
+-Node: Embedded data143027
+-Node: Filesystem interface145044
+-Node: Command interface148477
+-Node: Bootstrap tricks149792
+-Node: I/O ports detection151941
+-Node: Memory detection152213
+-Node: Low-level disk I/O152505
+-Node: MBR152774
+-Node: Partition table152971
+-Node: Submitting patches153244
+-Node: Index154732
+-
+-End Tag Table
+diff --git a/docs/multiboot.info b/docs/multiboot.info
+deleted file mode 100644
+index bcd1e9d..0000000
+--- a/docs/multiboot.info
++++ /dev/null
+@@ -1,1662 +0,0 @@
+-This is ../../docs/multiboot.info, produced by makeinfo version 4.7
+-from ../../docs/multiboot.texi.
+-
+-INFO-DIR-SECTION Kernel
+-START-INFO-DIR-ENTRY
+-* Multiboot Specification: (multiboot). Multiboot Specification.
+-END-INFO-DIR-ENTRY
+-
+- Copyright (C) 1995, 96 Bryan Ford <baford@cs.utah.edu> Copyright (C)
+-1995, 96 Erich Stefan Boleyn <erich@uruk.org> Copyright (C) 1999, 2000,
+-2001, 2002 Free Software Foundation, Inc.
+-
+- Permission is granted to make and distribute verbatim copies of this
+-manual provided the copyright notice and this permission notice are
+-preserved on all copies.
+-
+- Permission is granted to copy and distribute modified versions of
+-this manual under the conditions for verbatim copying, provided also
+-that the entire resulting derived work is distributed under the terms
+-of a permission notice identical to this one.
+-
+- Permission is granted to copy and distribute translations of this
+-manual into another language, under the above conditions for modified
+-versions.
+-
+-
+-File: multiboot.info, Node: Top, Next: Overview, Up: (dir)
+-
+-Multiboot Specification
+-***********************
+-
+-This file documents Multiboot Specification, the proposal for the boot
+-sequence standard. This edition documents version 0.6.93.
+-
+-* Menu:
+-
+-* Overview::
+-* Terminology::
+-* Specification::
+-* Examples::
+-* History::
+-* Index::
+-
+-
+-File: multiboot.info, Node: Overview, Next: Terminology, Prev: Top, Up: Top
+-
+-1 Introduction to Multiboot Specification
+-*****************************************
+-
+-This chapter describes some rough information on the Multiboot
+-Specification. Note that this is not a part of the specification itself.
+-
+-* Menu:
+-
+-* Motivation::
+-* Architecture::
+-* Operating systems::
+-* Boot sources::
+-* Boot-time configuration::
+-* Convenience to operating systems::
+-* Boot modules::
+-
+-
+-File: multiboot.info, Node: Motivation, Next: Architecture, Up: Overview
+-
+-1.1 The background of Multiboot Specification
+-=============================================
+-
+-Every operating system ever created tends to have its own boot loader.
+-Installing a new operating system on a machine generally involves
+-installing a whole new set of boot mechanisms, each with completely
+-different install-time and boot-time user interfaces. Getting multiple
+-operating systems to coexist reliably on one machine through typical
+-"chaining" mechanisms can be a nightmare. There is little or no choice
+-of boot loaders for a particular operating system -- if the one that
+-comes with the operating system doesn't do exactly what you want, or
+-doesn't work on your machine, you're screwed.
+-
+- While we may not be able to fix this problem in existing commercial
+-operating systems, it shouldn't be too difficult for a few people in the
+-free operating system communities to put their heads together and solve
+-this problem for the popular free operating systems. That's what this
+-specification aims for. Basically, it specifies an interface between a
+-boot loader and a operating system, such that any complying boot loader
+-should be able to load any complying operating system. This
+-specification does _not_ specify how boot loaders should work -- only
+-how they must interface with the operating system being loaded.
+-
+-
+-File: multiboot.info, Node: Architecture, Next: Operating systems, Prev: Motivation, Up: Overview
+-
+-1.2 The target architecture
+-===========================
+-
+-This specification is primarily targeted at PC, since they are the most
+-common and have the largest variety of operating systems and boot
+-loaders. However, to the extent that certain other architectures may
+-need a boot specification and do not have one already, a variation of
+-this specification, stripped of the x86-specific details, could be
+-adopted for them as well.
+-
+-
+-File: multiboot.info, Node: Operating systems, Next: Boot sources, Prev: Architecture, Up: Overview
+-
+-1.3 The target operating systems
+-================================
+-
+-This specification is targeted toward free 32-bit operating systems
+-that can be fairly easily modified to support the specification without
+-going through lots of bureaucratic rigmarole. The particular free
+-operating systems that this specification is being primarily designed
+-for are Linux, FreeBSD, NetBSD, Mach, and VSTa. It is hoped that other
+-emerging free operating systems will adopt it from the start, and thus
+-immediately be able to take advantage of existing boot loaders. It would
+-be nice if commercial operating system vendors eventually adopted this
+-specification as well, but that's probably a pipe dream.
+-
+-
+-File: multiboot.info, Node: Boot sources, Next: Boot-time configuration, Prev: Operating systems, Up: Overview
+-
+-1.4 Boot sources
+-================
+-
+-It should be possible to write compliant boot loaders that load the OS
+-image from a variety of sources, including floppy disk, hard disk, and
+-across a network.
+-
+- Disk-based boot loaders may use a variety of techniques to find the
+-relevant OS image and boot module data on disk, such as by
+-interpretation of specific file systems (e.g. the BSD/Mach boot loader),
+-using precalculated "block lists" (e.g. LILO), loading from a special
+-"boot partition" (e.g. OS/2), or even loading from within another
+-operating system (e.g. the VSTa boot code, which loads from DOS).
+-Similarly, network-based boot loaders could use a variety of network
+-hardware and protocols.
+-
+- It is hoped that boot loaders will be created that support multiple
+-loading mechanisms, increasing their portability, robustness, and
+-user-friendliness.
+-
+-
+-File: multiboot.info, Node: Boot-time configuration, Next: Convenience to operating systems, Prev: Boot sources, Up: Overview
+-
+-1.5 Configure an operating system at boot-time
+-==============================================
+-
+-It is often necessary for one reason or another for the user to be able
+-to provide some configuration information to an operating system
+-dynamically at boot time. While this specification should not dictate
+-how this configuration information is obtained by the boot loader, it
+-should provide a standard means for the boot loader to pass such
+-information to the operating system.
+-
+-
+-File: multiboot.info, Node: Convenience to operating systems, Next: Boot modules, Prev: Boot-time configuration, Up: Overview
+-
+-1.6 How to make OS development easier
+-=====================================
+-
+-OS images should be easy to generate. Ideally, an OS image should simply
+-be an ordinary 32-bit executable file in whatever file format the
+-operating system normally uses. It should be possible to `nm' or
+-disassemble OS images just like normal executables. Specialized tools
+-should not be required to create OS images in a _special_ file format.
+-If this means shifting some work from the operating system to a boot
+-loader, that is probably appropriate, because all the memory consumed
+-by the boot loader will typically be made available again after the
+-boot process is created, whereas every bit of code in the OS image
+-typically has to remain in memory forever. The operating system should
+-not have to worry about getting into 32-bit mode initially, because mode
+-switching code generally needs to be in the boot loader anyway in order
+-to load operating system data above the 1MB boundary, and forcing the
+-operating system to do this makes creation of OS images much more
+-difficult.
+-
+- Unfortunately, there is a horrendous variety of executable file
+-formats even among free Unix-like PC-based operating systems --
+-generally a different format for each operating system. Most of the
+-relevant free operating systems use some variant of a.out format, but
+-some are moving to ELF. It is highly desirable for boot loaders not to
+-have to be able to interpret all the different types of executable file
+-formats in existence in order to load the OS image -- otherwise the
+-boot loader effectively becomes operating system specific again.
+-
+- This specification adopts a compromise solution to this problem.
+-Multiboot-compliant OS images always contain a magic "Multiboot header"
+-(*note OS image format::), which allows the boot loader to load the
+-image without having to understand numerous a.out variants or other
+-executable formats. This magic header does not need to be at the very
+-beginning of the executable file, so kernel images can still conform to
+-the local a.out format variant in addition to being Multiboot-compliant.
+-
+-
+-File: multiboot.info, Node: Boot modules, Prev: Convenience to operating systems, Up: Overview
+-
+-1.7 Boot modules
+-================
+-
+-Many modern operating system kernels, such as those of VSTa and Mach, do
+-not by themselves contain enough mechanism to get the system fully
+-operational: they require the presence of additional software modules at
+-boot time in order to access devices, mount file systems, etc. While
+-these additional modules could be embedded in the main OS image along
+-with the kernel itself, and the resulting image be split apart manually
+-by the operating system when it receives control, it is often more
+-flexible, more space-efficient, and more convenient to the operating
+-system and user if the boot loader can load these additional modules
+-independently in the first place.
+-
+- Thus, this specification should provide a standard method for a boot
+-loader to indicate to the operating system what auxiliary boot modules
+-were loaded, and where they can be found. Boot loaders don't have to
+-support multiple boot modules, but they are strongly encouraged to,
+-because some operating systems will be unable to boot without them.
+-
+-
+-File: multiboot.info, Node: Terminology, Next: Specification, Prev: Overview, Up: Top
+-
+-2 The definitions of terms used through the specification
+-*********************************************************
+-
+-"must"
+- We use the term "must", when any boot loader or OS image needs to
+- follow a rule -- otherwise, the boot loader or OS image is _not_
+- Multiboot-compliant.
+-
+-"should"
+- We use the term "should", when any boot loader or OS image is
+- recommended to follow a rule, but it doesn't need to follow the
+- rule.
+-
+-"may"
+- We use the term "may", when any boot loader or OS image is allowed
+- to follow a rule.
+-
+-"boot loader"
+- Whatever program or set of programs loads the image of the final
+- operating system to be run on the machine. The boot loader may
+- itself consist of several stages, but that is an implementation
+- detail not relevant to this specification. Only the _final_ stage
+- of the boot loader -- the stage that eventually transfers control
+- to an operating system -- must follow the rules specified in this
+- document in order to be "Multiboot-compliant"; earlier boot loader
+- stages may be designed in whatever way is most convenient.
+-
+-"OS image"
+- The initial binary image that a boot loader loads into memory and
+- transfers control to start an operating system. The OS image is
+- typically an executable containing the operating system kernel.
+-
+-"boot module"
+- Other auxiliary files that a boot loader loads into memory along
+- with an OS image, but does not interpret in any way other than
+- passing their locations to the operating system when it is invoked.
+-
+-"Multiboot-compliant"
+- A boot loader or an OS image which follows the rules defined as
+- "must" is Multiboot-compliant. When this specification specifies a
+- rule as "should" or "may", a Multiboot-complaint boot loader/OS
+- image doesn't need to follow the rule.
+-
+-"u8"
+- The type of unsigned 8-bit data.
+-
+-"u16"
+- The type of unsigned 16-bit data. Because the target architecture
+- is little-endian, u16 is coded in little-endian.
+-
+-"u32"
+- The type of unsigned 32-bit data. Because the target architecture
+- is little-endian, u32 is coded in little-endian.
+-
+-"u64"
+- The type of unsigned 64-bit data. Because the target architecture
+- is little-endian, u64 is coded in little-endian.
+-
+-
+-File: multiboot.info, Node: Specification, Next: Examples, Prev: Terminology, Up: Top
+-
+-3 The exact definitions of Multiboot Specification
+-**************************************************
+-
+-There are three main aspects of a boot loader/OS image interface:
+-
+- 1. The format of an OS image as seen by a boot loader.
+-
+- 2. The state of a machine when a boot loader starts an operating
+- system.
+-
+- 3. The format of information passed by a boot loader to an operating
+- system.
+-
+-* Menu:
+-
+-* OS image format::
+-* Machine state::
+-* Boot information format::
+-
+-
+-File: multiboot.info, Node: OS image format, Next: Machine state, Up: Specification
+-
+-3.1 OS image format
+-===================
+-
+-An OS image may be an ordinary 32-bit executable file in the standard
+-format for that particular operating system, except that it may be
+-linked at a non-default load address to avoid loading on top of the
+-PC's I/O region or other reserved areas, and of course it should not
+-use shared libraries or other fancy features.
+-
+- An OS image must contain an additional header called "Multiboot
+-header", besides the headers of the format used by the OS image. The
+-Multiboot header must be contained completely within the first 8192
+-bytes of the OS image, and must be longword (32-bit) aligned. In
+-general, it should come _as early as possible_, and may be embedded in
+-the beginning of the text segment after the _real_ executable header.
+-
+-* Menu:
+-
+-* Header layout:: The layout of Multiboot header
+-* Header magic fields:: The magic fields of Multiboot header
+-* Header address fields::
+-* Header graphics fields::
+-
+-
+-File: multiboot.info, Node: Header layout, Next: Header magic fields, Up: OS image format
+-
+-3.1.1 The layout of Multiboot header
+-------------------------------------
+-
+-The layout of the Multiboot header must be as follows:
+-
+-Offset Type Field Name Note
+-0 u32 magic required
+-4 u32 flags required
+-8 u32 checksum required
+-12 u32 header_addr if flags[16] is set
+-16 u32 load_addr if flags[16] is set
+-20 u32 load_end_addr if flags[16] is set
+-24 u32 bss_end_addr if flags[16] is set
+-28 u32 entry_addr if flags[16] is set
+-32 u32 mode_type if flags[2] is set
+-36 u32 width if flags[2] is set
+-40 u32 height if flags[2] is set
+-44 u32 depth if flags[2] is set
+-
+- The fields `magic', `flags' and `checksum' are defined in *Note
+-Header magic fields::, the fields `header_addr', `load_addr',
+-`load_end_addr', `bss_end_addr' and `entry_addr' are defined in *Note
+-Header address fields::, and the fields `mode_type', `width', `height'
+-and `depth' are defind in *Note Header graphics fields::.
+-
+-
+-File: multiboot.info, Node: Header magic fields, Next: Header address fields, Prev: Header layout, Up: OS image format
+-
+-3.1.2 The magic fields of Multiboot header
+-------------------------------------------
+-
+-`magic'
+- The field `magic' is the magic number identifying the header,
+- which must be the hexadecimal value `0x1BADB002'.
+-
+-`flags'
+- The field `flags' specifies features that the OS image requests or
+- requires of an boot loader. Bits 0-15 indicate requirements; if the
+- boot loader sees any of these bits set but doesn't understand the
+- flag or can't fulfill the requirements it indicates for some
+- reason, it must notify the user and fail to load the OS image.
+- Bits 16-31 indicate optional features; if any bits in this range
+- are set but the boot loader doesn't understand them, it may simply
+- ignore them and proceed as usual. Naturally, all as-yet-undefined
+- bits in the `flags' word must be set to zero in OS images. This
+- way, the `flags' fields serves for version control as well as
+- simple feature selection.
+-
+- If bit 0 in the `flags' word is set, then all boot modules loaded
+- along with the operating system must be aligned on page (4KB)
+- boundaries. Some operating systems expect to be able to map the
+- pages containing boot modules directly into a paged address space
+- during startup, and thus need the boot modules to be page-aligned.
+-
+- If bit 1 in the `flags' word is set, then information on available
+- memory via at least the `mem_*' fields of the Multiboot information
+- structure (*note Boot information format::) must be included. If
+- the boot loader is capable of passing a memory map (the `mmap_*'
+- fields) and one exists, then it may be included as well.
+-
+- If bit 2 in the `flags' word is set, information about the video
+- mode table (*note Boot information format::) must be available to
+- the kernel.
+-
+- If bit 16 in the `flags' word is set, then the fields at offsets
+- 8-24 in the Multiboot header are valid, and the boot loader should
+- use them instead of the fields in the actual executable header to
+- calculate where to load the OS image. This information does not
+- need to be provided if the kernel image is in ELF format, but it
+- _must_ be provided if the images is in a.out format or in some
+- other format. Compliant boot loaders must be able to load images
+- that either are in ELF format or contain the load address
+- information embedded in the Multiboot header; they may also
+- directly support other executable formats, such as particular
+- a.out variants, but are not required to.
+-
+-`checksum'
+- The field `checksum' is a 32-bit unsigned value which, when added
+- to the other magic fields (i.e. `magic' and `flags'), must have a
+- 32-bit unsigned sum of zero.
+-
+-
+-File: multiboot.info, Node: Header address fields, Next: Header graphics fields, Prev: Header magic fields, Up: OS image format
+-
+-3.1.3 The address fields of Multiboot header
+---------------------------------------------
+-
+-All of the address fields enabled by flag bit 16 are physical addresses.
+-The meaning of each is as follows:
+-
+-`header_addr'
+- Contains the address corresponding to the beginning of the
+- Multiboot header -- the physical memory location at which the
+- magic value is supposed to be loaded. This field serves to
+- "synchronize" the mapping between OS image offsets and physical
+- memory addresses.
+-
+-`load_addr'
+- Contains the physical address of the beginning of the text
+- segment. The offset in the OS image file at which to start loading
+- is defined by the offset at which the header was found, minus
+- (header_addr - load_addr). load_addr must be less than or equal to
+- header_addr.
+-
+-`load_end_addr'
+- Contains the physical address of the end of the data segment.
+- (load_end_addr - load_addr) specifies how much data to load. This
+- implies that the text and data segments must be consecutive in the
+- OS image; this is true for existing a.out executable formats. If
+- this field is zero, the boot loader assumes that the text and data
+- segments occupy the whole OS image file.
+-
+-`bss_end_addr'
+- Contains the physical address of the end of the bss segment. The
+- boot loader initializes this area to zero, and reserves the memory
+- it occupies to avoid placing boot modules and other data relevant
+- to the operating system in that area. If this field is zero, the
+- boot loader assumes that no bss segment is present.
+-
+-`entry_addr'
+- The physical address to which the boot loader should jump in order
+- to start running the operating system.
+-
+-
+-File: multiboot.info, Node: Header graphics fields, Prev: Header address fields, Up: OS image format
+-
+-3.1.4 The graphics fields of Multiboot header
+----------------------------------------------
+-
+-All of the graphics fields are enabled by flag bit 2. They specify the
+-preferred graphics mode. Note that that is only a _recommended_ mode by
+-the OS image. If the mode exists, the boot loader should set it, when
+-the user doesn't specify a mode explicitly. Otherwise, the boot loader
+-should fall back to a similar mode, if available.
+-
+- The meaning of each is as follows:
+-
+-`mode_type'
+- Contains `0' for linear graphics mode or `1' for EGA-standard text
+- mode. Everything else is reserved for future expansion. Note that
+- the boot loader may set a text mode, even if this field contains
+- `0'.
+-
+-`width'
+- Contains the number of the columns. This is specified in pixels in
+- a graphics mode, and in characters in a text mode. The value zero
+- indicates that the OS image has no preference.
+-
+-`height'
+- Contains the number of the lines. This is specified in pixels in a
+- graphics mode, and in characters in a text mode. The value zero
+- indicates that the OS image has no preference.
+-
+-`depth'
+- Contains the number of bits per pixel in a graphics mode, and zero
+- in a text mode. The value zero indicates that the OS image has no
+- preference.
+-
+-
+-File: multiboot.info, Node: Machine state, Next: Boot information format, Prev: OS image format, Up: Specification
+-
+-3.2 Machine state
+-=================
+-
+-When the boot loader invokes the 32-bit operating system, the machine
+-must have the following state:
+-
+-`EAX'
+- Must contain the magic value `0x2BADB002'; the presence of this
+- value indicates to the operating system that it was loaded by a
+- Multiboot-compliant boot loader (e.g. as opposed to another type of
+- boot loader that the operating system can also be loaded from).
+-
+-`EBX'
+- Must contain the 32-bit physical address of the Multiboot
+- information structure provided by the boot loader (*note Boot
+- information format::).
+-
+-`CS'
+- Must be a 32-bit read/execute code segment with an offset of `0'
+- and a limit of `0xFFFFFFFF'. The exact value is undefined.
+-
+-`DS'
+-`ES'
+-`FS'
+-`GS'
+-`SS'
+- Must be a 32-bit read/write data segment with an offset of `0' and
+- a limit of `0xFFFFFFFF'. The exact values are all undefined.
+-
+-`A20 gate'
+- Must be enabled.
+-
+-`CR0'
+- Bit 31 (PG) must be cleared. Bit 0 (PE) must be set. Other bits are
+- all undefined.
+-
+-`EFLAGS'
+- Bit 17 (VM) must be cleared. Bit 9 (IF) must be cleared. Other bits
+- are all undefined.
+-
+- All other processor registers and flag bits are undefined. This
+-includes, in particular:
+-
+-`ESP'
+- The OS image must create its own stack as soon as it needs one.
+-
+-`GDTR'
+- Even though the segment registers are set up as described above,
+- the `GDTR' may be invalid, so the OS image must not load any
+- segment registers (even just reloading the same values!) until it
+- sets up its own `GDT'.
+-
+-`IDTR'
+- The OS image must leave interrupts disabled until it sets up its
+- own `IDT'.
+-
+- However, other machine state should be left by the boot loader in
+-"normal working order", i.e. as initialized by the BIOS (or DOS, if
+-that's what the boot loader runs from). In other words, the operating
+-system should be able to make BIOS calls and such after being loaded,
+-as long as it does not overwrite the BIOS data structures before doing
+-so. Also, the boot loader must leave the PIC programmed with the normal
+-BIOS/DOS values, even if it changed them during the switch to 32-bit
+-mode.
+-
+-
+-File: multiboot.info, Node: Boot information format, Prev: Machine state, Up: Specification
+-
+-3.3 Boot information format
+-===========================
+-
+-FIXME: Split this chapter like the chapter "OS image format".
+-
+- Upon entry to the operating system, the `EBX' register contains the
+-physical address of a "Multiboot information" data structure, through
+-which the boot loader communicates vital information to the operating
+-system. The operating system can use or ignore any parts of the
+-structure as it chooses; all information passed by the boot loader is
+-advisory only.
+-
+- The Multiboot information structure and its related substructures
+-may be placed anywhere in memory by the boot loader (with the exception
+-of the memory reserved for the kernel and boot modules, of course). It
+-is the operating system's responsibility to avoid overwriting this
+-memory until it is done using it.
+-
+- The format of the Multiboot information structure (as defined so far)
+-follows:
+-
+- +-------------------+
+- 0 | flags | (required)
+- +-------------------+
+- 4 | mem_lower | (present if flags[0] is set)
+- 8 | mem_upper | (present if flags[0] is set)
+- +-------------------+
+- 12 | boot_device | (present if flags[1] is set)
+- +-------------------+
+- 16 | cmdline | (present if flags[2] is set)
+- +-------------------+
+- 20 | mods_count | (present if flags[3] is set)
+- 24 | mods_addr | (present if flags[3] is set)
+- +-------------------+
+- 28 - 40 | syms | (present if flags[4] or
+- | | flags[5] is set)
+- +-------------------+
+- 44 | mmap_length | (present if flags[6] is set)
+- 48 | mmap_addr | (present if flags[6] is set)
+- +-------------------+
+- 52 | drives_length | (present if flags[7] is set)
+- 56 | drives_addr | (present if flags[7] is set)
+- +-------------------+
+- 60 | config_table | (present if flags[8] is set)
+- +-------------------+
+- 64 | boot_loader_name | (present if flags[9] is set)
+- +-------------------+
+- 68 | apm_table | (present if flags[10] is set)
+- +-------------------+
+- 72 | vbe_control_info | (present if flags[11] is set)
+- 76 | vbe_mode_info |
+- 80 | vbe_mode |
+- 82 | vbe_interface_seg |
+- 84 | vbe_interface_off |
+- 86 | vbe_interface_len |
+- +-------------------+
+-
+- The first longword indicates the presence and validity of other
+-fields in the Multiboot information structure. All as-yet-undefined
+-bits must be set to zero by the boot loader. Any set bits that the
+-operating system does not understand should be ignored. Thus, the
+-`flags' field also functions as a version indicator, allowing the
+-Multiboot information structure to be expanded in the future without
+-breaking anything.
+-
+- If bit 0 in the `flags' word is set, then the `mem_*' fields are
+-valid. `mem_lower' and `mem_upper' indicate the amount of lower and
+-upper memory, respectively, in kilobytes. Lower memory starts at
+-address 0, and upper memory starts at address 1 megabyte. The maximum
+-possible value for lower memory is 640 kilobytes. The value returned for
+-upper memory is maximally the address of the first upper memory hole
+-minus 1 megabyte. It is not guaranteed to be this value.
+-
+- If bit 1 in the `flags' word is set, then the `boot_device' field is
+-valid, and indicates which BIOS disk device the boot loader loaded the
+-OS image from. If the OS image was not loaded from a BIOS disk, then
+-this field must not be present (bit 3 must be clear). The operating
+-system may use this field as a hint for determining its own "root"
+-device, but is not required to. The `boot_device' field is laid out in
+-four one-byte subfields as follows:
+-
+- +-------+-------+-------+-------+
+- | drive | part1 | part2 | part3 |
+- +-------+-------+-------+-------+
+-
+- The first byte contains the BIOS drive number as understood by the
+-BIOS INT 0x13 low-level disk interface: e.g. 0x00 for the first floppy
+-disk or 0x80 for the first hard disk.
+-
+- The three remaining bytes specify the boot partition. `part1'
+-specifies the "top-level" partition number, `part2' specifies a
+-"sub-partition" in the top-level partition, etc. Partition numbers
+-always start from zero. Unused partition bytes must be set to 0xFF. For
+-example, if the disk is partitioned using a simple one-level DOS
+-partitioning scheme, then `part1' contains the DOS partition number,
+-and `part2' and `part3' are both 0xFF. As another example, if a disk is
+-partitioned first into DOS partitions, and then one of those DOS
+-partitions is subdivided into several BSD partitions using BSD's
+-"disklabel" strategy, then `part1' contains the DOS partition number,
+-`part2' contains the BSD sub-partition within that DOS partition, and
+-`part3' is 0xFF.
+-
+- DOS extended partitions are indicated as partition numbers starting
+-from 4 and increasing, rather than as nested sub-partitions, even
+-though the underlying disk layout of extended partitions is
+-hierarchical in nature. For example, if the boot loader boots from the
+-second extended partition on a disk partitioned in conventional DOS
+-style, then `part1' will be 5, and `part2' and `part3' will both be
+-0xFF.
+-
+- If bit 2 of the `flags' longword is set, the `cmdline' field is
+-valid, and contains the physical address of the command line to be
+-passed to the kernel. The command line is a normal C-style
+-zero-terminated string.
+-
+- If bit 3 of the `flags' is set, then the `mods' fields indicate to
+-the kernel what boot modules were loaded along with the kernel image,
+-and where they can be found. `mods_count' contains the number of
+-modules loaded; `mods_addr' contains the physical address of the first
+-module structure. `mods_count' may be zero, indicating no boot modules
+-were loaded, even if bit 1 of `flags' is set. Each module structure is
+-formatted as follows:
+-
+- +-------------------+
+- 0 | mod_start |
+- 4 | mod_end |
+- +-------------------+
+- 8 | string |
+- +-------------------+
+- 12 | reserved (0) |
+- +-------------------+
+-
+- The first two fields contain the start and end addresses of the boot
+-module itself. The `string' field provides an arbitrary string to be
+-associated with that particular boot module; it is a zero-terminated
+-ASCII string, just like the kernel command line. The `string' field may
+-be 0 if there is no string associated with the module. Typically the
+-string might be a command line (e.g. if the operating system treats boot
+-modules as executable programs), or a pathname (e.g. if the operating
+-system treats boot modules as files in a file system), but its exact use
+-is specific to the operating system. The `reserved' field must be set
+-to 0 by the boot loader and ignored by the operating system.
+-
+- *Caution:* Bits 4 & 5 are mutually exclusive.
+-
+- If bit 4 in the `flags' word is set, then the following fields in
+-the Multiboot information structure starting at byte 28 are valid:
+-
+- +-------------------+
+- 28 | tabsize |
+- 32 | strsize |
+- 36 | addr |
+- 40 | reserved (0) |
+- +-------------------+
+-
+- These indicate where the symbol table from an a.out kernel image can
+-be found. `addr' is the physical address of the size (4-byte unsigned
+-long) of an array of a.out format "nlist" structures, followed
+-immediately by the array itself, then the size (4-byte unsigned long) of
+-a set of zero-terminated ASCII strings (plus sizeof(unsigned long) in
+-this case), and finally the set of strings itself. `tabsize' is equal
+-to its size parameter (found at the beginning of the symbol section),
+-and `strsize' is equal to its size parameter (found at the beginning of
+-the string section) of the following string table to which the symbol
+-table refers. Note that `tabsize' may be 0, indicating no symbols, even
+-if bit 4 in the `flags' word is set.
+-
+- If bit 5 in the `flags' word is set, then the following fields in
+-the Multiboot information structure starting at byte 28 are valid:
+-
+- +-------------------+
+- 28 | num |
+- 32 | size |
+- 36 | addr |
+- 40 | shndx |
+- +-------------------+
+-
+- These indicate where the section header table from an ELF kernel is,
+-the size of each entry, number of entries, and the string table used as
+-the index of names. They correspond to the `shdr_*' entries
+-(`shdr_num', etc.) in the Executable and Linkable Format (ELF)
+-specification in the program header. All sections are loaded, and the
+-physical address fields of the ELF section header then refer to where
+-the sections are in memory (refer to the i386 ELF documentation for
+-details as to how to read the section header(s)). Note that `shdr_num'
+-may be 0, indicating no symbols, even if bit 5 in the `flags' word is
+-set.
+-
+- If bit 6 in the `flags' word is set, then the `mmap_*' fields are
+-valid, and indicate the address and length of a buffer containing a
+-memory map of the machine provided by the BIOS. `mmap_addr' is the
+-address, and `mmap_length' is the total size of the buffer. The buffer
+-consists of one or more of the following size/structure pairs (`size'
+-is really used for skipping to the next pair):
+-
+- +-------------------+
+- -4 | size |
+- +-------------------+
+- 0 | base_addr_low |
+- 4 | base_addr_high |
+- 8 | length_low |
+- 12 | length_high |
+- 16 | type |
+- +-------------------+
+-
+- where `size' is the size of the associated structure in bytes, which
+-can be greater than the minimum of 20 bytes. `base_addr_low' is the
+-lower 32 bits of the starting address, and `base_addr_high' is the
+-upper 32 bits, for a total of a 64-bit starting address. `length_low'
+-is the lower 32 bits of the size of the memory region in bytes, and
+-`length_high' is the upper 32 bits, for a total of a 64-bit length.
+-`type' is the variety of address range represented, where a value of 1
+-indicates available RAM, and all other values currently indicated a
+-reserved area.
+-
+- The map provided is guaranteed to list all standard RAM that should
+-be available for normal use.
+-
+- If bit 7 in the `flags' is set, then the `drives_*' fields are
+-valid, and indicate the address of the physical address of the first
+-drive structure and the size of drive structures. `drives_addr' is the
+-address, and `drives_length' is the total size of drive structures.
+-Note that `drives_length' may be zero. Each drive structure is
+-formatted as follows:
+-
+- +-------------------+
+- 0 | size |
+- +-------------------+
+- 4 | drive_number |
+- +-------------------+
+- 5 | drive_mode |
+- +-------------------+
+- 6 | drive_cylinders |
+- 8 | drive_heads |
+- 9 | drive_sectors |
+- +-------------------+
+- 10 - xx | drive_ports |
+- +-------------------+
+-
+- The `size' field specifies the size of this structure. The size
+-varies, depending on the number of ports. Note that the size may not be
+-equal to (10 + 2 * the number of ports), because of an alignment.
+-
+- The `drive_number' field contains the BIOS drive number. The
+-`drive_mode' field represents the access mode used by the boot loader.
+-Currently, the following modes are defined:
+-
+-`0'
+- CHS mode (traditional cylinder/head/sector addressing mode).
+-
+-`1'
+- LBA mode (Logical Block Addressing mode).
+-
+- The three fields, `drive_cylinders', `drive_heads' and
+-`drive_sectors', indicate the geometry of the drive detected by the
+-BIOS. `drive_cylinders' contains the number of the cylinders.
+-`drive_heads' contains the number of the heads. `drive_sectors'
+-contains the number of the sectors per track.
+-
+- The `drive_ports' field contains the array of the I/O ports used for
+-the drive in the BIOS code. The array consists of zero or more unsigned
+-two-bytes integers, and is terminated with zero. Note that the array
+-may contain any number of I/O ports that are not related to the drive
+-actually (such as DMA controller's ports).
+-
+- If bit 8 in the `flags' is set, then the `config_table' field is
+-valid, and indicates the address of the ROM configuration table
+-returned by the "GET CONFIGURATION" BIOS call. If the BIOS call fails,
+-then the size of the table must be _zero_.
+-
+- If bit 9 in the `flags' is set, the `boot_loader_name' field is
+-valid, and contains the physical address of the name of a boot loader
+-booting the kernel. The name is a normal C-style zero-terminated string.
+-
+- If bit 10 in the `flags' is set, the `apm_table' field is valid, and
+-contains the physical address of an APM table defined as below:
+-
+- +----------------------+
+- 0 | version |
+- 2 | cseg |
+- 4 | offset |
+- 8 | cseg_16 |
+- 10 | dseg |
+- 12 | flags |
+- 14 | cseg_len |
+- 16 | cseg_16_len |
+- 18 | dseg_len |
+- +----------------------+
+-
+- The fields `version', `cseg', `offset', `cseg_16', `dseg', `flags',
+-`cseg_len', `cseg_16_len', `dseg_len' indicate the version number, the
+-protected mode 32-bit code segment, the offset of the entry point, the
+-protected mode 16-bit code segment, the protected mode 16-bit data
+-segment, the flags, the length of the protected mode 32-bit code
+-segment, the length of the protected mode 16-bit code segment, and the
+-length of the protected mode 16-bit data segment, respectively. Only
+-the field `offset' is 4 bytes, and the others are 2 bytes. See Advanced
+-Power Management (APM) BIOS Interface Specification
+-(http://www.microsoft.com/hwdev/busbios/amp_12.htm), for more
+-information.
+-
+- If bit 11 in the `flags' is set, the graphics table is available.
+-This must only be done if the kernel has indicated in the `Multiboot
+-Header' that it accepts a graphics mode.
+-
+- The fields `vbe_control_info' and `vbe_mode_info' contain the
+-physical addresses of VBE control information returned by the VBE
+-Function 00h and VBE mode information returned by the VBE Function 01h,
+-respectively.
+-
+- The field `vbe_mode' indicates current video mode in the format
+-specified in VBE 3.0.
+-
+- The rest fields `vbe_interface_seg', `vbe_interface_off', and
+-`vbe_interface_len' contain the table of a protected mode interface
+-defined in VBE 2.0+. If this information is not available, those fields
+-contain zero. Note that VBE 3.0 defines another protected mode
+-interface which is incompatible with the old one. If you want to use
+-the new protected mode interface, you will have to find the table
+-yourself.
+-
+- The fields for the graphics table are designed for VBE, but
+-Multiboot boot loaders may simulate VBE on non-VBE modes, as if they
+-were VBE modes.
+-
+-
+-File: multiboot.info, Node: Examples, Next: History, Prev: Specification, Up: Top
+-
+-4 Examples
+-**********
+-
+-*Caution:* The following items are not part of the specification
+-document, but are included for prospective operating system and boot
+-loader writers.
+-
+-* Menu:
+-
+-* Notes on PC::
+-* BIOS device mapping techniques::
+-* Example OS code::
+-* Example boot loader code::
+-
+-
+-File: multiboot.info, Node: Notes on PC, Next: BIOS device mapping techniques, Up: Examples
+-
+-4.1 Notes on PC
+-===============
+-
+-In reference to bit 0 of the `flags' parameter in the Multiboot
+-information structure, if the bootloader in question uses older BIOS
+-interfaces, or the newest ones are not available (see description about
+-bit 6), then a maximum of either 15 or 63 megabytes of memory may be
+-reported. It is _highly_ recommended that boot loaders perform a
+-thorough memory probe.
+-
+- In reference to bit 1 of the `flags' parameter in the Multiboot
+-information structure, it is recognized that determination of which
+-BIOS drive maps to which device driver in an operating system is
+-non-trivial, at best. Many kludges have been made to various operating
+-systems instead of solving this problem, most of them breaking under
+-many conditions. To encourage the use of general-purpose solutions to
+-this problem, there are 2 BIOS device mapping techniques (*note BIOS
+-device mapping techniques::).
+-
+- In reference to bit 6 of the `flags' parameter in the Multiboot
+-information structure, it is important to note that the data structure
+-used there (starting with `BaseAddrLow') is the data returned by the
+-INT 15h, AX=E820h -- Query System Address Map call. See *Note Query
+-System Address Map: (grub.info)Query System Address Map, for more
+-information. The interface here is meant to allow a boot loader to work
+-unmodified with any reasonable extensions of the BIOS interface,
+-passing along any extra data to be interpreted by the operating system
+-as desired.
+-
+-
+-File: multiboot.info, Node: BIOS device mapping techniques, Next: Example OS code, Prev: Notes on PC, Up: Examples
+-
+-4.2 BIOS device mapping techniques
+-==================================
+-
+-Both of these techniques should be usable from any PC operating system,
+-and neither require any special support in the drivers themselves. This
+-section will be flushed out into detailed explanations, particularly for
+-the I/O restriction technique.
+-
+- The general rule is that the data comparison technique is the quick
+-and dirty solution. It works most of the time, but doesn't cover all the
+-bases, and is relatively simple.
+-
+- The I/O restriction technique is much more complex, but it has
+-potential to solve the problem under all conditions, plus allow access
+-of the remaining BIOS devices when not all of them have operating system
+-drivers.
+-
+-* Menu:
+-
+-* Data comparison technique::
+-* I/O restriction technique::
+-
+-
+-File: multiboot.info, Node: Data comparison technique, Next: I/O restriction technique, Up: BIOS device mapping techniques
+-
+-4.2.1 Data comparison technique
+--------------------------------
+-
+-Before activating _any_ of the device drivers, gather enough data from
+-similar sectors on each of the disks such that each one can be uniquely
+-identified.
+-
+- After activating the device drivers, compare data from the drives
+-using the operating system drivers. This should hopefully be sufficient
+-to provide such a mapping.
+-
+- Problems:
+-
+- 1. The data on some BIOS devices might be identical (so the part
+- reading the drives from the BIOS should have some mechanism to give
+- up).
+-
+- 2. There might be extra drives not accessible from the BIOS which are
+- identical to some drive used by the BIOS (so it should be capable
+- of giving up there as well).
+-
+-
+-File: multiboot.info, Node: I/O restriction technique, Prev: Data comparison technique, Up: BIOS device mapping techniques
+-
+-4.2.2 I/O restriction technique
+--------------------------------
+-
+-This first step may be unnecessary, but first create copy-on-write
+-mappings for the device drivers writing into PC RAM. Keep the original
+-copies for the "clean BIOS virtual machine" to be created later.
+-
+- For each device driver brought online, determine which BIOS devices
+-become inaccessible by:
+-
+- 1. Create a "clean BIOS virtual machine".
+-
+- 2. Set the I/O permission map for the I/O area claimed by the device
+- driver to no permissions (neither read nor write).
+-
+- 3. Access each device.
+-
+- 4. Record which devices succeed, and those which try to access the
+- "restricted" I/O areas (hopefully, this will be an "xor"
+- situation).
+-
+- For each device driver, given how many of the BIOS devices were
+-subsumed by it (there should be no gaps in this list), it should be easy
+-to determine which devices on the controller these are.
+-
+- In general, you have at most 2 disks from each controller given BIOS
+-numbers, but they pretty much always count from the lowest logically
+-numbered devices on the controller.
+-
+-
+-File: multiboot.info, Node: Example OS code, Next: Example boot loader code, Prev: BIOS device mapping techniques, Up: Examples
+-
+-4.3 Example OS code
+-===================
+-
+-In this distribution, the example Multiboot kernel `kernel' is
+-included. The kernel just prints out the Multiboot information structure
+-on the screen, so you can make use of the kernel to test a
+-Multiboot-compliant boot loader and for reference to how to implement a
+-Multiboot kernel. The source files can be found under the directory
+-`docs' in the GRUB distribution.
+-
+- The kernel `kernel' consists of only three files: `boot.S',
+-`kernel.c' and `multiboot.h'. The assembly source `boot.S' is written
+-in GAS (*note GNU assembler: (as.info)Top.), and contains the Multiboot
+-information structure to comply with the specification. When a
+-Multiboot-compliant boot loader loads and execute it, it initialize the
+-stack pointer and `EFLAGS', and then call the function `cmain' defined
+-in `kernel.c'. If `cmain' returns to the callee, then it shows a
+-message to inform the user of the halt state and stops forever until
+-you push the reset key. The file `kernel.c' contains the function
+-`cmain', which checks if the magic number passed by the boot loader is
+-valid and so on, and some functions to print messages on the screen.
+-The file `multiboot.h' defines some macros, such as the magic number
+-for the Multiboot header, the Multiboot header structure and the
+-Multiboot information structure.
+-
+-* Menu:
+-
+-* multiboot.h::
+-* boot.S::
+-* kernel.c::
+-* Other Multiboot kernels::
+-
+-
+-File: multiboot.info, Node: multiboot.h, Next: boot.S, Up: Example OS code
+-
+-4.3.1 multiboot.h
+------------------
+-
+-This is the source code in the file `multiboot.h':
+-
+- /* multiboot.h - the header for Multiboot */
+- /* Copyright (C) 1999, 2001 Free Software Foundation, Inc.
+-
+- This program is free software; you can redistribute it and/or modify
+- it under the terms of the GNU General Public License as published by
+- the Free Software Foundation; either version 2 of the License, or
+- (at your option) any later version.
+-
+- This program is distributed in the hope that it will be useful,
+- but WITHOUT ANY WARRANTY; without even the implied warranty of
+- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+- GNU General Public License for more details.
+-
+- You should have received a copy of the GNU General Public License
+- along with this program; if not, write to the Free Software
+- Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
+-
+- /* Macros. */
+-
+- /* The magic number for the Multiboot header. */
+- #define MULTIBOOT_HEADER_MAGIC 0x1BADB002
+-
+- /* The flags for the Multiboot header. */
+- #ifdef __ELF__
+- # define MULTIBOOT_HEADER_FLAGS 0x00000003
+- #else
+- # define MULTIBOOT_HEADER_FLAGS 0x00010003
+- #endif
+-
+- /* The magic number passed by a Multiboot-compliant boot loader. */
+- #define MULTIBOOT_BOOTLOADER_MAGIC 0x2BADB002
+-
+- /* The size of our stack (16KB). */
+- #define STACK_SIZE 0x4000
+-
+- /* C symbol format. HAVE_ASM_USCORE is defined by configure. */
+- #ifdef HAVE_ASM_USCORE
+- # define EXT_C(sym) _ ## sym
+- #else
+- # define EXT_C(sym) sym
+- #endif
+-
+- #ifndef ASM
+- /* Do not include here in boot.S. */
+-
+- /* Types. */
+-
+- /* The Multiboot header. */
+- typedef struct multiboot_header
+- {
+- unsigned long magic;
+- unsigned long flags;
+- unsigned long checksum;
+- unsigned long header_addr;
+- unsigned long load_addr;
+- unsigned long load_end_addr;
+- unsigned long bss_end_addr;
+- unsigned long entry_addr;
+- } multiboot_header_t;
+-
+- /* The symbol table for a.out. */
+- typedef struct aout_symbol_table
+- {
+- unsigned long tabsize;
+- unsigned long strsize;
+- unsigned long addr;
+- unsigned long reserved;
+- } aout_symbol_table_t;
+-
+- /* The section header table for ELF. */
+- typedef struct elf_section_header_table
+- {
+- unsigned long num;
+- unsigned long size;
+- unsigned long addr;
+- unsigned long shndx;
+- } elf_section_header_table_t;
+-
+- /* The Multiboot information. */
+- typedef struct multiboot_info
+- {
+- unsigned long flags;
+- unsigned long mem_lower;
+- unsigned long mem_upper;
+- unsigned long boot_device;
+- unsigned long cmdline;
+- unsigned long mods_count;
+- unsigned long mods_addr;
+- union
+- {
+- aout_symbol_table_t aout_sym;
+- elf_section_header_table_t elf_sec;
+- } u;
+- unsigned long mmap_length;
+- unsigned long mmap_addr;
+- } multiboot_info_t;
+-
+- /* The module structure. */
+- typedef struct module
+- {
+- unsigned long mod_start;
+- unsigned long mod_end;
+- unsigned long string;
+- unsigned long reserved;
+- } module_t;
+-
+- /* The memory map. Be careful that the offset 0 is base_addr_low
+- but no size. */
+- typedef struct memory_map
+- {
+- unsigned long size;
+- unsigned long base_addr_low;
+- unsigned long base_addr_high;
+- unsigned long length_low;
+- unsigned long length_high;
+- unsigned long type;
+- } memory_map_t;
+-
+- #endif /* ! ASM */
+-
+-
+-File: multiboot.info, Node: boot.S, Next: kernel.c, Prev: multiboot.h, Up: Example OS code
+-
+-4.3.2 boot.S
+-------------
+-
+-In the file `boot.S':
+-
+- /* boot.S - bootstrap the kernel */
+- /* Copyright (C) 1999, 2001 Free Software Foundation, Inc.
+-
+- This program is free software; you can redistribute it and/or modify
+- it under the terms of the GNU General Public License as published by
+- the Free Software Foundation; either version 2 of the License, or
+- (at your option) any later version.
+-
+- This program is distributed in the hope that it will be useful,
+- but WITHOUT ANY WARRANTY; without even the implied warranty of
+- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+- GNU General Public License for more details.
+-
+- You should have received a copy of the GNU General Public License
+- along with this program; if not, write to the Free Software
+- Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
+-
+- #define ASM 1
+- #include <multiboot.h>
+-
+- .text
+-
+- .globl start, _start
+- start:
+- _start:
+- jmp multiboot_entry
+-
+- /* Align 32 bits boundary. */
+- .align 4
+-
+- /* Multiboot header. */
+- multiboot_header:
+- /* magic */
+- .long MULTIBOOT_HEADER_MAGIC
+- /* flags */
+- .long MULTIBOOT_HEADER_FLAGS
+- /* checksum */
+- .long -(MULTIBOOT_HEADER_MAGIC + MULTIBOOT_HEADER_FLAGS)
+- #ifndef __ELF__
+- /* header_addr */
+- .long multiboot_header
+- /* load_addr */
+- .long _start
+- /* load_end_addr */
+- .long _edata
+- /* bss_end_addr */
+- .long _end
+- /* entry_addr */
+- .long multiboot_entry
+- #endif /* ! __ELF__ */
+-
+- multiboot_entry:
+- /* Initialize the stack pointer. */
+- movl $(stack + STACK_SIZE), %esp
+-
+- /* Reset EFLAGS. */
+- pushl $0
+- popf
+-
+- /* Push the pointer to the Multiboot information structure. */
+- pushl %ebx
+- /* Push the magic value. */
+- pushl %eax
+-
+- /* Now enter the C main function... */
+- call EXT_C(cmain)
+-
+- /* Halt. */
+- pushl $halt_message
+- call EXT_C(printf)
+-
+- loop: hlt
+- jmp loop
+-
+- halt_message:
+- .asciz "Halted."
+-
+- /* Our stack area. */
+- .comm stack, STACK_SIZE
+-
+-
+-File: multiboot.info, Node: kernel.c, Next: Other Multiboot kernels, Prev: boot.S, Up: Example OS code
+-
+-4.3.3 kernel.c
+---------------
+-
+-And, in the file `kernel.c':
+-
+- /* kernel.c - the C part of the kernel */
+- /* Copyright (C) 1999 Free Software Foundation, Inc.
+-
+- This program is free software; you can redistribute it and/or modify
+- it under the terms of the GNU General Public License as published by
+- the Free Software Foundation; either version 2 of the License, or
+- (at your option) any later version.
+-
+- This program is distributed in the hope that it will be useful,
+- but WITHOUT ANY WARRANTY; without even the implied warranty of
+- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+- GNU General Public License for more details.
+-
+- You should have received a copy of the GNU General Public License
+- along with this program; if not, write to the Free Software
+- Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
+-
+- #include <multiboot.h>
+-
+- /* Macros. */
+-
+- /* Check if the bit BIT in FLAGS is set. */
+- #define CHECK_FLAG(flags,bit) ((flags) & (1 << (bit)))
+-
+- /* Some screen stuff. */
+- /* The number of columns. */
+- #define COLUMNS 80
+- /* The number of lines. */
+- #define LINES 24
+- /* The attribute of an character. */
+- #define ATTRIBUTE 7
+- /* The video memory address. */
+- #define VIDEO 0xB8000
+-
+- /* Variables. */
+- /* Save the X position. */
+- static int xpos;
+- /* Save the Y position. */
+- static int ypos;
+- /* Point to the video memory. */
+- static volatile unsigned char *video;
+-
+- /* Forward declarations. */
+- void cmain (unsigned long magic, unsigned long addr);
+- static void cls (void);
+- static void itoa (char *buf, int base, int d);
+- static void putchar (int c);
+- void printf (const char *format, ...);
+-
+- /* Check if MAGIC is valid and print the Multiboot information structure
+- pointed by ADDR. */
+- void
+- cmain (unsigned long magic, unsigned long addr)
+- {
+- multiboot_info_t *mbi;
+-
+- /* Clear the screen. */
+- cls ();
+-
+- /* Am I booted by a Multiboot-compliant boot loader? */
+- if (magic != MULTIBOOT_BOOTLOADER_MAGIC)
+- {
+- printf ("Invalid magic number: 0x%x\n", (unsigned) magic);
+- return;
+- }
+-
+- /* Set MBI to the address of the Multiboot information structure. */
+- mbi = (multiboot_info_t *) addr;
+-
+- /* Print out the flags. */
+- printf ("flags = 0x%x\n", (unsigned) mbi->flags);
+-
+- /* Are mem_* valid? */
+- if (CHECK_FLAG (mbi->flags, 0))
+- printf ("mem_lower = %uKB, mem_upper = %uKB\n",
+- (unsigned) mbi->mem_lower, (unsigned) mbi->mem_upper);
+-
+- /* Is boot_device valid? */
+- if (CHECK_FLAG (mbi->flags, 1))
+- printf ("boot_device = 0x%x\n", (unsigned) mbi->boot_device);
+-
+- /* Is the command line passed? */
+- if (CHECK_FLAG (mbi->flags, 2))
+- printf ("cmdline = %s\n", (char *) mbi->cmdline);
+-
+- /* Are mods_* valid? */
+- if (CHECK_FLAG (mbi->flags, 3))
+- {
+- module_t *mod;
+- int i;
+-
+- printf ("mods_count = %d, mods_addr = 0x%x\n",
+- (int) mbi->mods_count, (int) mbi->mods_addr);
+- for (i = 0, mod = (module_t *) mbi->mods_addr;
+- i < mbi->mods_count;
+- i++, mod++)
+- printf (" mod_start = 0x%x, mod_end = 0x%x, string = %s\n",
+- (unsigned) mod->mod_start,
+- (unsigned) mod->mod_end,
+- (char *) mod->string);
+- }
+-
+- /* Bits 4 and 5 are mutually exclusive! */
+- if (CHECK_FLAG (mbi->flags, 4) && CHECK_FLAG (mbi->flags, 5))
+- {
+- printf ("Both bits 4 and 5 are set.\n");
+- return;
+- }
+-
+- /* Is the symbol table of a.out valid? */
+- if (CHECK_FLAG (mbi->flags, 4))
+- {
+- aout_symbol_table_t *aout_sym = &(mbi->u.aout_sym);
+-
+- printf ("aout_symbol_table: tabsize = 0x%0x, "
+- "strsize = 0x%x, addr = 0x%x\n",
+- (unsigned) aout_sym->tabsize,
+- (unsigned) aout_sym->strsize,
+- (unsigned) aout_sym->addr);
+- }
+-
+- /* Is the section header table of ELF valid? */
+- if (CHECK_FLAG (mbi->flags, 5))
+- {
+- elf_section_header_table_t *elf_sec = &(mbi->u.elf_sec);
+-
+- printf ("elf_sec: num = %u, size = 0x%x,"
+- " addr = 0x%x, shndx = 0x%x\n",
+- (unsigned) elf_sec->num, (unsigned) elf_sec->size,
+- (unsigned) elf_sec->addr, (unsigned) elf_sec->shndx);
+- }
+-
+- /* Are mmap_* valid? */
+- if (CHECK_FLAG (mbi->flags, 6))
+- {
+- memory_map_t *mmap;
+-
+- printf ("mmap_addr = 0x%x, mmap_length = 0x%x\n",
+- (unsigned) mbi->mmap_addr, (unsigned) mbi->mmap_length);
+- for (mmap = (memory_map_t *) mbi->mmap_addr;
+- (unsigned long) mmap < mbi->mmap_addr + mbi->mmap_length;
+- mmap = (memory_map_t *) ((unsigned long) mmap
+- + mmap->size + sizeof (mmap->size)))
+- printf (" size = 0x%x, base_addr = 0x%x%x,"
+- " length = 0x%x%x, type = 0x%x\n",
+- (unsigned) mmap->size,
+- (unsigned) mmap->base_addr_high,
+- (unsigned) mmap->base_addr_low,
+- (unsigned) mmap->length_high,
+- (unsigned) mmap->length_low,
+- (unsigned) mmap->type);
+- }
+- }
+-
+- /* Clear the screen and initialize VIDEO, XPOS and YPOS. */
+- static void
+- cls (void)
+- {
+- int i;
+-
+- video = (unsigned char *) VIDEO;
+-
+- for (i = 0; i < COLUMNS * LINES * 2; i++)
+- *(video + i) = 0;
+-
+- xpos = 0;
+- ypos = 0;
+- }
+-
+- /* Convert the integer D to a string and save the string in BUF. If
+- BASE is equal to 'd', interpret that D is decimal, and if BASE is
+- equal to 'x', interpret that D is hexadecimal. */
+- static void
+- itoa (char *buf, int base, int d)
+- {
+- char *p = buf;
+- char *p1, *p2;
+- unsigned long ud = d;
+- int divisor = 10;
+-
+- /* If %d is specified and D is minus, put `-' in the head. */
+- if (base == 'd' && d < 0)
+- {
+- *p++ = '-';
+- buf++;
+- ud = -d;
+- }
+- else if (base == 'x')
+- divisor = 16;
+-
+- /* Divide UD by DIVISOR until UD == 0. */
+- do
+- {
+- int remainder = ud % divisor;
+-
+- *p++ = (remainder < 10) ? remainder + '0' : remainder + 'a' - 10;
+- }
+- while (ud /= divisor);
+-
+- /* Terminate BUF. */
+- *p = 0;
+-
+- /* Reverse BUF. */
+- p1 = buf;
+- p2 = p - 1;
+- while (p1 < p2)
+- {
+- char tmp = *p1;
+- *p1 = *p2;
+- *p2 = tmp;
+- p1++;
+- p2--;
+- }
+- }
+-
+- /* Put the character C on the screen. */
+- static void
+- putchar (int c)
+- {
+- if (c == '\n' || c == '\r')
+- {
+- newline:
+- xpos = 0;
+- ypos++;
+- if (ypos >= LINES)
+- ypos = 0;
+- return;
+- }
+-
+- *(video + (xpos + ypos * COLUMNS) * 2) = c & 0xFF;
+- *(video + (xpos + ypos * COLUMNS) * 2 + 1) = ATTRIBUTE;
+-
+- xpos++;
+- if (xpos >= COLUMNS)
+- goto newline;
+- }
+-
+- /* Format a string and print it on the screen, just like the libc
+- function printf. */
+- void
+- printf (const char *format, ...)
+- {
+- char **arg = (char **) &format;
+- int c;
+- char buf[20];
+-
+- arg++;
+-
+- while ((c = *format++) != 0)
+- {
+- if (c != '%')
+- putchar (c);
+- else
+- {
+- char *p;
+-
+- c = *format++;
+- switch (c)
+- {
+- case 'd':
+- case 'u':
+- case 'x':
+- itoa (buf, c, *((int *) arg++));
+- p = buf;
+- goto string;
+- break;
+-
+- case 's':
+- p = *arg++;
+- if (! p)
+- p = "(null)";
+-
+- string:
+- while (*p)
+- putchar (*p++);
+- break;
+-
+- default:
+- putchar (*((int *) arg++));
+- break;
+- }
+- }
+- }
+- }
+-
+-
+-File: multiboot.info, Node: Other Multiboot kernels, Prev: kernel.c, Up: Example OS code
+-
+-4.3.4 Other Multiboot kernels
+------------------------------
+-
+-Other useful information should be available in Multiboot kernels, such
+-as GNU Mach and Fiasco `http://os.inf.tu-dresden.de/fiasco/'. And, it
+-is worth mentioning the OSKit
+-`http://www.cs.utah.edu/projects/flux/oskit/', which provides a library
+-supporting the specification.
+-
+-
+-File: multiboot.info, Node: Example boot loader code, Prev: Example OS code, Up: Examples
+-
+-4.4 Example boot loader code
+-============================
+-
+-The GNU GRUB (*note GRUB: (grub.info)Top.) project is a full
+-Multiboot-compliant boot loader, supporting all required and optional
+-features present in this specification. A public release has not been
+-made, but the test release is available from:
+-
+- `ftp://alpha.gnu.org/gnu/grub'
+-
+- See the webpage `http://www.gnu.org/software/grub/grub.html', for
+-more information.
+-
+-
+-File: multiboot.info, Node: History, Next: Index, Prev: Examples, Up: Top
+-
+-5 The change log of this specification
+-**************************************
+-
+-0.7
+- * "Multiboot Standard" is renamed to "Multiboot Specification".
+-
+- * Graphics fields are added to Multiboot header.
+-
+- * BIOS drive information, BIOS configuration table, the name of
+- a boot loader, APM information, and graphics information are
+- added to Multiboot information.
+-
+- * Rewritten in Texinfo format.
+-
+- * Rewritten, using more strict words.
+-
+- * The maintainer changes to the GNU GRUB maintainer team
+- <bug-grub@gnu.org>, from Bryan Ford and Erich Stefan Boleyn.
+-
+-0.6
+- * A few wording changes.
+-
+- * Header checksum.
+-
+- * Clasification of machine state passed to an operating system.
+-
+-0.5
+- * Name change.
+-
+-0.4
+- * Major changes plus HTMLification.
+-
+-
+-File: multiboot.info, Node: Index, Prev: History, Up: Top
+-
+-Index
+-*****
+-
+-
+-* Menu:
+-
+-
+-Tag Table:
+-Node: Top990
+-Node: Overview1326
+-Node: Motivation1794
+-Node: Architecture3191
+-Node: Operating systems3724
+-Node: Boot sources4518
+-Node: Boot-time configuration5488
+-Node: Convenience to operating systems6096
+-Node: Boot modules8327
+-Node: Terminology9476
+-Node: Specification11855
+-Node: OS image format12418
+-Node: Header layout13476
+-Node: Header magic fields14644
+-Node: Header address fields17505
+-Node: Header graphics fields19351
+-Node: Machine state20737
+-Node: Boot information format22997
+-Node: Examples38368
+-Node: Notes on PC38741
+-Node: BIOS device mapping techniques40307
+-Node: Data comparison technique41217
+-Node: I/O restriction technique42079
+-Node: Example OS code43296
+-Node: multiboot.h44838
+-Node: boot.S48662
+-Node: kernel.c51286
+-Node: Other Multiboot kernels60013
+-Node: Example boot loader code60444
+-Node: History60970
+-Node: Index61891
+-
+-End Tag Table
+diff --git a/efi/Makefile.am b/efi/Makefile.am
+index 1d5bd15..3ae0ca5 100644
+--- a/efi/Makefile.am
++++ b/efi/Makefile.am
+@@ -30,7 +30,7 @@ endif
+
+ GRUBEFI_FORMAT = efi-app-$(EFI_ARCH)
+ GRUBSO_LD_SCRIPT = @GNUEFI_LDS@
+-GRUBSO_LD_FLAGS = -T $(GRUBSO_LD_SCRIPT) -nostdlib -shared -Bsymbolic
++GRUBSO_LD_FLAGS = -T $(GRUBSO_LD_SCRIPT) -nostdlib -shared -Bsymbolic -Map=grub.map
+
+ GRUBSO_OBJS = efimain.o
+ GRUBSO_LIBS = @GNUEFI_CRT0@ $(top_srcdir)/stage2/libstage2.a \
+@@ -70,7 +70,11 @@ noinst_LIBRARIES = libgrubefi.a
+ libgrubefi_a_SOURCES = $(EFI_ARCH)/callwrap.S eficore.c efimm.c efimisc.c \
+ eficon.c efidisk.c graphics.c efigraph.c efiuga.c efidp.c \
+ font_8x16.c efiserial.c $(EFI_ARCH)/loader/linux.c efichainloader.c \
+- xpm.c pxe.c efitftp.c
++ xpm.c pxe.c efitftp.c clanton/boot_settings.c clanton/recovery.c \
++ clanton/sdio_program.c clanton/mfh.c clanton/iarom.c \
++ clanton/intel_cln_sb.c clanton/imr.c clanton/perf_metrics.c \
++ clanton/asset.c clanton/spi_program.c clanton/test_module.c \
++ clanton/early_uart.c
+ libgrubefi_a_CFLAGS = $(RELOC_FLAGS) -nostdinc
+
+ endif
+diff --git a/efi/clanton/asset.c b/efi/clanton/asset.c
+new file mode 100644
+index 0000000..715d520
+--- /dev/null
++++ b/efi/clanton/asset.c
+@@ -0,0 +1,415 @@
++/*
++ * Copyright(c) 2013 Intel Corporation. All rights reserved.
++ *
++ * This program is free software; you can redistribute it and/or modify
++ * it under the terms of version 2 of the GNU General Public License as
++ * published by the Free Software Foundation.
++ *
++ * This program is distributed in the hope that it will be useful, but
++ * WITHOUT ANY WARRANTY; without even the implied warranty of
++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
++ * General Public License for more details.
++ *
++ * You should have received a copy of the GNU General Public License
++ * along with this program; if not, write to the Free Software
++ * Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
++ *
++ * Contact Information:
++ * Intel Corporation
++ */
++
++#include <clanton/asset.h>
++#include <clanton/clanton.h>
++#include <clanton/flash.h>
++#include <clanton/mfh.h>
++#include <clanton/sbh.h>
++#include <clanton/test_module.h>
++#include <grub/types.h>
++#include <shared.h>
++
++#define grub_file_size() filemax
++
++/* Flash item MMIO address & length. */
++static grub_uint8_t *cln_flash_item_addr = 0x0;
++static grub_uint32_t cln_flash_item_len = 0x0;
++static unsigned int spi_offs_intra_module = 0x0;
++static grub_uint8_t skip_csbh = 0;
++
++/* The path to the CSBH file. */
++static char cln_sbh_path[GRUB_CLN_SBH_FILE_PATHMAX] = "";
++
++/* Return the path to the CSBH file matching the module. */
++static char *
++cln_get_sbh_fs_path (char *string)
++{
++ char *pos = NULL;
++ int len = 0;
++ char *path = grub_strtok_r (string, " ", &pos);
++
++ cln_sbh_path[0] = 0;
++
++ len = grub_strlen (path) + grub_strlen (GRUB_CLN_SBH_FILE_EXT);
++ if (len < GRUB_CLN_SBH_FILE_PATHMAX)
++ {
++ grub_strncat (cln_sbh_path, path, GRUB_CLN_SBH_FILE_PATHMAX);
++ grub_strncat (cln_sbh_path, GRUB_CLN_SBH_FILE_EXT,
++ GRUB_CLN_SBH_FILE_PATHMAX);
++ }
++ else
++ grub_printf ("%s error: path to CSBH file is too long\n", __func__);
++
++ return cln_sbh_path;
++}
++
++/* Sanity check offset and size of MFH item.
++ Minimum size is passed as an argument. Maximum size is determined by
++ boundary check of the flash part. */
++static int
++cln_flash_item_is_sane (grub_uint32_t min_size)
++{
++ /* Take into account the Clanton SBH if in secure mode. */
++ min_size += (grub_cln_secure ? sizeof (struct grub_cln_sbh) : 0);
++
++ /* Check that:
++ 1. minimum size is satisfied
++ 2. extent of the asset doesn't wrap around the address space. */
++ if (cln_flash_item_len < min_size
++ || (grub_uint32_t) cln_flash_item_addr + cln_flash_item_len
++ < (grub_uint32_t) cln_flash_item_addr)
++ {
++ grub_printf ("flash item size is outside the accepted range\n");
++ errnum = ERR_FILELENGTH;
++ return 0;
++ }
++
++ return 1;
++}
++
++#define KERNEL 0
++#define INITRD 1
++#define CONFIG 2
++
++static int
++spi_open (int type)
++{
++ skip_csbh = 0;
++ spi_offs_intra_module = 0;
++
++ /* For non-secure boot, look up unsigned assets first. If not found, look up
++ signed assets then. */
++ switch (type)
++ {
++ case KERNEL:
++ grub_cln_mfh_entry_lookup (grub_cln_mfh_addr,
++ grub_cln_secure ? CLN_MFH_ITEM_TYPE_KERNEL_SIGNED
++ : CLN_MFH_ITEM_TYPE_KERNEL,
++ &cln_flash_item_addr,
++ &cln_flash_item_len);
++ if (0 == grub_cln_secure && ERR_FILE_NOT_FOUND == errnum)
++ {
++ errnum = ERR_NONE;
++ grub_cln_mfh_entry_lookup (grub_cln_mfh_addr,
++ CLN_MFH_ITEM_TYPE_KERNEL_SIGNED,
++ &cln_flash_item_addr,
++ &cln_flash_item_len);
++ if (ERR_NONE == errnum)
++ skip_csbh = 1;
++ }
++ if (ERR_NONE == errnum)
++ cln_flash_item_is_sane (sizeof (struct linux_kernel_header));
++ break;
++ case INITRD:
++ grub_cln_mfh_entry_lookup (grub_cln_mfh_addr,
++ grub_cln_secure ? CLN_MFH_ITEM_TYPE_RAMDISK_SIGNED
++ : CLN_MFH_ITEM_TYPE_RAMDISK,
++ &cln_flash_item_addr,
++ &cln_flash_item_len);
++ if (0 == grub_cln_secure && ERR_FILE_NOT_FOUND == errnum)
++ {
++ errnum = ERR_NONE;
++ grub_cln_mfh_entry_lookup (grub_cln_mfh_addr,
++ CLN_MFH_ITEM_TYPE_RAMDISK_SIGNED,
++ &cln_flash_item_addr,
++ &cln_flash_item_len);
++ if (ERR_NONE == errnum)
++ skip_csbh = 1;
++ }
++ if (ERR_NONE == errnum)
++ cln_flash_item_is_sane (0);
++ break;
++ default:
++ /* case CONFIG */
++ grub_cln_mfh_entry_lookup (grub_cln_mfh_addr,
++ grub_cln_secure ?
++ CLN_MFH_ITEM_TYPE_BOOTLOADER_CONFIG_SIGNED
++ : CLN_MFH_ITEM_TYPE_BOOTLOADER_CONFIG,
++ &cln_flash_item_addr,
++ &cln_flash_item_len);
++ if (0 == grub_cln_secure && ERR_FILE_NOT_FOUND == errnum)
++ {
++ errnum = ERR_NONE;
++ grub_cln_mfh_entry_lookup (grub_cln_mfh_addr,
++ CLN_MFH_ITEM_TYPE_BOOTLOADER_CONFIG_SIGNED,
++ &cln_flash_item_addr,
++ &cln_flash_item_len);
++ if (ERR_NONE == errnum)
++ skip_csbh = 1;
++ }
++ if (ERR_NONE == errnum)
++ cln_flash_item_is_sane (0);
++ break;
++ }
++
++ /* If the asset is signed, seek past CSBH. */
++ if (grub_cln_secure || skip_csbh)
++ spi_offs_intra_module += sizeof (struct grub_cln_sbh);
++
++ return (ERR_NONE == errnum);
++}
++
++int
++grub_cln_asset_open (grub_cln_asset_type type, char *filename)
++{
++ /* No error by default. */
++ int ret = 1;
++
++ __cln_test_asset(type);
++
++ switch (type)
++ {
++ case GRUB_CLN_ASSET_KERNEL:
++ if (grub_cln_linux_spi)
++ ret = spi_open (KERNEL);
++ else
++ ret = grub_open (filename);
++ break;
++ case GRUB_CLN_ASSET_INITRD:
++ if (grub_cln_initrd_spi)
++ ret = spi_open (INITRD);
++ else
++ ret = grub_open (filename);
++ break;
++ case GRUB_CLN_ASSET_CONFIG:
++ if (grub_cln_loaded_from_spi)
++ ret = spi_open (CONFIG);
++ else
++ ret = grub_open (filename);
++ break;
++ case GRUB_CLN_ASSET_KERNEL_CSBH:
++ if (grub_cln_linux_spi)
++ ret = spi_open (KERNEL);
++ else
++ ret = grub_open (cln_get_sbh_fs_path (filename));
++ break;
++ case GRUB_CLN_ASSET_INITRD_CSBH:
++ if (grub_cln_initrd_spi)
++ ret = spi_open (INITRD);
++ else
++ ret = grub_open (cln_get_sbh_fs_path (filename));
++ break;
++ default:
++ /* case GRUB_CLN_ASSET_CONFIG_CSBH: */
++ if (grub_cln_loaded_from_spi)
++ ret = spi_open (CONFIG);
++ else
++ ret = grub_open (cln_get_sbh_fs_path (filename));
++ break;
++ }
++
++ return ret;
++}
++
++int
++grub_cln_asset_read (grub_cln_asset_type type, void *buf, int len)
++{
++ int read = 0;
++
++ switch (type)
++ {
++ case GRUB_CLN_ASSET_KERNEL:
++ if (grub_cln_linux_spi)
++ {
++ grub_memcpy (buf,
++ cln_flash_item_addr
++ + spi_offs_intra_module, len);
++ read = len;
++ spi_offs_intra_module += read;
++ }
++ else
++ read = grub_read (buf, len);
++ break;
++ case GRUB_CLN_ASSET_KERNEL_CSBH:
++ if (grub_cln_linux_spi)
++ {
++ grub_memcpy (buf, cln_flash_item_addr, len);
++ read = len;
++ }
++ else
++ read = grub_read (buf, len);
++ break;
++ case GRUB_CLN_ASSET_INITRD:
++ if (grub_cln_initrd_spi)
++ {
++ grub_memcpy (buf,
++ cln_flash_item_addr + spi_offs_intra_module,
++ len);
++ read = len;
++ spi_offs_intra_module += read;
++ }
++ else
++ read = grub_read (buf, len);
++ break;
++ case GRUB_CLN_ASSET_INITRD_CSBH:
++ if (grub_cln_initrd_spi)
++ {
++ grub_memcpy (buf, cln_flash_item_addr, len);
++ read = len;
++ }
++ else
++ read = grub_read (buf, len);
++ break;
++ case GRUB_CLN_ASSET_CONFIG:
++ if (grub_cln_loaded_from_spi)
++ {
++ grub_memcpy (buf,
++ cln_flash_item_addr + spi_offs_intra_module,
++ len);
++ read = len;
++ spi_offs_intra_module += read;
++ }
++ else
++ read = grub_read (buf, len);
++ break;
++ default:
++ /* case GRUB_CLN_ASSET_CONFIG_CSBH */
++ if (grub_cln_loaded_from_spi)
++ {
++ grub_memcpy (buf, cln_flash_item_addr, len);
++ read = len;
++ }
++ else
++ read = grub_read (buf, len);
++ break;
++ }
++
++ return read;
++}
++
++void
++grub_cln_asset_seek (int offset)
++{
++ /* Note it doesn't differentiate between module types, as it's only used
++ by the linux loader routine. */
++ if (grub_cln_linux_spi)
++ {
++ if (grub_cln_secure || skip_csbh)
++ spi_offs_intra_module = offset + sizeof (struct grub_cln_sbh);
++ else
++ spi_offs_intra_module = offset;
++ }
++ else
++ grub_seek (offset);
++}
++
++int
++grub_cln_asset_size (grub_cln_asset_type type)
++{
++ int size = -1;
++
++ switch (type)
++ {
++ case GRUB_CLN_ASSET_KERNEL:
++ if (grub_cln_linux_spi)
++ {
++ size = cln_flash_item_len;
++ if (grub_cln_secure || skip_csbh)
++ size -= sizeof (struct grub_cln_sbh);
++ }
++ else
++ size = grub_file_size ();
++ break;
++ case GRUB_CLN_ASSET_INITRD:
++ if (grub_cln_initrd_spi)
++ {
++ size = cln_flash_item_len;
++ if (grub_cln_secure || skip_csbh)
++ size -= sizeof (struct grub_cln_sbh);
++ }
++ else
++ size = grub_file_size ();
++ break;
++ default:
++ /* case GRUB_CLN_ASSET_CONFIG */
++ if (grub_cln_loaded_from_spi)
++ {
++ size = cln_flash_item_len;
++ if (grub_cln_secure || skip_csbh)
++ size -= sizeof (struct grub_cln_sbh);
++ }
++ else
++ size = grub_file_size ();
++ break;
++ }
++
++ return size;
++}
++
++void grub_cln_asset_close (void)
++{
++ grub_close ();
++ return;
++}
++
++int
++grub_cln_fetch_sbh (grub_cln_asset_type type, char *path,
++ struct grub_cln_sbh *csbh)
++{
++ int success = 1;
++
++ /* Fetch the Clanton SBH. */
++ if (! grub_cln_asset_open (type, path))
++ success = 0;
++ else if (sizeof (*csbh) != grub_cln_asset_read (type, csbh, sizeof (*csbh)))
++ {
++ errnum = ERR_READ;
++ grub_close ();
++ grub_printf ("cannot read the Clanton SBH");
++ success = 0;
++ }
++ grub_close ();
++
++ /* Check for valid SBH. */
++ if (success)
++ {
++ if (GRUB_CLN_SBH_MAGIC_NUMBER != csbh->security_header.magic_number)
++ {
++ errnum = ERR_EXEC_FORMAT;
++ grub_printf ("invalid CSBH magic number\n");
++ success = 0;
++ }
++ }
++
++ return success;
++}
++
++/* Dump the contents of layout.conf encoded in flash image */
++void grub_cln_dump_layout (void)
++{
++ grub_uint8_t * data = 0x0;
++ grub_uint32_t len = 0x0;
++
++ errnum = ERR_NONE;
++ grub_cln_mfh_entry_lookup (grub_cln_mfh_addr,
++ CLN_MFH_ITEM_TYPE_BUILD_INFO,
++ &data,
++ &len);
++ if (errnum != ERR_NONE)
++ {
++ errnum = ERR_NONE;
++ grub_printf("cannot find layout.conf MFH entry!\n");
++ return;
++ }
++
++ grub_printf("Found layout.conf @ 0x%08x len 0x%08x\n", data, len);
++ grub_printf("%.*s\n", len, data);
++}
+diff --git a/efi/clanton/asset.h b/efi/clanton/asset.h
+new file mode 100644
+index 0000000..e5d9280
+--- /dev/null
++++ b/efi/clanton/asset.h
+@@ -0,0 +1,50 @@
++/*
++ * Copyright(c) 2013 Intel Corporation. All rights reserved.
++ *
++ * This program is free software; you can redistribute it and/or modify
++ * it under the terms of version 2 of the GNU General Public License as
++ * published by the Free Software Foundation.
++ *
++ * This program is distributed in the hope that it will be useful, but
++ * WITHOUT ANY WARRANTY; without even the implied warranty of
++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
++ * General Public License for more details.
++ *
++ * You should have received a copy of the GNU General Public License
++ * along with this program; if not, write to the Free Software
++ * Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
++ *
++ * Contact Information:
++ * Intel Corporation
++ */
++
++#ifndef GRUB_CLANTON_ASSET_HEADER
++#define GRUB_CLANTON_ASSET_HEADER 1
++
++#include <clanton/sbh.h>
++
++typedef enum
++{
++ GRUB_CLN_ASSET_KERNEL,
++ GRUB_CLN_ASSET_INITRD,
++ GRUB_CLN_ASSET_KERNEL_CSBH,
++ GRUB_CLN_ASSET_INITRD_CSBH,
++ GRUB_CLN_ASSET_CONFIG,
++ GRUB_CLN_ASSET_CONFIG_CSBH,
++} grub_cln_asset_type;
++
++/* Access to an asset in read-only mode. */
++int grub_cln_asset_open (grub_cln_asset_type type, char *filename);
++int grub_cln_asset_read (grub_cln_asset_type type, void *buf, int len);
++void grub_cln_asset_seek (int offset);
++int grub_cln_asset_size (grub_cln_asset_type type);
++void grub_cln_asset_close (void);
++
++/* Fetch and sanity check the Clanton Secure Boot Header. */
++int grub_cln_fetch_sbh (grub_cln_asset_type type, char *path,
++ struct grub_cln_sbh *csbh);
++
++/* Dump the contents of layout.conf encoded in flash image */
++void grub_cln_dump_layout (void);
++
++#endif /* ! GRUB_CLANTON_ASSET_HEADER */
+diff --git a/efi/clanton/boot_settings.c b/efi/clanton/boot_settings.c
+new file mode 100644
+index 0000000..5d003e8
+--- /dev/null
++++ b/efi/clanton/boot_settings.c
+@@ -0,0 +1,207 @@
++/*
++ * Copyright(c) 2013 Intel Corporation. All rights reserved.
++ *
++ * This program is free software; you can redistribute it and/or modify
++ * it under the terms of version 2 of the GNU General Public License as
++ * published by the Free Software Foundation.
++ *
++ * This program is distributed in the hope that it will be useful, but
++ * WITHOUT ANY WARRANTY; without even the implied warranty of
++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
++ * General Public License for more details.
++ *
++ * You should have received a copy of the GNU General Public License
++ * along with this program; if not, write to the Free Software
++ * Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
++ *
++ * Contact Information:
++ * Intel Corporation
++ */
++
++#include <clanton/asset.h>
++#include <clanton/clanton.h>
++#include <clanton/flash.h>
++#include <clanton/iarom.h>
++#include <clanton/intel_cln_sb.h>
++#include <clanton/target.h>
++#include <clanton/sbh.h>
++#include <grub/efi/efi.h>
++#include <grub/efi/misc.h>
++#include <grub/misc.h>
++#include <shared.h>
++
++/* Constants related to 'spi_rom_fuse_in' fuse. */
++#define SPI_ROM_FUSE_REG_OFFS 0x25
++#define SPI_ROM_FUSE_REG_MASK 0x00000010
++
++/* Pointer to memory-mapped MFH address. */
++grub_uint8_t *grub_cln_mfh_addr = (grub_uint8_t *) GRUB_CLN_MFH_ADDR;
++
++/* Indicate if the GRUB has been loaded from SPI or SDIO. */
++unsigned short int grub_cln_loaded_from_spi = 0;
++
++/* The (signed) configuration file buffer. Its maximum size is limited to
++ 8kB. */
++static char cfg_buffer[0x2000] = "";
++
++/* Function used to load grub.conf from SD or SPI*/
++static int do_load_config_file(char **cfg_file_buffer, int *cfg_file_size, char *source);
++
++/*
++ Determine whether or not Secure Boot is enabled.
++ */
++void
++grub_cln_detect_secure_sku (void)
++{
++ grub_uint32_t spi_rom_fuse_range = 0x0;
++
++ /* Read the spi_rom_fuse_in 32-bit fuse range from Fuse Bank 0. */
++ intel_cln_sb_read_reg (SB_ID_SEC_FUSE, CFG_READ_FUSE_OPCODE,
++ SPI_ROM_FUSE_REG_OFFS, &spi_rom_fuse_range);
++
++/* FIXME On Clanton, spi_rom_fuse_in == 1 if Secure Boot is enabled. On
++ emulation platform instead, the bit is swapped. The following #if's are
++ an emulation workaround. Restore when we transition to real silicon. */
++#if 0
++ if (spi_rom_fuse_range & SPI_ROM_FUSE_REG_MASK)
++#else
++ if (! (spi_rom_fuse_range & SPI_ROM_FUSE_REG_MASK))
++#endif
++ grub_cln_secure = 1;
++ else
++ grub_cln_secure = 0;
++
++ if (grub_cln_debug)
++ grub_printf("Detected %ssecure SKU\n", grub_cln_secure ? "" : "non-");
++}
++
++void
++grub_cln_load_config_file (char **cfg_file_buffer, int *cfg_file_size)
++{
++ grub_efi_loaded_image_t *loaded_image = NULL;
++ unsigned long drive = 0, partition = 0;
++ char *next = 0;
++ int mount_failed = 0;
++ int load_conf_failed = 0;
++ char *ext_fs = "File system Device";
++ char *spi_fs = "SPI";
++ // We first start by looking for grub.conf in SDIO. If we do not find it there, then look in SPI/Flash
++
++ /* Set path to the config file. */
++ /* Since we boot grub from SPI, config_file will only be
++ "grub.conf" instead of the expected "/boot/grub/grub.conf"
++ This is due to how config_file is assigned, at boot time it's
++ hardcoded to "/boot/grub/menu.lst" and when grub executes it
++ gets the path to its own image and redefines config_file to
++ be [path_to_image]/grub.conf. In our case, as grub is found
++ on SPI the path is null, resulting in config_file = grub.conf
++ This means that the grub.conf will need to be in the top most
++ directory of the SD As of now though, we're using a hardcoded
++ "/boot/grub/grub.conf" as this adheres to the grub standard.
++ */
++ grub_set_config_file ("/boot/grub/grub.conf");
++
++ grub_memset (cfg_buffer, 0x0, sizeof (cfg_buffer));
++
++ // Try to mount first mass storage partition returned by the BIOS
++
++ next = set_device ("(hd0,0)");
++ if (!next)
++ {
++ mount_failed = 1;
++ }
++
++ if (!open_device () && errnum != ERR_FSYS_MOUNT)
++ {
++ mount_failed = 1;
++ }
++
++ errnum = 0;
++ saved_partition = current_partition;
++ saved_drive = current_drive;
++
++ // Try to load config file from (hd0,0)
++
++ load_conf_failed = do_load_config_file(cfg_file_buffer, cfg_file_size, ext_fs);
++
++
++ // In case we can't load it from (hd0,0) load from SPI/Flash if possible.
++
++ if (mount_failed || load_conf_failed)
++ {
++ errnum = 0;
++ /* Find out whether the Grub was loaded from SPI/flash or SDIO. */
++ loaded_image = grub_efi_get_loaded_image (grub_efi_image_handle);
++ grub_cln_loaded_from_spi =
++ ! grub_get_drive_partition_from_bdev_handle (loaded_image->device_handle,
++ &drive, &partition);
++
++ do_load_config_file(cfg_file_buffer, cfg_file_size, spi_fs);
++ }
++
++
++ if (grub_cln_debug)
++ grub_printf ("GRUB loaded from %s\n",
++ grub_cln_loaded_from_spi ? "SPI/Flash" : "file system device");
++
++}
++
++static int
++do_load_config_file(char **cfg_file_buffer, int *cfg_file_size, char *source) // from SD or SPI
++{
++ int read = 0;
++
++ /* Open the configuration file. */
++ if (! grub_cln_asset_open (GRUB_CLN_ASSET_CONFIG, config_file))
++ {
++ errnum = ERR_FILE_NOT_FOUND;
++ if (grub_cln_debug)
++ grub_printf ("%s(): cannot open GRUB configuration from %s\n", __func__, source);
++ return 1;
++ }
++ *cfg_file_size = grub_cln_asset_size (GRUB_CLN_ASSET_CONFIG);
++
++ /* Signed/unsigned configuration must fit into the buffer. */
++ if (*cfg_file_size > sizeof (cfg_buffer))
++ {
++ grub_printf ("configuration file is too big\n");
++ errnum = ERR_FILELENGTH;
++ return 1;
++ }
++
++ *cfg_file_buffer = cfg_buffer;
++
++ /* Buffer configuration file. */
++ read =
++ grub_cln_asset_read (GRUB_CLN_ASSET_CONFIG,
++ cfg_buffer
++ + (grub_cln_secure ? sizeof (struct grub_cln_sbh) : 0),
++ *cfg_file_size);
++ grub_cln_asset_close ();
++ if (read != *cfg_file_size)
++ {
++ errnum = ERR_READ;
++ if(grub_cln_debug)
++ grub_printf ("%s(): cannot read GRUB configuration from %s\n", __func__, source);
++ return 1;
++ }
++
++ if (grub_cln_secure)
++ {
++ /* Buffer CSBH if in Secure mode. */
++ if (! grub_cln_fetch_sbh (GRUB_CLN_ASSET_CONFIG_CSBH, config_file,
++ (struct grub_cln_sbh *) cfg_buffer))
++ {
++ errnum = ERR_SGN_FILE_NOT_FOUND;
++ return 0;
++ }
++
++ /* Validate configuration file. */
++ if (! grub_cln_verify_asset_signature ((grub_uint8_t *) cfg_buffer))
++ errnum = ERR_CLN_VERIFICATION;
++
++ /* Mask out the CSBH to the configuration file parser. */
++ *cfg_file_buffer += sizeof (struct grub_cln_sbh);
++ }
++ return 0;
++}
+diff --git a/efi/clanton/clanton.h b/efi/clanton/clanton.h
+new file mode 100644
+index 0000000..643bb65
+--- /dev/null
++++ b/efi/clanton/clanton.h
+@@ -0,0 +1,43 @@
++/*
++ * Copyright(c) 2013 Intel Corporation. All rights reserved.
++ *
++ * This program is free software; you can redistribute it and/or modify
++ * it under the terms of version 2 of the GNU General Public License as
++ * published by the Free Software Foundation.
++ *
++ * This program is distributed in the hope that it will be useful, but
++ * WITHOUT ANY WARRANTY; without even the implied warranty of
++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
++ * General Public License for more details.
++ *
++ * You should have received a copy of the GNU General Public License
++ * along with this program; if not, write to the Free Software
++ * Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
++ *
++ * Contact Information:
++ * Intel Corporation
++ */
++
++#ifndef GRUB_CLANTON_CLANTON_HEADER
++#define GRUB_CLANTON_CLANTON_HEADER 1
++
++/*
++ Kernel command line token to be expanded into Quark UART1 MMIO address.
++ Note the length of the token MUST be > "0xcafebabe", so as to prevent the
++ rest of the string from being overwritten.
++ */
++#define QUARK_UART_MMIO_TOKEN "$EARLY_CON_ADDR_REPLACE"
++
++/* Secure/non-secure boot switch. */
++extern unsigned short int grub_cln_secure;
++/* Debug/release switch. */
++extern unsigned short int grub_cln_debug;
++
++/* State whether the Grub was loaded from SPI/flash or SDIO. */
++extern unsigned short int grub_cln_loaded_from_spi;
++/* State whether the Kernel must be fetched from SPI/flash or SDIO. */
++extern unsigned short int grub_cln_linux_spi;
++/* State whether the Initrd must be fetched from SPI/flash or SDIO. */
++extern unsigned short int grub_cln_initrd_spi;
++
++#endif /* ! GRUB_CLANTON_CLANTON_HEADER */
+diff --git a/efi/clanton/early_uart.c b/efi/clanton/early_uart.c
+new file mode 100644
+index 0000000..557dc7c
+--- /dev/null
++++ b/efi/clanton/early_uart.c
+@@ -0,0 +1,137 @@
++/*
++ * Copyright(c) 2013 Intel Corporation. All rights reserved.
++ *
++ * This program is free software; you can redistribute it and/or modify
++ * it under the terms of version 2 of the GNU General Public License as
++ * published by the Free Software Foundation.
++ *
++ * This program is distributed in the hope that it will be useful, but
++ * WITHOUT ANY WARRANTY; without even the implied warranty of
++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
++ * General Public License for more details.
++ *
++ * You should have received a copy of the GNU General Public License
++ * along with this program; if not, write to the Free Software
++ * Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
++ *
++ * Contact Information:
++ * Intel Corporation
++ */
++
++/*
++ * This file implements two early consoles named earlycln0 earlycln1
++ * this just lets use get text out the PCI UART early in boot, since Quark SoC
++ * does not implement traditional 0x3f8 type UARTs
++ */
++
++#include <clanton/clanton.h>
++#include <grub/types.h>
++#include <netboot/linux-asm-io.h>
++#include <netboot/timer.h>
++#include <shared.h>
++#include <stage2/serial.h>
++#include "early_uart.h"
++
++#define PCI_VENDOR_ID (0x00)
++#define PCI_DEVICE_ID (0x02)
++#define PCI_CLASS_DEVICE (0x0A)
++
++#define PCI_VENDOR_ID_INTEL (0x8086)
++#define PCI_DEVICE_CLNUART (0x0936)
++#define UART_BARMAP_LEN (0x10)
++
++static grub_uint32_t *pclnuart = NULL;
++
++static grub_uint32_t read_pci_config(grub_uint8_t bus, grub_uint8_t slot,
++ grub_uint8_t func, grub_uint8_t offset)
++{
++ grub_uint32_t v;
++ outl(0x80000000 | (bus<<16) | (slot<<11) | (func<<8) | offset, 0xcf8);
++ v = inl(0xcfc);
++ return v;
++}
++
++static grub_uint16_t read_pci_config_16(grub_uint8_t bus, grub_uint8_t slot,
++ grub_uint8_t func, grub_uint8_t offset)
++{
++ grub_uint16_t v;
++ outl(0x80000000 | (bus<<16) | (slot<<11) | (func<<8) | offset, 0xcf8);
++ v = inw(0xcfc + (offset&2));
++ return v;
++}
++
++/**
++ * clnuart_early_setup
++ *
++ * Sets up one of the Clanton UARTs as an early boot console
++ */
++static void cln_uart_early_setup(int num, int slot, int func, int offset)
++{
++ grub_uint32_t addr = 0;
++ addr = read_pci_config(num, slot, func, offset);
++
++ if(addr & 0x00000001){
++ /* This is an IO bar */
++ grub_printf("bailing.. this is an IO bar\n");
++ return;
++ }
++ if(addr & 0x00000006){
++ /* Diver expects 32 bit range */
++ grub_printf("bailing.. driver expects 32 bit range\n");
++ return;
++ }
++ pclnuart = (grub_uint32_t *) (addr&0xFFFFFFF0);
++}
++
++/**
++ * clnuart_early_probe
++ *
++ * Do an early probe of the PCI bus - find Clanton UARTs
++ */
++static int cln_early_uart_probe(int num, int slot, int func)
++{
++ grub_uint16_t class;
++ grub_uint16_t vendor;
++ grub_uint16_t device;
++
++ class = read_pci_config_16(num, slot, func, PCI_CLASS_DEVICE);
++
++ if (class == 0xffff) {
++ return -1;
++ }
++
++ vendor = read_pci_config_16(num, slot, func, PCI_VENDOR_ID);
++ device = read_pci_config_16(num, slot, func, PCI_DEVICE_ID);
++
++ /* Do early PCI UART init */
++ if(vendor == PCI_VENDOR_ID_INTEL){
++ /* UART0 is F1, UART1 is F5. We're probing UART1. */
++ if (device == PCI_DEVICE_CLNUART && 0x0005 == func){
++ cln_uart_early_setup(num, slot, func, 0x10);
++ return 0;
++ }
++ }
++ return -1;
++}
++
++grub_uint32_t *cln_early_uart_init(void)
++{
++ int bus = 0, slot = 0, func = 0;
++
++ for (slot = 0; slot < 32; slot++){
++ for (func = 0; func < 8; func++) {
++ /* Only probe function 0 on single fn devices */
++ if(cln_early_uart_probe(bus, slot, func) == 0){
++ if (grub_cln_debug) {
++ grub_printf("%s: UART @ B/D/F "
++ "%d/%d/%d\n",
++ __func__, bus, slot, func);
++ }
++ return pclnuart;
++ }
++ }
++ }
++ errnum = ERR_DEV_VALUES;
++ return NULL;
++}
++
+diff --git a/efi/clanton/early_uart.h b/efi/clanton/early_uart.h
+new file mode 100644
+index 0000000..a09782d
+--- /dev/null
++++ b/efi/clanton/early_uart.h
+@@ -0,0 +1,29 @@
++/*
++ * Copyright(c) 2013 Intel Corporation. All rights reserved.
++ *
++ * This program is free software; you can redistribute it and/or modify
++ * it under the terms of version 2 of the GNU General Public License as
++ * published by the Free Software Foundation.
++ *
++ * This program is distributed in the hope that it will be useful, but
++ * WITHOUT ANY WARRANTY; without even the implied warranty of
++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
++ * General Public License for more details.
++ *
++ * You should have received a copy of the GNU General Public License
++ * along with this program; if not, write to the Free Software
++ * Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
++ *
++ * Contact Information:
++ * Intel Corporation
++ */
++
++#ifndef __INTEL_CLN_EARLY_UART_HEADER__
++#define __INTEL_CLN_EARLY_UART_HEADER__
++
++#include <grub/types.h>
++
++grub_uint32_t *cln_early_uart_init(void);
++
++#endif /* __INTEL_CLN_EARLY_UART_HEADER__ */
++
+diff --git a/efi/clanton/flash.h b/efi/clanton/flash.h
+new file mode 100644
+index 0000000..db69e1b
+--- /dev/null
++++ b/efi/clanton/flash.h
+@@ -0,0 +1,36 @@
++/*
++ * Copyright(c) 2013 Intel Corporation. All rights reserved.
++ *
++ * This program is free software; you can redistribute it and/or modify
++ * it under the terms of version 2 of the GNU General Public License as
++ * published by the Free Software Foundation.
++ *
++ * This program is distributed in the hope that it will be useful, but
++ * WITHOUT ANY WARRANTY; without even the implied warranty of
++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
++ * General Public License for more details.
++ *
++ * You should have received a copy of the GNU General Public License
++ * along with this program; if not, write to the Free Software
++ * Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
++ *
++ * Contact Information:
++ * Intel Corporation
++ */
++
++#ifndef GRUB_CLANTON_FLASH_HEADER
++#define GRUB_CLANTON_FLASH_HEADER 1
++
++#include <clanton/target.h>
++#include <grub/types.h>
++
++/* Pointer to MFH. */
++extern grub_uint8_t *grub_cln_mfh_addr;
++
++/* MMIO address of MFH. */
++#define GRUB_CLN_MFH_ADDR 0xFFF08000
++
++/* MMIO address of signed Key Module. */
++#define GRUB_CLN_S_KEYMOD_ADDR 0xFFFD8000
++
++#endif /* ! GRUB_CLANTON_FLASH_HEADER */
+diff --git a/efi/clanton/iarom.c b/efi/clanton/iarom.c
+new file mode 100644
+index 0000000..49fc9b6
+--- /dev/null
++++ b/efi/clanton/iarom.c
+@@ -0,0 +1,122 @@
++/*
++ * Copyright(c) 2013 Intel Corporation. All rights reserved.
++ *
++ * This program is free software; you can redistribute it and/or modify
++ * it under the terms of version 2 of the GNU General Public License as
++ * published by the Free Software Foundation.
++ *
++ * This program is distributed in the hope that it will be useful, but
++ * WITHOUT ANY WARRANTY; without even the implied warranty of
++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
++ * General Public License for more details.
++ *
++ * You should have received a copy of the GNU General Public License
++ * along with this program; if not, write to the Free Software
++ * Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
++ *
++ * Contact Information:
++ * Intel Corporation
++ */
++
++#include <clanton/clanton.h>
++#include <clanton/flash.h>
++#include <clanton/iarom.h>
++#include <clanton/target.h>
++#include <clanton/test_module.h>
++#include <shared.h>
++
++/* Structure used to help manage a "heap" for Crypto purposes.
++ Note this is a very simple manager with just alloc and init type functions
++ there is no free function and so the init function is expected to be called
++ between crypto functions.
++ Debug and error codes are also stored here so a debugger can access them. */
++typedef struct scratch_memory_t
++{
++ /* Address of memory from which we can start to allocate. */
++ grub_uint8_t *heap_start;
++ /* Address of final byte of memory we can allocate up to. */
++ grub_uint8_t *heap_end;
++ /* Pointer to the next free address in the heap. */
++ grub_uint8_t *next_free_mem;
++ /* A progress code, updated as we go along. */
++ grub_uint32_t debug_code;
++ /* An indicator of why we failed to boot. */
++ grub_uint32_t fatal_code;
++}
++scratch_memory_t;
++
++static scratch_memory_t *scratch_area_info = NULL;
++
++/* 16 kB of scratchpad memory is sufficient for SHA256/RSA2048. */
++#define CRYPTO_HEAP_SIZE 0x4000
++static grub_uint8_t memory_buf_array[CRYPTO_HEAP_SIZE];
++
++/* The OEM RSA Public Key for verifying signature. */
++static struct grub_cln_sbh_key_hdr *oem_rsa_key =
++ (struct grub_cln_sbh_key_hdr *) (GRUB_CLN_S_KEYMOD_ADDR +
++ sizeof (struct grub_cln_sbh) -
++ GRUB_CLN_SBH_PADDING);
++
++/* Initialise the heap descriptor and the buffer. */
++static void
++init_heap (void)
++{
++ grub_memset (memory_buf_array, 0x0, sizeof (memory_buf_array));
++
++ scratch_area_info = (scratch_memory_t *) &memory_buf_array;
++ /* Next address after the structure itself. */
++ scratch_area_info->heap_start = (grub_uint8_t *) (scratch_area_info + 1);
++ scratch_area_info->heap_end = (grub_uint8_t *) scratch_area_info + CRYPTO_HEAP_SIZE;
++ scratch_area_info->next_free_mem = scratch_area_info->heap_start;
++ scratch_area_info->debug_code = 0;
++ scratch_area_info->fatal_code = 0;
++
++ if (grub_cln_debug)
++ grub_printf ("(%s) scratch_area_info = 0x%x\n", __func__, scratch_area_info);
++}
++
++/* The callback function signature. */
++typedef grub_uint8_t (*callback_t) (struct grub_cln_sbh_security_hdr *,
++ struct grub_cln_sbh_key_hdr *,
++ struct scratch_memory_t *);
++static grub_uint8_t
++(*IAROM_validate_module) (struct grub_cln_sbh_security_hdr *sec_h,
++ struct grub_cln_sbh_key_hdr *key_h,
++ struct scratch_memory_t *scratch_area_info);
++
++int
++grub_cln_verify_asset_signature (grub_uint8_t *addr)
++{
++ grub_uint8_t valid = 0;
++ struct grub_cln_sbh_security_hdr *sec_h =
++ (struct grub_cln_sbh_security_hdr *) addr;
++ grub_uint32_t *callback_ptr = (grub_uint32_t *) GRUB_CLN_IAROM_CALLBACK_PTR;
++
++ __cln_test_signature();
++
++ init_heap ();
++
++ IAROM_validate_module = (callback_t) *callback_ptr;
++
++ if (grub_cln_debug)
++ {
++ grub_printf ("OEM key @ 0x%x\n", oem_rsa_key);
++ grub_printf ("Calling into IAROM @ 0x%x for validating module @ 0x%x.. ",
++ IAROM_validate_module, addr);
++ }
++
++ valid = IAROM_validate_module (sec_h, oem_rsa_key, scratch_area_info);
++
++ if (grub_cln_debug)
++ {
++ if (valid)
++ grub_printf ("done.");
++ else
++ grub_printf ("failed.");
++ grub_printf (" debug_code=0x%x, fatal_code=0x%x\n",
++ scratch_area_info->debug_code,
++ scratch_area_info->fatal_code);
++ }
++
++ return (int) valid;
++}
+diff --git a/efi/clanton/iarom.h b/efi/clanton/iarom.h
+new file mode 100644
+index 0000000..b26bda7
+--- /dev/null
++++ b/efi/clanton/iarom.h
+@@ -0,0 +1,33 @@
++/*
++ * Copyright(c) 2013 Intel Corporation. All rights reserved.
++ *
++ * This program is free software; you can redistribute it and/or modify
++ * it under the terms of version 2 of the GNU General Public License as
++ * published by the Free Software Foundation.
++ *
++ * This program is distributed in the hope that it will be useful, but
++ * WITHOUT ANY WARRANTY; without even the implied warranty of
++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
++ * General Public License for more details.
++ *
++ * You should have received a copy of the GNU General Public License
++ * along with this program; if not, write to the Free Software
++ * Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
++ *
++ * Contact Information:
++ * Intel Corporation
++ */
++
++#ifndef GRUB_CLANTON_IAROM_HEADER
++#define GRUB_CLANTON_IAROM_HEADER 1
++
++#include <clanton/clanton.h>
++#include <clanton/sbh.h>
++#include <clanton/target.h>
++#include <grub/types.h>
++
++/* Perform signature verification.
++ TODO needs proper documentation. */
++int grub_cln_verify_asset_signature (grub_uint8_t *addr);
++
++#endif /* ! GRUB_CLANTON_IAROM_HEADER */
+diff --git a/efi/clanton/imr.c b/efi/clanton/imr.c
+new file mode 100644
+index 0000000..6e6d43b
+--- /dev/null
++++ b/efi/clanton/imr.c
+@@ -0,0 +1,228 @@
++/*
++ * Copyright(c) 2013 Intel Corporation. All rights reserved.
++ *
++ * This program is free software; you can redistribute it and/or modify
++ * it under the terms of version 2 of the GNU General Public License as
++ * published by the Free Software Foundation.
++ *
++ * This program is distributed in the hope that it will be useful, but
++ * WITHOUT ANY WARRANTY; without even the implied warranty of
++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
++ * General Public License for more details.
++ *
++ * You should have received a copy of the GNU General Public License
++ * along with this program; if not, write to the Free Software
++ * Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
++ *
++ * Contact Information:
++ * Intel Corporation
++ */
++
++#include <stdbool.h>
++#include <grub/types.h>
++#include <shared.h>
++#include <grub/cpu/linux.h>
++#include <clanton/asset.h>
++#include <clanton/intel_cln_sb.h>
++#include <clanton/test_module.h>
++#include "imr.h"
++
++#define DRAM_IMR1L (0x44) /* IMR1L address */
++#define DRAM_IMR1H (0x45) /* IMR1H address */
++#define DRAM_IMR1RM (0x46) /* IMR1RM address */
++#define DRAM_IMR1WM (0x47) /* IMR1WM address */
++#define DRAM_IMR3L (0x4C) /* IMR3L address */
++#define DRAM_IMR3H (0x4D) /* IMR3H address */
++#define DRAM_IMR3RM (0x4E) /* IMR3RM address */
++#define DRAM_IMR3WM (0x4F) /* IMR3WM address */
++#define DRAM_IMR7L (0x5C) /* IMR7L address */
++#define DRAM_IMR7H (0x5D) /* IMR7H address */
++#define DRAM_IMR7RM (0x5E) /* IMR7RM address */
++#define DRAM_IMR7WM (0x5F) /* IMR7WM address */
++
++#define LOCK true
++#define UNLOCK false
++#define IMR_MIN_SIZE (0x400)
++#define IMR_LOCK_BIT (0x80000000)
++/* Mask of the last 2 bit of IMR address [23:2] */
++#define IMR_REG_MASK (0xFFFFFC)
++/* default register value */
++#define IMR_WRITE_ENABLE_ALL (0xFFFFFFFF)
++/* default register value */
++#define IMR_READ_ENABLE_ALL (0xBFFFFFFF)
++/* Mask that enables IMR access for Non-SMM Core, Core Snoops Only.*/
++#define IMR_SNOOP_NON_SMM_ENABLE (0x40000001)
++/* Mask that enables IMR access for Non-SMM Core Only.*/
++#define IMR_NON_SMM_ENABLE (0x00000001)
++
++/* IMRs are 1kB-aligned */
++#define IMR_ALIGNMENT 10
++/* Right shift of 22-bit IMR addr to fit IMR Lo/Hi register addr field */
++#define IMR_ADDR_SHIFT 8
++
++/**
++ * imr_align
++ *
++ * @param addr: memory addr
++ *
++ * make input memory addr to be 1k aligned
++ * The IMR designed as always protect the extra 1k memory space based on input
++ * high reg value so the input memory address round down here
++ */
++static inline grub_uint32_t
++imr_align(grub_uint32_t addr)
++{
++ addr &= (~((1 << IMR_ALIGNMENT) - 1));
++ return addr;
++}
++
++/**
++ * intel_cln_imr_write
++ *
++ * @param lo_addr: starting memory addr
++ * @param hi_addr: end memory addr
++ * @param imr_l: IMRXL reg addr
++ * @param imr_h: IMRXH reg addr
++ * @param imr_rm: IMR read mask reg addr
++ * @param imr_wm: IMR write mask reg addr
++ *
++ * write in imr memory value to corresponding register addr.
++ */
++static void
++intel_cln_imr_write(grub_uint32_t lo_addr, grub_uint32_t hi_addr,
++ grub_uint8_t imr_l, grub_uint8_t imr_h,
++ grub_uint8_t imr_rm, grub_uint8_t imr_wm, bool lock)
++{
++ grub_uint32_t tmp_addr;
++
++ /* We have to becareful here, some IMR regions may previously used by
++ * BIOS.
++ * 1. disable the IMR if its already enabled
++ * 2. assign IMR Low address to where you want
++ * 3. assign IMR High address to where you want
++ * 4. apply read/write access masks
++ */
++ intel_cln_sb_read_reg(SB_ID_ESRAM, CFG_READ_OPCODE, imr_l, &tmp_addr);
++ if(tmp_addr & IMR_LOCK_BIT)
++ {
++ grub_printf("%s IMR has already locked.\n ",__func__);
++ return;
++ }
++
++ if(tmp_addr)
++ {
++ if (grub_cln_debug)
++ grub_printf("%s IMR already in use, start at: 0x%08x \n",
++ __func__, tmp_addr);
++ intel_cln_sb_write_reg(SB_ID_ESRAM, CFG_WRITE_OPCODE, imr_rm,
++ IMR_READ_ENABLE_ALL );
++ intel_cln_sb_write_reg(SB_ID_ESRAM, CFG_WRITE_OPCODE, imr_wm,
++ IMR_WRITE_ENABLE_ALL);
++ }
++
++ intel_cln_sb_write_reg(SB_ID_ESRAM, CFG_WRITE_OPCODE, imr_h, hi_addr);
++ if (grub_cln_debug)
++ grub_printf("%s IMRXH 0x%08x\n", __func__, hi_addr);
++
++ intel_cln_sb_write_reg(SB_ID_ESRAM, CFG_WRITE_OPCODE, imr_l, lo_addr);
++ if (grub_cln_debug)
++ grub_printf("%s IMRXL 0x%08x\n", __func__, lo_addr);
++
++ /* authrised agents to access initrd: Non-SMM(0b), Host(30b), PUnit(29b) */
++ /* NOTE. CPU snoop will be always writes */
++ intel_cln_sb_write_reg(SB_ID_ESRAM, CFG_WRITE_OPCODE, imr_rm,
++ IMR_NON_SMM_ENABLE);
++ intel_cln_sb_write_reg(SB_ID_ESRAM, CFG_WRITE_OPCODE, imr_wm,
++ IMR_SNOOP_NON_SMM_ENABLE);
++
++ if(lock)
++ {
++ lo_addr |= IMR_LOCK_BIT;
++ intel_cln_sb_write_reg(SB_ID_ESRAM, CFG_WRITE_OPCODE, imr_l, lo_addr);
++ if (grub_cln_debug)
++ grub_printf("%s IMRXL locked 0x%08x\n", __func__, lo_addr);
++ }
++
++}
++
++/**
++ * intel_cln_imr_setup
++ *
++ * @param id: IMR ID
++ * @param addr: starting addr
++ * @param size: length of memory
++ *
++ * setup IMR protection of the specified memory region.
++ */
++grub_error_t
++intel_cln_imr_setup(imr_range id, grub_addr_t addr, grub_size_t size)
++{
++
++ /* The steps to setup IMR in Grub
++ * 1. calculate the memory address
++ * 2. memory alignment to 1k
++ * 3. shift address value to register specified format.
++ * 4. read register to see if its already locked.
++ * 5. enable default read/write all access right if imr already in use
++ * 6. write high/low memory address to IMR registers.
++ * 7. setup authorised agents for IMR mask.
++ */
++ grub_uint32_t imr_hi_addr;
++ grub_uint32_t imr_lo_addr;
++
++ errnum = ERR_NONE;
++
++ if(size < IMR_MIN_SIZE)
++ {
++ grub_printf("Invalid input size! \n ");
++ errnum = ERR_BAD_ARGUMENT;
++ return errnum;
++ }
++ else
++ {
++ if (grub_cln_debug)
++ grub_printf("setting imr with input: addr=0x%08x, size=0x%x \n",
++ addr, (unsigned int)size);
++ }
++
++ /* align to 1k boundary */
++ imr_lo_addr = imr_align(addr);
++
++ /* update high memory address */
++ imr_hi_addr = imr_lo_addr + imr_align(size);
++
++ /* align to 1k boundary */
++ imr_hi_addr = imr_align(imr_hi_addr);
++
++ /* apply IMR MASK for register specified format */
++ imr_hi_addr = ((imr_hi_addr >> IMR_ADDR_SHIFT) & IMR_REG_MASK);
++ imr_lo_addr = ((imr_lo_addr >> IMR_ADDR_SHIFT) & IMR_REG_MASK);
++
++ switch(id)
++ {
++ /* IMR for boot params */
++ case IMR_RANGE_BOOT:
++ {
++ intel_cln_imr_write(imr_lo_addr, imr_hi_addr, DRAM_IMR1L, DRAM_IMR1H,
++ DRAM_IMR1RM, DRAM_IMR1WM, UNLOCK);
++ break;
++ }
++
++ /* IMR for bzImage */
++ case IMR_RANGE_BZIMAGE:
++ {
++ intel_cln_imr_write(imr_lo_addr, imr_hi_addr, DRAM_IMR7L, DRAM_IMR7H,
++ DRAM_IMR7RM, DRAM_IMR7WM, UNLOCK);
++ break;
++ }
++ default:
++ {
++ grub_printf("%s Invalid input ! \n", __func__);
++ errnum = ERR_BAD_ARGUMENT;
++ break;
++ }
++ }
++
++ return errnum;
++}
++/* EOL */
+diff --git a/efi/clanton/imr.h b/efi/clanton/imr.h
+new file mode 100644
+index 0000000..38391cd
+--- /dev/null
++++ b/efi/clanton/imr.h
+@@ -0,0 +1,38 @@
++/*
++ * Copyright(c) 2013 Intel Corporation. All rights reserved.
++ *
++ * This program is free software; you can redistribute it and/or modify
++ * it under the terms of version 2 of the GNU General Public License as
++ * published by the Free Software Foundation.
++ *
++ * This program is distributed in the hope that it will be useful, but
++ * WITHOUT ANY WARRANTY; without even the implied warranty of
++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
++ * General Public License for more details.
++ *
++ * You should have received a copy of the GNU General Public License
++ * along with this program; if not, write to the Free Software
++ * Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
++ *
++ * Contact Information:
++ * Intel Corporation
++ */
++
++#ifndef __IMR_H__
++#define __IMR_H__
++
++#include <grub/types.h>
++#include <shared.h>
++
++typedef enum imr_range
++{
++ IMR_RANGE_BOOT = 1,
++ IMR_RANGE_KERN_TEXT = 3,
++ IMR_RANGE_BZIMAGE = 7,
++}imr_range;
++
++
++/* setup IMR protection of the specified memory region */
++grub_error_t intel_cln_imr_setup(imr_range id, grub_addr_t addr, grub_size_t size);
++
++#endif /*__IMR_H__*/
+diff --git a/efi/clanton/intel_cln_sb.c b/efi/clanton/intel_cln_sb.c
+new file mode 100644
+index 0000000..3bbecfc
+--- /dev/null
++++ b/efi/clanton/intel_cln_sb.c
+@@ -0,0 +1,210 @@
++/*
++ * Copyright(c) 2013 Intel Corporation. All rights reserved.
++ *
++ * This program is free software; you can redistribute it and/or modify
++ * it under the terms of version 2 of the GNU General Public License as
++ * published by the Free Software Foundation.
++ *
++ * This program is distributed in the hope that it will be useful, but
++ * WITHOUT ANY WARRANTY; without even the implied warranty of
++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
++ * General Public License for more details.
++ *
++ * You should have received a copy of the GNU General Public License
++ * along with this program; if not, write to the Free Software
++ * Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
++ *
++ * Contact Information:
++ * Intel Corporation
++ */
++
++#include <netboot/linux-asm-io.h>
++#include <stage2/shared.h>
++#include "intel_cln_sb.h"
++
++#define INTEL_CLN_SB_CMD_ADDR (0x000000D0)
++#define INTEL_CLN_SB_DATA_ADDR (0x000000D4)
++
++#define INTEL_CLN_SB_MCR_SHIFT (24)
++#define INTEL_CLN_SB_PORT_SHIFT (16)
++#define INTEL_CLN_SB_REG_SHIFT (8)
++#define INTEL_CLN_SB_BYTEEN (0xF0) /* enable all 32 bits */
++
++/* PCI config space reg definitions */
++#define PCI_VENDOR_ID (0x00)
++#define PCI_DEVICE_ID (0x02)
++#define PCI_CLASS_DEVICE (0x0A)
++
++struct sb_pci_dev {
++ unsigned int bus;
++ unsigned int dev_fn;
++};
++
++static struct sb_pci_dev sb_pcidev;
++
++/*
++ * Functions for accessing PCI configuration space with type 1 accesses
++ */
++#define CONFIG_CMD(bus, dev_fn, where) \
++ (0x80000000 | (bus << 16) | (dev_fn << 8) | (where & ~3))
++
++static void
++pci_read_config_byte(struct sb_pci_dev *sb_pcidev,
++ unsigned int where, unsigned char *value)
++{
++ outl(CONFIG_CMD(sb_pcidev->bus,sb_pcidev->dev_fn, where), 0xCF8);
++ *value = inb(0xCFC + (where&3));
++}
++
++static void
++pci_read_config_word (struct sb_pci_dev *sb_pcidev,
++ unsigned int where, unsigned short *value)
++{
++ outl(CONFIG_CMD(sb_pcidev->bus,sb_pcidev->dev_fn,where), 0xCF8);
++ *value = inw(0xCFC + (where&2));
++}
++
++static void
++pci_read_config_dword (struct sb_pci_dev *sb_pcidev,
++ unsigned int where, unsigned int *value)
++{
++ outl(CONFIG_CMD(sb_pcidev->bus,sb_pcidev->dev_fn, where), 0xCF8);
++ *value = inl(0xCFC);
++}
++
++static void
++pci_write_config_byte (struct sb_pci_dev *sb_pcidev,
++ unsigned int where, unsigned char value)
++{
++ outl(CONFIG_CMD(sb_pcidev->bus,sb_pcidev->dev_fn, where), 0xCF8);
++ outb(value, 0xCFC + (where&3));
++}
++
++static void
++pci_write_config_word (struct sb_pci_dev *sb_pcidev,
++ unsigned int where, unsigned short value)
++{
++ outl(CONFIG_CMD(sb_pcidev->bus,sb_pcidev->dev_fn, where), 0xCF8);
++ outw(value, 0xCFC + (where&2));
++}
++
++static void
++pci_write_config_dword (struct sb_pci_dev *sb_pcidev, unsigned int where,
++ unsigned int value)
++{
++ outl(CONFIG_CMD(sb_pcidev->bus,sb_pcidev->dev_fn, where), 0xCF8);
++ outl(value, 0xCFC);
++}
++
++/**
++ * intel_cln_sb_read_reg
++ *
++ * @param cln_sb_id: Sideband identifier
++ * @param command: Command to send to destination identifier
++ * @param reg: Target register w/r to cln_sb_id
++ * @return nothing
++ *
++ * Utility function to allow thread-safe read of side-band
++ * command - can be different read op-code types - which is why we don't
++ * hard-code this value directly into msg
++ */
++void
++intel_cln_sb_read_reg(cln_sb_id id, grub_uint8_t cmd, grub_uint8_t reg,
++ grub_uint32_t *data)
++{
++ grub_uint32_t msg = (cmd << INTEL_CLN_SB_MCR_SHIFT) |
++ ((id << INTEL_CLN_SB_PORT_SHIFT) & 0xFF0000)|
++ ((reg << INTEL_CLN_SB_REG_SHIFT) & 0xFF00)|
++ INTEL_CLN_SB_BYTEEN;
++
++ if(data == NULL)
++ return;
++
++ pci_write_config_dword(&sb_pcidev, INTEL_CLN_SB_CMD_ADDR, msg);
++ pci_read_config_dword(&sb_pcidev, INTEL_CLN_SB_DATA_ADDR, data);
++
++}
++
++/**
++ * intel_cln_sb_write_reg
++ *
++ * @param cln_sb_id: Sideband identifier
++ * @param command: Command to send to destination identifier
++ * @param reg: Target register w/r to cln_sb_id
++ * @return nothing
++ *
++ * Utility function to allow thread-safe write of side-band
++ */
++void
++intel_cln_sb_write_reg(cln_sb_id id, grub_uint8_t cmd, grub_uint8_t reg,
++ grub_uint32_t data)
++{
++ grub_uint32_t msg = (cmd << INTEL_CLN_SB_MCR_SHIFT) |
++ ((id << INTEL_CLN_SB_PORT_SHIFT) & 0xFF0000)|
++ ((reg << INTEL_CLN_SB_REG_SHIFT) & 0xFF00)|
++ INTEL_CLN_SB_BYTEEN;
++
++ pci_write_config_dword(&sb_pcidev, INTEL_CLN_SB_DATA_ADDR, data);
++ pci_write_config_dword(&sb_pcidev, INTEL_CLN_SB_CMD_ADDR, msg);
++}
++
++
++/* Clanton hardware */
++#define PCI_VENDOR_ID_INTEL (0x8086)
++#define PCI_DEVICE_ID_CLANTON_SB (0x0958)
++
++/**
++ * sb_probe
++ *
++ * @param dev: the PCI device matching
++ * @param id: entry in the match table
++ * @return 0
++ *
++ * Callback from PCI layer when dev/vendor ids match.
++ * Sets up necessary resources
++ */
++int
++intel_cln_sb_probe(void)
++{
++ int found = 0;
++ grub_uint16_t class;
++ grub_uint16_t device, vendor;
++ grub_uint8_t type;
++
++ sb_pcidev.bus = 0;
++ for (sb_pcidev.dev_fn = 0; sb_pcidev.dev_fn < 0xFF; sb_pcidev.dev_fn++)
++ {
++ /* Only probe function 0 on single fn devices */
++ pci_read_config_word(&sb_pcidev, PCI_CLASS_DEVICE, &class);
++
++ if (class == 0xffff)
++ continue;
++
++ pci_read_config_word(&sb_pcidev, PCI_VENDOR_ID, &vendor);
++ pci_read_config_word(&sb_pcidev, PCI_DEVICE_ID, &device);
++
++ /* Do early PCI UART init */
++ if(vendor == PCI_VENDOR_ID_INTEL)
++ {
++ if (device == PCI_DEVICE_ID_CLANTON_SB)
++ {
++ /* Found */
++ found = 1;
++ grub_printf("%s b/d/f 0x%04x/0x%04x scan vendor 0x%04x device 0x%04x\n",
++ __func__, sb_pcidev.bus, sb_pcidev.dev_fn, vendor, device);
++ break;
++ }
++ }
++ }
++
++ if(found == 0)
++ {
++ grub_printf("Unable to init side-band!\n");
++ return -1;
++ }
++
++ grub_printf("Intel Clanton side-band driver registered\n");
++
++
++ return 0;
++}
+diff --git a/efi/clanton/intel_cln_sb.h b/efi/clanton/intel_cln_sb.h
+new file mode 100644
+index 0000000..dde6135
+--- /dev/null
++++ b/efi/clanton/intel_cln_sb.h
+@@ -0,0 +1,47 @@
++/*
++ * Copyright(c) 2013 Intel Corporation. All rights reserved.
++ *
++ * This program is free software; you can redistribute it and/or modify
++ * it under the terms of version 2 of the GNU General Public License as
++ * published by the Free Software Foundation.
++ *
++ * This program is distributed in the hope that it will be useful, but
++ * WITHOUT ANY WARRANTY; without even the implied warranty of
++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
++ * General Public License for more details.
++ *
++ * You should have received a copy of the GNU General Public License
++ * along with this program; if not, write to the Free Software
++ * Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
++ *
++ * Contact Information:
++ * Intel Corporation
++ */
++
++#ifndef __INTEL_CLN_SB_HEADER__
++#define __INTEL_CLN_SB_HEADER__
++
++#include <clanton/clanton.h>
++#include <clanton/sbh.h>
++#include <clanton/target.h>
++#include <grub/types.h>
++
++typedef enum {
++ SB_ID_HUNIT = 0x03,
++ SB_ID_PUNIT = 0x04,
++ SB_ID_ESRAM = 0x05,
++ SB_ID_SEC_FUSE = 0x33, /* Fuse banks */
++}cln_sb_id;
++
++/* Sideband MCR opcodes */
++#define CFG_READ_FUSE_OPCODE (0x06) /* Fuse read */
++#define CFG_READ_OPCODE (0x10) /* Register read */
++#define CFG_WRITE_OPCODE (0x11) /* Register write */
++
++int intel_cln_sb_probe (void);
++void intel_cln_sb_read_reg(cln_sb_id id, grub_uint8_t cmd, grub_uint8_t reg,
++ grub_uint32_t *data);
++void intel_cln_sb_write_reg(cln_sb_id id, grub_uint8_t cmd, grub_uint8_t reg,
++ grub_uint32_t data);
++#endif /* __INTEL_CLN_SB_HEADER__ */
++
+diff --git a/efi/clanton/mfh.c b/efi/clanton/mfh.c
+new file mode 100644
+index 0000000..a1c3029
+--- /dev/null
++++ b/efi/clanton/mfh.c
+@@ -0,0 +1,91 @@
++/*
++ * Copyright(c) 2013 Intel Corporation. All rights reserved.
++ *
++ * This program is free software; you can redistribute it and/or modify
++ * it under the terms of version 2 of the GNU General Public License as
++ * published by the Free Software Foundation.
++ *
++ * This program is distributed in the hope that it will be useful, but
++ * WITHOUT ANY WARRANTY; without even the implied warranty of
++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
++ * General Public License for more details.
++ *
++ * You should have received a copy of the GNU General Public License
++ * along with this program; if not, write to the Free Software
++ * Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
++ *
++ * Contact Information:
++ * Intel Corporation
++ */
++
++#include <clanton/clanton.h>
++#include <clanton/flash.h>
++#include <clanton/mfh.h>
++#include <shared.h>
++
++#define offsetof(st, m) \
++ ((unsigned int) ( (char *)&((st *)0)->m - (char *)0 ))
++
++static struct grub_cln_mfh cln_mfh;
++static int cln_mfh_loaded = 0;
++
++void
++grub_cln_mfh_load (const struct grub_cln_mfh *mfh)
++{
++ grub_memcpy (&cln_mfh, (grub_uint8_t *) mfh, sizeof (cln_mfh));
++ cln_mfh_loaded = 1;
++}
++
++grub_error_t
++grub_cln_mfh_entry_lookup (const grub_uint8_t *mfh_addr, unsigned int entry_type,
++ grub_uint8_t **addr, grub_uint32_t *len)
++{
++ unsigned int offset = 0x0;
++ unsigned int i = 0;
++ grub_cln_mfh_item_t item = 0x0;
++
++ if (! mfh_addr || ! addr || ! len)
++ {
++ grub_printf ("%s: NULL pointer\n", __func__);
++ errnum = ERR_BAD_ARGUMENT;
++ return errnum;
++ }
++
++ /* Fetch the MFH if not done yet. */
++ if (! cln_mfh_loaded)
++ grub_cln_mfh_load ((grub_cln_mfh_t) mfh_addr);
++
++ /* Sanity check. */
++ if (GRUB_CLN_MFH_IDENTIFIER != cln_mfh.identifier)
++ {
++ cln_mfh_loaded = 0;
++ grub_printf ("%s: invalid MFH identifier\n", __func__);
++ errnum = ERR_EXEC_FORMAT;
++ return errnum;
++ }
++
++ /* Look up. */
++ offset = offsetof (struct grub_cln_mfh, padding)
++ + sizeof (grub_uint32_t) * cln_mfh.boot_prio_list_count;
++ for (i = 0; i < cln_mfh.flash_item_count; i ++, offset += sizeof (*item))
++ {
++ item = (grub_cln_mfh_item_t) ((grub_uint8_t *) &cln_mfh + offset);
++ if (item->type == entry_type)
++ {
++ *len = item->flash_item_len;
++ *addr = (grub_uint8_t *) item->flash_item_addr;
++ if (grub_cln_debug)
++ grub_printf ("%s: found entry 0x%x @addr=0x%x, len=0x%x\n",
++ __func__, item->type, *addr, *len);
++ return errnum;
++ }
++ }
++
++ /* At this stage, we haven't found the item. */
++ if (grub_cln_debug)
++ {
++ grub_printf ("%s: flash item 0x%x not found\n", __func__, entry_type);
++ }
++ errnum = ERR_FILE_NOT_FOUND;
++ return errnum;
++}
+diff --git a/efi/clanton/mfh.h b/efi/clanton/mfh.h
+new file mode 100644
+index 0000000..c20a7d1
+--- /dev/null
++++ b/efi/clanton/mfh.h
+@@ -0,0 +1,96 @@
++/*
++ * Copyright(c) 2013 Intel Corporation. All rights reserved.
++ *
++ * This program is free software; you can redistribute it and/or modify
++ * it under the terms of version 2 of the GNU General Public License as
++ * published by the Free Software Foundation.
++ *
++ * This program is distributed in the hope that it will be useful, but
++ * WITHOUT ANY WARRANTY; without even the implied warranty of
++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
++ * General Public License for more details.
++ *
++ * You should have received a copy of the GNU General Public License
++ * along with this program; if not, write to the Free Software
++ * Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
++ *
++ * Contact Information:
++ * Intel Corporation
++ */
++
++#ifndef GRUB_CLANTON_MFH_HEADER
++#define GRUB_CLANTON_MFH_HEADER 1
++
++#include <grub/types.h>
++#include <shared.h>
++
++/* Magic number corresponds to "_MFH" in ASCII. */
++#define GRUB_CLN_MFH_IDENTIFIER 0x5F4D4648
++
++/* Clanton Master Flash Header. */
++typedef struct grub_cln_mfh
++{
++ grub_uint32_t identifier; /* 0x000 */
++ grub_uint32_t version; /* 0x004 */
++ grub_uint32_t flags; /* 0x008 */
++ grub_uint32_t next_header_block; /* 0x00C */
++ grub_uint32_t flash_item_count; /* 0x010 */
++ grub_uint32_t boot_prio_list_count; /* 0x014 */
++ /* Pad to 512 bytes. */
++ grub_uint8_t padding[0x1E8]; /* 0x018 */
++}
++*grub_cln_mfh_t;
++
++
++/* Flash item types. */
++#define CLN_MFH_ITEM_TYPE_FW_STAGE1 0x00000000
++#define CLN_MFH_ITEM_TYPE_FW_STAGE1_SIGNED 0x00000001
++/* Reserved. */
++#define CLN_MFH_ITEM_TYPE_FW_STAGE2 0x00000003
++#define CLN_MFH_ITEM_TYPE_FW_STAGE2_SIGNED 0x00000004
++#define CLN_MFH_ITEM_TYPE_FW_STAGE2_CONFIG 0x00000005
++#define CLN_MFH_ITEM_TYPE_FW_STAGE2_CONFIG_SIGNED 0x00000006
++#define CLN_MFH_ITEM_TYPE_FW_PARAMS 0x00000007
++#define CLN_MFH_ITEM_TYPE_FW_RECOVERY 0x00000008
++#define CLN_MFH_ITEM_TYPE_FW_RECOVERY_SIGNED 0x00000009
++/* Reserved. */
++#define CLN_MFH_ITEM_TYPE_BOOTLOADER 0x0000000B
++#define CLN_MFH_ITEM_TYPE_BOOTLOADER_SIGNED 0x0000000C
++#define CLN_MFH_ITEM_TYPE_BOOTLOADER_CONFIG 0x0000000D
++#define CLN_MFH_ITEM_TYPE_BOOTLOADER_CONFIG_SIGNED 0x0000000E
++/* Reserved. */
++#define CLN_MFH_ITEM_TYPE_KERNEL 0x00000010
++#define CLN_MFH_ITEM_TYPE_KERNEL_SIGNED 0x00000011
++#define CLN_MFH_ITEM_TYPE_RAMDISK 0x00000012
++#define CLN_MFH_ITEM_TYPE_RAMDISK_SIGNED 0x00000013
++/* Reserved. */
++#define CLN_MFH_ITEM_TYPE_LOADABLE_PROGRAM 0x00000015
++#define CLN_MFH_ITEM_TYPE_LOADABLE_PROGRAM_SIGNED 0x00000016
++/* Reserved. */
++#define CLN_MFH_ITEM_TYPE_BUILD_INFO 0x00000018
++
++/* Flash item definition. */
++typedef struct grub_cln_mfh_item
++{
++ grub_uint32_t type; /* 0x000 */
++ grub_uint32_t flash_item_addr; /* 0x004 */
++ grub_uint32_t flash_item_len; /* 0x008 */
++ grub_uint32_t reserved; /* 0x00C */
++}
++*grub_cln_mfh_item_t;
++
++/* Load the MFH into memory. */
++void grub_cln_mfh_load (const struct grub_cln_mfh *mfh);
++
++/* Lookup the MFH for a specific entry_type.
++ The MMIO start address of the MFH is passed by *mfh_addr.
++ If the entry is found, store the MMIO address into *addr and the length
++ into *len and return ERR_NONE.
++ Return error code if any error.
++ Note it automatically loads the MFH if not already done so. */
++grub_error_t grub_cln_mfh_entry_lookup (const grub_uint8_t *mfh_addr,
++ unsigned int entry_type,
++ grub_uint8_t **addr,
++ grub_uint32_t *len);
++
++#endif /* ! GRUB_CLANTON_MFH_HEADER */
+diff --git a/efi/clanton/perf_metrics.c b/efi/clanton/perf_metrics.c
+new file mode 100644
+index 0000000..b6fced5
+--- /dev/null
++++ b/efi/clanton/perf_metrics.c
+@@ -0,0 +1,53 @@
++/*
++ * Copyright(c) 2013 Intel Corporation. All rights reserved.
++ *
++ * This program is free software; you can redistribute it and/or modify
++ * it under the terms of version 2 of the GNU General Public License as
++ * published by the Free Software Foundation.
++ *
++ * This program is distributed in the hope that it will be useful, but
++ * WITHOUT ANY WARRANTY; without even the implied warranty of
++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
++ * General Public License for more details.
++ *
++ * You should have received a copy of the GNU General Public License
++ * along with this program; if not, write to the Free Software
++ * Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
++ *
++ * Contact Information:
++ * Intel Corporation
++ */
++
++#include <clanton/perf_metrics.h>
++#include <clanton/target.h>
++#include <shared.h>
++
++/* String to be appended to the Linux command line. */
++static char perf_metric_string[GRUB_CLN_PERF_METRIC_STRING_MAXLEN] = "";
++
++void
++grub_cln_event_reset (void)
++{
++ grub_memset (perf_metric_string, 0x0, GRUB_CLN_PERF_METRIC_STRING_MAXLEN);
++}
++
++void
++grub_cln_event_append (const char *tag)
++{
++ /* Format is (ignore apostrophes): ' tag=0x%016x' plus string terminator,
++ with length of tag string limited to GRUB_CLN_BOOT_EVENT_TAG_MAXLEN. */
++ char buf[21 + GRUB_CLN_BOOT_EVENT_TAG_MAXLEN] = "";
++ char tag_trimmed[GRUB_CLN_BOOT_EVENT_TAG_MAXLEN] = "";
++
++ grub_strncpy (tag_trimmed, tag, GRUB_CLN_BOOT_EVENT_TAG_MAXLEN);
++ grub_sprintf (buf, " %s=0x%016llx", tag_trimmed, grub_rdtsc ());
++
++ /* Append entry to performance metric string. */
++ grub_strncat (perf_metric_string, buf, GRUB_CLN_PERF_METRIC_STRING_MAXLEN);
++}
++
++char *
++grub_cln_event_get_metrics (void)
++{
++ return perf_metric_string;
++}
+diff --git a/efi/clanton/perf_metrics.h b/efi/clanton/perf_metrics.h
+new file mode 100644
+index 0000000..d3837c5
+--- /dev/null
++++ b/efi/clanton/perf_metrics.h
+@@ -0,0 +1,40 @@
++/*
++ * Copyright(c) 2013 Intel Corporation. All rights reserved.
++ *
++ * This program is free software; you can redistribute it and/or modify
++ * it under the terms of version 2 of the GNU General Public License as
++ * published by the Free Software Foundation.
++ *
++ * This program is distributed in the hope that it will be useful, but
++ * WITHOUT ANY WARRANTY; without even the implied warranty of
++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
++ * General Public License for more details.
++ *
++ * You should have received a copy of the GNU General Public License
++ * along with this program; if not, write to the Free Software
++ * Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
++ *
++ * Contact Information:
++ * Intel Corporation
++ */
++
++#ifndef GRUB_CLANTON_TSC_HEADER
++#define GRUB_CLANTON_TSC_HEADER 1
++
++#define GRUB_CLN_PERF_METRIC_STRING_MAXLEN 0x400
++#define GRUB_CLN_BOOT_EVENT_TAG_MAXLEN 0x15
++
++/* Init/Reinit the performance metric string. */
++void grub_cln_event_reset (void);
++
++/* Log an event along with the current timestamp and append it to the
++ performance metric string.
++ Tag is limited to GRUB_CLN_BOOT_EVENT_TAG_MAXLEN.
++ Performance metric string is limited to GRUB_CLN_PERF_METRIC_STRING_MAXLEN.
++ Any string overrun is dropped and no error code/message is thrown. */
++void grub_cln_event_append (const char *tag);
++
++/* Return the performance metric string */
++char *grub_cln_event_get_metrics (void);
++
++#endif /* ! GRUB_CLANTON_TSC_HEADER */
+diff --git a/efi/clanton/recovery.c b/efi/clanton/recovery.c
+new file mode 100644
+index 0000000..97677dd
+--- /dev/null
++++ b/efi/clanton/recovery.c
+@@ -0,0 +1,164 @@
++/*
++ * Copyright(c) 2013 Intel Corporation. All rights reserved.
++ *
++ * This program is free software; you can redistribute it and/or modify
++ * it under the terms of version 2 of the GNU General Public License as
++ * published by the Free Software Foundation.
++ *
++ * This program is distributed in the hope that it will be useful, but
++ * WITHOUT ANY WARRANTY; without even the implied warranty of
++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
++ * General Public License for more details.
++ *
++ * You should have received a copy of the GNU General Public License
++ * along with this program; if not, write to the Free Software
++ * Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
++ *
++ * Contact Information:
++ * Intel Corporation
++ */
++
++#include <clanton/clanton.h>
++#include <shared.h>
++
++/* The table of builtin commands preserved in Clanton Recovery debug mode.
++ Sorted in dictionary order. */
++static char *debug_recovery_cmds[] =
++{
++ "cat",
++ "clear",
++ "displaymem",
++ "find",
++ "geometry",
++ "halt",
++ "help",
++ "read",
++ "reboot",
++ 0
++};
++
++/* The table of builtin commands preserved in Clanton Recovery release mode.
++ Sorted in dictionary order. */
++static char *release_recovery_cmds[] =
++{
++ 0
++};
++
++/* Heap for command line. */
++static char heap[0x80] = "";
++
++/* Perform set intersection between commands in builtin_table[] and cmd_table. */
++static void
++restrict_builtin_commands (char *cmd_table[])
++{
++ struct builtin **builtin = 0;
++ char *recovery_cmd = 0;
++ unsigned short int keep_cmd = 0;
++ unsigned int index = 0;
++
++ for (builtin = builtin_table; *builtin != 0; builtin ++)
++ {
++ keep_cmd = 0;
++ for (index = 0, recovery_cmd = *cmd_table;
++ recovery_cmd != 0;
++ recovery_cmd = *(++index + cmd_table))
++ {
++ if (0 == strcmp (recovery_cmd, (*builtin)->name))
++ {
++ keep_cmd = 1;
++ break;
++ }
++ }
++
++ if (! keep_cmd)
++ {
++ /* Hide out command and drop the pointer to the routine. */
++ (*builtin)->func = NULL;
++ (*builtin)->flags = 0;
++ }
++ }
++}
++
++/* Clanton-specific recovery shell commands definition. */
++
++static struct builtin builtin_cln_sdio_program =
++{
++ .name = "cln_sdio_program",
++ .func = grub_cln_sdio_program,
++ .flags = BUILTIN_CMDLINE | BUILTIN_HELP_LIST,
++ .short_doc = "cln_sdio_program",
++ .long_doc = "Initiate Clanton SDIO image recovery/installation.",
++};
++
++static struct builtin builtin_cln_spi_program =
++{
++ .name = "cln_fw_recovery",
++ .func = grub_cln_spi_program,
++ .flags = BUILTIN_CMDLINE | BUILTIN_HELP_LIST,
++ .short_doc = "cln_fw_recovery",
++ .long_doc = "Perform Firmware-based Clanton system recovery.",
++};
++
++static int
++add_cln_recovery_command (unsigned short int is_spi_asset)
++{
++ struct builtin **builtin = 0;
++ unsigned short int success = 0;
++
++ /* Make sure that function name and flags are never overwritten. */
++ builtin_cln_sdio_program.func = &grub_cln_sdio_program;
++ builtin_cln_sdio_program.flags = BUILTIN_CMDLINE | BUILTIN_HELP_LIST;
++ builtin_cln_spi_program.func = &grub_cln_spi_program;
++ builtin_cln_spi_program.flags = BUILTIN_CMDLINE | BUILTIN_HELP_LIST;
++
++ /* Place recovery commands into free builtin_table[] entries.
++ This should never fail, provided that the original list of built-in
++ commands has been already skimmed (e.g. via restrict_builtin_commands). */
++ for (builtin = builtin_table; *builtin != 0; builtin ++)
++ {
++ if (NULL == (*builtin)->func)
++ {
++ /* Clanton-specific commands are mutually exclusive. */
++ if (is_spi_asset)
++ (*builtin) = &builtin_cln_spi_program;
++ else
++ (*builtin) = &builtin_cln_sdio_program;
++
++ success = 1;
++ break;
++ }
++ }
++
++ return success;
++}
++
++/* Enter a Clanton recovery shell for error handling.
++ The shell provides a set of restricted debug commands and Clanton-specific
++ commands for Grub-provided SDIO recovery and Firmware-provided SPI recovery.
++ The Firmware-provided recovery mechanism is exposed when the failing asset
++ resides in SPI/flash. Alternatively the SDIO program utility is made
++ available. */
++void
++grub_cln_recovery_shell (unsigned short int is_spi_asset)
++{
++ grub_error_t original_errnum = errnum;
++
++ if (grub_cln_secure)
++ {
++ /* Restrict available commands. */
++ if (grub_cln_debug)
++ restrict_builtin_commands (debug_recovery_cmds); //XXX secure-debug recovery commands..
++ else
++ restrict_builtin_commands (release_recovery_cmds); //XXX ditto
++ }
++
++ /* Add Clanton-specific recovery commands. */
++ if (! add_cln_recovery_command (is_spi_asset))
++ grub_printf ("%s() - failed adding Clanton-specific command\n", __func__);
++
++ errnum = original_errnum;
++
++ /* Recovery shell never returns. But error out noisily if it does. */
++ enter_cmdline (heap, 1, 1);
++ grub_printf ("BUG: %s() returning\n", __func__);
++}
+diff --git a/efi/clanton/sbh.h b/efi/clanton/sbh.h
+new file mode 100644
+index 0000000..ad25c5b
+--- /dev/null
++++ b/efi/clanton/sbh.h
+@@ -0,0 +1,77 @@
++/*
++ * Copyright(c) 2013 Intel Corporation. All rights reserved.
++ *
++ * This program is free software; you can redistribute it and/or modify
++ * it under the terms of version 2 of the GNU General Public License as
++ * published by the Free Software Foundation.
++ *
++ * This program is distributed in the hope that it will be useful, but
++ * WITHOUT ANY WARRANTY; without even the implied warranty of
++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
++ * General Public License for more details.
++ *
++ * You should have received a copy of the GNU General Public License
++ * along with this program; if not, write to the Free Software
++ * Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
++ *
++ * Contact Information:
++ * Intel Corporation
++ */
++
++#ifndef GRUB_CLANTON_SBH_HEADER
++#define GRUB_CLANTON_SBH_HEADER 1
++
++#include <grub/types.h>
++
++/* Clanton Secure Boot Header. */
++
++/* Magic number corresponds to "_CSH" in ASCII. */
++#define GRUB_CLN_SBH_MAGIC_NUMBER 0x5F435348
++
++/* Padding for Clanton Secure Boot Header to match 1kB size. */
++#define GRUB_CLN_SBH_PADDING 0x1B4
++
++typedef struct grub_cln_sbh
++{
++ struct grub_cln_sbh_security_hdr
++ {
++ grub_uint32_t magic_number; /* 0x000 */
++ grub_uint32_t version; /* 0x004 */
++ grub_uint32_t module_size; /* 0x008 */
++ grub_uint32_t svn_index; /* 0x00C */
++ grub_uint32_t svn; /* 0x010 */
++ grub_uint32_t module_id; /* 0x014 */
++ grub_uint32_t module_vendor; /* 0x018 */
++ grub_uint32_t date; /* 0x01C */
++ grub_uint32_t header_len; /* 0x020 */
++ grub_uint32_t hashing_algorithm; /* 0x024 */
++ grub_uint32_t crypto_algorithm; /* 0x028 */
++ grub_uint32_t key_size; /* 0x02C */
++ grub_uint32_t signature_size; /* 0x030 */
++ grub_uint32_t next_header_ptr; /* 0x034 */
++ grub_uint8_t reserved[0x8]; /* 0x038 */
++ } security_header;
++ struct grub_cln_csh_key_hdr
++ {
++ grub_uint32_t key_modulus_size; /* 0x040 */
++ grub_uint32_t key_exponent_size; /* 0x044 */
++ /* Currently we only support RSA. Hence size is hardcoded. */
++ grub_uint32_t key_modulus[256 / sizeof (grub_uint32_t)]; /* 0x048 */
++ grub_uint32_t key_exponent[4 / sizeof (grub_uint32_t)]; /* 0x148 */
++ } key_structure;
++ /* Currently we only support RSA. Hence size is hardcoded. */
++ grub_uint8_t signature[0x100]; /* 0x14C */
++ grub_uint8_t padding[GRUB_CLN_SBH_PADDING]; /* 0x24C */
++}
++*grub_cln_csh_t;
++
++
++/* Settings for Clanton SBH on filesystem. */
++
++#define GRUB_CLN_SBH_FILE_EXT ".csbh"
++/* Be as conservative as possible about the max path length. Use the minimum
++ value allowed by the file systems supported by GRUB. */
++#define GRUB_CLN_SBH_FILE_PATHMAX 1024 /* FIXME */
++
++
++#endif /* ! GRUB_CLANTON_SBH_HEADER */
+diff --git a/efi/clanton/sdio_program.c b/efi/clanton/sdio_program.c
+new file mode 100644
+index 0000000..762386b
+--- /dev/null
++++ b/efi/clanton/sdio_program.c
+@@ -0,0 +1,35 @@
++/*
++ * Copyright(c) 2013 Intel Corporation. All rights reserved.
++ *
++ * This program is free software; you can redistribute it and/or modify
++ * it under the terms of version 2 of the GNU General Public License as
++ * published by the Free Software Foundation.
++ *
++ * This program is distributed in the hope that it will be useful, but
++ * WITHOUT ANY WARRANTY; without even the implied warranty of
++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
++ * General Public License for more details.
++ *
++ * You should have received a copy of the GNU General Public License
++ * along with this program; if not, write to the Free Software
++ * Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
++ *
++ * Contact Information:
++ * Intel Corporation
++ */
++
++#include <shared.h>
++
++/* SDIO filesystem installation/recovery utility.
++ Perform eMMC programming. */
++int
++grub_cln_sdio_program (char *s, int i)
++{
++ grub_printf ("Clanton SDIO program utility\n");
++
++ /* Not implemented yet. */
++
++ while (1);
++
++ return 0;
++}
+diff --git a/efi/clanton/spi_program.c b/efi/clanton/spi_program.c
+new file mode 100644
+index 0000000..bf2d6dd
+--- /dev/null
++++ b/efi/clanton/spi_program.c
+@@ -0,0 +1,33 @@
++/*
++ * Copyright(c) 2013 Intel Corporation. All rights reserved.
++ *
++ * This program is free software; you can redistribute it and/or modify
++ * it under the terms of version 2 of the GNU General Public License as
++ * published by the Free Software Foundation.
++ *
++ * This program is distributed in the hope that it will be useful, but
++ * WITHOUT ANY WARRANTY; without even the implied warranty of
++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
++ * General Public License for more details.
++ *
++ * You should have received a copy of the GNU General Public License
++ * along with this program; if not, write to the Free Software
++ * Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
++ *
++ * Contact Information:
++ * Intel Corporation
++ */
++
++#include <shared.h>
++
++/* Trigger a FW-initiated recovery session. */
++int
++grub_cln_spi_program (char *s, int i)
++{
++ grub_printf ("%s()\n", __func__);
++
++ /* Not implemented yet. */
++ while (1);
++
++ return 0;
++}
+diff --git a/efi/clanton/target.h b/efi/clanton/target.h
+new file mode 100644
+index 0000000..6610473
+--- /dev/null
++++ b/efi/clanton/target.h
+@@ -0,0 +1,37 @@
++/*
++ * Copyright(c) 2013 Intel Corporation. All rights reserved.
++ *
++ * This program is free software; you can redistribute it and/or modify
++ * it under the terms of version 2 of the GNU General Public License as
++ * published by the Free Software Foundation.
++ *
++ * This program is distributed in the hope that it will be useful, but
++ * WITHOUT ANY WARRANTY; without even the implied warranty of
++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
++ * General Public License for more details.
++ *
++ * You should have received a copy of the GNU General Public License
++ * along with this program; if not, write to the Free Software
++ * Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
++ *
++ * Contact Information:
++ * Intel Corporation
++ */
++
++#ifndef CLANTON_TARGET_HEADER
++#define CLANTON_TARGET_HEADER
++
++/* Pointer to IAROM callback address for signature verification. */
++#define GRUB_CLN_IAROM_CALLBACK_PTR 0xFFFFFFE0
++
++/* Read the time-stamp counter. */
++static inline unsigned long long int
++grub_rdtsc (void)
++{
++ unsigned int lo, hi;
++
++ __asm__ __volatile__ ("rdtsc" : "=a" (lo), "=d" (hi));
++ return (unsigned long long) hi << 32 | lo;
++}
++
++#endif /* CLANTON_TARGET_HEADER */
+diff --git a/efi/clanton/test_module.c b/efi/clanton/test_module.c
+new file mode 100644
+index 0000000..cebc115
+--- /dev/null
++++ b/efi/clanton/test_module.c
+@@ -0,0 +1,156 @@
++/*
++ * Copyright(c) 2013 Intel Corporation. All rights reserved.
++ *
++ * This program is free software; you can redistribute it and/or modify
++ * it under the terms of version 2 of the GNU General Public License as
++ * published by the Free Software Foundation.
++ *
++ * This program is distributed in the hope that it will be useful, but
++ * WITHOUT ANY WARRANTY; without even the implied warranty of
++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
++ * General Public License for more details.
++ *
++ * You should have received a copy of the GNU General Public License
++ * along with this program; if not, write to the Free Software
++ * Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
++ *
++ * Contact Information:
++ * Intel Corporation
++ */
++
++#include <clanton/flash.h>
++#include <clanton/intel_cln_sb.h>
++#include <clanton/test_module.h>
++#include <grub/cpu/linux.h>
++#include <shared.h>
++
++/* Test-specific parameters from kernel command line */
++#define TEST_PARAM_ID "__cln_drive_failure="
++#define TEST_PARAM_NO_KERNEL "no-kernel"
++#define TEST_PARAM_NO_RAMDISK "no-ramdisk"
++#define TEST_PARAM_NO_KERNEL_SIG "no-kernel-signature"
++#define TEST_PARAM_NO_RAMDISK_SIG "no-ramdisk-signature"
++#define TEST_PARAM_BAD_KERNEL_SIG "kernel-sig-verification"
++#define TEST_PARAM_BAD_RAMDISK_SIG "ramdisk-sig-verification"
++#define TEST_PARAM_BAD_IMR "bad-imr"
++
++/* Test setup and state */
++struct __cln_error_trigger_struct __cln_err = {
++ .no_kernel = 0,
++ .no_ramdisk = 0,
++ .no_kernel_sig = 0,
++ .no_ramdisk_sig = 0,
++ .kernel_sig_fail = 0,
++ .ramdisk_sig_fail = 0,
++ .bad_imr = 0,
++ .state_sign_verify = 0,
++};
++
++/* PUnit DMA registers over side-band. */
++#define PUNIT_SPI_DMA_COUNT_REG (0x60)
++#define PUNIT_SPI_DMA_DEST_REG (0x61)
++#define PUNIT_SPI_DMA_SRC_REG (0x62)
++
++/* PUnit DMA block transfer size, in bytes. */
++#define SPI_DMA_BLOCK_SIZE 512
++
++/* Buffer to DMA 1 block from SPI */
++static grub_uint32_t spi_buffer[SPI_DMA_BLOCK_SIZE / sizeof (grub_uint32_t)];
++
++/* Read from SPI via PUnit DMA engine. */
++static void
++spi_dma_read (grub_uint32_t *src, grub_uint32_t *dst,
++ grub_uint32_t dma_block_count)
++{
++ if (grub_cln_debug)
++ {
++ grub_printf ("%s: src=%p, dst=%p, count=%u\n", __func__, src, dst,
++ dma_block_count);
++ }
++
++ /* Setup source and destination addresses. */
++ intel_cln_sb_write_reg (SB_ID_PUNIT, CFG_WRITE_OPCODE, PUNIT_SPI_DMA_SRC_REG,
++ (grub_uint32_t) src);
++ intel_cln_sb_write_reg (SB_ID_PUNIT, CFG_WRITE_OPCODE, PUNIT_SPI_DMA_DEST_REG,
++ (grub_uint32_t) dst);
++
++ if (grub_cln_debug)
++ {
++ grub_printf ("%s: starting transaction\n", __func__);
++ }
++
++ /*
++ Setup the number of block to be copied over. Transaction will start as
++ soon as the register is filled with value.
++ */
++ intel_cln_sb_write_reg (SB_ID_PUNIT, CFG_WRITE_OPCODE, PUNIT_SPI_DMA_COUNT_REG,
++ dma_block_count);
++
++ /* Poll for completion. */
++ while (dma_block_count > 0)
++ {
++ intel_cln_sb_read_reg (SB_ID_PUNIT, CFG_READ_OPCODE, PUNIT_SPI_DMA_COUNT_REG,
++ &dma_block_count);
++ }
++
++ if (grub_cln_debug)
++ {
++ grub_printf ("%s: transaction completed\n", __func__);
++ }
++}
++
++/*
++ Parse kernel command line for test-specific directives and set up test state
++ variable accordingly.
++ */
++void
++__cln_test_setup (char *arg)
++{
++ char *test_param = grub_strstr (arg, TEST_PARAM_ID);
++ if (test_param)
++ {
++ test_param += grub_strlen(TEST_PARAM_ID);
++
++ if (grub_strstr(test_param, TEST_PARAM_NO_KERNEL))
++ __cln_err.no_kernel = 1;
++ if (grub_strstr(test_param, TEST_PARAM_NO_RAMDISK))
++ __cln_err.no_ramdisk = 1;
++ if (grub_strstr(test_param, TEST_PARAM_NO_KERNEL_SIG))
++ __cln_err.no_kernel_sig = 1;
++ if (grub_strstr(test_param, TEST_PARAM_NO_RAMDISK_SIG))
++ __cln_err.no_ramdisk_sig = 1;
++ if (grub_strstr(test_param, TEST_PARAM_BAD_KERNEL_SIG))
++ __cln_err.kernel_sig_fail = 1;
++ if (grub_strstr(test_param, TEST_PARAM_BAD_RAMDISK_SIG))
++ __cln_err.ramdisk_sig_fail = 1;
++ if (grub_strstr(test_param, TEST_PARAM_BAD_IMR))
++ __cln_err.bad_imr = 1;
++ }
++}
++
++/*
++ Force an IMR failure.
++ This is achieved by DMAing a block of 512 bytes into an IMR where PUnit
++ agent is prevented from accessing.
++ First, sanity check that PUnit can DMA 512 bytes into a temporary buffer.
++ Then, trigger an IMR violation by copying the same portion into bzImage
++ IMR.
++ */
++void
++__cln_test_imr (void)
++{
++ grub_uint32_t *p = (grub_uint32_t *) GRUB_LINUX_BZIMAGE_ADDR;
++
++ if (! __cln_err.bad_imr)
++ return;
++
++ spi_dma_read ((grub_uint32_t *) GRUB_CLN_MFH_ADDR, spi_buffer, 1);
++ grub_printf ("%s: PUnit DMAing %uB into temp buffer passed\n", __func__,
++ SPI_DMA_BLOCK_SIZE);
++
++ grub_printf ("%s: PUnit DMAing %uB into non-PUnit IMR @%p\n", __func__,
++ SPI_DMA_BLOCK_SIZE, p);
++ spi_dma_read ((grub_uint32_t *) GRUB_CLN_MFH_ADDR, p, 1);
++ grub_printf ("%s: BUG: PUnit DMA to non-PUnit IMR didn't fail!\n", __func__);
++}
++
+diff --git a/efi/clanton/test_module.h b/efi/clanton/test_module.h
+new file mode 100644
+index 0000000..4c0fa28
+--- /dev/null
++++ b/efi/clanton/test_module.h
+@@ -0,0 +1,92 @@
++/*
++ * Copyright(c) 2013 Intel Corporation. All rights reserved.
++ *
++ * This program is free software; you can redistribute it and/or modify
++ * it under the terms of version 2 of the GNU General Public License as
++ * published by the Free Software Foundation.
++ *
++ * This program is distributed in the hope that it will be useful, but
++ * WITHOUT ANY WARRANTY; without even the implied warranty of
++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
++ * General Public License for more details.
++ *
++ * You should have received a copy of the GNU General Public License
++ * along with this program; if not, write to the Free Software
++ * Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
++ *
++ * Contact Information:
++ * Intel Corporation
++ */
++
++#include <clanton/asset.h>
++#include <grub/types.h>
++
++/* Keep track of error triggering condition. */
++struct __cln_error_trigger_struct {
++ int no_kernel;
++ int no_ramdisk;
++ int no_kernel_sig;
++ int no_ramdisk_sig;
++ int kernel_sig_fail;
++ int ramdisk_sig_fail;
++ int bad_imr;
++ /* How many signatures have been verified so far. */
++ int state_sign_verify;
++};
++
++extern struct __cln_error_trigger_struct __cln_err;
++
++void __cln_test_setup (char *);
++void __cln_test_imr (void);
++
++#ifdef INTEL_CLN_TEST
++
++/*
++ Failure in fetching an asset results in function returning 0 and errnum
++ being set.
++ */
++#define INTEL_CLN_ERR_NO_ASSET \
++ (! (errnum = ERR_FILE_NOT_FOUND))
++
++#define __cln_test_asset(x) \
++ if (GRUB_CLN_ASSET_KERNEL == x && __cln_err.no_kernel) \
++ return INTEL_CLN_ERR_NO_ASSET; \
++ if (GRUB_CLN_ASSET_INITRD == x && __cln_err.no_ramdisk) \
++ return INTEL_CLN_ERR_NO_ASSET; \
++ if (GRUB_CLN_ASSET_KERNEL_CSBH == x && __cln_err.no_kernel_sig) \
++ return INTEL_CLN_ERR_NO_ASSET; \
++ if (GRUB_CLN_ASSET_INITRD_CSBH == x && __cln_err.no_ramdisk_sig) \
++ return INTEL_CLN_ERR_NO_ASSET;
++
++/*
++ Upon failure in verifying signature, IAROM callback only returns 0.
++ Possible values for __cln_err.state_sign_verify:
++ - 0: we are currently verifying grub.conf
++ - 1: we are currently verifying kernel
++ - 2: we are currently verifying ramdisk
++ */
++#define __cln_test_signature(x) \
++ switch (__cln_err.state_sign_verify ++) { \
++ case 0: /* grub.conf - this is out of scope */ \
++ break; \
++ case 1: /* Kernel */ \
++ if (__cln_err.kernel_sig_fail) \
++ return 0; \
++ break; \
++ case 2: /* Ramdisk */ \
++ if (__cln_err.ramdisk_sig_fail) \
++ return 0; \
++ break; \
++ default: \
++ break; \
++ }
++
++#else /* !INTEL_CLN_TEST */
++
++#define __cln_test_asset(x) \
++ do {} while(0);
++#define __cln_test_signature(x) \
++ do {} while(0);
++
++#endif /* INTEL_CLN_TEST */
++
+diff --git a/efi/efidisk.c b/efi/efidisk.c
+index 2192021..015c57a 100644
+--- a/efi/efidisk.c
++++ b/efi/efidisk.c
+@@ -192,6 +192,10 @@ name_devices (struct grub_efidisk_data *devices)
+ continue;
+
+ m = d->block_io->media;
++ if (GRUB_EFI_DEVICE_PATH_TYPE(dp) == GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE)
++ {
++ add_device (&hd_devices, d);
++ }
+ if (GRUB_EFI_DEVICE_PATH_TYPE(dp) == GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE)
+ {
+ /* XXX FIXME this won't work if we see write-protected disks with
+diff --git a/efi/efidp.c b/efi/efidp.c
+index d8ca03d..f4ca452 100644
+--- a/efi/efidp.c
++++ b/efi/efidp.c
+@@ -578,7 +578,10 @@ dpname_matches(char *str, char *candidate)
+ return rc;
+ }
+
+-static void
++extern void
++finish_param_parse(char *pos, char **end, char *tmp);
++
++void
+ finish_param_parse(char *pos, char **end, char *tmp)
+ {
+ if (!pos || !end || !tmp)
+diff --git a/efi/efimain.c b/efi/efimain.c
+index e1a1e66..ace710c 100644
+--- a/efi/efimain.c
++++ b/efi/efimain.c
+@@ -26,6 +26,8 @@
+ #include <shared.h>
+ #include <efistubs.h>
+
++#include <clanton/perf_metrics.h>
++
+ #include "pxe.h"
+
+ #define GRUB_SCRATCH_MEM_PAGES (GRUB_SCRATCH_MEM_SIZE >> 12)
+@@ -77,8 +79,15 @@ real_main (void)
+ grub_efi_status_t
+ efi_main (grub_efi_handle_t image_handle, grub_efi_system_table_t *sys_tab)
+ {
++ grub_efi_boot_services_t *b;
++ grub_efi_status_t status;
++
+ grub_efi_image_handle = image_handle;
+ grub_efi_system_table = sys_tab;
++
++ /* Timestamp entry point. */
++ grub_cln_event_append (__func__);
++
+ grub_efi_init ();
+
+ grub_scratch_mem = grub_efi_allocate_pages (0, GRUB_SCRATCH_MEM_PAGES);
+@@ -108,6 +117,13 @@ efi_main (grub_efi_handle_t image_handle, grub_efi_system_table_t *sys_tab)
+ #endif
+ }
+
++ /* Disable watchdog before prompting for any user input. */
++ b = grub_efi_system_table->boot_services;
++ status = Call_Service_4 (b->set_watchdog_timer,
++ 0, 0xFFFF + 1, 0, NULL);
++ if (GRUB_EFI_SUCCESS != status)
++ grub_printf ("%s: set_watchdog_timer() returned 0x%08x\n", __func__, status);
++
+ real_main ();
+
+ if (real_stack) {
+diff --git a/efi/ia32/loader/linux.c b/efi/ia32/loader/linux.c
+index d795d28..280fe81 100644
+--- a/efi/ia32/loader/linux.c
++++ b/efi/ia32/loader/linux.c
+@@ -23,15 +23,22 @@
+ #include <grub/efi/api.h>
+ #include <grub/efi/efi.h>
+ #include <grub/efi/misc.h>
++#include <clanton/asset.h>
++#include <clanton/clanton.h>
++#include <clanton/early_uart.h>
++#include <clanton/flash.h>
++#include <clanton/iarom.h>
++#include <clanton/imr.h>
++#include <clanton/mfh.h>
++#include <clanton/perf_metrics.h>
++#include <clanton/sbh.h>
++#include <clanton/test_module.h>
+
+ #include "switch.h"
+-
+ #include <shared.h>
+
+ #include "graphics.h"
+
+-#define grub_file_size() filemax
+-
+ #define NEXT_MEMORY_DESCRIPTOR(desc, size) \
+ ((grub_efi_memory_descriptor_t *) ((char *) (desc) + (size)))
+
+@@ -54,6 +61,14 @@ static grub_efi_uintn_t prot_mode_pages;
+ static grub_efi_uintn_t initrd_pages;
+ static grub_efi_guid_t graphics_output_guid = GRUB_EFI_GRAPHICS_OUTPUT_GUID;
+
++/* If modules are in SPI/Flash, follow MFH path.
++ Else follow file system path. */
++unsigned short int grub_cln_linux_spi = 0;
++unsigned short int grub_cln_initrd_spi = 0;
++
++/* The Clanton Secure Boot Header. */
++static struct grub_cln_sbh cln_sbh;
++
+ static inline grub_size_t
+ page_align (grub_size_t size)
+ {
+@@ -114,9 +129,14 @@ allocate_pages (grub_size_t real_size, grub_size_t prot_size)
+ /* Initialize the memory pointers with NULL for convenience. */
+ real_mode_mem = 0;
+ prot_mode_mem = 0;
++ initrd_mem = 0;
+
+ if (grub_efi_get_memory_map (0, &desc_size, 0) <= 0)
+- grub_fatal ("cannot get memory map");
++ {
++ grub_printf ("cannot get memory map");
++ errnum = ERR_BOOT_FAILURE;
++ return 0;
++ }
+
+ addr = 0;
+ mmap_end = NEXT_MEMORY_DESCRIPTOR (mmap_buf, mmap_size);
+@@ -144,7 +164,11 @@ allocate_pages (grub_size_t real_size, grub_size_t prot_size)
+ (unsigned) real_mode_pages, (unsigned) addr);
+ real_mode_mem = grub_efi_allocate_pages (addr, real_mode_pages);
+ if (! real_mode_mem)
+- grub_fatal ("cannot allocate pages");
++ {
++ grub_printf ("cannot allocate pages");
++ errnum = ERR_WONT_FIT;
++ goto fail;
++ }
+
+ desc->num_pages -= real_mode_pages;
+ break;
+@@ -160,9 +184,14 @@ allocate_pages (grub_size_t real_size, grub_size_t prot_size)
+
+ /* Next, find free pages for the protected mode code. */
+ /* XXX what happens if anything is using this address? */
+- prot_mode_mem = grub_efi_allocate_pages (0x100000, prot_mode_pages);
++ prot_mode_mem = grub_efi_allocate_pages
++ (GRUB_LINUX_BZIMAGE_ADDR, prot_mode_pages);
+ if (! prot_mode_mem)
+- grub_fatal("Cannot allocate pages for VMLINUZ");
++ {
++ grub_printf ("Cannot allocate pages for VMLINUZ");
++ errnum = ERR_WONT_FIT;
++ goto fail;
++ }
+
+ return 1;
+
+@@ -224,7 +253,11 @@ big_linux_boot (void)
+ graphics_set_kernel_params (params);
+
+ if (grub_efi_get_memory_map (&map_key, &desc_size, &desc_version) <= 0)
+- grub_fatal ("cannot get memory map");
++ {
++ grub_printf ("cannot get memory map");
++ errnum = ERR_BOOT_FAILURE;
++ return;
++ }
+
+ /* Pass e820 memmap. */
+ e820_map_from_efi_map ((struct e820_entry *) params->e820_map, &e820_nr_map,
+@@ -232,8 +265,14 @@ big_linux_boot (void)
+ params->e820_nr_map = e820_nr_map;
+
+ grub_dprintf(__func__,"got to ExitBootServices...\n");
++
+ if (! grub_efi_exit_boot_services (map_key))
+- grub_fatal ("cannot exit boot services");
++ {
++ grub_printf ("cannot exit boot services");
++ errnum = ERR_BOOT_FAILURE;
++ return;
++ }
++
+ /* Note that no boot services are available from here. */
+
+ lh = &params->hdr;
+@@ -278,6 +317,13 @@ big_linux_boot (void)
+ grub_memset((void *)gdt_addr.base, gdt_addr.limit, 0);
+ grub_memcpy((void *)gdt_addr.base, init_gdt, sizeof (init_gdt));
+
++ /* This is the very last stage we can timestamp.
++ Do it and append performance metrics to the linux command line. */
++ grub_cln_event_append ("jmp_code32");
++ grub_strncat ((char *) real_mode_mem + 0x1000,
++ grub_cln_event_get_metrics (),
++ GRUB_LINUX_CL_END_OFFSET - GRUB_LINUX_CL_OFFSET + 1);
++
+ if (0) {
+ /* copy our real mode transition code to 0x7C00 */
+ memcpy ((void *) 0x7C00, switch_image, switch_size);
+@@ -311,28 +357,75 @@ big_linux_boot (void)
+ for (;;);
+ }
+
++/*
++ Lexer to detect early Quark's UART MMIO token.
++ If token is found, expand it with the actual MMIO address.
++ */
++static void
++cln_detect_early_uart (char **cmdline)
++{
++ char *p = NULL;
++ char *start = *cmdline;
++ grub_uint32_t mmio;
++ grub_uint32_t offs = 0;
++
++ p = strstr(*cmdline, QUARK_UART_MMIO_TOKEN);
++ *cmdline = start;
++
++ if (NULL == p)
++ {
++ /* Nothing to do. */
++ return;
++ }
++
++ mmio = (grub_uint32_t)cln_early_uart_init();
++ if (!mmio)
++ {
++ grub_printf("%s: couldn't find device. Skipping..\n", __func__);
++ return;
++ }
++
++ if (grub_cln_debug)
++ grub_printf("%s: MMIO addr @ 0x%x\n", __func__, mmio);
++
++ offs = grub_sprintf(p, "0x%x", mmio);
++ grub_sprintf(p + offs, "%s", p + sizeof(QUARK_UART_MMIO_TOKEN) - 1);
++}
++
+ int
+ grub_load_linux (char *kernel, char *arg)
+ {
+ struct grub_linux_kernel_header *lh;
+ struct linux_kernel_params *params;
+ static struct linux_kernel_params params_buf;
+- grub_uint8_t setup_sects;
+- grub_size_t real_size, prot_size;
+- grub_ssize_t len;
+- char *dest;
++ grub_uint8_t setup_sects = 0;
++ grub_size_t real_size = 0, prot_size = 0, img_size = 0;
++ grub_uint32_t code32_start_offs = 0x0, prot_mode_offs = 0x0;;
++ grub_ssize_t len = 0;
+
+- if (kernel == NULL)
++ __cln_test_setup(arg);
++
++ /* In SPI/Flash mode, file system path to kernel is not required. */
++ if (! grub_cln_linux_spi && kernel == NULL)
+ {
+ errnum = ERR_BAD_FILENAME;
+ grub_printf ("no kernel specified");
+ goto fail1;
+ }
+
+- if (! grub_open (kernel))
++ if (grub_cln_secure
++ && ! grub_cln_fetch_sbh (GRUB_CLN_ASSET_KERNEL_CSBH, kernel, &cln_sbh))
++ {
++ if(ERR_FILE_NOT_FOUND == errnum
++ && ! grub_cln_linux_spi)
++ errnum = ERR_SGN_FILE_NOT_FOUND;
++ goto fail1;
++ }
++
++ if (! grub_cln_asset_open (GRUB_CLN_ASSET_KERNEL, kernel))
+ goto fail1;
+
+- if (grub_read ((char *) &params_buf, sizeof (params_buf))
++ if (grub_cln_asset_read (GRUB_CLN_ASSET_KERNEL, (grub_uint8_t *) &params_buf, sizeof (params_buf))
+ != sizeof (params_buf))
+ {
+ errnum = ERR_EXEC_FORMAT;
+@@ -371,13 +464,48 @@ grub_load_linux (char *kernel, char *arg)
+
+ setup_sects = lh->setup_sects;
+
++ img_size = grub_cln_asset_size (GRUB_CLN_ASSET_KERNEL);
+ real_size = 0x1000 + grub_strlen(arg);
+- prot_size = grub_file_size () - (setup_sects << SECTOR_BITS) - SECTOR_SIZE;
++
++ /* Grub allocates distinct memory regions for the so-called "real mode" and
++ "protected mode" portions of bzImage. The linux entry point is located
++ at the base address of the protected mode section
++ (GRUB_LINUX_BZIMAGE_ADDR).
++ In order to perform signature verification, Clanton secure boot requires
++ the whole bzImage to be allocated contiguously, with its CSBH prepended.
++ Consequently, the signed image is placed in a contiguous region starting
++ from GRUB_LINUX_BZIMAGE_ADDR, and the entry point offset is updated
++ accordingly. */
++ if (grub_cln_secure)
++ {
++ prot_size = img_size + sizeof (cln_sbh);
++ code32_start_offs += (setup_sects << SECTOR_BITS) + SECTOR_SIZE
++ + sizeof (cln_sbh);
++ }
++
++ else
++ prot_size = img_size - (setup_sects << SECTOR_BITS) - SECTOR_SIZE;
+
+ if (! allocate_pages (real_size, prot_size))
+ goto fail;
+
+- /* XXX Linux assumes that only elilo can boot Linux on EFI!!! */
++ errnum = intel_cln_imr_setup(IMR_RANGE_BOOT, (grub_addr_t)real_mode_mem, real_size);
++ if(errnum != ERR_NONE)
++ {
++ grub_printf("IMR boot params setup failed !\n");
++ goto fail;
++ }
++
++ errnum = intel_cln_imr_setup(IMR_RANGE_BZIMAGE, GRUB_LINUX_BZIMAGE_ADDR, prot_size);
++ if(errnum != ERR_NONE)
++ {
++ grub_printf("IMR bzimage setup failed !\n");
++ goto fail;
++ }
++
++ __cln_test_imr();
++
++ /* XXX Linux assumes that only elilo can boot Linux on EFI!!! */
+ lh->type_of_loader = 0x50;
+
+ lh->cmd_line_ptr = (grub_uint32_t) (unsigned long) real_mode_mem + 0x1000;
+@@ -394,6 +522,11 @@ grub_load_linux (char *kernel, char *arg)
+
+ grub_memmove(&params->hdr, lh, 0x202 + lh->jump_off - 0x1f1);
+
++ /* Update offset for protected mode code entry point. Clanton secure boot
++ requires real mode code to be allocated contiguously to protected mode
++ section. Hence the kernel entry point must be shifted accordingly. */
++ params->hdr.code32_start += code32_start_offs;
++
+ params->cl_magic = GRUB_LINUX_CL_MAGIC;
+ params->cl_offset = 0x1000;
+
+@@ -446,9 +579,13 @@ grub_load_linux (char *kernel, char *arg)
+ params->eddbuf_entries = 0;
+ params->edd_mbr_sig_buf_entries = 0;
+
++ /* Dump MFH layout.conf contents */
++ grub_cln_dump_layout ();
++
+ /* XXX there is no way to know if the kernel really supports EFI. */
+- grub_printf ("[Linux-EFI, setup=0x%x, size=0x%x]\n", (unsigned int)real_size,
+- (unsigned int)prot_size);
++ grub_printf ("[Linux-EFI%s, setup=0x%x, size=0x%x]\n",
++ grub_cln_linux_spi ? " SPI" : "",
++ (unsigned int) real_size, (unsigned int) prot_size);
+
+ /* Check the mem= option to limit memory used for initrd. */
+ {
+@@ -504,12 +641,41 @@ grub_load_linux (char *kernel, char *arg)
+ linux_mem_size = 0;
+ }
+
+- dest = grub_stpcpy ((char *) real_mode_mem + 0x1000, skip_to(0, arg));
++ /* Expand Intel Quark's UART MMIO address if requested */
++ cln_detect_early_uart(&arg);
++
++ /* Skip the path to the kernel only if in file system mode. */
++ grub_stpcpy ((char *) real_mode_mem + 0x1000,
++ grub_cln_linux_spi ? arg : skip_to (0, arg));
++
++ /* If Clanton secure boot path, copy over CSBH + bzImage into "protected
++ mode" section. */
++ if (grub_cln_secure)
++ {
++ grub_cln_asset_seek (0);
++ prot_size -= sizeof (cln_sbh);
++ grub_memcpy (prot_mode_mem, &cln_sbh, sizeof (cln_sbh));
++ prot_mode_offs += sizeof (cln_sbh);
++ }
++ else
++ grub_cln_asset_seek ((setup_sects << SECTOR_BITS) + SECTOR_SIZE);
+
+- grub_seek ((setup_sects << SECTOR_BITS) + SECTOR_SIZE);
+ len = prot_size;
+- if (grub_read ((char *) GRUB_LINUX_BZIMAGE_ADDR, len) != len)
+- grub_printf ("Couldn't read file");
++ if (grub_cln_asset_read (GRUB_CLN_ASSET_KERNEL,
++ (grub_uint8_t *) prot_mode_mem + prot_mode_offs,
++ len) != len)
++ {
++ errnum = ERR_EXEC_FORMAT;
++ grub_printf ("Couldn't read file");
++ goto fail;
++ }
++
++ /* Verify the kernel signature. */
++ if (grub_cln_secure &&
++ ! grub_cln_verify_asset_signature ((grub_uint8_t *) prot_mode_mem))
++ {
++ errnum = ERR_CLN_VERIFICATION;
++ }
+
+ if (errnum == ERR_NONE)
+ {
+@@ -543,7 +709,8 @@ grub_load_initrd (char *initrd)
+ grub_efi_uint32_t desc_version;
+ struct linux_kernel_params *params;
+
+- if (initrd == NULL)
++ /* In SPI/Flash mode, file system path to initrd is not required. */
++ if (! grub_cln_initrd_spi && initrd == NULL)
+ {
+ errnum = ERR_BAD_FILENAME;
+ grub_printf ("No module specified");
+@@ -557,10 +724,25 @@ grub_load_initrd (char *initrd)
+ goto fail1;
+ }
+
+- if (! grub_open (initrd))
++
++ if (grub_cln_secure
++ && ! grub_cln_fetch_sbh (GRUB_CLN_ASSET_INITRD_CSBH, initrd, &cln_sbh))
++ {
++ if (ERR_FILE_NOT_FOUND == errnum
++ && ! grub_cln_initrd_spi)
++ errnum = ERR_SGN_FILE_NOT_FOUND;
++ goto fail1;
++ }
++
++ if (! grub_cln_asset_open (GRUB_CLN_ASSET_INITRD, initrd))
+ goto fail1;
+
+- size = grub_file_size ();
++ size = grub_cln_asset_size (GRUB_CLN_ASSET_INITRD);
++
++ /* If Clanton secure boot, make room for CSBH. */
++ if (grub_cln_secure)
++ size += sizeof (cln_sbh);
++
+ initrd_pages = (page_align (size) >> 12);
+
+ params = (struct linux_kernel_params *) real_mode_mem;
+@@ -583,7 +765,11 @@ grub_load_initrd (char *initrd)
+
+ /* Find the highest address to put the initrd. */
+ if (grub_efi_get_memory_map (&map_key, &desc_size, &desc_version) <= 0)
+- grub_fatal ("cannot get memory map");
++ {
++ grub_printf ("cannot get memory map");
++ errnum = ERR_BOOT_FAILURE;
++ goto fail;
++ }
+
+ mmap_end = NEXT_MEMORY_DESCRIPTOR (mmap_buf, mmap_size);
+ addr = 0;
+@@ -626,17 +812,41 @@ grub_load_initrd (char *initrd)
+
+ initrd_mem = grub_efi_allocate_pages (addr, initrd_pages);
+ if (! initrd_mem)
+- grub_fatal ("cannot allocate pages: %x@%x", (unsigned)initrd_pages,
+- (unsigned)addr);
++ {
++ grub_printf ("cannot allocate pages: %x@%x", (unsigned) initrd_pages,
++ (unsigned) addr);
++ errnum = ERR_WONT_FIT;
++ goto fail;
++ }
++
++ /* Clanton secure boot requires the CSBH to be prepended to the Initrd. */
++ if (grub_cln_secure)
++ {
++ size -= sizeof (cln_sbh);
++ grub_memcpy (initrd_mem, &cln_sbh, sizeof (cln_sbh));
++ initrd_mem = (grub_uint8_t *)initrd_mem + sizeof (cln_sbh);
++ addr += sizeof (cln_sbh);
++ }
+
+- if (grub_read (initrd_mem, size) != size)
++ if (grub_cln_asset_read (GRUB_CLN_ASSET_INITRD, initrd_mem, size) != size)
+ {
++ errnum = ERR_EXEC_FORMAT;
+ grub_printf ("Couldn't read file");
+ goto fail;
+ }
+
+- grub_printf (" [Initrd, addr=0x%x, size=0x%x]\n", (unsigned int) addr,
+- (unsigned int) size);
++ grub_printf ("[Initrd%s, addr=0x%x, size=0x%x]\n",
++ grub_cln_initrd_spi ? " SPI" : "",
++ (unsigned int) addr, (unsigned int) size);
++
++ /* Verify the initrd signature. */
++ if (grub_cln_secure &&
++ ! grub_cln_verify_asset_signature
++ ((grub_uint8_t *) initrd_mem - sizeof (cln_sbh)))
++ {
++ errnum = ERR_CLN_VERIFICATION;
++ goto fail;
++ }
+
+ params->hdr.ramdisk_image = addr;
+ params->hdr.ramdisk_size = size;
+diff --git a/grub/Makefile.in b/grub/Makefile.in
+deleted file mode 100644
+index 0e40e1b..0000000
+--- a/grub/Makefile.in
++++ /dev/null
+@@ -1,448 +0,0 @@
+-# Makefile.in generated by automake 1.10 from Makefile.am.
+-# @configure_input@
+-
+-# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+-# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
+-# This Makefile.in is free software; the Free Software Foundation
+-# gives unlimited permission to copy and/or distribute it,
+-# with or without modifications, as long as this notice is preserved.
+-
+-# This program is distributed in the hope that it will be useful,
+-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+-# PARTICULAR PURPOSE.
+-
+-@SET_MAKE@
+-
+-VPATH = @srcdir@
+-pkgdatadir = $(datadir)/@PACKAGE@
+-pkglibdir = $(libdir)/@PACKAGE@
+-pkgincludedir = $(includedir)/@PACKAGE@
+-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+-install_sh_DATA = $(install_sh) -c -m 644
+-install_sh_PROGRAM = $(install_sh) -c
+-install_sh_SCRIPT = $(install_sh) -c
+-INSTALL_HEADER = $(INSTALL_DATA)
+-transform = $(program_transform_name)
+-NORMAL_INSTALL = :
+-PRE_INSTALL = :
+-POST_INSTALL = :
+-NORMAL_UNINSTALL = :
+-PRE_UNINSTALL = :
+-POST_UNINSTALL = :
+-build_triplet = @build@
+-host_triplet = @host@
+-sbin_PROGRAMS = grub$(EXEEXT)
+-subdir = grub
+-DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
+-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+-am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
+- $(top_srcdir)/configure.in
+-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+- $(ACLOCAL_M4)
+-mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
+-CONFIG_HEADER = $(top_builddir)/config.h
+-CONFIG_CLEAN_FILES =
+-am__installdirs = "$(DESTDIR)$(sbindir)"
+-sbinPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
+-PROGRAMS = $(sbin_PROGRAMS)
+-am_grub_OBJECTS = main.$(OBJEXT) asmstub.$(OBJEXT)
+-grub_OBJECTS = $(am_grub_OBJECTS)
+-am__DEPENDENCIES_1 =
+-grub_DEPENDENCIES = ../stage2/libgrub.a ../lib/libcommon.a \
+- $(am__DEPENDENCIES_1)
+-DEFAULT_INCLUDES = -I. -I$(top_builddir)@am__isrc@
+-depcomp = $(SHELL) $(top_srcdir)/depcomp
+-am__depfiles_maybe = depfiles
+-COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
+- $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+-CCLD = $(CC)
+-LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
+-SOURCES = $(grub_SOURCES)
+-DIST_SOURCES = $(grub_SOURCES)
+-ETAGS = etags
+-CTAGS = ctags
+-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+-ACLOCAL = @ACLOCAL@
+-AMTAR = @AMTAR@
+-AUTOCONF = @AUTOCONF@
+-AUTOHEADER = @AUTOHEADER@
+-AUTOMAKE = @AUTOMAKE@
+-AWK = @AWK@
+-CC = @CC@
+-CCAS = @CCAS@
+-CCASDEPMODE = @CCASDEPMODE@
+-CCASFLAGS = @CCASFLAGS@
+-CCDEPMODE = @CCDEPMODE@
+-CFLAGS = @CFLAGS@
+-CPP = @CPP@
+-CPPFLAGS = @CPPFLAGS@
+-CYGPATH_W = @CYGPATH_W@
+-DEFS = @DEFS@
+-DEPDIR = @DEPDIR@
+-ECHO_C = @ECHO_C@
+-ECHO_N = @ECHO_N@
+-ECHO_T = @ECHO_T@
+-EGREP = @EGREP@
+-EXEEXT = @EXEEXT@
+-FSYS_CFLAGS = @FSYS_CFLAGS@
+-GREP = @GREP@
+-GRUB_CFLAGS = @GRUB_CFLAGS@
+-GRUB_LIBS = @GRUB_LIBS@
+-INSTALL = @INSTALL@
+-INSTALL_DATA = @INSTALL_DATA@
+-INSTALL_PROGRAM = @INSTALL_PROGRAM@
+-INSTALL_SCRIPT = @INSTALL_SCRIPT@
+-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+-LDFLAGS = @LDFLAGS@
+-LIBOBJS = @LIBOBJS@
+-LIBS = @LIBS@
+-LOADER_LDFLAGS = @LOADER_LDFLAGS@
+-LTLIBOBJS = @LTLIBOBJS@
+-MAINT = @MAINT@
+-MAKEINFO = @MAKEINFO@
+-MKDIR_P = @MKDIR_P@
+-NETBOOT_DRIVERS = @NETBOOT_DRIVERS@
+-NET_CFLAGS = @NET_CFLAGS@
+-NET_EXTRAFLAGS = @NET_EXTRAFLAGS@
+-OBJCOPY = @OBJCOPY@
+-OBJEXT = @OBJEXT@
+-PACKAGE = @PACKAGE@
+-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+-PACKAGE_NAME = @PACKAGE_NAME@
+-PACKAGE_STRING = @PACKAGE_STRING@
+-PACKAGE_TARNAME = @PACKAGE_TARNAME@
+-PACKAGE_VERSION = @PACKAGE_VERSION@
+-PATH_SEPARATOR = @PATH_SEPARATOR@
+-PERL = @PERL@
+-RANLIB = @RANLIB@
+-SET_MAKE = @SET_MAKE@
+-SHELL = @SHELL@
+-STAGE1_CFLAGS = @STAGE1_CFLAGS@
+-STAGE2_CFLAGS = @STAGE2_CFLAGS@
+-STRIP = @STRIP@
+-VERSION = @VERSION@
+-abs_builddir = @abs_builddir@
+-abs_srcdir = @abs_srcdir@
+-abs_top_builddir = @abs_top_builddir@
+-abs_top_srcdir = @abs_top_srcdir@
+-ac_ct_CC = @ac_ct_CC@
+-am__include = @am__include@
+-am__leading_dot = @am__leading_dot@
+-am__quote = @am__quote@
+-am__tar = @am__tar@
+-am__untar = @am__untar@
+-bindir = @bindir@
+-build = @build@
+-build_alias = @build_alias@
+-build_cpu = @build_cpu@
+-build_os = @build_os@
+-build_vendor = @build_vendor@
+-builddir = @builddir@
+-datadir = @datadir@
+-datarootdir = @datarootdir@
+-docdir = @docdir@
+-dvidir = @dvidir@
+-exec_prefix = @exec_prefix@
+-host = @host@
+-host_alias = @host_alias@
+-host_cpu = @host_cpu@
+-host_os = @host_os@
+-host_vendor = @host_vendor@
+-htmldir = @htmldir@
+-includedir = @includedir@
+-infodir = @infodir@
+-install_sh = @install_sh@
+-libdir = @libdir@
+-libexecdir = @libexecdir@
+-localedir = @localedir@
+-localstatedir = @localstatedir@
+-mandir = @mandir@
+-mkdir_p = @mkdir_p@
+-oldincludedir = @oldincludedir@
+-pdfdir = @pdfdir@
+-prefix = @prefix@
+-program_transform_name = @program_transform_name@
+-psdir = @psdir@
+-sbindir = @sbindir@
+-sharedstatedir = @sharedstatedir@
+-srcdir = @srcdir@
+-sysconfdir = @sysconfdir@
+-target_alias = @target_alias@
+-top_builddir = @top_builddir@
+-top_srcdir = @top_srcdir@
+-@SERIAL_SPEED_SIMULATION_FALSE@SERIAL_FLAGS = -DSUPPORT_SERIAL=1
+-@SERIAL_SPEED_SIMULATION_TRUE@SERIAL_FLAGS = -DSUPPORT_SERIAL=1 -DSIMULATE_SLOWNESS_OF_SERIAL=1
+-AM_CPPFLAGS = -DGRUB_UTIL=1 -DFSYS_EXT2FS=1 -DFSYS_FAT=1 -DFSYS_FFS=1 \
+- -DFSYS_ISO9660=1 -DFSYS_JFS=1 -DFSYS_MINIX=1 -DFSYS_REISERFS=1 \
+- -DFSYS_UFS2=1 -DFSYS_VSTAFS=1 -DFSYS_XFS=1 \
+- -DUSE_MD5_PASSWORDS=1 -DSUPPORT_HERCULES=1 \
+- $(SERIAL_FLAGS) -I$(top_srcdir)/stage2 \
+- -I$(top_srcdir)/stage1 -I$(top_srcdir)/lib
+-
+-AM_CFLAGS = $(GRUB_CFLAGS)
+-grub_SOURCES = main.c asmstub.c
+-grub_LDADD = ../stage2/libgrub.a ../lib/libcommon.a $(GRUB_LIBS)
+-all: all-am
+-
+-.SUFFIXES:
+-.SUFFIXES: .c .o .obj
+-$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
+- @for dep in $?; do \
+- case '$(am__configure_deps)' in \
+- *$$dep*) \
+- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
+- && exit 0; \
+- exit 1;; \
+- esac; \
+- done; \
+- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu grub/Makefile'; \
+- cd $(top_srcdir) && \
+- $(AUTOMAKE) --gnu grub/Makefile
+-.PRECIOUS: Makefile
+-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+- @case '$?' in \
+- *config.status*) \
+- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+- *) \
+- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+- esac;
+-
+-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+-
+-$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
+- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+-$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
+- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+-install-sbinPROGRAMS: $(sbin_PROGRAMS)
+- @$(NORMAL_INSTALL)
+- test -z "$(sbindir)" || $(MKDIR_P) "$(DESTDIR)$(sbindir)"
+- @list='$(sbin_PROGRAMS)'; for p in $$list; do \
+- p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
+- if test -f $$p \
+- ; then \
+- f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
+- echo " $(INSTALL_PROGRAM_ENV) $(sbinPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(sbindir)/$$f'"; \
+- $(INSTALL_PROGRAM_ENV) $(sbinPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(sbindir)/$$f" || exit 1; \
+- else :; fi; \
+- done
+-
+-uninstall-sbinPROGRAMS:
+- @$(NORMAL_UNINSTALL)
+- @list='$(sbin_PROGRAMS)'; for p in $$list; do \
+- f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
+- echo " rm -f '$(DESTDIR)$(sbindir)/$$f'"; \
+- rm -f "$(DESTDIR)$(sbindir)/$$f"; \
+- done
+-
+-clean-sbinPROGRAMS:
+- -test -z "$(sbin_PROGRAMS)" || rm -f $(sbin_PROGRAMS)
+-grub$(EXEEXT): $(grub_OBJECTS) $(grub_DEPENDENCIES)
+- @rm -f grub$(EXEEXT)
+- $(LINK) $(grub_OBJECTS) $(grub_LDADD) $(LIBS)
+-
+-mostlyclean-compile:
+- -rm -f *.$(OBJEXT)
+-
+-distclean-compile:
+- -rm -f *.tab.c
+-
+-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/asmstub.Po@am__quote@
+-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/main.Po@am__quote@
+-
+-.c.o:
+-@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
+-@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+-@am__fastdepCC_FALSE@ $(COMPILE) -c $<
+-
+-.c.obj:
+-@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
+-@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+-@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
+-
+-ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
+- list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+- unique=`for i in $$list; do \
+- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+- done | \
+- $(AWK) ' { files[$$0] = 1; } \
+- END { for (i in files) print i; }'`; \
+- mkid -fID $$unique
+-tags: TAGS
+-
+-TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
+- $(TAGS_FILES) $(LISP)
+- tags=; \
+- here=`pwd`; \
+- list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+- unique=`for i in $$list; do \
+- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+- done | \
+- $(AWK) ' { files[$$0] = 1; } \
+- END { for (i in files) print i; }'`; \
+- if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
+- test -n "$$unique" || unique=$$empty_fix; \
+- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+- $$tags $$unique; \
+- fi
+-ctags: CTAGS
+-CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
+- $(TAGS_FILES) $(LISP)
+- tags=; \
+- here=`pwd`; \
+- list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+- unique=`for i in $$list; do \
+- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+- done | \
+- $(AWK) ' { files[$$0] = 1; } \
+- END { for (i in files) print i; }'`; \
+- test -z "$(CTAGS_ARGS)$$tags$$unique" \
+- || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
+- $$tags $$unique
+-
+-GTAGS:
+- here=`$(am__cd) $(top_builddir) && pwd` \
+- && cd $(top_srcdir) \
+- && gtags -i $(GTAGS_ARGS) $$here
+-
+-distclean-tags:
+- -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
+-
+-distdir: $(DISTFILES)
+- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+- list='$(DISTFILES)'; \
+- dist_files=`for file in $$list; do echo $$file; done | \
+- sed -e "s|^$$srcdirstrip/||;t" \
+- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+- case $$dist_files in \
+- */*) $(MKDIR_P) `echo "$$dist_files" | \
+- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+- sort -u` ;; \
+- esac; \
+- for file in $$dist_files; do \
+- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+- if test -d $$d/$$file; then \
+- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+- cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
+- fi; \
+- cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
+- else \
+- test -f $(distdir)/$$file \
+- || cp -p $$d/$$file $(distdir)/$$file \
+- || exit 1; \
+- fi; \
+- done
+-check-am: all-am
+-check: check-am
+-all-am: Makefile $(PROGRAMS)
+-installdirs:
+- for dir in "$(DESTDIR)$(sbindir)"; do \
+- test -z "$$dir" || $(MKDIR_P) "$$dir"; \
+- done
+-install: install-am
+-install-exec: install-exec-am
+-install-data: install-data-am
+-uninstall: uninstall-am
+-
+-install-am: all-am
+- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+-
+-installcheck: installcheck-am
+-install-strip:
+- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+- `test -z '$(STRIP)' || \
+- echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
+-mostlyclean-generic:
+-
+-clean-generic:
+-
+-distclean-generic:
+- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+-
+-maintainer-clean-generic:
+- @echo "This command is intended for maintainers to use"
+- @echo "it deletes files that may require special tools to rebuild."
+-clean: clean-am
+-
+-clean-am: clean-generic clean-sbinPROGRAMS mostlyclean-am
+-
+-distclean: distclean-am
+- -rm -rf ./$(DEPDIR)
+- -rm -f Makefile
+-distclean-am: clean-am distclean-compile distclean-generic \
+- distclean-tags
+-
+-dvi: dvi-am
+-
+-dvi-am:
+-
+-html: html-am
+-
+-info: info-am
+-
+-info-am:
+-
+-install-data-am:
+-
+-install-dvi: install-dvi-am
+-
+-install-exec-am: install-sbinPROGRAMS
+-
+-install-html: install-html-am
+-
+-install-info: install-info-am
+-
+-install-man:
+-
+-install-pdf: install-pdf-am
+-
+-install-ps: install-ps-am
+-
+-installcheck-am:
+-
+-maintainer-clean: maintainer-clean-am
+- -rm -rf ./$(DEPDIR)
+- -rm -f Makefile
+-maintainer-clean-am: distclean-am maintainer-clean-generic
+-
+-mostlyclean: mostlyclean-am
+-
+-mostlyclean-am: mostlyclean-compile mostlyclean-generic
+-
+-pdf: pdf-am
+-
+-pdf-am:
+-
+-ps: ps-am
+-
+-ps-am:
+-
+-uninstall-am: uninstall-sbinPROGRAMS
+-
+-.MAKE: install-am install-strip
+-
+-.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
+- clean-sbinPROGRAMS ctags distclean distclean-compile \
+- distclean-generic distclean-tags distdir dvi dvi-am html \
+- html-am info info-am install install-am install-data \
+- install-data-am install-dvi install-dvi-am install-exec \
+- install-exec-am install-html install-html-am install-info \
+- install-info-am install-man install-pdf install-pdf-am \
+- install-ps install-ps-am install-sbinPROGRAMS install-strip \
+- installcheck installcheck-am installdirs maintainer-clean \
+- maintainer-clean-generic mostlyclean mostlyclean-compile \
+- mostlyclean-generic pdf pdf-am ps ps-am tags uninstall \
+- uninstall-am uninstall-sbinPROGRAMS
+-
+-# Tell versions [3.59,3.63) of GNU make to not export all variables.
+-# Otherwise a system limit (for SysV at least) may be exceeded.
+-.NOEXPORT:
+diff --git a/grub/asmstub.c b/grub/asmstub.c
+index 818be75..e797bbc 100644
+--- a/grub/asmstub.c
++++ b/grub/asmstub.c
+@@ -82,6 +82,11 @@ char *linux_data_real_addr = 0;
+ unsigned short io_map[IO_MAP_SIZE];
+ struct apm_info apm_bios_info;
+
++/* Clanton-specific. */
++unsigned short int grub_cln_loaded_from_spi = 0;
++unsigned short int grub_cln_linux_spi = 0;
++unsigned short int grub_cln_initrd_spi = 0;
++
+ /* Emulation requirements. */
+ void *grub_scratch_mem = 0;
+
+@@ -1419,3 +1424,29 @@ grub_chainloader (char *filename)
+ {
+ return 0;
+ }
++
++void
++grub_cln_recovery_shell (unsigned short int asset_in_spi)
++{
++ grub_printf ("%s ()\n", __func__);
++ while (1);
++}
++
++void
++grub_cln_event_append (const char *tag)
++{
++ /* Nothing to do in the simulator. */
++}
++
++void
++grub_cln_load_config_file (char **buf, int *size)
++{
++ /* Nothing to do in the simulator. */
++}
++
++void
++grub_cln_detect_secure_sku (void)
++{
++ /* Nothing to do in the simulator. */
++}
++
+diff --git a/lib/Makefile.in b/lib/Makefile.in
+deleted file mode 100644
+index e46d1c4..0000000
+--- a/lib/Makefile.in
++++ /dev/null
+@@ -1,419 +0,0 @@
+-# Makefile.in generated by automake 1.10 from Makefile.am.
+-# @configure_input@
+-
+-# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+-# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
+-# This Makefile.in is free software; the Free Software Foundation
+-# gives unlimited permission to copy and/or distribute it,
+-# with or without modifications, as long as this notice is preserved.
+-
+-# This program is distributed in the hope that it will be useful,
+-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+-# PARTICULAR PURPOSE.
+-
+-@SET_MAKE@
+-
+-VPATH = @srcdir@
+-pkgdatadir = $(datadir)/@PACKAGE@
+-pkglibdir = $(libdir)/@PACKAGE@
+-pkgincludedir = $(includedir)/@PACKAGE@
+-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+-install_sh_DATA = $(install_sh) -c -m 644
+-install_sh_PROGRAM = $(install_sh) -c
+-install_sh_SCRIPT = $(install_sh) -c
+-INSTALL_HEADER = $(INSTALL_DATA)
+-transform = $(program_transform_name)
+-NORMAL_INSTALL = :
+-PRE_INSTALL = :
+-POST_INSTALL = :
+-NORMAL_UNINSTALL = :
+-PRE_UNINSTALL = :
+-POST_UNINSTALL = :
+-build_triplet = @build@
+-host_triplet = @host@
+-subdir = lib
+-DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
+-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+-am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
+- $(top_srcdir)/configure.in
+-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+- $(ACLOCAL_M4)
+-mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
+-CONFIG_HEADER = $(top_builddir)/config.h
+-CONFIG_CLEAN_FILES =
+-LIBRARIES = $(noinst_LIBRARIES)
+-AR = ar
+-ARFLAGS = cru
+-libcommon_a_AR = $(AR) $(ARFLAGS)
+-libcommon_a_LIBADD =
+-am_libcommon_a_OBJECTS = getopt.$(OBJEXT) getopt1.$(OBJEXT) \
+- device.$(OBJEXT)
+-libcommon_a_OBJECTS = $(am_libcommon_a_OBJECTS)
+-DEFAULT_INCLUDES = -I. -I$(top_builddir)@am__isrc@
+-depcomp = $(SHELL) $(top_srcdir)/depcomp
+-am__depfiles_maybe = depfiles
+-COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
+- $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+-CCLD = $(CC)
+-LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
+-SOURCES = $(libcommon_a_SOURCES)
+-DIST_SOURCES = $(libcommon_a_SOURCES)
+-ETAGS = etags
+-CTAGS = ctags
+-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+-ACLOCAL = @ACLOCAL@
+-AMTAR = @AMTAR@
+-AUTOCONF = @AUTOCONF@
+-AUTOHEADER = @AUTOHEADER@
+-AUTOMAKE = @AUTOMAKE@
+-AWK = @AWK@
+-CC = @CC@
+-CCAS = @CCAS@
+-CCASDEPMODE = @CCASDEPMODE@
+-CCASFLAGS = @CCASFLAGS@
+-CCDEPMODE = @CCDEPMODE@
+-CFLAGS = @CFLAGS@
+-CPP = @CPP@
+-CPPFLAGS = @CPPFLAGS@
+-CYGPATH_W = @CYGPATH_W@
+-DEFS = @DEFS@
+-DEPDIR = @DEPDIR@
+-ECHO_C = @ECHO_C@
+-ECHO_N = @ECHO_N@
+-ECHO_T = @ECHO_T@
+-EGREP = @EGREP@
+-EXEEXT = @EXEEXT@
+-FSYS_CFLAGS = @FSYS_CFLAGS@
+-GREP = @GREP@
+-GRUB_CFLAGS = @GRUB_CFLAGS@
+-GRUB_LIBS = @GRUB_LIBS@
+-INSTALL = @INSTALL@
+-INSTALL_DATA = @INSTALL_DATA@
+-INSTALL_PROGRAM = @INSTALL_PROGRAM@
+-INSTALL_SCRIPT = @INSTALL_SCRIPT@
+-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+-LDFLAGS = @LDFLAGS@
+-LIBOBJS = @LIBOBJS@
+-LIBS = @LIBS@
+-LOADER_LDFLAGS = @LOADER_LDFLAGS@
+-LTLIBOBJS = @LTLIBOBJS@
+-MAINT = @MAINT@
+-MAKEINFO = @MAKEINFO@
+-MKDIR_P = @MKDIR_P@
+-NETBOOT_DRIVERS = @NETBOOT_DRIVERS@
+-NET_CFLAGS = @NET_CFLAGS@
+-NET_EXTRAFLAGS = @NET_EXTRAFLAGS@
+-OBJCOPY = @OBJCOPY@
+-OBJEXT = @OBJEXT@
+-PACKAGE = @PACKAGE@
+-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+-PACKAGE_NAME = @PACKAGE_NAME@
+-PACKAGE_STRING = @PACKAGE_STRING@
+-PACKAGE_TARNAME = @PACKAGE_TARNAME@
+-PACKAGE_VERSION = @PACKAGE_VERSION@
+-PATH_SEPARATOR = @PATH_SEPARATOR@
+-PERL = @PERL@
+-RANLIB = @RANLIB@
+-SET_MAKE = @SET_MAKE@
+-SHELL = @SHELL@
+-STAGE1_CFLAGS = @STAGE1_CFLAGS@
+-STAGE2_CFLAGS = @STAGE2_CFLAGS@
+-STRIP = @STRIP@
+-VERSION = @VERSION@
+-abs_builddir = @abs_builddir@
+-abs_srcdir = @abs_srcdir@
+-abs_top_builddir = @abs_top_builddir@
+-abs_top_srcdir = @abs_top_srcdir@
+-ac_ct_CC = @ac_ct_CC@
+-am__include = @am__include@
+-am__leading_dot = @am__leading_dot@
+-am__quote = @am__quote@
+-am__tar = @am__tar@
+-am__untar = @am__untar@
+-bindir = @bindir@
+-build = @build@
+-build_alias = @build_alias@
+-build_cpu = @build_cpu@
+-build_os = @build_os@
+-build_vendor = @build_vendor@
+-builddir = @builddir@
+-datadir = @datadir@
+-datarootdir = @datarootdir@
+-docdir = @docdir@
+-dvidir = @dvidir@
+-exec_prefix = @exec_prefix@
+-host = @host@
+-host_alias = @host_alias@
+-host_cpu = @host_cpu@
+-host_os = @host_os@
+-host_vendor = @host_vendor@
+-htmldir = @htmldir@
+-includedir = @includedir@
+-infodir = @infodir@
+-install_sh = @install_sh@
+-libdir = @libdir@
+-libexecdir = @libexecdir@
+-localedir = @localedir@
+-localstatedir = @localstatedir@
+-mandir = @mandir@
+-mkdir_p = @mkdir_p@
+-oldincludedir = @oldincludedir@
+-pdfdir = @pdfdir@
+-prefix = @prefix@
+-program_transform_name = @program_transform_name@
+-psdir = @psdir@
+-sbindir = @sbindir@
+-sharedstatedir = @sharedstatedir@
+-srcdir = @srcdir@
+-sysconfdir = @sysconfdir@
+-target_alias = @target_alias@
+-top_builddir = @top_builddir@
+-top_srcdir = @top_srcdir@
+-noinst_LIBRARIES = libcommon.a
+-AM_CFLAGS = $(GRUB_CFLAGS) -I$(top_srcdir)/stage2 \
+- -I$(top_srcdir)/stage1
+-
+-libcommon_a_SOURCES = getopt.c getopt1.c getopt.h device.c device.h
+-all: all-am
+-
+-.SUFFIXES:
+-.SUFFIXES: .c .o .obj
+-$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
+- @for dep in $?; do \
+- case '$(am__configure_deps)' in \
+- *$$dep*) \
+- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
+- && exit 0; \
+- exit 1;; \
+- esac; \
+- done; \
+- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu lib/Makefile'; \
+- cd $(top_srcdir) && \
+- $(AUTOMAKE) --gnu lib/Makefile
+-.PRECIOUS: Makefile
+-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+- @case '$?' in \
+- *config.status*) \
+- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+- *) \
+- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+- esac;
+-
+-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+-
+-$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
+- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+-$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
+- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+-
+-clean-noinstLIBRARIES:
+- -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES)
+-libcommon.a: $(libcommon_a_OBJECTS) $(libcommon_a_DEPENDENCIES)
+- -rm -f libcommon.a
+- $(libcommon_a_AR) libcommon.a $(libcommon_a_OBJECTS) $(libcommon_a_LIBADD)
+- $(RANLIB) libcommon.a
+-
+-mostlyclean-compile:
+- -rm -f *.$(OBJEXT)
+-
+-distclean-compile:
+- -rm -f *.tab.c
+-
+-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/device.Po@am__quote@
+-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/getopt.Po@am__quote@
+-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/getopt1.Po@am__quote@
+-
+-.c.o:
+-@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
+-@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+-@am__fastdepCC_FALSE@ $(COMPILE) -c $<
+-
+-.c.obj:
+-@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
+-@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+-@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
+-
+-ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
+- list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+- unique=`for i in $$list; do \
+- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+- done | \
+- $(AWK) ' { files[$$0] = 1; } \
+- END { for (i in files) print i; }'`; \
+- mkid -fID $$unique
+-tags: TAGS
+-
+-TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
+- $(TAGS_FILES) $(LISP)
+- tags=; \
+- here=`pwd`; \
+- list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+- unique=`for i in $$list; do \
+- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+- done | \
+- $(AWK) ' { files[$$0] = 1; } \
+- END { for (i in files) print i; }'`; \
+- if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
+- test -n "$$unique" || unique=$$empty_fix; \
+- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+- $$tags $$unique; \
+- fi
+-ctags: CTAGS
+-CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
+- $(TAGS_FILES) $(LISP)
+- tags=; \
+- here=`pwd`; \
+- list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+- unique=`for i in $$list; do \
+- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+- done | \
+- $(AWK) ' { files[$$0] = 1; } \
+- END { for (i in files) print i; }'`; \
+- test -z "$(CTAGS_ARGS)$$tags$$unique" \
+- || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
+- $$tags $$unique
+-
+-GTAGS:
+- here=`$(am__cd) $(top_builddir) && pwd` \
+- && cd $(top_srcdir) \
+- && gtags -i $(GTAGS_ARGS) $$here
+-
+-distclean-tags:
+- -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
+-
+-distdir: $(DISTFILES)
+- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+- list='$(DISTFILES)'; \
+- dist_files=`for file in $$list; do echo $$file; done | \
+- sed -e "s|^$$srcdirstrip/||;t" \
+- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+- case $$dist_files in \
+- */*) $(MKDIR_P) `echo "$$dist_files" | \
+- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+- sort -u` ;; \
+- esac; \
+- for file in $$dist_files; do \
+- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+- if test -d $$d/$$file; then \
+- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+- cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
+- fi; \
+- cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
+- else \
+- test -f $(distdir)/$$file \
+- || cp -p $$d/$$file $(distdir)/$$file \
+- || exit 1; \
+- fi; \
+- done
+-check-am: all-am
+-check: check-am
+-all-am: Makefile $(LIBRARIES)
+-installdirs:
+-install: install-am
+-install-exec: install-exec-am
+-install-data: install-data-am
+-uninstall: uninstall-am
+-
+-install-am: all-am
+- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+-
+-installcheck: installcheck-am
+-install-strip:
+- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+- `test -z '$(STRIP)' || \
+- echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
+-mostlyclean-generic:
+-
+-clean-generic:
+-
+-distclean-generic:
+- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+-
+-maintainer-clean-generic:
+- @echo "This command is intended for maintainers to use"
+- @echo "it deletes files that may require special tools to rebuild."
+-clean: clean-am
+-
+-clean-am: clean-generic clean-noinstLIBRARIES mostlyclean-am
+-
+-distclean: distclean-am
+- -rm -rf ./$(DEPDIR)
+- -rm -f Makefile
+-distclean-am: clean-am distclean-compile distclean-generic \
+- distclean-tags
+-
+-dvi: dvi-am
+-
+-dvi-am:
+-
+-html: html-am
+-
+-info: info-am
+-
+-info-am:
+-
+-install-data-am:
+-
+-install-dvi: install-dvi-am
+-
+-install-exec-am:
+-
+-install-html: install-html-am
+-
+-install-info: install-info-am
+-
+-install-man:
+-
+-install-pdf: install-pdf-am
+-
+-install-ps: install-ps-am
+-
+-installcheck-am:
+-
+-maintainer-clean: maintainer-clean-am
+- -rm -rf ./$(DEPDIR)
+- -rm -f Makefile
+-maintainer-clean-am: distclean-am maintainer-clean-generic
+-
+-mostlyclean: mostlyclean-am
+-
+-mostlyclean-am: mostlyclean-compile mostlyclean-generic
+-
+-pdf: pdf-am
+-
+-pdf-am:
+-
+-ps: ps-am
+-
+-ps-am:
+-
+-uninstall-am:
+-
+-.MAKE: install-am install-strip
+-
+-.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
+- clean-noinstLIBRARIES ctags distclean distclean-compile \
+- distclean-generic distclean-tags distdir dvi dvi-am html \
+- html-am info info-am install install-am install-data \
+- install-data-am install-dvi install-dvi-am install-exec \
+- install-exec-am install-html install-html-am install-info \
+- install-info-am install-man install-pdf install-pdf-am \
+- install-ps install-ps-am install-strip installcheck \
+- installcheck-am installdirs maintainer-clean \
+- maintainer-clean-generic mostlyclean mostlyclean-compile \
+- mostlyclean-generic pdf pdf-am ps ps-am tags uninstall \
+- uninstall-am
+-
+-# Tell versions [3.59,3.63) of GNU make to not export all variables.
+-# Otherwise a system limit (for SysV at least) may be exceeded.
+-.NOEXPORT:
+diff --git a/netboot/Makefile.in b/netboot/Makefile.in
+deleted file mode 100644
+index 3a6a501..0000000
+--- a/netboot/Makefile.in
++++ /dev/null
+@@ -1,1094 +0,0 @@
+-# Makefile.in generated by automake 1.10 from Makefile.am.
+-# @configure_input@
+-
+-# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+-# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
+-# This Makefile.in is free software; the Free Software Foundation
+-# gives unlimited permission to copy and/or distribute it,
+-# with or without modifications, as long as this notice is preserved.
+-
+-# This program is distributed in the hope that it will be useful,
+-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+-# PARTICULAR PURPOSE.
+-
+-@SET_MAKE@
+-
+-VPATH = @srcdir@
+-pkgdatadir = $(datadir)/@PACKAGE@
+-pkglibdir = $(libdir)/@PACKAGE@
+-pkgincludedir = $(includedir)/@PACKAGE@
+-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+-install_sh_DATA = $(install_sh) -c -m 644
+-install_sh_PROGRAM = $(install_sh) -c
+-install_sh_SCRIPT = $(install_sh) -c
+-INSTALL_HEADER = $(INSTALL_DATA)
+-transform = $(program_transform_name)
+-NORMAL_INSTALL = :
+-PRE_INSTALL = :
+-POST_INSTALL = :
+-NORMAL_UNINSTALL = :
+-PRE_UNINSTALL = :
+-POST_UNINSTALL = :
+-build_triplet = @build@
+-host_triplet = @host@
+-subdir = netboot
+-DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
+-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+-am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
+- $(top_srcdir)/configure.in
+-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+- $(ACLOCAL_M4)
+-mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
+-CONFIG_HEADER = $(top_builddir)/config.h
+-CONFIG_CLEAN_FILES =
+-LIBRARIES = $(noinst_LIBRARIES)
+-AR = ar
+-ARFLAGS = cru
+-libdrivers_a_AR = $(AR) $(ARFLAGS)
+-am_libdrivers_a_OBJECTS = libdrivers_a-config.$(OBJEXT) \
+- libdrivers_a-fsys_tftp.$(OBJEXT) libdrivers_a-main.$(OBJEXT) \
+- libdrivers_a-misc.$(OBJEXT) libdrivers_a-pci.$(OBJEXT) \
+- libdrivers_a-timer.$(OBJEXT)
+-libdrivers_a_OBJECTS = $(am_libdrivers_a_OBJECTS)
+-DEFAULT_INCLUDES = -I. -I$(top_builddir)@am__isrc@
+-depcomp = $(SHELL) $(top_srcdir)/depcomp
+-am__depfiles_maybe = depfiles
+-COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
+- $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+-CCLD = $(CC)
+-LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
+-SOURCES = $(libdrivers_a_SOURCES) $(EXTRA_libdrivers_a_SOURCES)
+-DIST_SOURCES = $(libdrivers_a_SOURCES) $(EXTRA_libdrivers_a_SOURCES)
+-ETAGS = etags
+-CTAGS = ctags
+-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+-ACLOCAL = @ACLOCAL@
+-AMTAR = @AMTAR@
+-AUTOCONF = @AUTOCONF@
+-AUTOHEADER = @AUTOHEADER@
+-AUTOMAKE = @AUTOMAKE@
+-AWK = @AWK@
+-CC = @CC@
+-CCAS = @CCAS@
+-CCASDEPMODE = @CCASDEPMODE@
+-CCASFLAGS = @CCASFLAGS@
+-CCDEPMODE = @CCDEPMODE@
+-CFLAGS = @CFLAGS@
+-CPP = @CPP@
+-CPPFLAGS = @CPPFLAGS@
+-CYGPATH_W = @CYGPATH_W@
+-DEFS = @DEFS@
+-DEPDIR = @DEPDIR@
+-ECHO_C = @ECHO_C@
+-ECHO_N = @ECHO_N@
+-ECHO_T = @ECHO_T@
+-EGREP = @EGREP@
+-EXEEXT = @EXEEXT@
+-FSYS_CFLAGS = @FSYS_CFLAGS@
+-GREP = @GREP@
+-GRUB_CFLAGS = @GRUB_CFLAGS@
+-GRUB_LIBS = @GRUB_LIBS@
+-INSTALL = @INSTALL@
+-INSTALL_DATA = @INSTALL_DATA@
+-INSTALL_PROGRAM = @INSTALL_PROGRAM@
+-INSTALL_SCRIPT = @INSTALL_SCRIPT@
+-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+-LDFLAGS = @LDFLAGS@
+-LIBOBJS = @LIBOBJS@
+-LIBS = @LIBS@
+-LOADER_LDFLAGS = @LOADER_LDFLAGS@
+-LTLIBOBJS = @LTLIBOBJS@
+-MAINT = @MAINT@
+-MAKEINFO = @MAKEINFO@
+-MKDIR_P = @MKDIR_P@
+-NETBOOT_DRIVERS = @NETBOOT_DRIVERS@
+-NET_CFLAGS = @NET_CFLAGS@
+-NET_EXTRAFLAGS = @NET_EXTRAFLAGS@
+-OBJCOPY = @OBJCOPY@
+-OBJEXT = @OBJEXT@
+-PACKAGE = @PACKAGE@
+-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+-PACKAGE_NAME = @PACKAGE_NAME@
+-PACKAGE_STRING = @PACKAGE_STRING@
+-PACKAGE_TARNAME = @PACKAGE_TARNAME@
+-PACKAGE_VERSION = @PACKAGE_VERSION@
+-PATH_SEPARATOR = @PATH_SEPARATOR@
+-PERL = @PERL@
+-RANLIB = @RANLIB@
+-SET_MAKE = @SET_MAKE@
+-SHELL = @SHELL@
+-STAGE1_CFLAGS = @STAGE1_CFLAGS@
+-STAGE2_CFLAGS = @STAGE2_CFLAGS@
+-STRIP = @STRIP@
+-VERSION = @VERSION@
+-abs_builddir = @abs_builddir@
+-abs_srcdir = @abs_srcdir@
+-abs_top_builddir = @abs_top_builddir@
+-abs_top_srcdir = @abs_top_srcdir@
+-ac_ct_CC = @ac_ct_CC@
+-am__include = @am__include@
+-am__leading_dot = @am__leading_dot@
+-am__quote = @am__quote@
+-am__tar = @am__tar@
+-am__untar = @am__untar@
+-bindir = @bindir@
+-build = @build@
+-build_alias = @build_alias@
+-build_cpu = @build_cpu@
+-build_os = @build_os@
+-build_vendor = @build_vendor@
+-builddir = @builddir@
+-datadir = @datadir@
+-datarootdir = @datarootdir@
+-docdir = @docdir@
+-dvidir = @dvidir@
+-exec_prefix = @exec_prefix@
+-host = @host@
+-host_alias = @host_alias@
+-host_cpu = @host_cpu@
+-host_os = @host_os@
+-host_vendor = @host_vendor@
+-htmldir = @htmldir@
+-includedir = @includedir@
+-infodir = @infodir@
+-install_sh = @install_sh@
+-libdir = @libdir@
+-libexecdir = @libexecdir@
+-localedir = @localedir@
+-localstatedir = @localstatedir@
+-mandir = @mandir@
+-mkdir_p = @mkdir_p@
+-oldincludedir = @oldincludedir@
+-pdfdir = @pdfdir@
+-prefix = @prefix@
+-program_transform_name = @program_transform_name@
+-psdir = @psdir@
+-sbindir = @sbindir@
+-sharedstatedir = @sharedstatedir@
+-srcdir = @srcdir@
+-sysconfdir = @sysconfdir@
+-target_alias = @target_alias@
+-top_builddir = @top_builddir@
+-top_srcdir = @top_srcdir@
+-
+-# For <shared.h> and <stage1.h>.
+-INCLUDES = -I$(top_srcdir)/stage2 -I$(top_srcdir)/stage1
+-@NETBOOT_SUPPORT_FALSE@LIBDRIVERS =
+-
+-# Don't build the netboot support by default.
+-@NETBOOT_SUPPORT_TRUE@LIBDRIVERS = libdrivers.a
+-noinst_LIBRARIES = $(LIBDRIVERS)
+-libdrivers_a_SOURCES = cards.h config.c etherboot.h \
+- fsys_tftp.c linux-asm-io.h linux-asm-string.h \
+- main.c misc.c nic.h osdep.h pci.c pci.h timer.c timer.h
+-
+-EXTRA_libdrivers_a_SOURCES = 3c509.c 3c509.h 3c595.c 3c595.h 3c90x.c \
+- cs89x0.c cs89x0.h davicom.c depca.c eepro.c eepro100.c \
+- epic100.c epic100.h fa311.c i82586.c lance.c natsemi.c \
+- ni5010.c ns8390.c ns8390.h otulip.c otulip.h rtl8139.c \
+- sis900.c sis900.h sk_g16.c sk_g16.h smc9000.c smc9000.h \
+- tiara.c tlan.c tulip.c via-rhine.c w89c840.c
+-
+-libdrivers_a_CFLAGS = $(STAGE2_CFLAGS) -fno-builtin -nostdinc \
+- -DFSYS_TFTP=1 $(NET_CFLAGS) $(NET_EXTRAFLAGS)
+-
+-# Filled by configure.
+-libdrivers_a_LIBADD = @NETBOOT_DRIVERS@
+-libdrivers_a_DEPENDENCIES = $(libdrivers_a_LIBADD)
+-EXTRA_DIST = README.netboot 3c90x.txt cs89x0.txt sis900.txt tulip.txt
+-
+-# These below are several special rules for the device drivers.
+-# We cannot use a simple rule for them...
+-
+-# What objects are derived from a driver?
+-3c509_drivers = 3c509.o 3c529.o
+-3c595_drivers = 3c595.o
+-3c90x_drivers = 3c90x.o
+-cs89x0_drivers = cs89x0.o
+-davicom_drivers = davicom.o
+-depca_drivers = depca.o
+-eepro_drivers = eepro.o
+-eepro100_drivers = eepro100.o
+-epic100_drivers = epic100.o
+-#fa311_drivers = fa311.o
+-i82586_drivers = 3c507.o exos205.o ni5210.o
+-lance_drivers = lance.o ne2100.o ni6510.o
+-natsemi_drivers = natsemi.o
+-ni5010_drivers = ni5010.o
+-ns8390_drivers = 3c503.o ne.o ns8390.o wd.o
+-otulip_drivers = otulip.o
+-rtl8139_drivers = rtl8139.o
+-sis900_drivers = sis900.o
+-sk_g16_drivers = sk_g16.o
+-smc9000_drivers = smc9000.o
+-tiara_drivers = tiara.o
+-#tlan_drivers = tlan.o
+-tulip_drivers = tulip.o
+-via_rhine_drivers = via_rhine.o
+-w89c840_drivers = w89c840.o
+-
+-# Per-object flags.
+-3c509_o_CFLAGS = -DINCLUDE_3C509=1
+-3c529_o_CFLAGS = -DINCLUDE_3C529=1
+-3c595_o_CFLAGS = -DINCLUDE_3C595=1
+-3c90x_o_CFLAGS = -DINCLUDE_3C90X=1
+-cs89x0_o_CFLAGS = -DINCLUDE_CS89X0=1
+-davicom_o_CFLAGS = -DINCLUDE_DAVICOM=1
+-depca_o_CFLAGS = -DINCLUDE_DEPCA=1
+-eepro_o_CFLAGS = -DINCLUDE_EEPRO=1
+-eepro100_o_CFLAGS = -DINCLUDE_EEPRO100=1
+-epic100_o_CFLAGS = -DINCLUDE_EPIC100=1
+-#fa311_o_CFLAGS = -DINCLUDE_FA311=1
+-3c507_o_CFLAGS = -DINCLUDE_3C507=1
+-exos205_o_CFLAGS = -DINCLUDE_EXOS205=1
+-ni5210_o_CFLAGS = -DINCLUDE_NI5210=1
+-lance_o_CFLAGS = -DINCLUDE_LANCE=1
+-ne2100_o_CFLAGS = -DINCLUDE_NE2100=1
+-ni6510_o_CFLAGS = -DINCLUDE_NI6510=1
+-natsemi_o_CFLAGS = -DINCLUDE_NATSEMI=1
+-ni5010_o_CFLAGS = -DINCLUDE_NI5010=1
+-3c503_o_CFLAGS = -DINCLUDE_3C503=1
+-ne_o_CFLAGS = -DINCLUDE_NE=1
+-ns8390_o_CFLAGS = -DINCLUDE_NS8390=1
+-wd_o_CFLAGS = -DINCLUDE_WD=1
+-otulip_o_CFLAGS = -DINCLUDE_OTULIP=1
+-rtl8139_o_CFLAGS = -DINCLUDE_RTL8139=1
+-sis900_o_CFLAGS = -DINCLUDE_SIS900=1
+-sk_g16_o_CFLAGS = -DINCLUDE_SK_G16=1
+-smc9000_o_CFLAGS = -DINCLUDE_SMC9000=1
+-tiara_o_CFLAGS = -DINCLUDE_TIARA=1
+-#tlan_o_CFLAGS = -DINCLUDE_TLAN=1
+-tulip_o_CFLAGS = -DINCLUDE_TULIP=1
+-via_rhine_o_CFLAGS = -DINCLUDE_VIA_RHINE=1
+-w89c840_o_CFLAGS = -DINCLUDE_W89C840=1
+-all: all-am
+-
+-.SUFFIXES:
+-.SUFFIXES: .c .o .obj
+-$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
+- @for dep in $?; do \
+- case '$(am__configure_deps)' in \
+- *$$dep*) \
+- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
+- && exit 0; \
+- exit 1;; \
+- esac; \
+- done; \
+- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu netboot/Makefile'; \
+- cd $(top_srcdir) && \
+- $(AUTOMAKE) --gnu netboot/Makefile
+-.PRECIOUS: Makefile
+-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+- @case '$?' in \
+- *config.status*) \
+- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+- *) \
+- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+- esac;
+-
+-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+-
+-$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
+- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+-$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
+- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+-
+-clean-noinstLIBRARIES:
+- -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES)
+-libdrivers.a: $(libdrivers_a_OBJECTS) $(libdrivers_a_DEPENDENCIES)
+- -rm -f libdrivers.a
+- $(libdrivers_a_AR) libdrivers.a $(libdrivers_a_OBJECTS) $(libdrivers_a_LIBADD)
+- $(RANLIB) libdrivers.a
+-
+-mostlyclean-compile:
+- -rm -f *.$(OBJEXT)
+-
+-distclean-compile:
+- -rm -f *.tab.c
+-
+-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdrivers_a-3c509.Po@am__quote@
+-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdrivers_a-3c595.Po@am__quote@
+-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdrivers_a-3c90x.Po@am__quote@
+-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdrivers_a-config.Po@am__quote@
+-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdrivers_a-cs89x0.Po@am__quote@
+-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdrivers_a-davicom.Po@am__quote@
+-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdrivers_a-depca.Po@am__quote@
+-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdrivers_a-eepro.Po@am__quote@
+-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdrivers_a-eepro100.Po@am__quote@
+-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdrivers_a-epic100.Po@am__quote@
+-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdrivers_a-fa311.Po@am__quote@
+-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdrivers_a-fsys_tftp.Po@am__quote@
+-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdrivers_a-i82586.Po@am__quote@
+-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdrivers_a-lance.Po@am__quote@
+-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdrivers_a-main.Po@am__quote@
+-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdrivers_a-misc.Po@am__quote@
+-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdrivers_a-natsemi.Po@am__quote@
+-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdrivers_a-ni5010.Po@am__quote@
+-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdrivers_a-ns8390.Po@am__quote@
+-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdrivers_a-otulip.Po@am__quote@
+-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdrivers_a-pci.Po@am__quote@
+-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdrivers_a-rtl8139.Po@am__quote@
+-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdrivers_a-sis900.Po@am__quote@
+-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdrivers_a-sk_g16.Po@am__quote@
+-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdrivers_a-smc9000.Po@am__quote@
+-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdrivers_a-tiara.Po@am__quote@
+-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdrivers_a-timer.Po@am__quote@
+-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdrivers_a-tlan.Po@am__quote@
+-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdrivers_a-tulip.Po@am__quote@
+-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdrivers_a-via-rhine.Po@am__quote@
+-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdrivers_a-w89c840.Po@am__quote@
+-
+-.c.o:
+-@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
+-@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+-@am__fastdepCC_FALSE@ $(COMPILE) -c $<
+-
+-.c.obj:
+-@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
+-@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+-@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
+-
+-libdrivers_a-config.o: config.c
+-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -MT libdrivers_a-config.o -MD -MP -MF $(DEPDIR)/libdrivers_a-config.Tpo -c -o libdrivers_a-config.o `test -f 'config.c' || echo '$(srcdir)/'`config.c
+-@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libdrivers_a-config.Tpo $(DEPDIR)/libdrivers_a-config.Po
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='config.c' object='libdrivers_a-config.o' libtool=no @AMDEPBACKSLASH@
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -c -o libdrivers_a-config.o `test -f 'config.c' || echo '$(srcdir)/'`config.c
+-
+-libdrivers_a-config.obj: config.c
+-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -MT libdrivers_a-config.obj -MD -MP -MF $(DEPDIR)/libdrivers_a-config.Tpo -c -o libdrivers_a-config.obj `if test -f 'config.c'; then $(CYGPATH_W) 'config.c'; else $(CYGPATH_W) '$(srcdir)/config.c'; fi`
+-@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libdrivers_a-config.Tpo $(DEPDIR)/libdrivers_a-config.Po
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='config.c' object='libdrivers_a-config.obj' libtool=no @AMDEPBACKSLASH@
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -c -o libdrivers_a-config.obj `if test -f 'config.c'; then $(CYGPATH_W) 'config.c'; else $(CYGPATH_W) '$(srcdir)/config.c'; fi`
+-
+-libdrivers_a-fsys_tftp.o: fsys_tftp.c
+-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -MT libdrivers_a-fsys_tftp.o -MD -MP -MF $(DEPDIR)/libdrivers_a-fsys_tftp.Tpo -c -o libdrivers_a-fsys_tftp.o `test -f 'fsys_tftp.c' || echo '$(srcdir)/'`fsys_tftp.c
+-@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libdrivers_a-fsys_tftp.Tpo $(DEPDIR)/libdrivers_a-fsys_tftp.Po
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='fsys_tftp.c' object='libdrivers_a-fsys_tftp.o' libtool=no @AMDEPBACKSLASH@
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -c -o libdrivers_a-fsys_tftp.o `test -f 'fsys_tftp.c' || echo '$(srcdir)/'`fsys_tftp.c
+-
+-libdrivers_a-fsys_tftp.obj: fsys_tftp.c
+-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -MT libdrivers_a-fsys_tftp.obj -MD -MP -MF $(DEPDIR)/libdrivers_a-fsys_tftp.Tpo -c -o libdrivers_a-fsys_tftp.obj `if test -f 'fsys_tftp.c'; then $(CYGPATH_W) 'fsys_tftp.c'; else $(CYGPATH_W) '$(srcdir)/fsys_tftp.c'; fi`
+-@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libdrivers_a-fsys_tftp.Tpo $(DEPDIR)/libdrivers_a-fsys_tftp.Po
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='fsys_tftp.c' object='libdrivers_a-fsys_tftp.obj' libtool=no @AMDEPBACKSLASH@
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -c -o libdrivers_a-fsys_tftp.obj `if test -f 'fsys_tftp.c'; then $(CYGPATH_W) 'fsys_tftp.c'; else $(CYGPATH_W) '$(srcdir)/fsys_tftp.c'; fi`
+-
+-libdrivers_a-main.o: main.c
+-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -MT libdrivers_a-main.o -MD -MP -MF $(DEPDIR)/libdrivers_a-main.Tpo -c -o libdrivers_a-main.o `test -f 'main.c' || echo '$(srcdir)/'`main.c
+-@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libdrivers_a-main.Tpo $(DEPDIR)/libdrivers_a-main.Po
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='main.c' object='libdrivers_a-main.o' libtool=no @AMDEPBACKSLASH@
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -c -o libdrivers_a-main.o `test -f 'main.c' || echo '$(srcdir)/'`main.c
+-
+-libdrivers_a-main.obj: main.c
+-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -MT libdrivers_a-main.obj -MD -MP -MF $(DEPDIR)/libdrivers_a-main.Tpo -c -o libdrivers_a-main.obj `if test -f 'main.c'; then $(CYGPATH_W) 'main.c'; else $(CYGPATH_W) '$(srcdir)/main.c'; fi`
+-@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libdrivers_a-main.Tpo $(DEPDIR)/libdrivers_a-main.Po
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='main.c' object='libdrivers_a-main.obj' libtool=no @AMDEPBACKSLASH@
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -c -o libdrivers_a-main.obj `if test -f 'main.c'; then $(CYGPATH_W) 'main.c'; else $(CYGPATH_W) '$(srcdir)/main.c'; fi`
+-
+-libdrivers_a-misc.o: misc.c
+-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -MT libdrivers_a-misc.o -MD -MP -MF $(DEPDIR)/libdrivers_a-misc.Tpo -c -o libdrivers_a-misc.o `test -f 'misc.c' || echo '$(srcdir)/'`misc.c
+-@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libdrivers_a-misc.Tpo $(DEPDIR)/libdrivers_a-misc.Po
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='misc.c' object='libdrivers_a-misc.o' libtool=no @AMDEPBACKSLASH@
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -c -o libdrivers_a-misc.o `test -f 'misc.c' || echo '$(srcdir)/'`misc.c
+-
+-libdrivers_a-misc.obj: misc.c
+-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -MT libdrivers_a-misc.obj -MD -MP -MF $(DEPDIR)/libdrivers_a-misc.Tpo -c -o libdrivers_a-misc.obj `if test -f 'misc.c'; then $(CYGPATH_W) 'misc.c'; else $(CYGPATH_W) '$(srcdir)/misc.c'; fi`
+-@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libdrivers_a-misc.Tpo $(DEPDIR)/libdrivers_a-misc.Po
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='misc.c' object='libdrivers_a-misc.obj' libtool=no @AMDEPBACKSLASH@
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -c -o libdrivers_a-misc.obj `if test -f 'misc.c'; then $(CYGPATH_W) 'misc.c'; else $(CYGPATH_W) '$(srcdir)/misc.c'; fi`
+-
+-libdrivers_a-pci.o: pci.c
+-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -MT libdrivers_a-pci.o -MD -MP -MF $(DEPDIR)/libdrivers_a-pci.Tpo -c -o libdrivers_a-pci.o `test -f 'pci.c' || echo '$(srcdir)/'`pci.c
+-@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libdrivers_a-pci.Tpo $(DEPDIR)/libdrivers_a-pci.Po
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='pci.c' object='libdrivers_a-pci.o' libtool=no @AMDEPBACKSLASH@
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -c -o libdrivers_a-pci.o `test -f 'pci.c' || echo '$(srcdir)/'`pci.c
+-
+-libdrivers_a-pci.obj: pci.c
+-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -MT libdrivers_a-pci.obj -MD -MP -MF $(DEPDIR)/libdrivers_a-pci.Tpo -c -o libdrivers_a-pci.obj `if test -f 'pci.c'; then $(CYGPATH_W) 'pci.c'; else $(CYGPATH_W) '$(srcdir)/pci.c'; fi`
+-@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libdrivers_a-pci.Tpo $(DEPDIR)/libdrivers_a-pci.Po
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='pci.c' object='libdrivers_a-pci.obj' libtool=no @AMDEPBACKSLASH@
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -c -o libdrivers_a-pci.obj `if test -f 'pci.c'; then $(CYGPATH_W) 'pci.c'; else $(CYGPATH_W) '$(srcdir)/pci.c'; fi`
+-
+-libdrivers_a-timer.o: timer.c
+-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -MT libdrivers_a-timer.o -MD -MP -MF $(DEPDIR)/libdrivers_a-timer.Tpo -c -o libdrivers_a-timer.o `test -f 'timer.c' || echo '$(srcdir)/'`timer.c
+-@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libdrivers_a-timer.Tpo $(DEPDIR)/libdrivers_a-timer.Po
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='timer.c' object='libdrivers_a-timer.o' libtool=no @AMDEPBACKSLASH@
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -c -o libdrivers_a-timer.o `test -f 'timer.c' || echo '$(srcdir)/'`timer.c
+-
+-libdrivers_a-timer.obj: timer.c
+-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -MT libdrivers_a-timer.obj -MD -MP -MF $(DEPDIR)/libdrivers_a-timer.Tpo -c -o libdrivers_a-timer.obj `if test -f 'timer.c'; then $(CYGPATH_W) 'timer.c'; else $(CYGPATH_W) '$(srcdir)/timer.c'; fi`
+-@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libdrivers_a-timer.Tpo $(DEPDIR)/libdrivers_a-timer.Po
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='timer.c' object='libdrivers_a-timer.obj' libtool=no @AMDEPBACKSLASH@
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -c -o libdrivers_a-timer.obj `if test -f 'timer.c'; then $(CYGPATH_W) 'timer.c'; else $(CYGPATH_W) '$(srcdir)/timer.c'; fi`
+-
+-libdrivers_a-3c509.o: 3c509.c
+-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -MT libdrivers_a-3c509.o -MD -MP -MF $(DEPDIR)/libdrivers_a-3c509.Tpo -c -o libdrivers_a-3c509.o `test -f '3c509.c' || echo '$(srcdir)/'`3c509.c
+-@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libdrivers_a-3c509.Tpo $(DEPDIR)/libdrivers_a-3c509.Po
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='3c509.c' object='libdrivers_a-3c509.o' libtool=no @AMDEPBACKSLASH@
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -c -o libdrivers_a-3c509.o `test -f '3c509.c' || echo '$(srcdir)/'`3c509.c
+-
+-libdrivers_a-3c509.obj: 3c509.c
+-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -MT libdrivers_a-3c509.obj -MD -MP -MF $(DEPDIR)/libdrivers_a-3c509.Tpo -c -o libdrivers_a-3c509.obj `if test -f '3c509.c'; then $(CYGPATH_W) '3c509.c'; else $(CYGPATH_W) '$(srcdir)/3c509.c'; fi`
+-@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libdrivers_a-3c509.Tpo $(DEPDIR)/libdrivers_a-3c509.Po
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='3c509.c' object='libdrivers_a-3c509.obj' libtool=no @AMDEPBACKSLASH@
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -c -o libdrivers_a-3c509.obj `if test -f '3c509.c'; then $(CYGPATH_W) '3c509.c'; else $(CYGPATH_W) '$(srcdir)/3c509.c'; fi`
+-
+-libdrivers_a-3c595.o: 3c595.c
+-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -MT libdrivers_a-3c595.o -MD -MP -MF $(DEPDIR)/libdrivers_a-3c595.Tpo -c -o libdrivers_a-3c595.o `test -f '3c595.c' || echo '$(srcdir)/'`3c595.c
+-@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libdrivers_a-3c595.Tpo $(DEPDIR)/libdrivers_a-3c595.Po
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='3c595.c' object='libdrivers_a-3c595.o' libtool=no @AMDEPBACKSLASH@
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -c -o libdrivers_a-3c595.o `test -f '3c595.c' || echo '$(srcdir)/'`3c595.c
+-
+-libdrivers_a-3c595.obj: 3c595.c
+-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -MT libdrivers_a-3c595.obj -MD -MP -MF $(DEPDIR)/libdrivers_a-3c595.Tpo -c -o libdrivers_a-3c595.obj `if test -f '3c595.c'; then $(CYGPATH_W) '3c595.c'; else $(CYGPATH_W) '$(srcdir)/3c595.c'; fi`
+-@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libdrivers_a-3c595.Tpo $(DEPDIR)/libdrivers_a-3c595.Po
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='3c595.c' object='libdrivers_a-3c595.obj' libtool=no @AMDEPBACKSLASH@
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -c -o libdrivers_a-3c595.obj `if test -f '3c595.c'; then $(CYGPATH_W) '3c595.c'; else $(CYGPATH_W) '$(srcdir)/3c595.c'; fi`
+-
+-libdrivers_a-3c90x.o: 3c90x.c
+-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -MT libdrivers_a-3c90x.o -MD -MP -MF $(DEPDIR)/libdrivers_a-3c90x.Tpo -c -o libdrivers_a-3c90x.o `test -f '3c90x.c' || echo '$(srcdir)/'`3c90x.c
+-@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libdrivers_a-3c90x.Tpo $(DEPDIR)/libdrivers_a-3c90x.Po
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='3c90x.c' object='libdrivers_a-3c90x.o' libtool=no @AMDEPBACKSLASH@
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -c -o libdrivers_a-3c90x.o `test -f '3c90x.c' || echo '$(srcdir)/'`3c90x.c
+-
+-libdrivers_a-3c90x.obj: 3c90x.c
+-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -MT libdrivers_a-3c90x.obj -MD -MP -MF $(DEPDIR)/libdrivers_a-3c90x.Tpo -c -o libdrivers_a-3c90x.obj `if test -f '3c90x.c'; then $(CYGPATH_W) '3c90x.c'; else $(CYGPATH_W) '$(srcdir)/3c90x.c'; fi`
+-@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libdrivers_a-3c90x.Tpo $(DEPDIR)/libdrivers_a-3c90x.Po
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='3c90x.c' object='libdrivers_a-3c90x.obj' libtool=no @AMDEPBACKSLASH@
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -c -o libdrivers_a-3c90x.obj `if test -f '3c90x.c'; then $(CYGPATH_W) '3c90x.c'; else $(CYGPATH_W) '$(srcdir)/3c90x.c'; fi`
+-
+-libdrivers_a-cs89x0.o: cs89x0.c
+-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -MT libdrivers_a-cs89x0.o -MD -MP -MF $(DEPDIR)/libdrivers_a-cs89x0.Tpo -c -o libdrivers_a-cs89x0.o `test -f 'cs89x0.c' || echo '$(srcdir)/'`cs89x0.c
+-@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libdrivers_a-cs89x0.Tpo $(DEPDIR)/libdrivers_a-cs89x0.Po
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='cs89x0.c' object='libdrivers_a-cs89x0.o' libtool=no @AMDEPBACKSLASH@
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -c -o libdrivers_a-cs89x0.o `test -f 'cs89x0.c' || echo '$(srcdir)/'`cs89x0.c
+-
+-libdrivers_a-cs89x0.obj: cs89x0.c
+-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -MT libdrivers_a-cs89x0.obj -MD -MP -MF $(DEPDIR)/libdrivers_a-cs89x0.Tpo -c -o libdrivers_a-cs89x0.obj `if test -f 'cs89x0.c'; then $(CYGPATH_W) 'cs89x0.c'; else $(CYGPATH_W) '$(srcdir)/cs89x0.c'; fi`
+-@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libdrivers_a-cs89x0.Tpo $(DEPDIR)/libdrivers_a-cs89x0.Po
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='cs89x0.c' object='libdrivers_a-cs89x0.obj' libtool=no @AMDEPBACKSLASH@
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -c -o libdrivers_a-cs89x0.obj `if test -f 'cs89x0.c'; then $(CYGPATH_W) 'cs89x0.c'; else $(CYGPATH_W) '$(srcdir)/cs89x0.c'; fi`
+-
+-libdrivers_a-davicom.o: davicom.c
+-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -MT libdrivers_a-davicom.o -MD -MP -MF $(DEPDIR)/libdrivers_a-davicom.Tpo -c -o libdrivers_a-davicom.o `test -f 'davicom.c' || echo '$(srcdir)/'`davicom.c
+-@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libdrivers_a-davicom.Tpo $(DEPDIR)/libdrivers_a-davicom.Po
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='davicom.c' object='libdrivers_a-davicom.o' libtool=no @AMDEPBACKSLASH@
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -c -o libdrivers_a-davicom.o `test -f 'davicom.c' || echo '$(srcdir)/'`davicom.c
+-
+-libdrivers_a-davicom.obj: davicom.c
+-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -MT libdrivers_a-davicom.obj -MD -MP -MF $(DEPDIR)/libdrivers_a-davicom.Tpo -c -o libdrivers_a-davicom.obj `if test -f 'davicom.c'; then $(CYGPATH_W) 'davicom.c'; else $(CYGPATH_W) '$(srcdir)/davicom.c'; fi`
+-@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libdrivers_a-davicom.Tpo $(DEPDIR)/libdrivers_a-davicom.Po
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='davicom.c' object='libdrivers_a-davicom.obj' libtool=no @AMDEPBACKSLASH@
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -c -o libdrivers_a-davicom.obj `if test -f 'davicom.c'; then $(CYGPATH_W) 'davicom.c'; else $(CYGPATH_W) '$(srcdir)/davicom.c'; fi`
+-
+-libdrivers_a-depca.o: depca.c
+-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -MT libdrivers_a-depca.o -MD -MP -MF $(DEPDIR)/libdrivers_a-depca.Tpo -c -o libdrivers_a-depca.o `test -f 'depca.c' || echo '$(srcdir)/'`depca.c
+-@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libdrivers_a-depca.Tpo $(DEPDIR)/libdrivers_a-depca.Po
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='depca.c' object='libdrivers_a-depca.o' libtool=no @AMDEPBACKSLASH@
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -c -o libdrivers_a-depca.o `test -f 'depca.c' || echo '$(srcdir)/'`depca.c
+-
+-libdrivers_a-depca.obj: depca.c
+-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -MT libdrivers_a-depca.obj -MD -MP -MF $(DEPDIR)/libdrivers_a-depca.Tpo -c -o libdrivers_a-depca.obj `if test -f 'depca.c'; then $(CYGPATH_W) 'depca.c'; else $(CYGPATH_W) '$(srcdir)/depca.c'; fi`
+-@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libdrivers_a-depca.Tpo $(DEPDIR)/libdrivers_a-depca.Po
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='depca.c' object='libdrivers_a-depca.obj' libtool=no @AMDEPBACKSLASH@
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -c -o libdrivers_a-depca.obj `if test -f 'depca.c'; then $(CYGPATH_W) 'depca.c'; else $(CYGPATH_W) '$(srcdir)/depca.c'; fi`
+-
+-libdrivers_a-eepro.o: eepro.c
+-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -MT libdrivers_a-eepro.o -MD -MP -MF $(DEPDIR)/libdrivers_a-eepro.Tpo -c -o libdrivers_a-eepro.o `test -f 'eepro.c' || echo '$(srcdir)/'`eepro.c
+-@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libdrivers_a-eepro.Tpo $(DEPDIR)/libdrivers_a-eepro.Po
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='eepro.c' object='libdrivers_a-eepro.o' libtool=no @AMDEPBACKSLASH@
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -c -o libdrivers_a-eepro.o `test -f 'eepro.c' || echo '$(srcdir)/'`eepro.c
+-
+-libdrivers_a-eepro.obj: eepro.c
+-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -MT libdrivers_a-eepro.obj -MD -MP -MF $(DEPDIR)/libdrivers_a-eepro.Tpo -c -o libdrivers_a-eepro.obj `if test -f 'eepro.c'; then $(CYGPATH_W) 'eepro.c'; else $(CYGPATH_W) '$(srcdir)/eepro.c'; fi`
+-@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libdrivers_a-eepro.Tpo $(DEPDIR)/libdrivers_a-eepro.Po
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='eepro.c' object='libdrivers_a-eepro.obj' libtool=no @AMDEPBACKSLASH@
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -c -o libdrivers_a-eepro.obj `if test -f 'eepro.c'; then $(CYGPATH_W) 'eepro.c'; else $(CYGPATH_W) '$(srcdir)/eepro.c'; fi`
+-
+-libdrivers_a-eepro100.o: eepro100.c
+-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -MT libdrivers_a-eepro100.o -MD -MP -MF $(DEPDIR)/libdrivers_a-eepro100.Tpo -c -o libdrivers_a-eepro100.o `test -f 'eepro100.c' || echo '$(srcdir)/'`eepro100.c
+-@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libdrivers_a-eepro100.Tpo $(DEPDIR)/libdrivers_a-eepro100.Po
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='eepro100.c' object='libdrivers_a-eepro100.o' libtool=no @AMDEPBACKSLASH@
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -c -o libdrivers_a-eepro100.o `test -f 'eepro100.c' || echo '$(srcdir)/'`eepro100.c
+-
+-libdrivers_a-eepro100.obj: eepro100.c
+-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -MT libdrivers_a-eepro100.obj -MD -MP -MF $(DEPDIR)/libdrivers_a-eepro100.Tpo -c -o libdrivers_a-eepro100.obj `if test -f 'eepro100.c'; then $(CYGPATH_W) 'eepro100.c'; else $(CYGPATH_W) '$(srcdir)/eepro100.c'; fi`
+-@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libdrivers_a-eepro100.Tpo $(DEPDIR)/libdrivers_a-eepro100.Po
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='eepro100.c' object='libdrivers_a-eepro100.obj' libtool=no @AMDEPBACKSLASH@
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -c -o libdrivers_a-eepro100.obj `if test -f 'eepro100.c'; then $(CYGPATH_W) 'eepro100.c'; else $(CYGPATH_W) '$(srcdir)/eepro100.c'; fi`
+-
+-libdrivers_a-epic100.o: epic100.c
+-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -MT libdrivers_a-epic100.o -MD -MP -MF $(DEPDIR)/libdrivers_a-epic100.Tpo -c -o libdrivers_a-epic100.o `test -f 'epic100.c' || echo '$(srcdir)/'`epic100.c
+-@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libdrivers_a-epic100.Tpo $(DEPDIR)/libdrivers_a-epic100.Po
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='epic100.c' object='libdrivers_a-epic100.o' libtool=no @AMDEPBACKSLASH@
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -c -o libdrivers_a-epic100.o `test -f 'epic100.c' || echo '$(srcdir)/'`epic100.c
+-
+-libdrivers_a-epic100.obj: epic100.c
+-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -MT libdrivers_a-epic100.obj -MD -MP -MF $(DEPDIR)/libdrivers_a-epic100.Tpo -c -o libdrivers_a-epic100.obj `if test -f 'epic100.c'; then $(CYGPATH_W) 'epic100.c'; else $(CYGPATH_W) '$(srcdir)/epic100.c'; fi`
+-@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libdrivers_a-epic100.Tpo $(DEPDIR)/libdrivers_a-epic100.Po
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='epic100.c' object='libdrivers_a-epic100.obj' libtool=no @AMDEPBACKSLASH@
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -c -o libdrivers_a-epic100.obj `if test -f 'epic100.c'; then $(CYGPATH_W) 'epic100.c'; else $(CYGPATH_W) '$(srcdir)/epic100.c'; fi`
+-
+-libdrivers_a-fa311.o: fa311.c
+-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -MT libdrivers_a-fa311.o -MD -MP -MF $(DEPDIR)/libdrivers_a-fa311.Tpo -c -o libdrivers_a-fa311.o `test -f 'fa311.c' || echo '$(srcdir)/'`fa311.c
+-@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libdrivers_a-fa311.Tpo $(DEPDIR)/libdrivers_a-fa311.Po
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='fa311.c' object='libdrivers_a-fa311.o' libtool=no @AMDEPBACKSLASH@
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -c -o libdrivers_a-fa311.o `test -f 'fa311.c' || echo '$(srcdir)/'`fa311.c
+-
+-libdrivers_a-fa311.obj: fa311.c
+-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -MT libdrivers_a-fa311.obj -MD -MP -MF $(DEPDIR)/libdrivers_a-fa311.Tpo -c -o libdrivers_a-fa311.obj `if test -f 'fa311.c'; then $(CYGPATH_W) 'fa311.c'; else $(CYGPATH_W) '$(srcdir)/fa311.c'; fi`
+-@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libdrivers_a-fa311.Tpo $(DEPDIR)/libdrivers_a-fa311.Po
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='fa311.c' object='libdrivers_a-fa311.obj' libtool=no @AMDEPBACKSLASH@
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -c -o libdrivers_a-fa311.obj `if test -f 'fa311.c'; then $(CYGPATH_W) 'fa311.c'; else $(CYGPATH_W) '$(srcdir)/fa311.c'; fi`
+-
+-libdrivers_a-i82586.o: i82586.c
+-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -MT libdrivers_a-i82586.o -MD -MP -MF $(DEPDIR)/libdrivers_a-i82586.Tpo -c -o libdrivers_a-i82586.o `test -f 'i82586.c' || echo '$(srcdir)/'`i82586.c
+-@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libdrivers_a-i82586.Tpo $(DEPDIR)/libdrivers_a-i82586.Po
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='i82586.c' object='libdrivers_a-i82586.o' libtool=no @AMDEPBACKSLASH@
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -c -o libdrivers_a-i82586.o `test -f 'i82586.c' || echo '$(srcdir)/'`i82586.c
+-
+-libdrivers_a-i82586.obj: i82586.c
+-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -MT libdrivers_a-i82586.obj -MD -MP -MF $(DEPDIR)/libdrivers_a-i82586.Tpo -c -o libdrivers_a-i82586.obj `if test -f 'i82586.c'; then $(CYGPATH_W) 'i82586.c'; else $(CYGPATH_W) '$(srcdir)/i82586.c'; fi`
+-@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libdrivers_a-i82586.Tpo $(DEPDIR)/libdrivers_a-i82586.Po
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='i82586.c' object='libdrivers_a-i82586.obj' libtool=no @AMDEPBACKSLASH@
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -c -o libdrivers_a-i82586.obj `if test -f 'i82586.c'; then $(CYGPATH_W) 'i82586.c'; else $(CYGPATH_W) '$(srcdir)/i82586.c'; fi`
+-
+-libdrivers_a-lance.o: lance.c
+-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -MT libdrivers_a-lance.o -MD -MP -MF $(DEPDIR)/libdrivers_a-lance.Tpo -c -o libdrivers_a-lance.o `test -f 'lance.c' || echo '$(srcdir)/'`lance.c
+-@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libdrivers_a-lance.Tpo $(DEPDIR)/libdrivers_a-lance.Po
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lance.c' object='libdrivers_a-lance.o' libtool=no @AMDEPBACKSLASH@
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -c -o libdrivers_a-lance.o `test -f 'lance.c' || echo '$(srcdir)/'`lance.c
+-
+-libdrivers_a-lance.obj: lance.c
+-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -MT libdrivers_a-lance.obj -MD -MP -MF $(DEPDIR)/libdrivers_a-lance.Tpo -c -o libdrivers_a-lance.obj `if test -f 'lance.c'; then $(CYGPATH_W) 'lance.c'; else $(CYGPATH_W) '$(srcdir)/lance.c'; fi`
+-@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libdrivers_a-lance.Tpo $(DEPDIR)/libdrivers_a-lance.Po
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lance.c' object='libdrivers_a-lance.obj' libtool=no @AMDEPBACKSLASH@
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -c -o libdrivers_a-lance.obj `if test -f 'lance.c'; then $(CYGPATH_W) 'lance.c'; else $(CYGPATH_W) '$(srcdir)/lance.c'; fi`
+-
+-libdrivers_a-natsemi.o: natsemi.c
+-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -MT libdrivers_a-natsemi.o -MD -MP -MF $(DEPDIR)/libdrivers_a-natsemi.Tpo -c -o libdrivers_a-natsemi.o `test -f 'natsemi.c' || echo '$(srcdir)/'`natsemi.c
+-@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libdrivers_a-natsemi.Tpo $(DEPDIR)/libdrivers_a-natsemi.Po
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='natsemi.c' object='libdrivers_a-natsemi.o' libtool=no @AMDEPBACKSLASH@
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -c -o libdrivers_a-natsemi.o `test -f 'natsemi.c' || echo '$(srcdir)/'`natsemi.c
+-
+-libdrivers_a-natsemi.obj: natsemi.c
+-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -MT libdrivers_a-natsemi.obj -MD -MP -MF $(DEPDIR)/libdrivers_a-natsemi.Tpo -c -o libdrivers_a-natsemi.obj `if test -f 'natsemi.c'; then $(CYGPATH_W) 'natsemi.c'; else $(CYGPATH_W) '$(srcdir)/natsemi.c'; fi`
+-@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libdrivers_a-natsemi.Tpo $(DEPDIR)/libdrivers_a-natsemi.Po
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='natsemi.c' object='libdrivers_a-natsemi.obj' libtool=no @AMDEPBACKSLASH@
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -c -o libdrivers_a-natsemi.obj `if test -f 'natsemi.c'; then $(CYGPATH_W) 'natsemi.c'; else $(CYGPATH_W) '$(srcdir)/natsemi.c'; fi`
+-
+-libdrivers_a-ni5010.o: ni5010.c
+-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -MT libdrivers_a-ni5010.o -MD -MP -MF $(DEPDIR)/libdrivers_a-ni5010.Tpo -c -o libdrivers_a-ni5010.o `test -f 'ni5010.c' || echo '$(srcdir)/'`ni5010.c
+-@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libdrivers_a-ni5010.Tpo $(DEPDIR)/libdrivers_a-ni5010.Po
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ni5010.c' object='libdrivers_a-ni5010.o' libtool=no @AMDEPBACKSLASH@
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -c -o libdrivers_a-ni5010.o `test -f 'ni5010.c' || echo '$(srcdir)/'`ni5010.c
+-
+-libdrivers_a-ni5010.obj: ni5010.c
+-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -MT libdrivers_a-ni5010.obj -MD -MP -MF $(DEPDIR)/libdrivers_a-ni5010.Tpo -c -o libdrivers_a-ni5010.obj `if test -f 'ni5010.c'; then $(CYGPATH_W) 'ni5010.c'; else $(CYGPATH_W) '$(srcdir)/ni5010.c'; fi`
+-@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libdrivers_a-ni5010.Tpo $(DEPDIR)/libdrivers_a-ni5010.Po
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ni5010.c' object='libdrivers_a-ni5010.obj' libtool=no @AMDEPBACKSLASH@
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -c -o libdrivers_a-ni5010.obj `if test -f 'ni5010.c'; then $(CYGPATH_W) 'ni5010.c'; else $(CYGPATH_W) '$(srcdir)/ni5010.c'; fi`
+-
+-libdrivers_a-ns8390.o: ns8390.c
+-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -MT libdrivers_a-ns8390.o -MD -MP -MF $(DEPDIR)/libdrivers_a-ns8390.Tpo -c -o libdrivers_a-ns8390.o `test -f 'ns8390.c' || echo '$(srcdir)/'`ns8390.c
+-@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libdrivers_a-ns8390.Tpo $(DEPDIR)/libdrivers_a-ns8390.Po
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ns8390.c' object='libdrivers_a-ns8390.o' libtool=no @AMDEPBACKSLASH@
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -c -o libdrivers_a-ns8390.o `test -f 'ns8390.c' || echo '$(srcdir)/'`ns8390.c
+-
+-libdrivers_a-ns8390.obj: ns8390.c
+-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -MT libdrivers_a-ns8390.obj -MD -MP -MF $(DEPDIR)/libdrivers_a-ns8390.Tpo -c -o libdrivers_a-ns8390.obj `if test -f 'ns8390.c'; then $(CYGPATH_W) 'ns8390.c'; else $(CYGPATH_W) '$(srcdir)/ns8390.c'; fi`
+-@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libdrivers_a-ns8390.Tpo $(DEPDIR)/libdrivers_a-ns8390.Po
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ns8390.c' object='libdrivers_a-ns8390.obj' libtool=no @AMDEPBACKSLASH@
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -c -o libdrivers_a-ns8390.obj `if test -f 'ns8390.c'; then $(CYGPATH_W) 'ns8390.c'; else $(CYGPATH_W) '$(srcdir)/ns8390.c'; fi`
+-
+-libdrivers_a-otulip.o: otulip.c
+-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -MT libdrivers_a-otulip.o -MD -MP -MF $(DEPDIR)/libdrivers_a-otulip.Tpo -c -o libdrivers_a-otulip.o `test -f 'otulip.c' || echo '$(srcdir)/'`otulip.c
+-@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libdrivers_a-otulip.Tpo $(DEPDIR)/libdrivers_a-otulip.Po
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='otulip.c' object='libdrivers_a-otulip.o' libtool=no @AMDEPBACKSLASH@
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -c -o libdrivers_a-otulip.o `test -f 'otulip.c' || echo '$(srcdir)/'`otulip.c
+-
+-libdrivers_a-otulip.obj: otulip.c
+-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -MT libdrivers_a-otulip.obj -MD -MP -MF $(DEPDIR)/libdrivers_a-otulip.Tpo -c -o libdrivers_a-otulip.obj `if test -f 'otulip.c'; then $(CYGPATH_W) 'otulip.c'; else $(CYGPATH_W) '$(srcdir)/otulip.c'; fi`
+-@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libdrivers_a-otulip.Tpo $(DEPDIR)/libdrivers_a-otulip.Po
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='otulip.c' object='libdrivers_a-otulip.obj' libtool=no @AMDEPBACKSLASH@
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -c -o libdrivers_a-otulip.obj `if test -f 'otulip.c'; then $(CYGPATH_W) 'otulip.c'; else $(CYGPATH_W) '$(srcdir)/otulip.c'; fi`
+-
+-libdrivers_a-rtl8139.o: rtl8139.c
+-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -MT libdrivers_a-rtl8139.o -MD -MP -MF $(DEPDIR)/libdrivers_a-rtl8139.Tpo -c -o libdrivers_a-rtl8139.o `test -f 'rtl8139.c' || echo '$(srcdir)/'`rtl8139.c
+-@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libdrivers_a-rtl8139.Tpo $(DEPDIR)/libdrivers_a-rtl8139.Po
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='rtl8139.c' object='libdrivers_a-rtl8139.o' libtool=no @AMDEPBACKSLASH@
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -c -o libdrivers_a-rtl8139.o `test -f 'rtl8139.c' || echo '$(srcdir)/'`rtl8139.c
+-
+-libdrivers_a-rtl8139.obj: rtl8139.c
+-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -MT libdrivers_a-rtl8139.obj -MD -MP -MF $(DEPDIR)/libdrivers_a-rtl8139.Tpo -c -o libdrivers_a-rtl8139.obj `if test -f 'rtl8139.c'; then $(CYGPATH_W) 'rtl8139.c'; else $(CYGPATH_W) '$(srcdir)/rtl8139.c'; fi`
+-@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libdrivers_a-rtl8139.Tpo $(DEPDIR)/libdrivers_a-rtl8139.Po
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='rtl8139.c' object='libdrivers_a-rtl8139.obj' libtool=no @AMDEPBACKSLASH@
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -c -o libdrivers_a-rtl8139.obj `if test -f 'rtl8139.c'; then $(CYGPATH_W) 'rtl8139.c'; else $(CYGPATH_W) '$(srcdir)/rtl8139.c'; fi`
+-
+-libdrivers_a-sis900.o: sis900.c
+-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -MT libdrivers_a-sis900.o -MD -MP -MF $(DEPDIR)/libdrivers_a-sis900.Tpo -c -o libdrivers_a-sis900.o `test -f 'sis900.c' || echo '$(srcdir)/'`sis900.c
+-@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libdrivers_a-sis900.Tpo $(DEPDIR)/libdrivers_a-sis900.Po
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='sis900.c' object='libdrivers_a-sis900.o' libtool=no @AMDEPBACKSLASH@
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -c -o libdrivers_a-sis900.o `test -f 'sis900.c' || echo '$(srcdir)/'`sis900.c
+-
+-libdrivers_a-sis900.obj: sis900.c
+-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -MT libdrivers_a-sis900.obj -MD -MP -MF $(DEPDIR)/libdrivers_a-sis900.Tpo -c -o libdrivers_a-sis900.obj `if test -f 'sis900.c'; then $(CYGPATH_W) 'sis900.c'; else $(CYGPATH_W) '$(srcdir)/sis900.c'; fi`
+-@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libdrivers_a-sis900.Tpo $(DEPDIR)/libdrivers_a-sis900.Po
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='sis900.c' object='libdrivers_a-sis900.obj' libtool=no @AMDEPBACKSLASH@
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -c -o libdrivers_a-sis900.obj `if test -f 'sis900.c'; then $(CYGPATH_W) 'sis900.c'; else $(CYGPATH_W) '$(srcdir)/sis900.c'; fi`
+-
+-libdrivers_a-sk_g16.o: sk_g16.c
+-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -MT libdrivers_a-sk_g16.o -MD -MP -MF $(DEPDIR)/libdrivers_a-sk_g16.Tpo -c -o libdrivers_a-sk_g16.o `test -f 'sk_g16.c' || echo '$(srcdir)/'`sk_g16.c
+-@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libdrivers_a-sk_g16.Tpo $(DEPDIR)/libdrivers_a-sk_g16.Po
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='sk_g16.c' object='libdrivers_a-sk_g16.o' libtool=no @AMDEPBACKSLASH@
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -c -o libdrivers_a-sk_g16.o `test -f 'sk_g16.c' || echo '$(srcdir)/'`sk_g16.c
+-
+-libdrivers_a-sk_g16.obj: sk_g16.c
+-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -MT libdrivers_a-sk_g16.obj -MD -MP -MF $(DEPDIR)/libdrivers_a-sk_g16.Tpo -c -o libdrivers_a-sk_g16.obj `if test -f 'sk_g16.c'; then $(CYGPATH_W) 'sk_g16.c'; else $(CYGPATH_W) '$(srcdir)/sk_g16.c'; fi`
+-@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libdrivers_a-sk_g16.Tpo $(DEPDIR)/libdrivers_a-sk_g16.Po
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='sk_g16.c' object='libdrivers_a-sk_g16.obj' libtool=no @AMDEPBACKSLASH@
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -c -o libdrivers_a-sk_g16.obj `if test -f 'sk_g16.c'; then $(CYGPATH_W) 'sk_g16.c'; else $(CYGPATH_W) '$(srcdir)/sk_g16.c'; fi`
+-
+-libdrivers_a-smc9000.o: smc9000.c
+-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -MT libdrivers_a-smc9000.o -MD -MP -MF $(DEPDIR)/libdrivers_a-smc9000.Tpo -c -o libdrivers_a-smc9000.o `test -f 'smc9000.c' || echo '$(srcdir)/'`smc9000.c
+-@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libdrivers_a-smc9000.Tpo $(DEPDIR)/libdrivers_a-smc9000.Po
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='smc9000.c' object='libdrivers_a-smc9000.o' libtool=no @AMDEPBACKSLASH@
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -c -o libdrivers_a-smc9000.o `test -f 'smc9000.c' || echo '$(srcdir)/'`smc9000.c
+-
+-libdrivers_a-smc9000.obj: smc9000.c
+-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -MT libdrivers_a-smc9000.obj -MD -MP -MF $(DEPDIR)/libdrivers_a-smc9000.Tpo -c -o libdrivers_a-smc9000.obj `if test -f 'smc9000.c'; then $(CYGPATH_W) 'smc9000.c'; else $(CYGPATH_W) '$(srcdir)/smc9000.c'; fi`
+-@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libdrivers_a-smc9000.Tpo $(DEPDIR)/libdrivers_a-smc9000.Po
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='smc9000.c' object='libdrivers_a-smc9000.obj' libtool=no @AMDEPBACKSLASH@
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -c -o libdrivers_a-smc9000.obj `if test -f 'smc9000.c'; then $(CYGPATH_W) 'smc9000.c'; else $(CYGPATH_W) '$(srcdir)/smc9000.c'; fi`
+-
+-libdrivers_a-tiara.o: tiara.c
+-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -MT libdrivers_a-tiara.o -MD -MP -MF $(DEPDIR)/libdrivers_a-tiara.Tpo -c -o libdrivers_a-tiara.o `test -f 'tiara.c' || echo '$(srcdir)/'`tiara.c
+-@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libdrivers_a-tiara.Tpo $(DEPDIR)/libdrivers_a-tiara.Po
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='tiara.c' object='libdrivers_a-tiara.o' libtool=no @AMDEPBACKSLASH@
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -c -o libdrivers_a-tiara.o `test -f 'tiara.c' || echo '$(srcdir)/'`tiara.c
+-
+-libdrivers_a-tiara.obj: tiara.c
+-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -MT libdrivers_a-tiara.obj -MD -MP -MF $(DEPDIR)/libdrivers_a-tiara.Tpo -c -o libdrivers_a-tiara.obj `if test -f 'tiara.c'; then $(CYGPATH_W) 'tiara.c'; else $(CYGPATH_W) '$(srcdir)/tiara.c'; fi`
+-@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libdrivers_a-tiara.Tpo $(DEPDIR)/libdrivers_a-tiara.Po
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='tiara.c' object='libdrivers_a-tiara.obj' libtool=no @AMDEPBACKSLASH@
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -c -o libdrivers_a-tiara.obj `if test -f 'tiara.c'; then $(CYGPATH_W) 'tiara.c'; else $(CYGPATH_W) '$(srcdir)/tiara.c'; fi`
+-
+-libdrivers_a-tlan.o: tlan.c
+-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -MT libdrivers_a-tlan.o -MD -MP -MF $(DEPDIR)/libdrivers_a-tlan.Tpo -c -o libdrivers_a-tlan.o `test -f 'tlan.c' || echo '$(srcdir)/'`tlan.c
+-@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libdrivers_a-tlan.Tpo $(DEPDIR)/libdrivers_a-tlan.Po
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='tlan.c' object='libdrivers_a-tlan.o' libtool=no @AMDEPBACKSLASH@
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -c -o libdrivers_a-tlan.o `test -f 'tlan.c' || echo '$(srcdir)/'`tlan.c
+-
+-libdrivers_a-tlan.obj: tlan.c
+-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -MT libdrivers_a-tlan.obj -MD -MP -MF $(DEPDIR)/libdrivers_a-tlan.Tpo -c -o libdrivers_a-tlan.obj `if test -f 'tlan.c'; then $(CYGPATH_W) 'tlan.c'; else $(CYGPATH_W) '$(srcdir)/tlan.c'; fi`
+-@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libdrivers_a-tlan.Tpo $(DEPDIR)/libdrivers_a-tlan.Po
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='tlan.c' object='libdrivers_a-tlan.obj' libtool=no @AMDEPBACKSLASH@
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -c -o libdrivers_a-tlan.obj `if test -f 'tlan.c'; then $(CYGPATH_W) 'tlan.c'; else $(CYGPATH_W) '$(srcdir)/tlan.c'; fi`
+-
+-libdrivers_a-tulip.o: tulip.c
+-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -MT libdrivers_a-tulip.o -MD -MP -MF $(DEPDIR)/libdrivers_a-tulip.Tpo -c -o libdrivers_a-tulip.o `test -f 'tulip.c' || echo '$(srcdir)/'`tulip.c
+-@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libdrivers_a-tulip.Tpo $(DEPDIR)/libdrivers_a-tulip.Po
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='tulip.c' object='libdrivers_a-tulip.o' libtool=no @AMDEPBACKSLASH@
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -c -o libdrivers_a-tulip.o `test -f 'tulip.c' || echo '$(srcdir)/'`tulip.c
+-
+-libdrivers_a-tulip.obj: tulip.c
+-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -MT libdrivers_a-tulip.obj -MD -MP -MF $(DEPDIR)/libdrivers_a-tulip.Tpo -c -o libdrivers_a-tulip.obj `if test -f 'tulip.c'; then $(CYGPATH_W) 'tulip.c'; else $(CYGPATH_W) '$(srcdir)/tulip.c'; fi`
+-@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libdrivers_a-tulip.Tpo $(DEPDIR)/libdrivers_a-tulip.Po
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='tulip.c' object='libdrivers_a-tulip.obj' libtool=no @AMDEPBACKSLASH@
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -c -o libdrivers_a-tulip.obj `if test -f 'tulip.c'; then $(CYGPATH_W) 'tulip.c'; else $(CYGPATH_W) '$(srcdir)/tulip.c'; fi`
+-
+-libdrivers_a-via-rhine.o: via-rhine.c
+-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -MT libdrivers_a-via-rhine.o -MD -MP -MF $(DEPDIR)/libdrivers_a-via-rhine.Tpo -c -o libdrivers_a-via-rhine.o `test -f 'via-rhine.c' || echo '$(srcdir)/'`via-rhine.c
+-@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libdrivers_a-via-rhine.Tpo $(DEPDIR)/libdrivers_a-via-rhine.Po
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='via-rhine.c' object='libdrivers_a-via-rhine.o' libtool=no @AMDEPBACKSLASH@
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -c -o libdrivers_a-via-rhine.o `test -f 'via-rhine.c' || echo '$(srcdir)/'`via-rhine.c
+-
+-libdrivers_a-via-rhine.obj: via-rhine.c
+-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -MT libdrivers_a-via-rhine.obj -MD -MP -MF $(DEPDIR)/libdrivers_a-via-rhine.Tpo -c -o libdrivers_a-via-rhine.obj `if test -f 'via-rhine.c'; then $(CYGPATH_W) 'via-rhine.c'; else $(CYGPATH_W) '$(srcdir)/via-rhine.c'; fi`
+-@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libdrivers_a-via-rhine.Tpo $(DEPDIR)/libdrivers_a-via-rhine.Po
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='via-rhine.c' object='libdrivers_a-via-rhine.obj' libtool=no @AMDEPBACKSLASH@
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -c -o libdrivers_a-via-rhine.obj `if test -f 'via-rhine.c'; then $(CYGPATH_W) 'via-rhine.c'; else $(CYGPATH_W) '$(srcdir)/via-rhine.c'; fi`
+-
+-libdrivers_a-w89c840.o: w89c840.c
+-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -MT libdrivers_a-w89c840.o -MD -MP -MF $(DEPDIR)/libdrivers_a-w89c840.Tpo -c -o libdrivers_a-w89c840.o `test -f 'w89c840.c' || echo '$(srcdir)/'`w89c840.c
+-@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libdrivers_a-w89c840.Tpo $(DEPDIR)/libdrivers_a-w89c840.Po
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='w89c840.c' object='libdrivers_a-w89c840.o' libtool=no @AMDEPBACKSLASH@
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -c -o libdrivers_a-w89c840.o `test -f 'w89c840.c' || echo '$(srcdir)/'`w89c840.c
+-
+-libdrivers_a-w89c840.obj: w89c840.c
+-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -MT libdrivers_a-w89c840.obj -MD -MP -MF $(DEPDIR)/libdrivers_a-w89c840.Tpo -c -o libdrivers_a-w89c840.obj `if test -f 'w89c840.c'; then $(CYGPATH_W) 'w89c840.c'; else $(CYGPATH_W) '$(srcdir)/w89c840.c'; fi`
+-@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libdrivers_a-w89c840.Tpo $(DEPDIR)/libdrivers_a-w89c840.Po
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='w89c840.c' object='libdrivers_a-w89c840.obj' libtool=no @AMDEPBACKSLASH@
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdrivers_a_CFLAGS) $(CFLAGS) -c -o libdrivers_a-w89c840.obj `if test -f 'w89c840.c'; then $(CYGPATH_W) 'w89c840.c'; else $(CYGPATH_W) '$(srcdir)/w89c840.c'; fi`
+-
+-ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
+- list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+- unique=`for i in $$list; do \
+- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+- done | \
+- $(AWK) ' { files[$$0] = 1; } \
+- END { for (i in files) print i; }'`; \
+- mkid -fID $$unique
+-tags: TAGS
+-
+-TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
+- $(TAGS_FILES) $(LISP)
+- tags=; \
+- here=`pwd`; \
+- list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+- unique=`for i in $$list; do \
+- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+- done | \
+- $(AWK) ' { files[$$0] = 1; } \
+- END { for (i in files) print i; }'`; \
+- if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
+- test -n "$$unique" || unique=$$empty_fix; \
+- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+- $$tags $$unique; \
+- fi
+-ctags: CTAGS
+-CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
+- $(TAGS_FILES) $(LISP)
+- tags=; \
+- here=`pwd`; \
+- list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+- unique=`for i in $$list; do \
+- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+- done | \
+- $(AWK) ' { files[$$0] = 1; } \
+- END { for (i in files) print i; }'`; \
+- test -z "$(CTAGS_ARGS)$$tags$$unique" \
+- || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
+- $$tags $$unique
+-
+-GTAGS:
+- here=`$(am__cd) $(top_builddir) && pwd` \
+- && cd $(top_srcdir) \
+- && gtags -i $(GTAGS_ARGS) $$here
+-
+-distclean-tags:
+- -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
+-
+-distdir: $(DISTFILES)
+- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+- list='$(DISTFILES)'; \
+- dist_files=`for file in $$list; do echo $$file; done | \
+- sed -e "s|^$$srcdirstrip/||;t" \
+- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+- case $$dist_files in \
+- */*) $(MKDIR_P) `echo "$$dist_files" | \
+- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+- sort -u` ;; \
+- esac; \
+- for file in $$dist_files; do \
+- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+- if test -d $$d/$$file; then \
+- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+- cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
+- fi; \
+- cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
+- else \
+- test -f $(distdir)/$$file \
+- || cp -p $$d/$$file $(distdir)/$$file \
+- || exit 1; \
+- fi; \
+- done
+-check-am: all-am
+-check: check-am
+-all-am: Makefile $(LIBRARIES)
+-installdirs:
+-install: install-am
+-install-exec: install-exec-am
+-install-data: install-data-am
+-uninstall: uninstall-am
+-
+-install-am: all-am
+- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+-
+-installcheck: installcheck-am
+-install-strip:
+- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+- `test -z '$(STRIP)' || \
+- echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
+-mostlyclean-generic:
+-
+-clean-generic:
+-
+-distclean-generic:
+- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+-
+-maintainer-clean-generic:
+- @echo "This command is intended for maintainers to use"
+- @echo "it deletes files that may require special tools to rebuild."
+-clean: clean-am
+-
+-clean-am: clean-generic clean-noinstLIBRARIES mostlyclean-am
+-
+-distclean: distclean-am
+- -rm -rf ./$(DEPDIR)
+- -rm -f Makefile
+-distclean-am: clean-am distclean-compile distclean-generic \
+- distclean-tags
+-
+-dvi: dvi-am
+-
+-dvi-am:
+-
+-html: html-am
+-
+-info: info-am
+-
+-info-am:
+-
+-install-data-am:
+-
+-install-dvi: install-dvi-am
+-
+-install-exec-am:
+-
+-install-html: install-html-am
+-
+-install-info: install-info-am
+-
+-install-man:
+-
+-install-pdf: install-pdf-am
+-
+-install-ps: install-ps-am
+-
+-installcheck-am:
+-
+-maintainer-clean: maintainer-clean-am
+- -rm -rf ./$(DEPDIR)
+- -rm -f Makefile
+-maintainer-clean-am: distclean-am maintainer-clean-generic
+-
+-mostlyclean: mostlyclean-am
+-
+-mostlyclean-am: mostlyclean-compile mostlyclean-generic
+-
+-pdf: pdf-am
+-
+-pdf-am:
+-
+-ps: ps-am
+-
+-ps-am:
+-
+-uninstall-am:
+-
+-.MAKE: install-am install-strip
+-
+-.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
+- clean-noinstLIBRARIES ctags distclean distclean-compile \
+- distclean-generic distclean-tags distdir dvi dvi-am html \
+- html-am info info-am install install-am install-data \
+- install-data-am install-dvi install-dvi-am install-exec \
+- install-exec-am install-html install-html-am install-info \
+- install-info-am install-man install-pdf install-pdf-am \
+- install-ps install-ps-am install-strip installcheck \
+- installcheck-am installdirs maintainer-clean \
+- maintainer-clean-generic mostlyclean mostlyclean-compile \
+- mostlyclean-generic pdf pdf-am ps ps-am tags uninstall \
+- uninstall-am
+-
+-
+-# Is it really necessary to specify dependecies explicitly?
+-$(3c509_drivers): 3c509.c 3c509.h
+-$(3c509_drivers): %.o: 3c509.c
+- $(COMPILE) $(STAGE2_CFLAGS) -fno-builtin -nostdinc \
+- $(NET_EXTRAFLAGS) $($(basename $@)_o_CFLAGS) -o $@ -c $<
+-
+-$(3c595_drivers): 3c595.c 3c595.h
+-$(3c595_drivers): %.o: 3c595.c
+- $(COMPILE) $(STAGE2_CFLAGS) -fno-builtin -nostdinc \
+- $(NET_EXTRAFLAGS) $($(basename $@)_o_CFLAGS) -o $@ -c $<
+-
+-$(3c90x_drivers): 3c90x.c
+-$(3c90x_drivers): %.o: 3c90x.c
+- $(COMPILE) $(STAGE2_CFLAGS) -fno-builtin -nostdinc \
+- $(NET_EXTRAFLAGS) $($(basename $@)_o_CFLAGS) -o $@ -c $<
+-
+-$(cs89x0_drivers): cs89x0.c cs89x0.h
+-$(cs89x0_drivers): %.o: cs89x0.c
+- $(COMPILE) $(STAGE2_CFLAGS) -fno-builtin -nostdinc \
+- $(NET_EXTRAFLAGS) $($(basename $@)_o_CFLAGS) -o $@ -c $<
+-
+-$(davicom_drivers): davicom.c
+-$(davicom_drivers): %.o: davicom.c
+- $(COMPILE) $(STAGE2_CFLAGS) -fno-builtin -nostdinc \
+- $(NET_EXTRAFLAGS) $($(basename $@)_o_CFLAGS) -o $@ -c $<
+-
+-$(depca_drivers): depca.c
+-$(depca_drivers): %.o: depca.c
+- $(COMPILE) $(STAGE2_CFLAGS) -fno-builtin -nostdinc \
+- $(NET_EXTRAFLAGS) $($(basename $@)_o_CFLAGS) -o $@ -c $<
+-
+-$(eepro_drivers): eepro.c
+-$(eepro_drivers): %.o: eepro.c
+- $(COMPILE) $(STAGE2_CFLAGS) -fno-builtin -nostdinc \
+- $(NET_EXTRAFLAGS) $($(basename $@)_o_CFLAGS) -o $@ -c $<
+-
+-$(eepro100_drivers): eepro100.c
+-$(eepro100_drivers): %.o: eepro100.c
+- $(COMPILE) $(STAGE2_CFLAGS) -fno-builtin -nostdinc \
+- $(NET_EXTRAFLAGS) $($(basename $@)_o_CFLAGS) -o $@ -c $<
+-
+-$(epic100_drivers): epic100.c epic100.h
+-$(epic100_drivers): %.o: epic100.c
+- $(COMPILE) $(STAGE2_CFLAGS) -fno-builtin -nostdinc \
+- $(NET_EXTRAFLAGS) $($(basename $@)_o_CFLAGS) -o $@ -c $<
+-
+-#$(fa311_drivers): fa311.c
+-#$(fa311_drivers): %.o: fa311.c
+-# $(COMPILE) $(STAGE2_CFLAGS) -fno-builtin -nostdinc \
+-# $(NET_EXTRAFLAGS) $($(basename $@)_o_CFLAGS) -o $@ -c $<
+-
+-$(i82586_drivers): i82586.c
+-$(i82586_drivers): %.o: i82586.c
+- $(COMPILE) $(STAGE2_CFLAGS) -fno-builtin -nostdinc \
+- $(NET_EXTRAFLAGS) $($(basename $@)_o_CFLAGS) -o $@ -c $<
+-
+-$(lance_drivers): lance.c
+-$(lance_drivers): %.o: lance.c
+- $(COMPILE) $(STAGE2_CFLAGS) -fno-builtin -nostdinc \
+- $(NET_EXTRAFLAGS) $($(basename $@)_o_CFLAGS) -o $@ -c $<
+-
+-$(natsemi_drivers): natsemi.c
+-$(natsemi_drivers): %.o: natsemi.c
+- $(COMPILE) $(STAGE2_CFLAGS) -fno-builtin -nostdinc \
+- $(NET_EXTRAFLAGS) $($(basename $@)_o_CFLAGS) -o $@ -c $<
+-
+-$(ni5010_drivers): ni5010.c
+-$(ni5010_drivers): %.o: ni5010.c
+- $(COMPILE) $(STAGE2_CFLAGS) -fno-builtin -nostdinc \
+- $(NET_EXTRAFLAGS) $($(basename $@)_o_CFLAGS) -o $@ -c $<
+-
+-$(ns8390_drivers): ns8390.c ns8390.h
+-$(ns8390_drivers): %.o: ns8390.c
+- $(COMPILE) $(STAGE2_CFLAGS) -fno-builtin -nostdinc \
+- $(NET_EXTRAFLAGS) $($(basename $@)_o_CFLAGS) -o $@ -c $<
+-
+-$(otulip_drivers): otulip.c otulip.h
+-$(otulip_drivers): %.o: otulip.c
+- $(COMPILE) $(STAGE2_CFLAGS) -fno-builtin -nostdinc \
+- $(NET_EXTRAFLAGS) $($(basename $@)_o_CFLAGS) -o $@ -c $<
+-
+-$(rtl8139_drivers): rtl8139.c
+-$(rtl8139_drivers): %.o: rtl8139.c
+- $(COMPILE) $(STAGE2_CFLAGS) -fno-builtin -nostdinc \
+- $(NET_EXTRAFLAGS) $($(basename $@)_o_CFLAGS) -o $@ -c $<
+-
+-$(sis900_drivers): sis900.c
+-$(sis900_drivers): %.o: sis900.c sis900.h
+- $(COMPILE) $(STAGE2_CFLAGS) -fno-builtin -nostdinc \
+- $(NET_EXTRAFLAGS) $($(basename $@)_o_CFLAGS) -o $@ -c $<
+-
+-$(sk_g16_drivers): sk_g16.c sk_g16.h
+-$(sk_g16_drivers): %.o: sk_g16.c
+- $(COMPILE) $(STAGE2_CFLAGS) -fno-builtin -nostdinc \
+- $(NET_EXTRAFLAGS) $($(basename $@)_o_CFLAGS) -o $@ -c $<
+-
+-$(smc9000_drivers): smc9000.c smc9000.h
+-$(smc9000_drivers): %.o: smc9000.c
+- $(COMPILE) $(STAGE2_CFLAGS) -fno-builtin -nostdinc \
+- $(NET_EXTRAFLAGS) $($(basename $@)_o_CFLAGS) -o $@ -c $<
+-
+-$(tiara_drivers): tiara.c
+-$(tiara_drivers): %.o: tiara.c
+- $(COMPILE) $(STAGE2_CFLAGS) -fno-builtin -nostdinc \
+- $(NET_EXTRAFLAGS) $($(basename $@)_o_CFLAGS) -o $@ -c $<
+-
+-#$(tlan_drivers): tlan.c
+-#$(tlan_drivers): %.o: tlan.c
+-# $(COMPILE) $(STAGE2_CFLAGS) -fno-builtin -nostdinc \
+-# $(NET_EXTRAFLAGS) $($(basename $@)_o_CFLAGS) -o $@ -c $<
+-
+-$(tulip_drivers): tulip.c
+-$(tulip_drivers): %.o: tulip.c
+- $(COMPILE) $(STAGE2_CFLAGS) -fno-builtin -nostdinc \
+- $(NET_EXTRAFLAGS) $($(basename $@)_o_CFLAGS) -o $@ -c $<
+-
+-$(via_rhine_drivers): via-rhine.c
+-$(via_rhine_drivers): %.o: via-rhine.c
+- $(COMPILE) $(STAGE2_CFLAGS) -fno-builtin -nostdinc \
+- $(NET_EXTRAFLAGS) $($(basename $@)_o_CFLAGS) -o $@ -c $<
+-
+-$(w89c840_drivers): w89c840.c
+-$(w89c840_drivers): %.o: w89c840.c
+- $(COMPILE) $(STAGE2_CFLAGS) -fno-builtin -nostdinc \
+- $(NET_EXTRAFLAGS) $($(basename $@)_o_CFLAGS) -o $@ -c $<
+-# Tell versions [3.59,3.63) of GNU make to not export all variables.
+-# Otherwise a system limit (for SysV at least) may be exceeded.
+-.NOEXPORT:
+diff --git a/netboot/timer.h b/netboot/timer.h
+index b44962a..3d64ada 100644
+--- a/netboot/timer.h
++++ b/netboot/timer.h
+@@ -10,6 +10,8 @@
+ #ifndef TIMER_H
+ #define TIMER_H
+
++#include "linux-asm-io.h"
++
+ /* Ports for the 8254 timer chip */
+ #define TIMER2_PORT 0x42
+ #define TIMER_MODE_PORT 0x43
+@@ -49,12 +51,12 @@
+ /* Ticks must be between 0 and 65535 (0 == 65536)
+ because it is a 16 bit counter */
+ extern void load_timer2(unsigned int ticks);
+-extern inline int timer2_running(void)
++static inline int timer2_running(void)
+ {
+ return ((inb(PPC_PORTB) & PPCB_T2OUT) == 0);
+ }
+
+-extern inline void waiton_timer2(unsigned int ticks)
++static inline void waiton_timer2(unsigned int ticks)
+ {
+ load_timer2(ticks);
+ while ((inb(PPC_PORTB) & PPCB_T2OUT) == 0)
+diff --git a/stage1/Makefile.in b/stage1/Makefile.in
+deleted file mode 100644
+index c7e251b..0000000
+--- a/stage1/Makefile.in
++++ /dev/null
+@@ -1,450 +0,0 @@
+-# Makefile.in generated by automake 1.10 from Makefile.am.
+-# @configure_input@
+-
+-# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+-# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
+-# This Makefile.in is free software; the Free Software Foundation
+-# gives unlimited permission to copy and/or distribute it,
+-# with or without modifications, as long as this notice is preserved.
+-
+-# This program is distributed in the hope that it will be useful,
+-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+-# PARTICULAR PURPOSE.
+-
+-@SET_MAKE@
+-
+-
+-VPATH = @srcdir@
+-pkglibdir = $(libdir)/@PACKAGE@
+-pkgincludedir = $(includedir)/@PACKAGE@
+-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+-install_sh_DATA = $(install_sh) -c -m 644
+-install_sh_PROGRAM = $(install_sh) -c
+-install_sh_SCRIPT = $(install_sh) -c
+-INSTALL_HEADER = $(INSTALL_DATA)
+-transform = $(program_transform_name)
+-NORMAL_INSTALL = :
+-PRE_INSTALL = :
+-POST_INSTALL = :
+-NORMAL_UNINSTALL = :
+-PRE_UNINSTALL = :
+-POST_UNINSTALL = :
+-build_triplet = @build@
+-host_triplet = @host@
+-noinst_PROGRAMS = stage1.exec$(EXEEXT)
+-subdir = stage1
+-DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
+-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+-am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
+- $(top_srcdir)/configure.in
+-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+- $(ACLOCAL_M4)
+-mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
+-CONFIG_HEADER = $(top_builddir)/config.h
+-CONFIG_CLEAN_FILES =
+-PROGRAMS = $(noinst_PROGRAMS)
+-am_stage1_exec_OBJECTS = stage1.$(OBJEXT)
+-stage1_exec_OBJECTS = $(am_stage1_exec_OBJECTS)
+-stage1_exec_LDADD = $(LDADD)
+-DEFAULT_INCLUDES = -I. -I$(top_builddir)@am__isrc@
+-depcomp = $(SHELL) $(top_srcdir)/depcomp
+-am__depfiles_maybe = depfiles
+-CPPASCOMPILE = $(CCAS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
+- $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CCASFLAGS) $(CCASFLAGS)
+-COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
+- $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+-CCLD = $(CC)
+-LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
+-SOURCES = $(stage1_exec_SOURCES)
+-DIST_SOURCES = $(stage1_exec_SOURCES)
+-am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
+-am__vpath_adj = case $$p in \
+- $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
+- *) f=$$p;; \
+- esac;
+-am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
+-am__installdirs = "$(DESTDIR)$(pkgdatadir)"
+-nodist_pkgdataDATA_INSTALL = $(INSTALL_DATA)
+-DATA = $(nodist_pkgdata_DATA)
+-ETAGS = etags
+-CTAGS = ctags
+-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+-pkgdatadir = $(datadir)/$(PACKAGE)/$(host_cpu)-$(host_vendor)
+-ACLOCAL = @ACLOCAL@
+-AMTAR = @AMTAR@
+-AUTOCONF = @AUTOCONF@
+-AUTOHEADER = @AUTOHEADER@
+-AUTOMAKE = @AUTOMAKE@
+-AWK = @AWK@
+-CC = @CC@
+-CCAS = @CCAS@
+-CCASDEPMODE = @CCASDEPMODE@
+-CCASFLAGS = @CCASFLAGS@
+-CCDEPMODE = @CCDEPMODE@
+-CFLAGS = @CFLAGS@
+-CPP = @CPP@
+-CPPFLAGS = @CPPFLAGS@
+-CYGPATH_W = @CYGPATH_W@
+-DEFS = @DEFS@
+-DEPDIR = @DEPDIR@
+-ECHO_C = @ECHO_C@
+-ECHO_N = @ECHO_N@
+-ECHO_T = @ECHO_T@
+-EGREP = @EGREP@
+-EXEEXT = @EXEEXT@
+-FSYS_CFLAGS = @FSYS_CFLAGS@
+-GREP = @GREP@
+-GRUB_CFLAGS = @GRUB_CFLAGS@
+-GRUB_LIBS = @GRUB_LIBS@
+-INSTALL = @INSTALL@
+-INSTALL_DATA = @INSTALL_DATA@
+-INSTALL_PROGRAM = @INSTALL_PROGRAM@
+-INSTALL_SCRIPT = @INSTALL_SCRIPT@
+-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+-LDFLAGS = $(LOADER_LDFLAGS) -nostdlib -Wl,-N,-Ttext,7C00
+-LIBOBJS = @LIBOBJS@
+-LIBS = @LIBS@
+-LOADER_LDFLAGS = @LOADER_LDFLAGS@
+-LTLIBOBJS = @LTLIBOBJS@
+-MAINT = @MAINT@
+-MAKEINFO = @MAKEINFO@
+-MKDIR_P = @MKDIR_P@
+-NETBOOT_DRIVERS = @NETBOOT_DRIVERS@
+-NET_CFLAGS = @NET_CFLAGS@
+-NET_EXTRAFLAGS = @NET_EXTRAFLAGS@
+-OBJCOPY = @OBJCOPY@
+-OBJEXT = @OBJEXT@
+-PACKAGE = @PACKAGE@
+-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+-PACKAGE_NAME = @PACKAGE_NAME@
+-PACKAGE_STRING = @PACKAGE_STRING@
+-PACKAGE_TARNAME = @PACKAGE_TARNAME@
+-PACKAGE_VERSION = @PACKAGE_VERSION@
+-PATH_SEPARATOR = @PATH_SEPARATOR@
+-PERL = @PERL@
+-RANLIB = @RANLIB@
+-SET_MAKE = @SET_MAKE@
+-SHELL = @SHELL@
+-STAGE1_CFLAGS = @STAGE1_CFLAGS@
+-STAGE2_CFLAGS = @STAGE2_CFLAGS@
+-STRIP = @STRIP@
+-VERSION = @VERSION@
+-abs_builddir = @abs_builddir@
+-abs_srcdir = @abs_srcdir@
+-abs_top_builddir = @abs_top_builddir@
+-abs_top_srcdir = @abs_top_srcdir@
+-ac_ct_CC = @ac_ct_CC@
+-am__include = @am__include@
+-am__leading_dot = @am__leading_dot@
+-am__quote = @am__quote@
+-am__tar = @am__tar@
+-am__untar = @am__untar@
+-bindir = @bindir@
+-build = @build@
+-build_alias = @build_alias@
+-build_cpu = @build_cpu@
+-build_os = @build_os@
+-build_vendor = @build_vendor@
+-builddir = @builddir@
+-datadir = @datadir@
+-datarootdir = @datarootdir@
+-docdir = @docdir@
+-dvidir = @dvidir@
+-exec_prefix = @exec_prefix@
+-host = @host@
+-host_alias = @host_alias@
+-host_cpu = @host_cpu@
+-host_os = @host_os@
+-host_vendor = @host_vendor@
+-htmldir = @htmldir@
+-includedir = @includedir@
+-infodir = @infodir@
+-install_sh = @install_sh@
+-libdir = @libdir@
+-libexecdir = @libexecdir@
+-localedir = @localedir@
+-localstatedir = @localstatedir@
+-mandir = @mandir@
+-mkdir_p = @mkdir_p@
+-oldincludedir = @oldincludedir@
+-pdfdir = @pdfdir@
+-prefix = @prefix@
+-program_transform_name = @program_transform_name@
+-psdir = @psdir@
+-sbindir = @sbindir@
+-sharedstatedir = @sharedstatedir@
+-srcdir = @srcdir@
+-sysconfdir = @sysconfdir@
+-target_alias = @target_alias@
+-top_builddir = @top_builddir@
+-top_srcdir = @top_srcdir@
+-nodist_pkgdata_DATA = stage1
+-CLEANFILES = $(nodist_pkgdata_DATA)
+-
+-# We can't use builtins or standard includes.
+-AM_CCASFLAGS = $(STAGE1_CFLAGS) -fno-builtin -nostdinc
+-stage1_exec_SOURCES = stage1.S stage1.h
+-SUFFIXES = .exec
+-all: all-am
+-
+-.SUFFIXES:
+-.SUFFIXES: .exec .S .o .obj
+-$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
+- @for dep in $?; do \
+- case '$(am__configure_deps)' in \
+- *$$dep*) \
+- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
+- && exit 0; \
+- exit 1;; \
+- esac; \
+- done; \
+- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu stage1/Makefile'; \
+- cd $(top_srcdir) && \
+- $(AUTOMAKE) --gnu stage1/Makefile
+-.PRECIOUS: Makefile
+-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+- @case '$?' in \
+- *config.status*) \
+- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+- *) \
+- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+- esac;
+-
+-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+-
+-$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
+- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+-$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
+- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+-
+-clean-noinstPROGRAMS:
+- -test -z "$(noinst_PROGRAMS)" || rm -f $(noinst_PROGRAMS)
+-stage1.exec$(EXEEXT): $(stage1_exec_OBJECTS) $(stage1_exec_DEPENDENCIES)
+- @rm -f stage1.exec$(EXEEXT)
+- $(LINK) $(stage1_exec_OBJECTS) $(stage1_exec_LDADD) $(LIBS)
+-
+-mostlyclean-compile:
+- -rm -f *.$(OBJEXT)
+-
+-distclean-compile:
+- -rm -f *.tab.c
+-
+-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/stage1.Po@am__quote@
+-
+-.S.o:
+-@am__fastdepCCAS_TRUE@ $(CPPASCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
+-@am__fastdepCCAS_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+-@AMDEP_TRUE@@am__fastdepCCAS_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+-@AMDEP_TRUE@@am__fastdepCCAS_FALSE@ DEPDIR=$(DEPDIR) $(CCASDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+-@am__fastdepCCAS_FALSE@ $(CPPASCOMPILE) -c -o $@ $<
+-
+-.S.obj:
+-@am__fastdepCCAS_TRUE@ $(CPPASCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
+-@am__fastdepCCAS_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+-@AMDEP_TRUE@@am__fastdepCCAS_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+-@AMDEP_TRUE@@am__fastdepCCAS_FALSE@ DEPDIR=$(DEPDIR) $(CCASDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+-@am__fastdepCCAS_FALSE@ $(CPPASCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
+-install-nodist_pkgdataDATA: $(nodist_pkgdata_DATA)
+- @$(NORMAL_INSTALL)
+- test -z "$(pkgdatadir)" || $(MKDIR_P) "$(DESTDIR)$(pkgdatadir)"
+- @list='$(nodist_pkgdata_DATA)'; for p in $$list; do \
+- if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+- f=$(am__strip_dir) \
+- echo " $(nodist_pkgdataDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(pkgdatadir)/$$f'"; \
+- $(nodist_pkgdataDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(pkgdatadir)/$$f"; \
+- done
+-
+-uninstall-nodist_pkgdataDATA:
+- @$(NORMAL_UNINSTALL)
+- @list='$(nodist_pkgdata_DATA)'; for p in $$list; do \
+- f=$(am__strip_dir) \
+- echo " rm -f '$(DESTDIR)$(pkgdatadir)/$$f'"; \
+- rm -f "$(DESTDIR)$(pkgdatadir)/$$f"; \
+- done
+-
+-ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
+- list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+- unique=`for i in $$list; do \
+- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+- done | \
+- $(AWK) ' { files[$$0] = 1; } \
+- END { for (i in files) print i; }'`; \
+- mkid -fID $$unique
+-tags: TAGS
+-
+-TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
+- $(TAGS_FILES) $(LISP)
+- tags=; \
+- here=`pwd`; \
+- list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+- unique=`for i in $$list; do \
+- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+- done | \
+- $(AWK) ' { files[$$0] = 1; } \
+- END { for (i in files) print i; }'`; \
+- if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
+- test -n "$$unique" || unique=$$empty_fix; \
+- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+- $$tags $$unique; \
+- fi
+-ctags: CTAGS
+-CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
+- $(TAGS_FILES) $(LISP)
+- tags=; \
+- here=`pwd`; \
+- list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+- unique=`for i in $$list; do \
+- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+- done | \
+- $(AWK) ' { files[$$0] = 1; } \
+- END { for (i in files) print i; }'`; \
+- test -z "$(CTAGS_ARGS)$$tags$$unique" \
+- || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
+- $$tags $$unique
+-
+-GTAGS:
+- here=`$(am__cd) $(top_builddir) && pwd` \
+- && cd $(top_srcdir) \
+- && gtags -i $(GTAGS_ARGS) $$here
+-
+-distclean-tags:
+- -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
+-
+-distdir: $(DISTFILES)
+- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+- list='$(DISTFILES)'; \
+- dist_files=`for file in $$list; do echo $$file; done | \
+- sed -e "s|^$$srcdirstrip/||;t" \
+- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+- case $$dist_files in \
+- */*) $(MKDIR_P) `echo "$$dist_files" | \
+- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+- sort -u` ;; \