]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
minor cleanups
authorBVK Chaitanya <bvk@dbook>
Thu, 19 Aug 2010 12:20:05 +0000 (17:50 +0530)
committerBVK Chaitanya <bvk@dbook>
Thu, 19 Aug 2010 12:20:05 +0000 (17:50 +0530)
configure.ac
tests/example_grub_script_test.in
tests/util/grub-shell-tester.in
tests/util/grub-shell.in

index 9b918f1bc8c8c57dba50df4f079b7c8147f2d36f..0923bf08f62ad28cb5d5ce853cfe415dedb8ed66 100644 (file)
 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
 # PARTICULAR PURPOSE.
 
+dnl This configure script is complicated, because GRUB needs to deal
+dnl with three potentially different types:
+dnl
+dnl   build  -- the environment for building GRUB
+dnl   host   -- the environment for running utilities
+dnl   target -- the environment for running GRUB
+dnl
+dnl In addition, GRUB needs to deal with a platform specification
+dnl which specifies the system running GRUB, such as firmware.
+dnl This is necessary because the target type in autoconf does not
+dnl describe such a system very well.
+dnl
+dnl The current strategy is to use variables with no prefix (such as
+dnl CC, CFLAGS, etc.) for the host type as well as the build type,
+dnl because GRUB does not need to use those variables for the build
+dnl type, so there is no conflict. Variables with the prefix "TARGET_"
+dnl (such as TARGET_CC, TARGET_CFLAGS, etc.) are used for the target
+dnl type.
+
 AC_INIT([GRUB],[1.98],[bug-grub@gnu.org])
 
 # We don't want -g -O2 by default in CFLAGS
@@ -879,10 +898,9 @@ else
   mkdir -p include/grub 2>/dev/null
   rm -rf include/grub/cpu
   cp -rp $srcdir/include/grub/$target_cpu include/grub/cpu 2>/dev/null
-  cp -rp $srcdir/grub-core/lib/$target_cpu grub-core/lib/target_cpu 2>/dev/null
   if test "$platform" != emu ; then
     rm -rf include/grub/machine
-    cp -rp $srcdir/grub-core/include/grub/$target_cpu/$platform include/grub/machine 2>/dev/null
+    cp -rp $srcdir/include/grub/$target_cpu/$platform include/grub/machine 2>/dev/null
   fi
 fi
 
index 6fa3dc98a9254eb2087ed62050e63f7e574868b6..93a90a18e34ab75c9b4288e6337a074ca8b9d3f5 100644 (file)
@@ -1,3 +1,3 @@
-#! @abs_top_builddir@/grub-shell-tester --modules=echo
+#! @builddir@/grub-shell-tester --modules=echo
 
 echo "hello world"
index d2a9af3abedec3f734441fa629fea6b9beba4e60..ed34a5e1753b1745029c5d7a85e7505fc970917d 100644 (file)
@@ -91,7 +91,7 @@ if [ "x${source}" = x ] ; then
 fi
 
 outfile1=`mktemp`
-@abs_top_builddir@/grub-shell --qemu-opts="${qemuopts}" --modules=${modules} ${source} >${outfile1}
+@builddir@/grub-shell --qemu-opts="${qemuopts}" --modules=${modules} ${source} >${outfile1}
 
 outfile2=`mktemp`
 bash ${source} >${outfile2}
index fc1e01ef53186b325b601f32f5d363bac9a3d452..3f25fe7bb7c28700b80c319aae1a3da8801d581e 100644 (file)
@@ -124,7 +124,7 @@ halt
 EOF
 
 isofile=`mktemp`
-sh @abs_top_builddir@/grub-mkrescue --grub-mkimage=${builddir}/grub-mkimage \
+sh @builddir@/grub-mkrescue --grub-mkimage=${builddir}/grub-mkimage \
   --override-directory=${builddir}/grub-core --output=${isofile} \
   boot/grub/grub.cfg=${cfgfile} \
   /boot/grub/testcase.cfg=${source} >/dev/null 2>&1