2011-08-19 18:06:42 +00:00
|
|
|
AUTOMAKE_OPTIONS = subdir-objects -Wno-portability
|
2010-05-06 06:04:04 +00:00
|
|
|
|
2010-08-18 11:23:11 +00:00
|
|
|
DEPDIR = .deps-util
|
2010-09-20 12:55:49 +00:00
|
|
|
SUBDIRS = grub-core/gnulib . grub-core po docs util/bash-completion.d
|
2010-05-06 06:04:04 +00:00
|
|
|
|
2010-08-20 04:44:29 +00:00
|
|
|
include $(top_srcdir)/conf/Makefile.common
|
|
|
|
include $(top_srcdir)/conf/Makefile.extra-dist
|
2010-08-17 13:47:57 +00:00
|
|
|
|
2010-08-20 04:44:29 +00:00
|
|
|
AM_CFLAGS = $(HOST_CFLAGS)
|
|
|
|
AM_LDFLAGS = $(HOST_LDFLAGS)
|
|
|
|
AM_CPPFLAGS = $(HOST_CPPFLAGS) $(CPPFLAGS_DEFAULT)
|
|
|
|
AM_CCASFLAGS = $(HOST_CCASFLAGS) $(CCASFLAGS_DEFAULT)
|
2010-08-17 13:47:57 +00:00
|
|
|
|
2010-09-20 10:35:33 +00:00
|
|
|
ACLOCAL_AMFLAGS = -I m4
|
|
|
|
|
2010-08-20 04:44:29 +00:00
|
|
|
CFLAGS_PROGRAM += $(CFLAGS_GNULIB)
|
|
|
|
LDFLAGS_PROGRAM += $(LDFLAGS_GNULIB)
|
|
|
|
CPPFLAGS_PROGRAM += $(CPPFLAGS_GNULIB)
|
|
|
|
CCASFLAGS_PROGRAM += $(CCASFLAGS_GNULIB)
|
2010-05-06 06:04:04 +00:00
|
|
|
|
2010-08-20 12:51:31 +00:00
|
|
|
include $(srcdir)/Makefile.util.am
|
2010-05-10 10:07:18 +00:00
|
|
|
|
2010-05-06 06:04:04 +00:00
|
|
|
# XXX Use Automake's LEX & YACC support
|
2010-08-06 04:31:54 +00:00
|
|
|
grub_script.tab.h: $(top_srcdir)/grub-core/script/parser.y
|
2010-05-06 06:04:04 +00:00
|
|
|
$(YACC) -d -p grub_script_yy -b grub_script $(top_srcdir)/grub-core/script/parser.y
|
2010-08-06 04:31:54 +00:00
|
|
|
grub_script.tab.c: grub_script.tab.h
|
2010-05-06 06:04:04 +00:00
|
|
|
CLEANFILES += grub_script.tab.c grub_script.tab.h
|
|
|
|
|
|
|
|
# For the lexer.
|
2010-08-06 04:31:54 +00:00
|
|
|
grub_script.yy.h: $(top_srcdir)/grub-core/script/yylex.l
|
2010-05-06 06:04:04 +00:00
|
|
|
$(LEX) -o grub_script.yy.c --header-file=grub_script.yy.h $(top_srcdir)/grub-core/script/yylex.l
|
2010-08-06 04:31:54 +00:00
|
|
|
grub_script.yy.c: grub_script.yy.h
|
2010-05-06 06:04:04 +00:00
|
|
|
CLEANFILES += grub_script.yy.c grub_script.yy.h
|
|
|
|
|
2010-06-04 04:04:28 +00:00
|
|
|
# For libgrub.a
|
2010-11-01 11:29:20 +00:00
|
|
|
libgrub.pp: grub_script.tab.h grub_script.yy.h $(libgrubmods_a_SOURCES) $(libgrubkern_a_SOURCES)
|
|
|
|
$(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgrubmods_a_CPPFLAGS) $(libgrubkern_a_CPPFLAGS) $(CPPFLAGS) \
|
2010-06-03 06:22:33 +00:00
|
|
|
-D'GRUB_MOD_INIT(x)=@MARKER@x@' $^ > $@ || (rm -f $@; exit 1)
|
2010-06-04 04:04:28 +00:00
|
|
|
CLEANFILES += libgrub.pp
|
2010-06-03 06:22:33 +00:00
|
|
|
|
2010-06-04 04:04:28 +00:00
|
|
|
libgrub_a_init.lst: libgrub.pp
|
2010-06-03 06:22:33 +00:00
|
|
|
cat $< | grep '@MARKER@' | sed 's/@MARKER@\(.*\)@/\1/g' | sort -u > $@ || (rm -f $@; exit 1)
|
2010-06-04 04:04:28 +00:00
|
|
|
CLEANFILES += libgrub_a_init.lst
|
2010-05-06 06:04:04 +00:00
|
|
|
|
2010-06-04 04:04:28 +00:00
|
|
|
libgrub_a_init.c: libgrub_a_init.lst $(top_srcdir)/geninit.sh
|
2010-06-03 06:22:33 +00:00
|
|
|
sh $(top_srcdir)/geninit.sh `cat $<` > $@ || (rm -f $@; exit 1)
|
2010-06-04 04:04:28 +00:00
|
|
|
CLEANFILES += libgrub_a_init.c
|
2010-05-06 06:04:04 +00:00
|
|
|
|
2010-09-10 12:20:21 +00:00
|
|
|
# For grub-fstest
|
|
|
|
grub_fstest.pp: $(grub_fstest_SOURCES)
|
|
|
|
$(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(grub_fstest_CPPFLAGS) $(CPPFLAGS) \
|
|
|
|
-D'GRUB_MOD_INIT(x)=@MARKER@x@' $^ > $@ || (rm -f $@; exit 1)
|
|
|
|
CLEANFILES += grub_fstest.pp
|
|
|
|
|
|
|
|
grub_fstest_init.lst: libgrub.pp grub_fstest.pp
|
|
|
|
cat $^ | grep '@MARKER@' | sed 's/@MARKER@\(.*\)@/\1/g' | sort -u > $@ || (rm -f $@; exit 1)
|
|
|
|
CLEANFILES += grub_fstest_init.lst
|
|
|
|
|
|
|
|
grub_fstest_init.c: grub_fstest_init.lst $(top_srcdir)/geninit.sh
|
|
|
|
sh $(top_srcdir)/geninit.sh `cat $<` > $@ || (rm -f $@; exit 1)
|
|
|
|
CLEANFILES += grub_fstest_init.c
|
|
|
|
|
2010-05-06 06:04:04 +00:00
|
|
|
if COND_HAVE_FONT_SOURCE
|
2012-02-22 15:27:39 +00:00
|
|
|
pkgdata_DATA += unicode.pf2 ascii.pf2 euro.pf2 ascii.h widthspec.h
|
2010-05-06 06:04:04 +00:00
|
|
|
endif
|
|
|
|
|
2012-02-28 11:58:57 +00:00
|
|
|
starfield_theme_files = $(srcdir)/themes/starfield/blob_w.png $(srcdir)/themes/starfield/boot_menu_c.png $(srcdir)/themes/starfield/boot_menu_e.png $(srcdir)/themes/starfield/boot_menu_ne.png $(srcdir)/themes/starfield/boot_menu_n.png $(srcdir)/themes/starfield/boot_menu_nw.png $(srcdir)/themes/starfield/boot_menu_se.png $(srcdir)/themes/starfield/boot_menu_s.png $(srcdir)/themes/starfield/boot_menu_sw.png $(srcdir)/themes/starfield/boot_menu_w.png $(srcdir)/themes/starfield/slider_c.png $(srcdir)/themes/starfield/slider_n.png $(srcdir)/themes/starfield/slider_s.png $(srcdir)/themes/starfield/starfield.png $(srcdir)/themes/starfield/terminal_box_c.png $(srcdir)/themes/starfield/terminal_box_e.png $(srcdir)/themes/starfield/terminal_box_ne.png $(srcdir)/themes/starfield/terminal_box_n.png $(srcdir)/themes/starfield/terminal_box_nw.png $(srcdir)/themes/starfield/terminal_box_se.png $(srcdir)/themes/starfield/terminal_box_s.png $(srcdir)/themes/starfield/terminal_box_sw.png $(srcdir)/themes/starfield/terminal_box_w.png $(srcdir)/themes/starfield/theme.txt $(srcdir)/themes/starfield/README $(srcdir)/themes/starfield/COPYING.CC-BY-SA-3.0
|
|
|
|
|
2013-08-14 08:56:55 +00:00
|
|
|
build-grub-mkfont: util/grub-mkfont.c grub-core/unidata.c grub-core/kern/emu/argp_common.c grub-core/kern/emu/misc.c util/misc.c grub-core/gnulib/progname.c
|
|
|
|
$(BUILD_CC) -o $@ -I$(top_srcdir)/include $(BUILD_CFLAGS) $(BUILD_CPPFLAGS) -I$(top_srcdir)/grub-core/gnulib -DGRUB_MKFONT=1 -DGRUB_UTIL=1 $^ $(build_freetype_cflags) $(build_freetype_libs) $(LIBINTL)
|
|
|
|
|
2013-08-21 17:53:59 +00:00
|
|
|
build-grub-gen-asciih: util/grub-gen-asciih.c
|
|
|
|
$(BUILD_CC) -o $@ -I$(top_srcdir)/include $(BUILD_CFLAGS) $(BUILD_CPPFLAGS) -I$(top_srcdir)/grub-core/gnulib -DGRUB_MKFONT=1 -DGRUB_UTIL=1 $^ $(build_freetype_cflags) $(build_freetype_libs) $(LIBINTL) -Wall -Werror
|
|
|
|
|
|
|
|
build-grub-gen-widthspec: util/grub-gen-widthspec.c
|
|
|
|
$(BUILD_CC) -o $@ -I$(top_srcdir)/include $(BUILD_CFLAGS) $(BUILD_CPPFLAGS) -I$(top_srcdir)/grub-core/gnulib -DGRUB_MKFONT=1 -DGRUB_UTIL=1 $^ $(build_freetype_cflags) $(build_freetype_libs) $(LIBINTL) -Wall -Werror
|
2013-08-14 08:56:55 +00:00
|
|
|
|
2012-02-23 16:21:38 +00:00
|
|
|
if COND_STARFIELD
|
2012-05-24 22:36:14 +00:00
|
|
|
starfield_DATA = dejavu_10.pf2 dejavu_12.pf2 dejavu_bold_14.pf2 dejavu_14.pf2 dejavu_16.pf2 $(starfield_theme_files)
|
2013-08-14 08:56:55 +00:00
|
|
|
dejavu_10.pf2: $(DJVU_FONT_SOURCE) build-grub-mkfont
|
|
|
|
./build-grub-mkfont -s 10 -o $@ $(DJVU_FONT_SOURCE)
|
|
|
|
dejavu_12.pf2: $(DJVU_FONT_SOURCE) build-grub-mkfont
|
|
|
|
./build-grub-mkfont -s 12 -o $@ $(DJVU_FONT_SOURCE)
|
|
|
|
dejavu_14.pf2: $(DJVU_FONT_SOURCE) build-grub-mkfont
|
|
|
|
./build-grub-mkfont -s 14 -o $@ $(DJVU_FONT_SOURCE)
|
|
|
|
dejavu_bold_14.pf2: $(DJVU_FONT_SOURCE) build-grub-mkfont
|
|
|
|
./build-grub-mkfont -b -s 14 -o $@ $(DJVU_FONT_SOURCE)
|
|
|
|
dejavu_16.pf2: $(DJVU_FONT_SOURCE) build-grub-mkfont
|
|
|
|
./build-grub-mkfont -s 16 -o $@ $(DJVU_FONT_SOURCE)
|
2012-02-23 16:21:38 +00:00
|
|
|
else
|
|
|
|
starfield_DATA =
|
|
|
|
endif
|
|
|
|
|
2012-02-28 11:58:57 +00:00
|
|
|
EXTRA_DIST += $(starfield_theme_files)
|
|
|
|
EXTRA_DIST += $(srcdir)/themes/starfield/src/slider_s.xcf $(srcdir)/themes/starfield/src/slider_n.xcf $(srcdir)/themes/starfield/src/slider_c.xcf $(srcdir)/themes/starfield/src/blob_nw.xcf $(srcdir)/themes/starfield/src/bootmenu/center.xcf $(srcdir)/themes/starfield/src/bootmenu/corner.xcf $(srcdir)/themes/starfield/src/bootmenu/side.xcf $(srcdir)/themes/starfield/src/terminalbox/side.xcf $(srcdir)/themes/starfield/src/terminalbox/corner.xcf $(srcdir)/themes/starfield/src/terminalbox/center.xcf
|
|
|
|
|
2013-08-14 08:56:55 +00:00
|
|
|
unicode.pf2: $(FONT_SOURCE) build-grub-mkfont
|
|
|
|
./build-grub-mkfont -o $@ $(FONT_SOURCE)
|
2010-05-06 06:04:04 +00:00
|
|
|
CLEANFILES += unicode.pf2
|
|
|
|
|
|
|
|
# Arrows and lines are needed to draw the menu, so always include them
|
|
|
|
UNICODE_ARROWS=0x2190-0x2193
|
|
|
|
UNICODE_LINES=0x2501-0x251B
|
|
|
|
|
2013-08-14 08:56:55 +00:00
|
|
|
ascii.pf2: $(FONT_SOURCE) build-grub-mkfont
|
|
|
|
./build-grub-mkfont -o $@ $(FONT_SOURCE) -r 0x0-0x7f,$(UNICODE_ARROWS),$(UNICODE_LINES)
|
2010-05-06 06:04:04 +00:00
|
|
|
CLEANFILES += ascii.pf2
|
|
|
|
|
2013-08-14 08:56:55 +00:00
|
|
|
euro.pf2: $(FONT_SOURCE) build-grub-mkfont
|
|
|
|
./build-grub-mkfont -o $@ $(FONT_SOURCE) -r 0x0-0x4ff,0x1e00-0x1fff,$(UNICODE_ARROWS),$(UNICODE_LINES)
|
2010-09-13 22:49:02 +00:00
|
|
|
CLEANFILES += euro.pf2
|
|
|
|
|
2013-08-21 17:53:59 +00:00
|
|
|
ascii.h: $(FONT_SOURCE) build-grub-gen-asciih
|
|
|
|
./build-grub-gen-asciih $(FONT_SOURCE) $@
|
|
|
|
CLEANFILES += ascii.h
|
2010-07-12 19:13:28 +00:00
|
|
|
|
2013-08-21 18:26:26 +00:00
|
|
|
widthspec.h: $(FONT_SOURCE) build-grub-gen-widthspec
|
2013-08-21 17:53:59 +00:00
|
|
|
./build-grub-gen-widthspec $(FONT_SOURCE) $@
|
2010-07-12 19:13:28 +00:00
|
|
|
CLEANFILES += widthspec.h
|
|
|
|
|
2010-06-03 10:00:15 +00:00
|
|
|
# Install config.h into platformdir
|
2010-05-06 06:04:04 +00:00
|
|
|
platform_HEADERS = config.h
|
2010-08-20 12:51:31 +00:00
|
|
|
|
2012-01-24 12:17:36 +00:00
|
|
|
pkgdata_DATA += grub-mkconfig_lib
|
2010-08-25 14:59:11 +00:00
|
|
|
|
|
|
|
|
|
|
|
if COND_i386_coreboot
|
|
|
|
QEMU32=qemu-system-i386
|
|
|
|
endif
|
|
|
|
|
|
|
|
if COND_i386_multiboot
|
|
|
|
QEMU32=qemu-system-i386
|
|
|
|
endif
|
|
|
|
|
|
|
|
if COND_i386_ieee1275
|
|
|
|
QEMU32=qemu-system-i386
|
|
|
|
endif
|
|
|
|
|
|
|
|
if COND_i386_qemu
|
|
|
|
QEMU32=qemu-system-i386
|
|
|
|
endif
|
|
|
|
|
|
|
|
if COND_i386_pc
|
|
|
|
QEMU32=qemu-system-i386
|
|
|
|
endif
|
|
|
|
|
|
|
|
if COND_i386_efi
|
|
|
|
QEMU32=qemu-system-i386
|
|
|
|
endif
|
|
|
|
|
|
|
|
if COND_x86_64_efi
|
|
|
|
QEMU32=qemu-system-x86_64
|
|
|
|
endif
|
|
|
|
|
2013-04-12 12:49:33 +00:00
|
|
|
linux.init.x86_64: $(srcdir)/grub-core/tests/boot/linux.init-x86_64.S $(srcdir)/grub-core/tests/boot/qemu-shutdown-x86.S
|
2010-08-25 14:59:11 +00:00
|
|
|
$(TARGET_CC) -o $@ $< -m64 -nostdlib -nostdinc -DSUCCESSFUL_BOOT_STRING=\"$(SUCCESSFUL_BOOT_STRING)\"
|
|
|
|
|
2013-04-12 12:49:33 +00:00
|
|
|
linux.init.i386: $(srcdir)/grub-core/tests/boot/linux.init-i386.S $(srcdir)/grub-core/tests/boot/qemu-shutdown-x86.S
|
2010-08-25 14:59:11 +00:00
|
|
|
$(TARGET_CC) -o $@ $< -m32 -nostdlib -nostdinc -DSUCCESSFUL_BOOT_STRING=\"$(SUCCESSFUL_BOOT_STRING)\"
|
|
|
|
|
2012-06-06 10:36:33 +00:00
|
|
|
linux.init.mips: $(srcdir)/grub-core/tests/boot/linux.init-mips.S
|
|
|
|
$(TARGET_CC) -o $@ $< -nostdlib -nostdinc -DSUCCESSFUL_BOOT_STRING=\"$(SUCCESSFUL_BOOT_STRING)\"
|
|
|
|
|
2012-06-08 18:35:54 +00:00
|
|
|
linux.init.ppc: $(srcdir)/grub-core/tests/boot/linux.init-ppc.S
|
|
|
|
$(TARGET_CC) -o $@ $< -nostdlib -nostdinc -DSUCCESSFUL_BOOT_STRING=\"$(SUCCESSFUL_BOOT_STRING)\"
|
|
|
|
|
2012-06-06 10:36:33 +00:00
|
|
|
linux.init.mipsel: $(srcdir)/grub-core/tests/boot/linux.init-mips.S
|
|
|
|
$(TARGET_CC) -o $@ $< -nostdlib -nostdinc -DSUCCESSFUL_BOOT_STRING=\"$(SUCCESSFUL_BOOT_STRING)\"
|
|
|
|
|
2012-06-15 17:42:25 +00:00
|
|
|
linux.init.loongson: $(srcdir)/grub-core/tests/boot/linux.init-mips.S
|
|
|
|
$(TARGET_CC) -o $@ $< -nostdlib -nostdinc -DSUCCESSFUL_BOOT_STRING=\"$(SUCCESSFUL_BOOT_STRING)\" -DREBOOT=1
|
|
|
|
|
2013-04-12 12:49:33 +00:00
|
|
|
multiboot.elf: $(srcdir)/grub-core/tests/boot/kernel-i386.S $(srcdir)/grub-core/tests/boot/qemu-shutdown-x86.S
|
2011-04-16 15:24:47 +00:00
|
|
|
$(TARGET_CC) -o $@ $< -DSUCCESSFUL_BOOT_STRING=\"$(SUCCESSFUL_BOOT_STRING)\" -ffreestanding -nostdlib -nostdinc -DTARGET_MULTIBOOT=1 -Wl,--build-id=none -Wl,-N -Wl,-Ttext,0x100000 -m32 -I$(srcdir)/include
|
2010-08-28 14:21:45 +00:00
|
|
|
|
2013-04-12 12:49:33 +00:00
|
|
|
kfreebsd.elf: $(srcdir)/grub-core/tests/boot/kernel-i386.S $(srcdir)/grub-core/tests/boot/qemu-shutdown-x86.S
|
2011-04-16 15:24:47 +00:00
|
|
|
$(TARGET_CC) -o $@ $< -DSUCCESSFUL_BOOT_STRING=\"$(SUCCESSFUL_BOOT_STRING)\" -ffreestanding -nostdlib -nostdinc -Wl,--build-id=none -Wl,-N -Wl,-Ttext,0x100000 -m32 -I$(srcdir)/include
|
2010-08-25 18:34:07 +00:00
|
|
|
|
2010-08-28 14:21:45 +00:00
|
|
|
kfreebsd.aout: kfreebsd.elf
|
2012-03-10 15:55:48 +00:00
|
|
|
$(OBJCOPY) -O a.out-i386-linux $< $@ -R .note.gnu.build-id -R .note.gnu.gold-version
|
2010-08-28 14:21:45 +00:00
|
|
|
|
2013-04-12 12:49:33 +00:00
|
|
|
pc-chainloader.elf: $(srcdir)/grub-core/tests/boot/kernel-8086.S $(srcdir)/grub-core/tests/boot/qemu-shutdown-x86.S
|
2011-04-16 15:24:47 +00:00
|
|
|
$(TARGET_CC) -o $@ $< -DTARGET_CHAINLOADER=1 -DSUCCESSFUL_BOOT_STRING=\"$(SUCCESSFUL_BOOT_STRING)\" -ffreestanding -nostdlib -nostdinc -Wl,--build-id=none -Wl,-N -Wl,-Ttext,0x7c00 -m32
|
2010-08-25 19:55:48 +00:00
|
|
|
|
|
|
|
pc-chainloader.bin: pc-chainloader.elf
|
2012-03-10 15:55:48 +00:00
|
|
|
$(OBJCOPY) -O binary --strip-unneeded -R .note -R .comment -R .note.gnu.build-id -R .reginfo -R .rel.dyn -R .note.gnu.gold-version $< $@;
|
2010-08-25 19:55:48 +00:00
|
|
|
|
2013-04-12 12:49:33 +00:00
|
|
|
ntldr.elf: $(srcdir)/grub-core/tests/boot/kernel-8086.S $(srcdir)/grub-core/tests/boot/qemu-shutdown-x86.S
|
2011-04-16 15:24:47 +00:00
|
|
|
$(TARGET_CC) -o $@ $< -DTARGET_NTLDR=1 -DSUCCESSFUL_BOOT_STRING=\"$(SUCCESSFUL_BOOT_STRING)\" -ffreestanding -nostdlib -nostdinc -Wl,--build-id=none -Wl,-N -Wl,-Ttext,0 -m32
|
2010-08-28 14:05:20 +00:00
|
|
|
|
|
|
|
ntldr.bin: ntldr.elf
|
2012-03-10 15:55:48 +00:00
|
|
|
$(OBJCOPY) -O binary --strip-unneeded -R .note -R .comment -R .note.gnu.build-id -R .reginfo -R .rel.dyn -R .note.gnu.gold-version $< $@;
|
2010-08-28 14:05:20 +00:00
|
|
|
|
2013-04-12 12:49:33 +00:00
|
|
|
multiboot2.elf: $(srcdir)/grub-core/tests/boot/kernel-i386.S $(srcdir)/grub-core/tests/boot/qemu-shutdown-x86.S
|
2011-04-16 15:24:47 +00:00
|
|
|
$(TARGET_CC) -o $@ $< -DSUCCESSFUL_BOOT_STRING=\"$(SUCCESSFUL_BOOT_STRING)\" -ffreestanding -nostdlib -nostdinc -Wl,--build-id=none -Wl,-N -Wl,-Ttext,0x100000 -m32 -I$(srcdir)/include -DTARGET_MULTIBOOT2=1
|
2010-08-25 18:34:07 +00:00
|
|
|
|
2013-04-12 12:49:33 +00:00
|
|
|
kfreebsd.init.x86_64: $(srcdir)/grub-core/tests/boot/kfreebsd.init-x86_64.S $(srcdir)/grub-core/tests/boot/qemu-shutdown-x86.S
|
2010-08-25 14:59:11 +00:00
|
|
|
$(TARGET_CC) -o $@ $< -m64 -nostdlib -nostdinc -DSUCCESSFUL_BOOT_STRING=\"$(SUCCESSFUL_BOOT_STRING)\" && freebsd-brandelf -t FreeBSD $@
|
|
|
|
|
2013-04-12 12:49:33 +00:00
|
|
|
kfreebsd.init.i386: $(srcdir)/grub-core/tests/boot/kfreebsd.init-i386.S $(srcdir)/grub-core/tests/boot/qemu-shutdown-x86.S
|
2010-08-25 14:59:11 +00:00
|
|
|
$(TARGET_CC) -o $@ $< -m32 -nostdlib -nostdinc -DSUCCESSFUL_BOOT_STRING=\"$(SUCCESSFUL_BOOT_STRING)\" && freebsd-brandelf -t FreeBSD $@
|
|
|
|
|
2013-04-12 12:49:33 +00:00
|
|
|
knetbsd.init.i386: $(srcdir)/grub-core/tests/boot/kbsd.init-i386.S $(srcdir)/grub-core/tests/boot/qemu-shutdown-x86.S
|
2010-08-28 12:51:54 +00:00
|
|
|
$(TARGET_CC) -o $@ $< -m32 -nostdlib -nostdinc -DTARGET_NETBSD=1 -DSUCCESSFUL_BOOT_STRING=\"$(SUCCESSFUL_BOOT_STRING)\"
|
|
|
|
|
2013-04-12 12:49:33 +00:00
|
|
|
kopenbsd.init.i386: $(srcdir)/grub-core/tests/boot/kbsd.init-i386.S $(srcdir)/grub-core/tests/boot/qemu-shutdown-x86.S
|
2010-08-28 12:51:54 +00:00
|
|
|
$(TARGET_CC) -o $@ $< -m32 -nostdlib -nostdinc -DTARGET_OPENBSD=1 -DSUCCESSFUL_BOOT_STRING=\"$(SUCCESSFUL_BOOT_STRING)\"
|
2010-08-25 14:59:11 +00:00
|
|
|
|
2013-04-12 12:49:33 +00:00
|
|
|
knetbsd.init.x86_64: $(srcdir)/grub-core/tests/boot/kbsd.init-x86_64.S $(srcdir)/grub-core/tests/boot/qemu-shutdown-x86.S
|
2010-08-28 13:05:26 +00:00
|
|
|
$(TARGET_CC) -o $@ $< -m64 -DTARGET_NETBSD=1 -nostdlib -nostdinc -DSUCCESSFUL_BOOT_STRING=\"$(SUCCESSFUL_BOOT_STRING)\"
|
|
|
|
|
2013-04-12 12:49:33 +00:00
|
|
|
kopenbsd.init.x86_64: $(srcdir)/grub-core/tests/boot/kbsd.init-x86_64.S $(srcdir)/grub-core/tests/boot/qemu-shutdown-x86.S
|
2010-08-28 13:05:26 +00:00
|
|
|
$(TARGET_CC) -o $@ $< -m64 -DTARGET_OPENBSD=1 -nostdlib -nostdinc -DSUCCESSFUL_BOOT_STRING=\"$(SUCCESSFUL_BOOT_STRING)\"
|
2010-08-25 14:59:11 +00:00
|
|
|
|
2012-06-06 10:36:33 +00:00
|
|
|
linux-initramfs.mips: linux.init.mips Makefile
|
|
|
|
TDIR=`mktemp -d "$${TMPDIR:-/tmp}/tmp.XXXXXXXXXX"` && cp $< $$TDIR/init && (cd $$TDIR && echo ./init | cpio --quiet --dereference -o -H newc) | gzip > $@ && rm -rf $$TDIR
|
|
|
|
|
2012-06-08 18:35:54 +00:00
|
|
|
linux-initramfs.ppc: linux.init.ppc Makefile
|
|
|
|
TDIR=`mktemp -d "$${TMPDIR:-/tmp}/tmp.XXXXXXXXXX"` && cp $< $$TDIR/init && (cd $$TDIR && echo ./init | cpio --quiet --dereference -o -H newc) | gzip > $@ && rm -rf $$TDIR
|
|
|
|
|
2012-06-06 10:36:33 +00:00
|
|
|
linux-initramfs.mipsel: linux.init.mipsel Makefile
|
|
|
|
TDIR=`mktemp -d "$${TMPDIR:-/tmp}/tmp.XXXXXXXXXX"` && cp $< $$TDIR/init && (cd $$TDIR && echo ./init | cpio --quiet --dereference -o -H newc) | gzip > $@ && rm -rf $$TDIR
|
|
|
|
|
2012-06-15 17:42:25 +00:00
|
|
|
linux-initramfs.loongson: linux.init.loongson Makefile
|
|
|
|
TDIR=`mktemp -d "$${TMPDIR:-/tmp}/tmp.XXXXXXXXXX"` && cp $< $$TDIR/init && (cd $$TDIR && echo ./init | cpio --quiet --dereference -o -H newc) | gzip > $@ && rm -rf $$TDIR
|
|
|
|
|
2010-08-25 14:59:11 +00:00
|
|
|
linux-initramfs.i386: linux.init.i386 Makefile
|
2010-10-18 20:50:01 +00:00
|
|
|
TDIR=`mktemp -d "$${TMPDIR:-/tmp}/tmp.XXXXXXXXXX"` && cp $< $$TDIR/init && (cd $$TDIR && echo ./init | cpio --quiet --dereference -o -H newc) | gzip > $@ && rm -rf $$TDIR
|
2010-08-25 14:59:11 +00:00
|
|
|
|
|
|
|
linux-initramfs.x86_64: linux.init.x86_64 Makefile
|
2010-10-18 20:50:01 +00:00
|
|
|
TDIR=`mktemp -d "$${TMPDIR:-/tmp}/tmp.XXXXXXXXXX"` && cp $< $$TDIR/init && (cd $$TDIR && echo ./init | cpio --quiet --dereference -o -H newc) | gzip > $@ && rm -rf $$TDIR
|
2010-08-25 14:59:11 +00:00
|
|
|
|
|
|
|
kfreebsd-mfsroot.i386.img: kfreebsd.init.i386 Makefile
|
2010-10-18 20:50:01 +00:00
|
|
|
TDIR=`mktemp -d "$${TMPDIR:-/tmp}/tmp.XXXXXXXXXX"` && mkdir $$TDIR/dev && mkdir $$TDIR/sbin && cp $< $$TDIR/sbin/init && makefs -t ffs -s 30m -f 1000 -o minfree=0,version=1 $@ $$TDIR && rm -rf $$TDIR
|
2010-08-25 14:59:11 +00:00
|
|
|
|
2010-08-28 01:17:59 +00:00
|
|
|
knetbsd.image.i386: knetbsd.init.i386 $(srcdir)/grub-core/tests/boot/kbsd.spec.txt
|
2010-10-18 20:50:01 +00:00
|
|
|
TDIR=`mktemp -d "$${TMPDIR:-/tmp}/tmp.XXXXXXXXXX"` && mkdir $$TDIR/dev && mkdir $$TDIR/sbin && cp $< $$TDIR/sbin/init && makefs -F $(srcdir)/grub-core/tests/boot/kbsd.spec.txt -t ffs -s 64k -f 10 -o minfree=0,version=1 $@ $$TDIR && rm -rf $$TDIR
|
2010-08-28 01:17:59 +00:00
|
|
|
|
2010-08-28 12:51:54 +00:00
|
|
|
kopenbsd.image.i386: kopenbsd.init.i386 $(srcdir)/grub-core/tests/boot/kopenbsdlabel.txt
|
2010-10-18 20:50:01 +00:00
|
|
|
TDIR=`mktemp -d "$${TMPDIR:-/tmp}/tmp.XXXXXXXXXX"` && mkdir $$TDIR/dev && mkdir $$TDIR/sbin && cp $< $$TDIR/sbin/init && makefs -F $(srcdir)/grub-core/tests/boot/kbsd.spec.txt -t ffs -s 128k -f 10 -o minfree=0,version=1 $@ $$TDIR && bsdlabel -f -R $@ $(srcdir)/grub-core/tests/boot/kopenbsdlabel.txt && rm -rf $$TDIR || rm -f $@
|
2010-08-25 14:59:11 +00:00
|
|
|
|
2010-08-28 13:05:26 +00:00
|
|
|
kopenbsd.image.x86_64: kopenbsd.init.x86_64 $(srcdir)/grub-core/tests/boot/kopenbsdlabel.txt
|
2010-10-18 20:50:01 +00:00
|
|
|
TDIR=`mktemp -d "$${TMPDIR:-/tmp}/tmp.XXXXXXXXXX"` && mkdir $$TDIR/dev && mkdir $$TDIR/sbin && cp $< $$TDIR/sbin/init && makefs -F $(srcdir)/grub-core/tests/boot/kbsd.spec.txt -t ffs -s 128k -f 10 -o minfree=0,version=1 $@ $$TDIR && bsdlabel -f -R $@ $(srcdir)/grub-core/tests/boot/kopenbsdlabel.txt && rm -rf $$TDIR || rm -f $@
|
2010-08-28 13:05:26 +00:00
|
|
|
|
2010-08-25 14:59:11 +00:00
|
|
|
knetbsd.miniroot-image.i386.img: knetbsd.image.i386 $(GRUB_PAYLOADS_DIR)/knetbsd.miniroot.i386
|
|
|
|
$(OBJCOPY) --add-section=miniroot=$< $(GRUB_PAYLOADS_DIR)/knetbsd.miniroot.i386 $@
|
|
|
|
|
|
|
|
kfreebsd-mfsroot.x86_64.img: kfreebsd.init.x86_64 Makefile
|
2010-10-18 20:50:01 +00:00
|
|
|
TDIR=`mktemp -d "$${TMPDIR:-/tmp}/tmp.XXXXXXXXXX"` && mkdir $$TDIR/dev && mkdir $$TDIR/sbin && cp $< $$TDIR/sbin/init && makefs -t ffs -s 30m -f 1000 -o minfree=0,version=1 $@ $$TDIR && rm -rf $$TDIR
|
2010-08-25 14:59:11 +00:00
|
|
|
|
2010-08-28 01:17:59 +00:00
|
|
|
knetbsd.image.x86_64: knetbsd.init.x86_64 $(srcdir)/grub-core/tests/boot/kbsd.spec.txt
|
2010-10-18 20:50:01 +00:00
|
|
|
TDIR=`mktemp -d "$${TMPDIR:-/tmp}/tmp.XXXXXXXXXX"` && mkdir $$TDIR/dev && mkdir $$TDIR/sbin && cp $< $$TDIR/sbin/init && makefs -F $(srcdir)/grub-core/tests/boot/kbsd.spec.txt -t ffs -s 64k -f 10 -o minfree=0,version=1 $@ $$TDIR && rm -rf $$TDIR
|
2010-08-25 14:59:11 +00:00
|
|
|
|
|
|
|
knetbsd.miniroot-image.x86_64.img: knetbsd.image.x86_64 $(GRUB_PAYLOADS_DIR)/knetbsd.miniroot.x86_64
|
|
|
|
$(OBJCOPY) --add-section=miniroot=$< $(GRUB_PAYLOADS_DIR)/knetbsd.miniroot.x86_64 $@
|
|
|
|
|
|
|
|
CLEANFILES += linux.init.i386 kfreebsd.init.i386 linux.init.x86_64 linux-initramfs.i386 linux-initramfs.x86_64
|
|
|
|
|
|
|
|
kfreebsd-mfsroot.i386.gz: kfreebsd-mfsroot.i386.img
|
|
|
|
gzip < $< > $@
|
|
|
|
|
|
|
|
bootcheck-kfreebsd-i386: kfreebsd-mfsroot.i386.gz $(GRUB_PAYLOADS_DIR)/kfreebsd.i386 $(GRUB_PAYLOADS_DIR)/kfreebsd_env.i386 $(srcdir)/grub-core/tests/boot/kfreebsd.cfg grub-shell
|
2013-04-26 12:33:31 +00:00
|
|
|
./grub-shell --timeout=$(BOOTCHECK_TIMEOUT) --qemu=$(QEMU32) --files=/mfsroot.gz=kfreebsd-mfsroot.i386.gz --files=/kfreebsd=$(GRUB_PAYLOADS_DIR)/kfreebsd.i386 --files=/kfreebsd_env=$(GRUB_PAYLOADS_DIR)/kfreebsd_env.i386 $(srcdir)/grub-core/tests/boot/kfreebsd.cfg | grep $(SUCCESSFUL_BOOT_STRING) > /dev/null
|
2010-08-25 14:59:11 +00:00
|
|
|
|
|
|
|
kfreebsd-mfsroot.x86_64.gz: kfreebsd-mfsroot.x86_64.img
|
|
|
|
gzip < $< > $@
|
|
|
|
|
|
|
|
bootcheck-kfreebsd-x86_64: kfreebsd-mfsroot.x86_64.gz $(GRUB_PAYLOADS_DIR)/kfreebsd.x86_64 $(GRUB_PAYLOADS_DIR)/kfreebsd_env.x86_64 $(srcdir)/grub-core/tests/boot/kfreebsd.cfg grub-shell
|
2013-04-26 12:33:31 +00:00
|
|
|
./grub-shell --timeout=$(BOOTCHECK_TIMEOUT) --qemu=qemu-system-x86_64 --files=/mfsroot.gz=kfreebsd-mfsroot.x86_64.gz --files=/kfreebsd=$(GRUB_PAYLOADS_DIR)/kfreebsd.x86_64 --files=/kfreebsd_env=$(GRUB_PAYLOADS_DIR)/kfreebsd_env.x86_64 $(srcdir)/grub-core/tests/boot/kfreebsd.cfg | grep $(SUCCESSFUL_BOOT_STRING) > /dev/null
|
2010-08-25 14:59:11 +00:00
|
|
|
|
|
|
|
knetbsd.miniroot-image.i386.gz: knetbsd.miniroot-image.i386.img
|
|
|
|
gzip < $< > $@
|
|
|
|
|
|
|
|
bootcheck-knetbsd-i386: knetbsd.miniroot-image.i386.gz $(GRUB_PAYLOADS_DIR)/knetbsd.i386 $(srcdir)/grub-core/tests/boot/knetbsd.cfg grub-shell
|
2013-04-26 12:33:31 +00:00
|
|
|
./grub-shell --timeout=$(BOOTCHECK_TIMEOUT) --qemu=$(QEMU32) --files=/miniroot.gz=knetbsd.miniroot-image.i386.gz --files=/knetbsd=$(GRUB_PAYLOADS_DIR)/knetbsd.i386 $(srcdir)/grub-core/tests/boot/knetbsd.cfg | grep $(SUCCESSFUL_BOOT_STRING) > /dev/null
|
2010-08-28 12:51:54 +00:00
|
|
|
|
|
|
|
bootcheck-kopenbsd-i386: kopenbsd.image.i386 $(GRUB_PAYLOADS_DIR)/kopenbsd.i386 $(srcdir)/grub-core/tests/boot/kopenbsd.cfg grub-shell
|
2013-04-26 12:33:31 +00:00
|
|
|
./grub-shell --timeout=$(BOOTCHECK_TIMEOUT) --qemu=$(QEMU32) --files=/ramdisk=kopenbsd.image.i386 --files=/kopenbsd=$(GRUB_PAYLOADS_DIR)/kopenbsd.i386 $(srcdir)/grub-core/tests/boot/kopenbsd.cfg | grep $(SUCCESSFUL_BOOT_STRING) > /dev/null
|
2010-08-25 14:59:11 +00:00
|
|
|
|
2010-08-28 13:05:26 +00:00
|
|
|
bootcheck-kopenbsd-x86_64: kopenbsd.image.x86_64 $(GRUB_PAYLOADS_DIR)/kopenbsd.x86_64 $(srcdir)/grub-core/tests/boot/kopenbsd.cfg grub-shell
|
2013-04-26 12:33:31 +00:00
|
|
|
./grub-shell --timeout=$(BOOTCHECK_TIMEOUT) --qemu=qemu-system-x86_64 --files=/ramdisk=kopenbsd.image.x86_64 --files=/kopenbsd=$(GRUB_PAYLOADS_DIR)/kopenbsd.x86_64 $(srcdir)/grub-core/tests/boot/kopenbsd.cfg | grep $(SUCCESSFUL_BOOT_STRING) > /dev/null
|
2010-08-28 13:05:26 +00:00
|
|
|
|
2010-08-25 14:59:11 +00:00
|
|
|
knetbsd.miniroot-image.x86_64.gz: knetbsd.miniroot-image.x86_64.img
|
|
|
|
gzip < $< > $@
|
|
|
|
|
|
|
|
bootcheck-knetbsd-x86_64: knetbsd.miniroot-image.x86_64.gz $(GRUB_PAYLOADS_DIR)/knetbsd.x86_64 $(srcdir)/grub-core/tests/boot/knetbsd.cfg grub-shell
|
2013-04-26 12:33:31 +00:00
|
|
|
./grub-shell --timeout=$(BOOTCHECK_TIMEOUT) --qemu=qemu-system-x86_64 --files=/miniroot.gz=knetbsd.miniroot-image.x86_64.gz --files=/knetbsd=$(GRUB_PAYLOADS_DIR)/knetbsd.x86_64 $(srcdir)/grub-core/tests/boot/knetbsd.cfg | grep $(SUCCESSFUL_BOOT_STRING) > /dev/null
|
2010-08-25 14:59:11 +00:00
|
|
|
|
|
|
|
bootcheck-linux-i386: linux-initramfs.i386 $(GRUB_PAYLOADS_DIR)/linux.i386 $(srcdir)/grub-core/tests/boot/linux.cfg grub-shell
|
2013-04-26 12:33:31 +00:00
|
|
|
./grub-shell --timeout=$(BOOTCHECK_TIMEOUT) --qemu=$(QEMU32) --files=/initrd=linux-initramfs.i386 --files=/linux=$(GRUB_PAYLOADS_DIR)/linux.i386 $(srcdir)/grub-core/tests/boot/linux.cfg | grep $(SUCCESSFUL_BOOT_STRING) > /dev/null
|
2010-08-25 14:59:11 +00:00
|
|
|
|
|
|
|
bootcheck-linux-x86_64: linux-initramfs.x86_64 $(GRUB_PAYLOADS_DIR)/linux.x86_64 $(srcdir)/grub-core/tests/boot/linux.cfg grub-shell
|
2013-04-26 12:33:31 +00:00
|
|
|
./grub-shell --timeout=$(BOOTCHECK_TIMEOUT) --qemu=qemu-system-x86_64 --files=/initrd=linux-initramfs.x86_64 --files=/linux=$(GRUB_PAYLOADS_DIR)/linux.x86_64 $(srcdir)/grub-core/tests/boot/linux.cfg | grep $(SUCCESSFUL_BOOT_STRING) > /dev/null
|
2012-06-06 10:36:33 +00:00
|
|
|
|
|
|
|
bootcheck-linux-mips: linux-initramfs.mips $(GRUB_PAYLOADS_DIR)/linux.mips $(srcdir)/grub-core/tests/boot/linux.cfg grub-shell
|
2013-04-26 12:33:31 +00:00
|
|
|
./grub-shell --timeout=$(BOOTCHECK_TIMEOUT) --files=/initrd=linux-initramfs.mips --files=/linux=$(GRUB_PAYLOADS_DIR)/linux.mips $(srcdir)/grub-core/tests/boot/linux.cfg | grep $(SUCCESSFUL_BOOT_STRING) > /dev/null
|
2012-06-06 10:36:33 +00:00
|
|
|
|
2012-06-08 18:35:54 +00:00
|
|
|
bootcheck-linux-ppc: linux-initramfs.ppc $(GRUB_PAYLOADS_DIR)/linux.ppc $(srcdir)/grub-core/tests/boot/linux.cfg grub-shell
|
2013-04-26 12:33:31 +00:00
|
|
|
./grub-shell --timeout=$(BOOTCHECK_TIMEOUT) --files=/initrd=linux-initramfs.ppc --files=/linux=$(GRUB_PAYLOADS_DIR)/linux.ppc $(srcdir)/grub-core/tests/boot/linux-ppc.cfg | grep $(SUCCESSFUL_BOOT_STRING) > /dev/null
|
2012-06-08 18:35:54 +00:00
|
|
|
|
2012-06-06 10:36:33 +00:00
|
|
|
bootcheck-linux-mipsel: linux-initramfs.mipsel $(GRUB_PAYLOADS_DIR)/linux.mipsel $(srcdir)/grub-core/tests/boot/linux.cfg grub-shell
|
2013-04-26 12:33:31 +00:00
|
|
|
./grub-shell --timeout=$(BOOTCHECK_TIMEOUT) --files=/initrd=linux-initramfs.mipsel --files=/linux=$(GRUB_PAYLOADS_DIR)/linux.mipsel $(srcdir)/grub-core/tests/boot/linux.cfg | grep $(SUCCESSFUL_BOOT_STRING) > /dev/null
|
2012-06-15 17:42:25 +00:00
|
|
|
|
|
|
|
bootcheck-linux-loongson: linux-initramfs.loongson $(GRUB_PAYLOADS_DIR)/linux.loongson $(srcdir)/grub-core/tests/boot/linux.cfg grub-shell
|
2013-04-26 12:33:31 +00:00
|
|
|
./grub-shell --timeout=$(BOOTCHECK_TIMEOUT) --files=/initrd=linux-initramfs.loongson --files=/linux=$(GRUB_PAYLOADS_DIR)/linux.loongson $(srcdir)/grub-core/tests/boot/linux.cfg | grep $(SUCCESSFUL_BOOT_STRING) > /dev/null
|
2010-08-25 14:59:11 +00:00
|
|
|
|
|
|
|
bootcheck-linux16-i386: linux-initramfs.i386 $(GRUB_PAYLOADS_DIR)/linux.i386 $(srcdir)/grub-core/tests/boot/linux.cfg grub-shell
|
2013-04-26 12:33:31 +00:00
|
|
|
./grub-shell --timeout=$(BOOTCHECK_TIMEOUT) --qemu=$(QEMU32) --files=/initrd=linux-initramfs.i386 --files=/linux=$(GRUB_PAYLOADS_DIR)/linux.i386 $(srcdir)/grub-core/tests/boot/linux16.cfg | grep $(SUCCESSFUL_BOOT_STRING) > /dev/null
|
2010-08-25 14:59:11 +00:00
|
|
|
|
|
|
|
bootcheck-linux16-x86_64: linux-initramfs.x86_64 $(GRUB_PAYLOADS_DIR)/linux.x86_64 $(srcdir)/grub-core/tests/boot/linux.cfg grub-shell
|
2013-04-26 12:33:31 +00:00
|
|
|
./grub-shell --timeout=$(BOOTCHECK_TIMEOUT) --qemu=qemu-system-x86_64 --files=/initrd=linux-initramfs.x86_64 --files=/linux=$(GRUB_PAYLOADS_DIR)/linux.x86_64 $(srcdir)/grub-core/tests/boot/linux16.cfg | grep $(SUCCESSFUL_BOOT_STRING) > /dev/null
|
2010-08-25 14:59:11 +00:00
|
|
|
|
2010-08-25 18:34:07 +00:00
|
|
|
bootcheck-multiboot: multiboot.elf $(srcdir)/grub-core/tests/boot/multiboot.cfg grub-shell
|
2013-04-26 12:33:31 +00:00
|
|
|
./grub-shell --timeout=$(BOOTCHECK_TIMEOUT) --qemu=$(QEMU32) --files=/multiboot.elf=multiboot.elf $(srcdir)/grub-core/tests/boot/multiboot.cfg | grep $(SUCCESSFUL_BOOT_STRING) > /dev/null
|
2010-08-25 18:34:07 +00:00
|
|
|
|
|
|
|
bootcheck-multiboot2: multiboot2.elf $(srcdir)/grub-core/tests/boot/multiboot2.cfg grub-shell
|
2013-04-26 12:33:31 +00:00
|
|
|
./grub-shell --timeout=$(BOOTCHECK_TIMEOUT) --qemu=$(QEMU32) --files=/multiboot2.elf=multiboot2.elf $(srcdir)/grub-core/tests/boot/multiboot2.cfg | grep $(SUCCESSFUL_BOOT_STRING) > /dev/null
|
2010-08-25 18:34:07 +00:00
|
|
|
|
2010-08-28 14:21:45 +00:00
|
|
|
bootcheck-kfreebsd-aout: kfreebsd.aout $(srcdir)/grub-core/tests/boot/kfreebsd-aout.cfg grub-shell
|
2013-04-26 12:33:31 +00:00
|
|
|
./grub-shell --timeout=$(BOOTCHECK_TIMEOUT) --qemu=$(QEMU32) --files=/kfreebsd.aout=kfreebsd.aout $(srcdir)/grub-core/tests/boot/kfreebsd-aout.cfg | grep $(SUCCESSFUL_BOOT_STRING) > /dev/null
|
2010-08-28 14:21:45 +00:00
|
|
|
|
2010-08-25 19:55:48 +00:00
|
|
|
bootcheck-pc-chainloader: pc-chainloader.bin $(srcdir)/grub-core/tests/boot/pc-chainloader.cfg grub-shell
|
2013-04-26 12:33:31 +00:00
|
|
|
./grub-shell --timeout=$(BOOTCHECK_TIMEOUT) --qemu=$(QEMU32) --files=/pc-chainloader.bin=pc-chainloader.bin $(srcdir)/grub-core/tests/boot/pc-chainloader.cfg | grep $(SUCCESSFUL_BOOT_STRING) > /dev/null
|
2010-08-25 19:55:48 +00:00
|
|
|
|
2010-08-28 14:05:20 +00:00
|
|
|
bootcheck-ntldr: ntldr.bin $(srcdir)/grub-core/tests/boot/ntldr.cfg grub-shell
|
2013-04-26 12:33:31 +00:00
|
|
|
./grub-shell --timeout=$(BOOTCHECK_TIMEOUT) --qemu=$(QEMU32) --files=/ntldr.bin=ntldr.bin $(srcdir)/grub-core/tests/boot/ntldr.cfg | grep $(SUCCESSFUL_BOOT_STRING) > /dev/null
|
2012-06-06 10:36:33 +00:00
|
|
|
|
|
|
|
if COND_i386_efi
|
|
|
|
BOOTCHECKS = bootcheck-kfreebsd-aout bootcheck-kopenbsd-i386 bootcheck-kopenbsd-x86_64 bootcheck-multiboot bootcheck-multiboot2 bootcheck-linux-i386 bootcheck-linux-x86_64 bootcheck-knetbsd-x86_64 bootcheck-kfreebsd-x86_64 bootcheck-kfreebsd-i386
|
|
|
|
endif
|
|
|
|
|
|
|
|
if COND_x86_64_efi
|
|
|
|
BOOTCHECKS = bootcheck-kfreebsd-aout bootcheck-kopenbsd-i386 bootcheck-kopenbsd-x86_64 bootcheck-multiboot bootcheck-multiboot2 bootcheck-linux-i386 bootcheck-linux-x86_64 bootcheck-knetbsd-x86_64 bootcheck-kfreebsd-x86_64 bootcheck-kfreebsd-i386
|
|
|
|
endif
|
2010-08-28 14:05:20 +00:00
|
|
|
|
2012-06-06 10:36:33 +00:00
|
|
|
if COND_i386_multiboot
|
2013-04-12 12:49:33 +00:00
|
|
|
# FreeBSD requires ACPI
|
2012-06-06 10:36:33 +00:00
|
|
|
BOOTCHECKS = bootcheck-kfreebsd-aout bootcheck-kopenbsd-i386 bootcheck-kopenbsd-x86_64 bootcheck-multiboot bootcheck-multiboot2 bootcheck-linux-i386 bootcheck-linux-x86_64 bootcheck-knetbsd-x86_64
|
|
|
|
endif
|
|
|
|
|
|
|
|
if COND_i386_coreboot
|
2013-04-12 12:49:33 +00:00
|
|
|
# Freebsd requires ACPI
|
|
|
|
BOOTCHECKS = bootcheck-kfreebsd-aout bootcheck-kopenbsd-i386 bootcheck-kopenbsd-x86_64 bootcheck-multiboot bootcheck-multiboot2 bootcheck-linux-i386 bootcheck-linux-x86_64 bootcheck-knetbsd-x86_64
|
2012-06-06 10:36:33 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
if COND_i386_qemu
|
2013-04-12 12:49:33 +00:00
|
|
|
# FreeBSD requires ACPI
|
2012-06-06 10:36:33 +00:00
|
|
|
BOOTCHECKS = bootcheck-kfreebsd-aout bootcheck-kopenbsd-i386 bootcheck-kopenbsd-x86_64 bootcheck-multiboot bootcheck-multiboot2 bootcheck-linux-i386 bootcheck-linux-x86_64 bootcheck-knetbsd-x86_64
|
|
|
|
endif
|
2010-08-25 14:59:11 +00:00
|
|
|
|
2010-08-25 19:55:48 +00:00
|
|
|
if COND_i386_pc
|
2010-08-28 22:21:02 +00:00
|
|
|
#pc chainloader by definition is only for i386-pc
|
|
|
|
#ntldr and bootmgr require BIOS.
|
|
|
|
#legacy protocol makes early BIOS calls.
|
2012-06-06 10:36:33 +00:00
|
|
|
# NetBSD crashes early on non-BIOS
|
|
|
|
BOOTCHECKS = bootcheck-kfreebsd-aout bootcheck-kopenbsd-i386 bootcheck-kopenbsd-x86_64 bootcheck-multiboot bootcheck-multiboot2 bootcheck-linux-i386 bootcheck-linux-x86_64 bootcheck-knetbsd-x86_64 bootcheck-kfreebsd-x86_64 bootcheck-kfreebsd-i386 bootcheck-pc-chainloader bootcheck-ntldr bootcheck-linux16-i386 bootcheck-linux16-x86_64 bootcheck-knetbsd-i386
|
2010-08-28 22:21:02 +00:00
|
|
|
endif
|
|
|
|
|
2012-06-15 17:42:25 +00:00
|
|
|
if COND_mips_loongson
|
|
|
|
BOOTCHECKS = bootcheck-linux-loongson
|
|
|
|
endif
|
|
|
|
|
2012-06-06 10:36:33 +00:00
|
|
|
if COND_mipsel
|
2012-06-15 17:42:25 +00:00
|
|
|
if COND_mips_qemu_mips
|
2012-06-06 10:36:33 +00:00
|
|
|
BOOTCHECKS = bootcheck-linux-mipsel
|
2010-08-25 19:55:48 +00:00
|
|
|
endif
|
2012-06-15 17:42:25 +00:00
|
|
|
endif
|
2012-06-06 10:36:33 +00:00
|
|
|
if COND_mipseb
|
2012-06-15 17:42:25 +00:00
|
|
|
if COND_mips_qemu_mips
|
2012-06-06 10:36:33 +00:00
|
|
|
BOOTCHECKS = bootcheck-linux-mips
|
2010-08-29 00:29:01 +00:00
|
|
|
endif
|
2012-06-15 17:42:25 +00:00
|
|
|
endif
|
2010-08-25 14:59:11 +00:00
|
|
|
|
2012-06-08 18:35:54 +00:00
|
|
|
if COND_powerpc_ieee1275
|
|
|
|
BOOTCHECKS = bootcheck-linux-ppc
|
|
|
|
endif
|
|
|
|
|
2013-05-11 13:48:08 +00:00
|
|
|
EXTRA_DIST += grub-core/tests/boot/kbsd.init-i386.S grub-core/tests/boot/kbsd.init-x86_64.S grub-core/tests/boot/kbsd.spec.txt grub-core/tests/boot/kernel-8086.S grub-core/tests/boot/kernel-i386.S grub-core/tests/boot/kfreebsd-aout.cfg grub-core/tests/boot/kfreebsd.cfg grub-core/tests/boot/kfreebsd.init-i386.S grub-core/tests/boot/kfreebsd.init-x86_64.S grub-core/tests/boot/knetbsd.cfg grub-core/tests/boot/kopenbsd.cfg grub-core/tests/boot/kopenbsdlabel.txt grub-core/tests/boot/linux16.cfg grub-core/tests/boot/linux.cfg grub-core/tests/boot/linux.init-i386.S grub-core/tests/boot/linux.init-mips.S grub-core/tests/boot/linux.init-ppc.S grub-core/tests/boot/linux.init-x86_64.S grub-core/tests/boot/linux-ppc.cfg grub-core/tests/boot/multiboot2.cfg grub-core/tests/boot/multiboot.cfg grub-core/tests/boot/ntldr.cfg grub-core/tests/boot/pc-chainloader.cfg grub-core/tests/boot/qemu-shutdown-x86.S
|
2010-08-25 14:59:11 +00:00
|
|
|
|
|
|
|
.PHONY: bootcheck-linux-i386 bootcheck-linux-x86_64 \
|
|
|
|
bootcheck-kfreebsd-i386 bootcheck-kfreebsd-x86_64 \
|
2012-06-06 10:36:33 +00:00
|
|
|
bootcheck-knetbsd-i386 bootcheck-knetbsd-x86_64 \
|
|
|
|
bootcheck-linux-mips
|
2010-08-25 14:59:11 +00:00
|
|
|
|
|
|
|
# Randomly generated
|
|
|
|
SUCCESSFUL_BOOT_STRING=3e49994fd5d82b7c9298d672d774080d
|
|
|
|
# tianocore cd access is very slow
|
|
|
|
BOOTCHECK_TIMEOUT=180
|
|
|
|
|
|
|
|
bootcheck: $(BOOTCHECKS)
|
2012-09-04 22:35:38 +00:00
|
|
|
|
|
|
|
EXTRA_DIST += linguas.sh
|