Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1G9LOv-0008Ho-Df for mharc-grub-devel@gnu.org; Sat, 05 Aug 2006 08:37:09 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1G9LOs-0008HX-NH for grub-devel@gnu.org; Sat, 05 Aug 2006 08:37:06 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1G9LOp-0008Gv-O1 for grub-devel@gnu.org; Sat, 05 Aug 2006 08:37:05 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G9LOp-0008Gp-Ce for grub-devel@gnu.org; Sat, 05 Aug 2006 08:37:03 -0400 Received: from [69.90.100.5] (helo=titanium.v3.ca) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1G9LSb-0007Ov-97 for grub-devel@gnu.org; Sat, 05 Aug 2006 08:40:58 -0400 Received: from titanium.v3.ca (localhost [127.0.0.1]) by titanium.v3.ca (8.13.2/8.13.2/Debian-1) with ESMTP id k75Cb0m3018030 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Sat, 5 Aug 2006 05:37:00 -0700 Received: (from jbailey@localhost) by titanium.v3.ca (8.13.2/8.13.2/Submit) id k75Cb0i0018029 for grub-devel@gnu.org; Sat, 5 Aug 2006 05:37:00 -0700 X-Authentication-Warning: titanium.v3.ca: jbailey set sender to jbailey@raspberryginger.com using -f Date: Sat, 5 Aug 2006 05:37:00 -0700 From: Jeff Bailey To: grub-devel@gnu.org Message-ID: <20060805123700.GB15721@titanium.v3.ca> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="3V7upXqbjpZ4EhLz" Content-Disposition: inline User-Agent: Mutt/1.5.6+20040907i Subject: Port to hppa-ipl X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Aug 2006 12:37:07 -0000 --3V7upXqbjpZ4EhLz Content-Type: text/plain; charset=us-ascii Content-Disposition: inline This is the initial work for my port to hppa-ipl. IPL is, I believe, a format specific to the HP PA-RISC series of machines. This is a hobby project of mine that I'll work on over the next few months. I have the support of many contributors to the current bootloader, palo. Legal bits are taken care of already (copyright assignments, etc.) 2006-08-05 Jeff Bailey Initial port to hppa-ipl, tested on hppa-linux-gnu. * Makefile.in (RMKFILES): Add hppa-ipl.rmk. * configure.ac: Add hppa as a target CPU. Add hppa-ipl as a target platform. * configure: Update. * conf/hppa-ipl.mk: New file. * conf/hppa-ipl.rmk: New generated file. * include/grub/hppa/ipl/biosdisk.h: New file. * include/grub/hppa/ipl/console.h: New file. * include/grub/hppa/ipl/time.h: New file. * include/grub/hppa/setjmp.h: New file. * include/grub/hppa/types.h: New file. * normal/hppa/setjmp.S: New file. -- I do not agree with a word you say, but I will defend to the death your right to say it. - Voltaire --3V7upXqbjpZ4EhLz Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="grub2.diff" Content-Transfer-Encoding: quoted-printable diff -ruN -x CVS grub2/conf/hppa-ipl.mk grub2-work/conf/hppa-ipl.mk --- grub2/conf/hppa-ipl.mk 1969-12-31 19:00:00.000000000 -0500 +++ grub2-work/conf/hppa-ipl.mk 2006-08-05 08:00:52.000000000 -0400 @@ -0,0 +1,854 @@ +# -*- makefile -*- + +COMMON_ASFLAGS =3D -nostdinc -fno-builtin=20 +COMMON_CFLAGS =3D -fno-builtin=20 +COMMON_LDFLAGS =3D -melf32_hppa -nostdlib + +sbin_UTILITIES =3D grub-emu + +grub_emu_SOURCES =3D commands/boot.c commands/cat.c commands/cmp.c \ + commands/configfile.c commands/help.c \ + commands/terminal.c commands/ls.c commands/test.c \ + commands/search.c commands/blocklist.c \ + disk/loopback.c \ + fs/affs.c fs/ext2.c fs/fat.c fs/fshelp.c fs/hfs.c fs/iso9660.c \ + fs/jfs.c fs/minix.c fs/sfs.c fs/ufs.c fs/xfs.c fs/hfsplus.c \ + io/gzio.c \ + kern/device.c kern/disk.c kern/dl.c kern/env.c kern/err.c \ + normal/execute.c kern/file.c kern/fs.c normal/lexer.c \ + kern/loader.c kern/main.c kern/misc.c kern/parser.c \ + grub_script.tab.c kern/partition.c kern/rescue.c kern/term.c \ + normal/arg.c normal/cmdline.c normal/command.c normal/function.c\ + normal/completion.c normal/main.c \ + normal/menu.c normal/menu_entry.c normal/misc.c normal/script.c \ + partmap/amiga.c partmap/apple.c partmap/pc.c partmap/sun.c \ + partmap/acorn.c partmap/gpt.c \ + util/i386/pc/biosdisk.c util/i386/pc/getroot.c \ + util/console.c util/grub-emu.c util/misc.c \ + grub_emu_init.c +CLEANFILES +=3D grub-emu grub_emu-commands_boot.o grub_emu-commands_cat.o = grub_emu-commands_cmp.o grub_emu-commands_configfile.o grub_emu-commands_he= lp.o grub_emu-commands_terminal.o grub_emu-commands_ls.o grub_emu-commands_= test.o grub_emu-commands_search.o grub_emu-commands_blocklist.o grub_emu-di= sk_loopback.o grub_emu-fs_affs.o grub_emu-fs_ext2.o grub_emu-fs_fat.o grub_= emu-fs_fshelp.o grub_emu-fs_hfs.o grub_emu-fs_iso9660.o grub_emu-fs_jfs.o g= rub_emu-fs_minix.o grub_emu-fs_sfs.o grub_emu-fs_ufs.o grub_emu-fs_xfs.o gr= ub_emu-fs_hfsplus.o grub_emu-io_gzio.o grub_emu-kern_device.o grub_emu-kern= _disk.o grub_emu-kern_dl.o grub_emu-kern_env.o grub_emu-kern_err.o grub_emu= -normal_execute.o grub_emu-kern_file.o grub_emu-kern_fs.o grub_emu-normal_l= exer.o grub_emu-kern_loader.o grub_emu-kern_main.o grub_emu-kern_misc.o gru= b_emu-kern_parser.o grub_emu-grub_script_tab.o grub_emu-kern_partition.o gr= ub_emu-kern_rescue.o grub_emu-kern_term.o grub_emu-normal_arg.o grub_emu-no= rmal_cmdline.o grub_emu-normal_command.o grub_emu-normal_function.o grub_em= u-normal_completion.o grub_emu-normal_main.o grub_emu-normal_menu.o grub_em= u-normal_menu_entry.o grub_emu-normal_misc.o grub_emu-normal_script.o grub_= emu-partmap_amiga.o grub_emu-partmap_apple.o grub_emu-partmap_pc.o grub_emu= -partmap_sun.o grub_emu-partmap_acorn.o grub_emu-partmap_gpt.o grub_emu-uti= l_i386_pc_biosdisk.o grub_emu-util_i386_pc_getroot.o grub_emu-util_console.= o grub_emu-util_grub_emu.o grub_emu-util_misc.o grub_emu-grub_emu_init.o +MOSTLYCLEANFILES +=3D grub_emu-commands_boot.d grub_emu-commands_cat.d gru= b_emu-commands_cmp.d grub_emu-commands_configfile.d grub_emu-commands_help.= d grub_emu-commands_terminal.d grub_emu-commands_ls.d grub_emu-commands_tes= t.d grub_emu-commands_search.d grub_emu-commands_blocklist.d grub_emu-disk_= loopback.d grub_emu-fs_affs.d grub_emu-fs_ext2.d grub_emu-fs_fat.d grub_emu= -fs_fshelp.d grub_emu-fs_hfs.d grub_emu-fs_iso9660.d grub_emu-fs_jfs.d grub= _emu-fs_minix.d grub_emu-fs_sfs.d grub_emu-fs_ufs.d grub_emu-fs_xfs.d grub_= emu-fs_hfsplus.d grub_emu-io_gzio.d grub_emu-kern_device.d grub_emu-kern_di= sk.d grub_emu-kern_dl.d grub_emu-kern_env.d grub_emu-kern_err.d grub_emu-no= rmal_execute.d grub_emu-kern_file.d grub_emu-kern_fs.d grub_emu-normal_lexe= r.d grub_emu-kern_loader.d grub_emu-kern_main.d grub_emu-kern_misc.d grub_e= mu-kern_parser.d grub_emu-grub_script_tab.d grub_emu-kern_partition.d grub_= emu-kern_rescue.d grub_emu-kern_term.d grub_emu-normal_arg.d grub_emu-norma= l_cmdline.d grub_emu-normal_command.d grub_emu-normal_function.d grub_emu-n= ormal_completion.d grub_emu-normal_main.d grub_emu-normal_menu.d grub_emu-n= ormal_menu_entry.d grub_emu-normal_misc.d grub_emu-normal_script.d grub_emu= -partmap_amiga.d grub_emu-partmap_apple.d grub_emu-partmap_pc.d grub_emu-pa= rtmap_sun.d grub_emu-partmap_acorn.d grub_emu-partmap_gpt.d grub_emu-util_i= 386_pc_biosdisk.d grub_emu-util_i386_pc_getroot.d grub_emu-util_console.d g= rub_emu-util_grub_emu.d grub_emu-util_misc.d grub_emu-grub_emu_init.d + +grub-emu: grub_emu-commands_boot.o grub_emu-commands_cat.o grub_emu-comman= ds_cmp.o grub_emu-commands_configfile.o grub_emu-commands_help.o grub_emu-c= ommands_terminal.o grub_emu-commands_ls.o grub_emu-commands_test.o grub_emu= -commands_search.o grub_emu-commands_blocklist.o grub_emu-disk_loopback.o g= rub_emu-fs_affs.o grub_emu-fs_ext2.o grub_emu-fs_fat.o grub_emu-fs_fshelp.o= grub_emu-fs_hfs.o grub_emu-fs_iso9660.o grub_emu-fs_jfs.o grub_emu-fs_mini= x.o grub_emu-fs_sfs.o grub_emu-fs_ufs.o grub_emu-fs_xfs.o grub_emu-fs_hfspl= us.o grub_emu-io_gzio.o grub_emu-kern_device.o grub_emu-kern_disk.o grub_em= u-kern_dl.o grub_emu-kern_env.o grub_emu-kern_err.o grub_emu-normal_execute= =2Eo grub_emu-kern_file.o grub_emu-kern_fs.o grub_emu-normal_lexer.o grub_e= mu-kern_loader.o grub_emu-kern_main.o grub_emu-kern_misc.o grub_emu-kern_pa= rser.o grub_emu-grub_script_tab.o grub_emu-kern_partition.o grub_emu-kern_r= escue.o grub_emu-kern_term.o grub_emu-normal_arg.o grub_emu-normal_cmdline.= o grub_emu-normal_command.o grub_emu-normal_function.o grub_emu-normal_comp= letion.o grub_emu-normal_main.o grub_emu-normal_menu.o grub_emu-normal_menu= _entry.o grub_emu-normal_misc.o grub_emu-normal_script.o grub_emu-partmap_a= miga.o grub_emu-partmap_apple.o grub_emu-partmap_pc.o grub_emu-partmap_sun.= o grub_emu-partmap_acorn.o grub_emu-partmap_gpt.o grub_emu-util_i386_pc_bio= sdisk.o grub_emu-util_i386_pc_getroot.o grub_emu-util_console.o grub_emu-ut= il_grub_emu.o grub_emu-util_misc.o grub_emu-grub_emu_init.o + $(CC) -o $@ $^ $(LDFLAGS) $(grub_emu_LDFLAGS) + +grub_emu-commands_boot.o: commands/boot.c + $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL= =3D1 $(grub_emu_CFLAGS) -c -o $@ $< + +grub_emu-commands_boot.d: commands/boot.c + set -e; $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) -D= GRUB_UTIL=3D1 $(grub_emu_CFLAGS) -M $< | sed 's,boot\.o[ :]*,grub_emu-co= mmands_boot.o $@ : ,g' > $@; [ -s $@ ] || rm -f $@ + +-include grub_emu-commands_boot.d + +grub_emu-commands_cat.o: commands/cat.c + $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL= =3D1 $(grub_emu_CFLAGS) -c -o $@ $< + +grub_emu-commands_cat.d: commands/cat.c + set -e; $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) -D= GRUB_UTIL=3D1 $(grub_emu_CFLAGS) -M $< | sed 's,cat\.o[ :]*,grub_emu-com= mands_cat.o $@ : ,g' > $@; [ -s $@ ] || rm -f $@ + +-include grub_emu-commands_cat.d + +grub_emu-commands_cmp.o: commands/cmp.c + $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL= =3D1 $(grub_emu_CFLAGS) -c -o $@ $< + +grub_emu-commands_cmp.d: commands/cmp.c + set -e; $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) -D= GRUB_UTIL=3D1 $(grub_emu_CFLAGS) -M $< | sed 's,cmp\.o[ :]*,grub_emu-com= mands_cmp.o $@ : ,g' > $@; [ -s $@ ] || rm -f $@ + +-include grub_emu-commands_cmp.d + +grub_emu-commands_configfile.o: commands/configfile.c + $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL= =3D1 $(grub_emu_CFLAGS) -c -o $@ $< + +grub_emu-commands_configfile.d: commands/configfile.c + set -e; $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) -D= GRUB_UTIL=3D1 $(grub_emu_CFLAGS) -M $< | sed 's,configfile\.o[ :]*,grub_= emu-commands_configfile.o $@ : ,g' > $@; [ -s $@ ] || rm -f $@ + +-include grub_emu-commands_configfile.d + +grub_emu-commands_help.o: commands/help.c + $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL= =3D1 $(grub_emu_CFLAGS) -c -o $@ $< + +grub_emu-commands_help.d: commands/help.c + set -e; $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) -D= GRUB_UTIL=3D1 $(grub_emu_CFLAGS) -M $< | sed 's,help\.o[ :]*,grub_emu-co= mmands_help.o $@ : ,g' > $@; [ -s $@ ] || rm -f $@ + +-include grub_emu-commands_help.d + +grub_emu-commands_terminal.o: commands/terminal.c + $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL= =3D1 $(grub_emu_CFLAGS) -c -o $@ $< + +grub_emu-commands_terminal.d: commands/terminal.c + set -e; $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) -D= GRUB_UTIL=3D1 $(grub_emu_CFLAGS) -M $< | sed 's,terminal\.o[ :]*,grub_em= u-commands_terminal.o $@ : ,g' > $@; [ -s $@ ] || rm -f $@ + +-include grub_emu-commands_terminal.d + +grub_emu-commands_ls.o: commands/ls.c + $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL= =3D1 $(grub_emu_CFLAGS) -c -o $@ $< + +grub_emu-commands_ls.d: commands/ls.c + set -e; $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) -D= GRUB_UTIL=3D1 $(grub_emu_CFLAGS) -M $< | sed 's,ls\.o[ :]*,grub_emu-comm= ands_ls.o $@ : ,g' > $@; [ -s $@ ] || rm -f $@ + +-include grub_emu-commands_ls.d + +grub_emu-commands_test.o: commands/test.c + $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL= =3D1 $(grub_emu_CFLAGS) -c -o $@ $< + +grub_emu-commands_test.d: commands/test.c + set -e; $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) -D= GRUB_UTIL=3D1 $(grub_emu_CFLAGS) -M $< | sed 's,test\.o[ :]*,grub_emu-co= mmands_test.o $@ : ,g' > $@; [ -s $@ ] || rm -f $@ + +-include grub_emu-commands_test.d + +grub_emu-commands_search.o: commands/search.c + $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL= =3D1 $(grub_emu_CFLAGS) -c -o $@ $< + +grub_emu-commands_search.d: commands/search.c + set -e; $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) -D= GRUB_UTIL=3D1 $(grub_emu_CFLAGS) -M $< | sed 's,search\.o[ :]*,grub_emu-= commands_search.o $@ : ,g' > $@; [ -s $@ ] || rm -f $@ + +-include grub_emu-commands_search.d + +grub_emu-commands_blocklist.o: commands/blocklist.c + $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL= =3D1 $(grub_emu_CFLAGS) -c -o $@ $< + +grub_emu-commands_blocklist.d: commands/blocklist.c + set -e; $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) -D= GRUB_UTIL=3D1 $(grub_emu_CFLAGS) -M $< | sed 's,blocklist\.o[ :]*,grub_e= mu-commands_blocklist.o $@ : ,g' > $@; [ -s $@ ] || rm -f $@ + +-include grub_emu-commands_blocklist.d + +grub_emu-disk_loopback.o: disk/loopback.c + $(CC) -Idisk -I$(srcdir)/disk $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=3D1 $(gru= b_emu_CFLAGS) -c -o $@ $< + +grub_emu-disk_loopback.d: disk/loopback.c + set -e; $(CC) -Idisk -I$(srcdir)/disk $(CPPFLAGS) $(CFLAGS) -DGRUB_UTI= L=3D1 $(grub_emu_CFLAGS) -M $< | sed 's,loopback\.o[ :]*,grub_emu-disk_l= oopback.o $@ : ,g' > $@; [ -s $@ ] || rm -f $@ + +-include grub_emu-disk_loopback.d + +grub_emu-fs_affs.o: fs/affs.c + $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=3D1 $(grub_em= u_CFLAGS) -c -o $@ $< + +grub_emu-fs_affs.d: fs/affs.c + set -e; $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=3D= 1 $(grub_emu_CFLAGS) -M $< | sed 's,affs\.o[ :]*,grub_emu-fs_affs.o $@ := ,g' > $@; [ -s $@ ] || rm -f $@ + +-include grub_emu-fs_affs.d + +grub_emu-fs_ext2.o: fs/ext2.c + $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=3D1 $(grub_em= u_CFLAGS) -c -o $@ $< + +grub_emu-fs_ext2.d: fs/ext2.c + set -e; $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=3D= 1 $(grub_emu_CFLAGS) -M $< | sed 's,ext2\.o[ :]*,grub_emu-fs_ext2.o $@ := ,g' > $@; [ -s $@ ] || rm -f $@ + +-include grub_emu-fs_ext2.d + +grub_emu-fs_fat.o: fs/fat.c + $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=3D1 $(grub_em= u_CFLAGS) -c -o $@ $< + +grub_emu-fs_fat.d: fs/fat.c + set -e; $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=3D= 1 $(grub_emu_CFLAGS) -M $< | sed 's,fat\.o[ :]*,grub_emu-fs_fat.o $@ : ,= g' > $@; [ -s $@ ] || rm -f $@ + +-include grub_emu-fs_fat.d + +grub_emu-fs_fshelp.o: fs/fshelp.c + $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=3D1 $(grub_em= u_CFLAGS) -c -o $@ $< + +grub_emu-fs_fshelp.d: fs/fshelp.c + set -e; $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=3D= 1 $(grub_emu_CFLAGS) -M $< | sed 's,fshelp\.o[ :]*,grub_emu-fs_fshelp.o = $@ : ,g' > $@; [ -s $@ ] || rm -f $@ + +-include grub_emu-fs_fshelp.d + +grub_emu-fs_hfs.o: fs/hfs.c + $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=3D1 $(grub_em= u_CFLAGS) -c -o $@ $< + +grub_emu-fs_hfs.d: fs/hfs.c + set -e; $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=3D= 1 $(grub_emu_CFLAGS) -M $< | sed 's,hfs\.o[ :]*,grub_emu-fs_hfs.o $@ : ,= g' > $@; [ -s $@ ] || rm -f $@ + +-include grub_emu-fs_hfs.d + +grub_emu-fs_iso9660.o: fs/iso9660.c + $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=3D1 $(grub_em= u_CFLAGS) -c -o $@ $< + +grub_emu-fs_iso9660.d: fs/iso9660.c + set -e; $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=3D= 1 $(grub_emu_CFLAGS) -M $< | sed 's,iso9660\.o[ :]*,grub_emu-fs_iso9660.= o $@ : ,g' > $@; [ -s $@ ] || rm -f $@ + +-include grub_emu-fs_iso9660.d + +grub_emu-fs_jfs.o: fs/jfs.c + $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=3D1 $(grub_em= u_CFLAGS) -c -o $@ $< + +grub_emu-fs_jfs.d: fs/jfs.c + set -e; $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=3D= 1 $(grub_emu_CFLAGS) -M $< | sed 's,jfs\.o[ :]*,grub_emu-fs_jfs.o $@ : ,= g' > $@; [ -s $@ ] || rm -f $@ + +-include grub_emu-fs_jfs.d + +grub_emu-fs_minix.o: fs/minix.c + $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=3D1 $(grub_em= u_CFLAGS) -c -o $@ $< + +grub_emu-fs_minix.d: fs/minix.c + set -e; $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=3D= 1 $(grub_emu_CFLAGS) -M $< | sed 's,minix\.o[ :]*,grub_emu-fs_minix.o $@= : ,g' > $@; [ -s $@ ] || rm -f $@ + +-include grub_emu-fs_minix.d + +grub_emu-fs_sfs.o: fs/sfs.c + $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=3D1 $(grub_em= u_CFLAGS) -c -o $@ $< + +grub_emu-fs_sfs.d: fs/sfs.c + set -e; $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=3D= 1 $(grub_emu_CFLAGS) -M $< | sed 's,sfs\.o[ :]*,grub_emu-fs_sfs.o $@ : ,= g' > $@; [ -s $@ ] || rm -f $@ + +-include grub_emu-fs_sfs.d + +grub_emu-fs_ufs.o: fs/ufs.c + $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=3D1 $(grub_em= u_CFLAGS) -c -o $@ $< + +grub_emu-fs_ufs.d: fs/ufs.c + set -e; $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=3D= 1 $(grub_emu_CFLAGS) -M $< | sed 's,ufs\.o[ :]*,grub_emu-fs_ufs.o $@ : ,= g' > $@; [ -s $@ ] || rm -f $@ + +-include grub_emu-fs_ufs.d + +grub_emu-fs_xfs.o: fs/xfs.c + $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=3D1 $(grub_em= u_CFLAGS) -c -o $@ $< + +grub_emu-fs_xfs.d: fs/xfs.c + set -e; $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=3D= 1 $(grub_emu_CFLAGS) -M $< | sed 's,xfs\.o[ :]*,grub_emu-fs_xfs.o $@ : ,= g' > $@; [ -s $@ ] || rm -f $@ + +-include grub_emu-fs_xfs.d + +grub_emu-fs_hfsplus.o: fs/hfsplus.c + $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=3D1 $(grub_em= u_CFLAGS) -c -o $@ $< + +grub_emu-fs_hfsplus.d: fs/hfsplus.c + set -e; $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=3D= 1 $(grub_emu_CFLAGS) -M $< | sed 's,hfsplus\.o[ :]*,grub_emu-fs_hfsplus.= o $@ : ,g' > $@; [ -s $@ ] || rm -f $@ + +-include grub_emu-fs_hfsplus.d + +grub_emu-io_gzio.o: io/gzio.c + $(CC) -Iio -I$(srcdir)/io $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=3D1 $(grub_em= u_CFLAGS) -c -o $@ $< + +grub_emu-io_gzio.d: io/gzio.c + set -e; $(CC) -Iio -I$(srcdir)/io $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=3D= 1 $(grub_emu_CFLAGS) -M $< | sed 's,gzio\.o[ :]*,grub_emu-io_gzio.o $@ := ,g' > $@; [ -s $@ ] || rm -f $@ + +-include grub_emu-io_gzio.d + +grub_emu-kern_device.o: kern/device.c + $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=3D1 $(gru= b_emu_CFLAGS) -c -o $@ $< + +grub_emu-kern_device.d: kern/device.c + set -e; $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTI= L=3D1 $(grub_emu_CFLAGS) -M $< | sed 's,device\.o[ :]*,grub_emu-kern_dev= ice.o $@ : ,g' > $@; [ -s $@ ] || rm -f $@ + +-include grub_emu-kern_device.d + +grub_emu-kern_disk.o: kern/disk.c + $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=3D1 $(gru= b_emu_CFLAGS) -c -o $@ $< + +grub_emu-kern_disk.d: kern/disk.c + set -e; $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTI= L=3D1 $(grub_emu_CFLAGS) -M $< | sed 's,disk\.o[ :]*,grub_emu-kern_disk.= o $@ : ,g' > $@; [ -s $@ ] || rm -f $@ + +-include grub_emu-kern_disk.d + +grub_emu-kern_dl.o: kern/dl.c + $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=3D1 $(gru= b_emu_CFLAGS) -c -o $@ $< + +grub_emu-kern_dl.d: kern/dl.c + set -e; $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTI= L=3D1 $(grub_emu_CFLAGS) -M $< | sed 's,dl\.o[ :]*,grub_emu-kern_dl.o $@= : ,g' > $@; [ -s $@ ] || rm -f $@ + +-include grub_emu-kern_dl.d + +grub_emu-kern_env.o: kern/env.c + $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=3D1 $(gru= b_emu_CFLAGS) -c -o $@ $< + +grub_emu-kern_env.d: kern/env.c + set -e; $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTI= L=3D1 $(grub_emu_CFLAGS) -M $< | sed 's,env\.o[ :]*,grub_emu-kern_env.o = $@ : ,g' > $@; [ -s $@ ] || rm -f $@ + +-include grub_emu-kern_env.d + +grub_emu-kern_err.o: kern/err.c + $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=3D1 $(gru= b_emu_CFLAGS) -c -o $@ $< + +grub_emu-kern_err.d: kern/err.c + set -e; $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTI= L=3D1 $(grub_emu_CFLAGS) -M $< | sed 's,err\.o[ :]*,grub_emu-kern_err.o = $@ : ,g' > $@; [ -s $@ ] || rm -f $@ + +-include grub_emu-kern_err.d + +grub_emu-normal_execute.o: normal/execute.c + $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=3D1 $= (grub_emu_CFLAGS) -c -o $@ $< + +grub_emu-normal_execute.d: normal/execute.c + set -e; $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) -DGRUB= _UTIL=3D1 $(grub_emu_CFLAGS) -M $< | sed 's,execute\.o[ :]*,grub_emu-nor= mal_execute.o $@ : ,g' > $@; [ -s $@ ] || rm -f $@ + +-include grub_emu-normal_execute.d + +grub_emu-kern_file.o: kern/file.c + $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=3D1 $(gru= b_emu_CFLAGS) -c -o $@ $< + +grub_emu-kern_file.d: kern/file.c + set -e; $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTI= L=3D1 $(grub_emu_CFLAGS) -M $< | sed 's,file\.o[ :]*,grub_emu-kern_file.= o $@ : ,g' > $@; [ -s $@ ] || rm -f $@ + +-include grub_emu-kern_file.d + +grub_emu-kern_fs.o: kern/fs.c + $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=3D1 $(gru= b_emu_CFLAGS) -c -o $@ $< + +grub_emu-kern_fs.d: kern/fs.c + set -e; $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTI= L=3D1 $(grub_emu_CFLAGS) -M $< | sed 's,fs\.o[ :]*,grub_emu-kern_fs.o $@= : ,g' > $@; [ -s $@ ] || rm -f $@ + +-include grub_emu-kern_fs.d + +grub_emu-normal_lexer.o: normal/lexer.c + $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=3D1 $= (grub_emu_CFLAGS) -c -o $@ $< + +grub_emu-normal_lexer.d: normal/lexer.c + set -e; $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) -DGRUB= _UTIL=3D1 $(grub_emu_CFLAGS) -M $< | sed 's,lexer\.o[ :]*,grub_emu-norma= l_lexer.o $@ : ,g' > $@; [ -s $@ ] || rm -f $@ + +-include grub_emu-normal_lexer.d + +grub_emu-kern_loader.o: kern/loader.c + $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=3D1 $(gru= b_emu_CFLAGS) -c -o $@ $< + +grub_emu-kern_loader.d: kern/loader.c + set -e; $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTI= L=3D1 $(grub_emu_CFLAGS) -M $< | sed 's,loader\.o[ :]*,grub_emu-kern_loa= der.o $@ : ,g' > $@; [ -s $@ ] || rm -f $@ + +-include grub_emu-kern_loader.d + +grub_emu-kern_main.o: kern/main.c + $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=3D1 $(gru= b_emu_CFLAGS) -c -o $@ $< + +grub_emu-kern_main.d: kern/main.c + set -e; $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTI= L=3D1 $(grub_emu_CFLAGS) -M $< | sed 's,main\.o[ :]*,grub_emu-kern_main.= o $@ : ,g' > $@; [ -s $@ ] || rm -f $@ + +-include grub_emu-kern_main.d + +grub_emu-kern_misc.o: kern/misc.c + $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=3D1 $(gru= b_emu_CFLAGS) -c -o $@ $< + +grub_emu-kern_misc.d: kern/misc.c + set -e; $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTI= L=3D1 $(grub_emu_CFLAGS) -M $< | sed 's,misc\.o[ :]*,grub_emu-kern_misc.= o $@ : ,g' > $@; [ -s $@ ] || rm -f $@ + +-include grub_emu-kern_misc.d + +grub_emu-kern_parser.o: kern/parser.c + $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=3D1 $(gru= b_emu_CFLAGS) -c -o $@ $< + +grub_emu-kern_parser.d: kern/parser.c + set -e; $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTI= L=3D1 $(grub_emu_CFLAGS) -M $< | sed 's,parser\.o[ :]*,grub_emu-kern_par= ser.o $@ : ,g' > $@; [ -s $@ ] || rm -f $@ + +-include grub_emu-kern_parser.d + +grub_emu-grub_script_tab.o: grub_script.tab.c + $(CC) -I. -I$(srcdir)/. $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=3D1 $(grub_emu_= CFLAGS) -c -o $@ $< + +grub_emu-grub_script_tab.d: grub_script.tab.c + set -e; $(CC) -I. -I$(srcdir)/. $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=3D1 = $(grub_emu_CFLAGS) -M $< | sed 's,grub_script\.tab\.o[ :]*,grub_emu-grub= _script_tab.o $@ : ,g' > $@; [ -s $@ ] || rm -f $@ + +-include grub_emu-grub_script_tab.d + +grub_emu-kern_partition.o: kern/partition.c + $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=3D1 $(gru= b_emu_CFLAGS) -c -o $@ $< + +grub_emu-kern_partition.d: kern/partition.c + set -e; $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTI= L=3D1 $(grub_emu_CFLAGS) -M $< | sed 's,partition\.o[ :]*,grub_emu-kern_= partition.o $@ : ,g' > $@; [ -s $@ ] || rm -f $@ + +-include grub_emu-kern_partition.d + +grub_emu-kern_rescue.o: kern/rescue.c + $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=3D1 $(gru= b_emu_CFLAGS) -c -o $@ $< + +grub_emu-kern_rescue.d: kern/rescue.c + set -e; $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTI= L=3D1 $(grub_emu_CFLAGS) -M $< | sed 's,rescue\.o[ :]*,grub_emu-kern_res= cue.o $@ : ,g' > $@; [ -s $@ ] || rm -f $@ + +-include grub_emu-kern_rescue.d + +grub_emu-kern_term.o: kern/term.c + $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=3D1 $(gru= b_emu_CFLAGS) -c -o $@ $< + +grub_emu-kern_term.d: kern/term.c + set -e; $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTI= L=3D1 $(grub_emu_CFLAGS) -M $< | sed 's,term\.o[ :]*,grub_emu-kern_term.= o $@ : ,g' > $@; [ -s $@ ] || rm -f $@ + +-include grub_emu-kern_term.d + +grub_emu-normal_arg.o: normal/arg.c + $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=3D1 $= (grub_emu_CFLAGS) -c -o $@ $< + +grub_emu-normal_arg.d: normal/arg.c + set -e; $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) -DGRUB= _UTIL=3D1 $(grub_emu_CFLAGS) -M $< | sed 's,arg\.o[ :]*,grub_emu-normal_= arg.o $@ : ,g' > $@; [ -s $@ ] || rm -f $@ + +-include grub_emu-normal_arg.d + +grub_emu-normal_cmdline.o: normal/cmdline.c + $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=3D1 $= (grub_emu_CFLAGS) -c -o $@ $< + +grub_emu-normal_cmdline.d: normal/cmdline.c + set -e; $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) -DGRUB= _UTIL=3D1 $(grub_emu_CFLAGS) -M $< | sed 's,cmdline\.o[ :]*,grub_emu-nor= mal_cmdline.o $@ : ,g' > $@; [ -s $@ ] || rm -f $@ + +-include grub_emu-normal_cmdline.d + +grub_emu-normal_command.o: normal/command.c + $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=3D1 $= (grub_emu_CFLAGS) -c -o $@ $< + +grub_emu-normal_command.d: normal/command.c + set -e; $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) -DGRUB= _UTIL=3D1 $(grub_emu_CFLAGS) -M $< | sed 's,command\.o[ :]*,grub_emu-nor= mal_command.o $@ : ,g' > $@; [ -s $@ ] || rm -f $@ + +-include grub_emu-normal_command.d + +grub_emu-normal_function.o: normal/function.c + $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=3D1 $= (grub_emu_CFLAGS) -c -o $@ $< + +grub_emu-normal_function.d: normal/function.c + set -e; $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) -DGRUB= _UTIL=3D1 $(grub_emu_CFLAGS) -M $< | sed 's,function\.o[ :]*,grub_emu-no= rmal_function.o $@ : ,g' > $@; [ -s $@ ] || rm -f $@ + +-include grub_emu-normal_function.d + +grub_emu-normal_completion.o: normal/completion.c + $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=3D1 $= (grub_emu_CFLAGS) -c -o $@ $< + +grub_emu-normal_completion.d: normal/completion.c + set -e; $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) -DGRUB= _UTIL=3D1 $(grub_emu_CFLAGS) -M $< | sed 's,completion\.o[ :]*,grub_emu-= normal_completion.o $@ : ,g' > $@; [ -s $@ ] || rm -f $@ + +-include grub_emu-normal_completion.d + +grub_emu-normal_main.o: normal/main.c + $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=3D1 $= (grub_emu_CFLAGS) -c -o $@ $< + +grub_emu-normal_main.d: normal/main.c + set -e; $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) -DGRUB= _UTIL=3D1 $(grub_emu_CFLAGS) -M $< | sed 's,main\.o[ :]*,grub_emu-normal= _main.o $@ : ,g' > $@; [ -s $@ ] || rm -f $@ + +-include grub_emu-normal_main.d + +grub_emu-normal_menu.o: normal/menu.c + $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=3D1 $= (grub_emu_CFLAGS) -c -o $@ $< + +grub_emu-normal_menu.d: normal/menu.c + set -e; $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) -DGRUB= _UTIL=3D1 $(grub_emu_CFLAGS) -M $< | sed 's,menu\.o[ :]*,grub_emu-normal= _menu.o $@ : ,g' > $@; [ -s $@ ] || rm -f $@ + +-include grub_emu-normal_menu.d + +grub_emu-normal_menu_entry.o: normal/menu_entry.c + $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=3D1 $= (grub_emu_CFLAGS) -c -o $@ $< + +grub_emu-normal_menu_entry.d: normal/menu_entry.c + set -e; $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) -DGRUB= _UTIL=3D1 $(grub_emu_CFLAGS) -M $< | sed 's,menu_entry\.o[ :]*,grub_emu-= normal_menu_entry.o $@ : ,g' > $@; [ -s $@ ] || rm -f $@ + +-include grub_emu-normal_menu_entry.d + +grub_emu-normal_misc.o: normal/misc.c + $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=3D1 $= (grub_emu_CFLAGS) -c -o $@ $< + +grub_emu-normal_misc.d: normal/misc.c + set -e; $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) -DGRUB= _UTIL=3D1 $(grub_emu_CFLAGS) -M $< | sed 's,misc\.o[ :]*,grub_emu-normal= _misc.o $@ : ,g' > $@; [ -s $@ ] || rm -f $@ + +-include grub_emu-normal_misc.d + +grub_emu-normal_script.o: normal/script.c + $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=3D1 $= (grub_emu_CFLAGS) -c -o $@ $< + +grub_emu-normal_script.d: normal/script.c + set -e; $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) -DGRUB= _UTIL=3D1 $(grub_emu_CFLAGS) -M $< | sed 's,script\.o[ :]*,grub_emu-norm= al_script.o $@ : ,g' > $@; [ -s $@ ] || rm -f $@ + +-include grub_emu-normal_script.d + +grub_emu-partmap_amiga.o: partmap/amiga.c + $(CC) -Ipartmap -I$(srcdir)/partmap $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=3D1= $(grub_emu_CFLAGS) -c -o $@ $< + +grub_emu-partmap_amiga.d: partmap/amiga.c + set -e; $(CC) -Ipartmap -I$(srcdir)/partmap $(CPPFLAGS) $(CFLAGS) -DGR= UB_UTIL=3D1 $(grub_emu_CFLAGS) -M $< | sed 's,amiga\.o[ :]*,grub_emu-par= tmap_amiga.o $@ : ,g' > $@; [ -s $@ ] || rm -f $@ + +-include grub_emu-partmap_amiga.d + +grub_emu-partmap_apple.o: partmap/apple.c + $(CC) -Ipartmap -I$(srcdir)/partmap $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=3D1= $(grub_emu_CFLAGS) -c -o $@ $< + +grub_emu-partmap_apple.d: partmap/apple.c + set -e; $(CC) -Ipartmap -I$(srcdir)/partmap $(CPPFLAGS) $(CFLAGS) -DGR= UB_UTIL=3D1 $(grub_emu_CFLAGS) -M $< | sed 's,apple\.o[ :]*,grub_emu-par= tmap_apple.o $@ : ,g' > $@; [ -s $@ ] || rm -f $@ + +-include grub_emu-partmap_apple.d + +grub_emu-partmap_pc.o: partmap/pc.c + $(CC) -Ipartmap -I$(srcdir)/partmap $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=3D1= $(grub_emu_CFLAGS) -c -o $@ $< + +grub_emu-partmap_pc.d: partmap/pc.c + set -e; $(CC) -Ipartmap -I$(srcdir)/partmap $(CPPFLAGS) $(CFLAGS) -DGR= UB_UTIL=3D1 $(grub_emu_CFLAGS) -M $< | sed 's,pc\.o[ :]*,grub_emu-partma= p_pc.o $@ : ,g' > $@; [ -s $@ ] || rm -f $@ + +-include grub_emu-partmap_pc.d + +grub_emu-partmap_sun.o: partmap/sun.c + $(CC) -Ipartmap -I$(srcdir)/partmap $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=3D1= $(grub_emu_CFLAGS) -c -o $@ $< + +grub_emu-partmap_sun.d: partmap/sun.c + set -e; $(CC) -Ipartmap -I$(srcdir)/partmap $(CPPFLAGS) $(CFLAGS) -DGR= UB_UTIL=3D1 $(grub_emu_CFLAGS) -M $< | sed 's,sun\.o[ :]*,grub_emu-partm= ap_sun.o $@ : ,g' > $@; [ -s $@ ] || rm -f $@ + +-include grub_emu-partmap_sun.d + +grub_emu-partmap_acorn.o: partmap/acorn.c + $(CC) -Ipartmap -I$(srcdir)/partmap $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=3D1= $(grub_emu_CFLAGS) -c -o $@ $< + +grub_emu-partmap_acorn.d: partmap/acorn.c + set -e; $(CC) -Ipartmap -I$(srcdir)/partmap $(CPPFLAGS) $(CFLAGS) -DGR= UB_UTIL=3D1 $(grub_emu_CFLAGS) -M $< | sed 's,acorn\.o[ :]*,grub_emu-par= tmap_acorn.o $@ : ,g' > $@; [ -s $@ ] || rm -f $@ + +-include grub_emu-partmap_acorn.d + +grub_emu-partmap_gpt.o: partmap/gpt.c + $(CC) -Ipartmap -I$(srcdir)/partmap $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=3D1= $(grub_emu_CFLAGS) -c -o $@ $< + +grub_emu-partmap_gpt.d: partmap/gpt.c + set -e; $(CC) -Ipartmap -I$(srcdir)/partmap $(CPPFLAGS) $(CFLAGS) -DGR= UB_UTIL=3D1 $(grub_emu_CFLAGS) -M $< | sed 's,gpt\.o[ :]*,grub_emu-partm= ap_gpt.o $@ : ,g' > $@; [ -s $@ ] || rm -f $@ + +-include grub_emu-partmap_gpt.d + +grub_emu-util_i386_pc_biosdisk.o: util/i386/pc/biosdisk.c + $(CC) -Iutil/i386/pc -I$(srcdir)/util/i386/pc $(CPPFLAGS) $(CFLAGS) -DGRU= B_UTIL=3D1 $(grub_emu_CFLAGS) -c -o $@ $< + +grub_emu-util_i386_pc_biosdisk.d: util/i386/pc/biosdisk.c + set -e; $(CC) -Iutil/i386/pc -I$(srcdir)/util/i386/pc $(CPPFLAGS) $(CF= LAGS) -DGRUB_UTIL=3D1 $(grub_emu_CFLAGS) -M $< | sed 's,biosdisk\.o[ :]*= ,grub_emu-util_i386_pc_biosdisk.o $@ : ,g' > $@; [ -s $@ ] || rm -f $@ + +-include grub_emu-util_i386_pc_biosdisk.d + +grub_emu-util_i386_pc_getroot.o: util/i386/pc/getroot.c + $(CC) -Iutil/i386/pc -I$(srcdir)/util/i386/pc $(CPPFLAGS) $(CFLAGS) -DGRU= B_UTIL=3D1 $(grub_emu_CFLAGS) -c -o $@ $< + +grub_emu-util_i386_pc_getroot.d: util/i386/pc/getroot.c + set -e; $(CC) -Iutil/i386/pc -I$(srcdir)/util/i386/pc $(CPPFLAGS) $(CF= LAGS) -DGRUB_UTIL=3D1 $(grub_emu_CFLAGS) -M $< | sed 's,getroot\.o[ :]*,= grub_emu-util_i386_pc_getroot.o $@ : ,g' > $@; [ -s $@ ] || rm -f $@ + +-include grub_emu-util_i386_pc_getroot.d + +grub_emu-util_console.o: util/console.c + $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=3D1 $(gru= b_emu_CFLAGS) -c -o $@ $< + +grub_emu-util_console.d: util/console.c + set -e; $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTI= L=3D1 $(grub_emu_CFLAGS) -M $< | sed 's,console\.o[ :]*,grub_emu-util_co= nsole.o $@ : ,g' > $@; [ -s $@ ] || rm -f $@ + +-include grub_emu-util_console.d + +grub_emu-util_grub_emu.o: util/grub-emu.c + $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=3D1 $(gru= b_emu_CFLAGS) -c -o $@ $< + +grub_emu-util_grub_emu.d: util/grub-emu.c + set -e; $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTI= L=3D1 $(grub_emu_CFLAGS) -M $< | sed 's,grub\-emu\.o[ :]*,grub_emu-util_= grub_emu.o $@ : ,g' > $@; [ -s $@ ] || rm -f $@ + +-include grub_emu-util_grub_emu.d + +grub_emu-util_misc.o: util/misc.c + $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=3D1 $(gru= b_emu_CFLAGS) -c -o $@ $< + +grub_emu-util_misc.d: util/misc.c + set -e; $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTI= L=3D1 $(grub_emu_CFLAGS) -M $< | sed 's,misc\.o[ :]*,grub_emu-util_misc.= o $@ : ,g' > $@; [ -s $@ ] || rm -f $@ + +-include grub_emu-util_misc.d + +grub_emu-grub_emu_init.o: grub_emu_init.c + $(CC) -I. -I$(srcdir)/. $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=3D1 $(grub_emu_= CFLAGS) -c -o $@ $< + +grub_emu-grub_emu_init.d: grub_emu_init.c + set -e; $(CC) -I. -I$(srcdir)/. $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=3D1 = $(grub_emu_CFLAGS) -M $< | sed 's,grub_emu_init\.o[ :]*,grub_emu-grub_em= u_init.o $@ : ,g' > $@; [ -s $@ ] || rm -f $@ + +-include grub_emu-grub_emu_init.d + + +grub_emu_LDFLAGS =3D $(LIBCURSES) + +# Modules. +pkgdata_MODULES =3D normal.mod + +# For normal.mod. +normal_mod_SOURCES =3D normal/arg.c normal/cmdline.c normal/command.c \ + normal/completion.c normal/execute.c \ + normal/function.c normal/lexer.c normal/main.c normal/menu.c \ + normal/menu_entry.c normal/misc.c grub_script.tab.c \ + normal/script.c normal/hppa/setjmp.S +CLEANFILES +=3D normal.mod mod-normal.o mod-normal.c pre-normal.o normal_m= od-normal_arg.o normal_mod-normal_cmdline.o normal_mod-normal_command.o nor= mal_mod-normal_completion.o normal_mod-normal_execute.o normal_mod-normal_f= unction.o normal_mod-normal_lexer.o normal_mod-normal_main.o normal_mod-nor= mal_menu.o normal_mod-normal_menu_entry.o normal_mod-normal_misc.o normal_m= od-grub_script_tab.o normal_mod-normal_script.o normal_mod-normal_hppa_setj= mp.o und-normal.lst +ifneq ($(normal_mod_EXPORTS),no) +CLEANFILES +=3D def-normal.lst +DEFSYMFILES +=3D def-normal.lst +endif +MOSTLYCLEANFILES +=3D normal_mod-normal_arg.d normal_mod-normal_cmdline.d = normal_mod-normal_command.d normal_mod-normal_completion.d normal_mod-norma= l_execute.d normal_mod-normal_function.d normal_mod-normal_lexer.d normal_m= od-normal_main.d normal_mod-normal_menu.d normal_mod-normal_menu_entry.d no= rmal_mod-normal_misc.d normal_mod-grub_script_tab.d normal_mod-normal_scrip= t.d normal_mod-normal_hppa_setjmp.d +UNDSYMFILES +=3D und-normal.lst + +normal.mod: pre-normal.o mod-normal.o + -rm -f $@ + $(TARGET_CC) $(normal_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^ + $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R .= comment $@ + +pre-normal.o: normal_mod-normal_arg.o normal_mod-normal_cmdline.o normal_m= od-normal_command.o normal_mod-normal_completion.o normal_mod-normal_execut= e.o normal_mod-normal_function.o normal_mod-normal_lexer.o normal_mod-norma= l_main.o normal_mod-normal_menu.o normal_mod-normal_menu_entry.o normal_mod= -normal_misc.o normal_mod-grub_script_tab.o normal_mod-normal_script.o norm= al_mod-normal_hppa_setjmp.o + -rm -f $@ + $(TARGET_CC) $(normal_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^ + +mod-normal.o: mod-normal.c + $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -c = -o $@ $< + +mod-normal.c: moddep.lst genmodsrc.sh + sh $(srcdir)/genmodsrc.sh 'normal' $< > $@ || (rm -f $@; exit 1) + +ifneq ($(normal_mod_EXPORTS),no) +def-normal.lst: pre-normal.o + $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 normal/' > $@ +endif + +und-normal.lst: pre-normal.o + echo 'normal' > $@ + $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ + +normal_mod-normal_arg.o: normal/arg.c + $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLA= GS) $(normal_mod_CFLAGS) -c -o $@ $< + +normal_mod-normal_arg.d: normal/arg.c + set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(= TARGET_CFLAGS) $(normal_mod_CFLAGS) -M $< | sed 's,arg\.o[ :]*,normal_mo= d-normal_arg.o $@ : ,g' > $@; [ -s $@ ] || rm -f $@ + +-include normal_mod-normal_arg.d + +CLEANFILES +=3D cmd-normal_mod-normal_arg.lst fs-normal_mod-normal_arg.lst +COMMANDFILES +=3D cmd-normal_mod-normal_arg.lst +FSFILES +=3D fs-normal_mod-normal_arg.lst + +cmd-normal_mod-normal_arg.lst: normal/arg.c gencmdlist.sh + set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(= TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh n= ormal > $@ || (rm -f $@; exit 1) + +fs-normal_mod-normal_arg.lst: normal/arg.c genfslist.sh + set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(= TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh no= rmal > $@ || (rm -f $@; exit 1) + + +normal_mod-normal_cmdline.o: normal/cmdline.c + $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLA= GS) $(normal_mod_CFLAGS) -c -o $@ $< + +normal_mod-normal_cmdline.d: normal/cmdline.c + set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(= TARGET_CFLAGS) $(normal_mod_CFLAGS) -M $< | sed 's,cmdline\.o[ :]*,norma= l_mod-normal_cmdline.o $@ : ,g' > $@; [ -s $@ ] || rm -f $@ + +-include normal_mod-normal_cmdline.d + +CLEANFILES +=3D cmd-normal_mod-normal_cmdline.lst fs-normal_mod-normal_cmd= line.lst +COMMANDFILES +=3D cmd-normal_mod-normal_cmdline.lst +FSFILES +=3D fs-normal_mod-normal_cmdline.lst + +cmd-normal_mod-normal_cmdline.lst: normal/cmdline.c gencmdlist.sh + set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(= TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh n= ormal > $@ || (rm -f $@; exit 1) + +fs-normal_mod-normal_cmdline.lst: normal/cmdline.c genfslist.sh + set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(= TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh no= rmal > $@ || (rm -f $@; exit 1) + + +normal_mod-normal_command.o: normal/command.c + $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLA= GS) $(normal_mod_CFLAGS) -c -o $@ $< + +normal_mod-normal_command.d: normal/command.c + set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(= TARGET_CFLAGS) $(normal_mod_CFLAGS) -M $< | sed 's,command\.o[ :]*,norma= l_mod-normal_command.o $@ : ,g' > $@; [ -s $@ ] || rm -f $@ + +-include normal_mod-normal_command.d + +CLEANFILES +=3D cmd-normal_mod-normal_command.lst fs-normal_mod-normal_com= mand.lst +COMMANDFILES +=3D cmd-normal_mod-normal_command.lst +FSFILES +=3D fs-normal_mod-normal_command.lst + +cmd-normal_mod-normal_command.lst: normal/command.c gencmdlist.sh + set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(= TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh n= ormal > $@ || (rm -f $@; exit 1) + +fs-normal_mod-normal_command.lst: normal/command.c genfslist.sh + set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(= TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh no= rmal > $@ || (rm -f $@; exit 1) + + +normal_mod-normal_completion.o: normal/completion.c + $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLA= GS) $(normal_mod_CFLAGS) -c -o $@ $< + +normal_mod-normal_completion.d: normal/completion.c + set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(= TARGET_CFLAGS) $(normal_mod_CFLAGS) -M $< | sed 's,completion\.o[ :]*,no= rmal_mod-normal_completion.o $@ : ,g' > $@; [ -s $@ ] || rm -f $@ + +-include normal_mod-normal_completion.d + +CLEANFILES +=3D cmd-normal_mod-normal_completion.lst fs-normal_mod-normal_= completion.lst +COMMANDFILES +=3D cmd-normal_mod-normal_completion.lst +FSFILES +=3D fs-normal_mod-normal_completion.lst + +cmd-normal_mod-normal_completion.lst: normal/completion.c gencmdlist.sh + set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(= TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh n= ormal > $@ || (rm -f $@; exit 1) + +fs-normal_mod-normal_completion.lst: normal/completion.c genfslist.sh + set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(= TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh no= rmal > $@ || (rm -f $@; exit 1) + + +normal_mod-normal_execute.o: normal/execute.c + $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLA= GS) $(normal_mod_CFLAGS) -c -o $@ $< + +normal_mod-normal_execute.d: normal/execute.c + set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(= TARGET_CFLAGS) $(normal_mod_CFLAGS) -M $< | sed 's,execute\.o[ :]*,norma= l_mod-normal_execute.o $@ : ,g' > $@; [ -s $@ ] || rm -f $@ + +-include normal_mod-normal_execute.d + +CLEANFILES +=3D cmd-normal_mod-normal_execute.lst fs-normal_mod-normal_exe= cute.lst +COMMANDFILES +=3D cmd-normal_mod-normal_execute.lst +FSFILES +=3D fs-normal_mod-normal_execute.lst + +cmd-normal_mod-normal_execute.lst: normal/execute.c gencmdlist.sh + set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(= TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh n= ormal > $@ || (rm -f $@; exit 1) + +fs-normal_mod-normal_execute.lst: normal/execute.c genfslist.sh + set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(= TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh no= rmal > $@ || (rm -f $@; exit 1) + + +normal_mod-normal_function.o: normal/function.c + $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLA= GS) $(normal_mod_CFLAGS) -c -o $@ $< + +normal_mod-normal_function.d: normal/function.c + set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(= TARGET_CFLAGS) $(normal_mod_CFLAGS) -M $< | sed 's,function\.o[ :]*,norm= al_mod-normal_function.o $@ : ,g' > $@; [ -s $@ ] || rm -f $@ + +-include normal_mod-normal_function.d + +CLEANFILES +=3D cmd-normal_mod-normal_function.lst fs-normal_mod-normal_fu= nction.lst +COMMANDFILES +=3D cmd-normal_mod-normal_function.lst +FSFILES +=3D fs-normal_mod-normal_function.lst + +cmd-normal_mod-normal_function.lst: normal/function.c gencmdlist.sh + set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(= TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh n= ormal > $@ || (rm -f $@; exit 1) + +fs-normal_mod-normal_function.lst: normal/function.c genfslist.sh + set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(= TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh no= rmal > $@ || (rm -f $@; exit 1) + + +normal_mod-normal_lexer.o: normal/lexer.c + $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLA= GS) $(normal_mod_CFLAGS) -c -o $@ $< + +normal_mod-normal_lexer.d: normal/lexer.c + set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(= TARGET_CFLAGS) $(normal_mod_CFLAGS) -M $< | sed 's,lexer\.o[ :]*,normal_= mod-normal_lexer.o $@ : ,g' > $@; [ -s $@ ] || rm -f $@ + +-include normal_mod-normal_lexer.d + +CLEANFILES +=3D cmd-normal_mod-normal_lexer.lst fs-normal_mod-normal_lexer= =2Elst +COMMANDFILES +=3D cmd-normal_mod-normal_lexer.lst +FSFILES +=3D fs-normal_mod-normal_lexer.lst + +cmd-normal_mod-normal_lexer.lst: normal/lexer.c gencmdlist.sh + set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(= TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh n= ormal > $@ || (rm -f $@; exit 1) + +fs-normal_mod-normal_lexer.lst: normal/lexer.c genfslist.sh + set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(= TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh no= rmal > $@ || (rm -f $@; exit 1) + + +normal_mod-normal_main.o: normal/main.c + $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLA= GS) $(normal_mod_CFLAGS) -c -o $@ $< + +normal_mod-normal_main.d: normal/main.c + set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(= TARGET_CFLAGS) $(normal_mod_CFLAGS) -M $< | sed 's,main\.o[ :]*,normal_m= od-normal_main.o $@ : ,g' > $@; [ -s $@ ] || rm -f $@ + +-include normal_mod-normal_main.d + +CLEANFILES +=3D cmd-normal_mod-normal_main.lst fs-normal_mod-normal_main.l= st +COMMANDFILES +=3D cmd-normal_mod-normal_main.lst +FSFILES +=3D fs-normal_mod-normal_main.lst + +cmd-normal_mod-normal_main.lst: normal/main.c gencmdlist.sh + set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(= TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh n= ormal > $@ || (rm -f $@; exit 1) + +fs-normal_mod-normal_main.lst: normal/main.c genfslist.sh + set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(= TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh no= rmal > $@ || (rm -f $@; exit 1) + + +normal_mod-normal_menu.o: normal/menu.c + $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLA= GS) $(normal_mod_CFLAGS) -c -o $@ $< + +normal_mod-normal_menu.d: normal/menu.c + set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(= TARGET_CFLAGS) $(normal_mod_CFLAGS) -M $< | sed 's,menu\.o[ :]*,normal_m= od-normal_menu.o $@ : ,g' > $@; [ -s $@ ] || rm -f $@ + +-include normal_mod-normal_menu.d + +CLEANFILES +=3D cmd-normal_mod-normal_menu.lst fs-normal_mod-normal_menu.l= st +COMMANDFILES +=3D cmd-normal_mod-normal_menu.lst +FSFILES +=3D fs-normal_mod-normal_menu.lst + +cmd-normal_mod-normal_menu.lst: normal/menu.c gencmdlist.sh + set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(= TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh n= ormal > $@ || (rm -f $@; exit 1) + +fs-normal_mod-normal_menu.lst: normal/menu.c genfslist.sh + set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(= TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh no= rmal > $@ || (rm -f $@; exit 1) + + +normal_mod-normal_menu_entry.o: normal/menu_entry.c + $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLA= GS) $(normal_mod_CFLAGS) -c -o $@ $< + +normal_mod-normal_menu_entry.d: normal/menu_entry.c + set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(= TARGET_CFLAGS) $(normal_mod_CFLAGS) -M $< | sed 's,menu_entry\.o[ :]*,no= rmal_mod-normal_menu_entry.o $@ : ,g' > $@; [ -s $@ ] || rm -f $@ + +-include normal_mod-normal_menu_entry.d + +CLEANFILES +=3D cmd-normal_mod-normal_menu_entry.lst fs-normal_mod-normal_= menu_entry.lst +COMMANDFILES +=3D cmd-normal_mod-normal_menu_entry.lst +FSFILES +=3D fs-normal_mod-normal_menu_entry.lst + +cmd-normal_mod-normal_menu_entry.lst: normal/menu_entry.c gencmdlist.sh + set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(= TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh n= ormal > $@ || (rm -f $@; exit 1) + +fs-normal_mod-normal_menu_entry.lst: normal/menu_entry.c genfslist.sh + set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(= TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh no= rmal > $@ || (rm -f $@; exit 1) + + +normal_mod-normal_misc.o: normal/misc.c + $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLA= GS) $(normal_mod_CFLAGS) -c -o $@ $< + +normal_mod-normal_misc.d: normal/misc.c + set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(= TARGET_CFLAGS) $(normal_mod_CFLAGS) -M $< | sed 's,misc\.o[ :]*,normal_m= od-normal_misc.o $@ : ,g' > $@; [ -s $@ ] || rm -f $@ + +-include normal_mod-normal_misc.d + +CLEANFILES +=3D cmd-normal_mod-normal_misc.lst fs-normal_mod-normal_misc.l= st +COMMANDFILES +=3D cmd-normal_mod-normal_misc.lst +FSFILES +=3D fs-normal_mod-normal_misc.lst + +cmd-normal_mod-normal_misc.lst: normal/misc.c gencmdlist.sh + set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(= TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh n= ormal > $@ || (rm -f $@; exit 1) + +fs-normal_mod-normal_misc.lst: normal/misc.c genfslist.sh + set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(= TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh no= rmal > $@ || (rm -f $@; exit 1) + + +normal_mod-grub_script_tab.o: grub_script.tab.c + $(TARGET_CC) -I. -I$(srcdir)/. $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(norm= al_mod_CFLAGS) -c -o $@ $< + +normal_mod-grub_script_tab.d: grub_script.tab.c + set -e; $(TARGET_CC) -I. -I$(srcdir)/. $(TARGET_CPPFLAGS) $(TARGET_CFL= AGS) $(normal_mod_CFLAGS) -M $< | sed 's,grub_script\.tab\.o[ :]*,normal= _mod-grub_script_tab.o $@ : ,g' > $@; [ -s $@ ] || rm -f $@ + +-include normal_mod-grub_script_tab.d + +CLEANFILES +=3D cmd-normal_mod-grub_script_tab.lst fs-normal_mod-grub_scri= pt_tab.lst +COMMANDFILES +=3D cmd-normal_mod-grub_script_tab.lst +FSFILES +=3D fs-normal_mod-grub_script_tab.lst + +cmd-normal_mod-grub_script_tab.lst: grub_script.tab.c gencmdlist.sh + set -e; $(TARGET_CC) -I. -I$(srcdir)/. $(TARGET_CPPFLAGS) $(TARGET_CFL= AGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh normal > $@= || (rm -f $@; exit 1) + +fs-normal_mod-grub_script_tab.lst: grub_script.tab.c genfslist.sh + set -e; $(TARGET_CC) -I. -I$(srcdir)/. $(TARGET_CPPFLAGS) $(TARGET_CFL= AGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh normal > $@ = || (rm -f $@; exit 1) + + +normal_mod-normal_script.o: normal/script.c + $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLA= GS) $(normal_mod_CFLAGS) -c -o $@ $< + +normal_mod-normal_script.d: normal/script.c + set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(= TARGET_CFLAGS) $(normal_mod_CFLAGS) -M $< | sed 's,script\.o[ :]*,normal= _mod-normal_script.o $@ : ,g' > $@; [ -s $@ ] || rm -f $@ + +-include normal_mod-normal_script.d + +CLEANFILES +=3D cmd-normal_mod-normal_script.lst fs-normal_mod-normal_scri= pt.lst +COMMANDFILES +=3D cmd-normal_mod-normal_script.lst +FSFILES +=3D fs-normal_mod-normal_script.lst + +cmd-normal_mod-normal_script.lst: normal/script.c gencmdlist.sh + set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(= TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh n= ormal > $@ || (rm -f $@; exit 1) + +fs-normal_mod-normal_script.lst: normal/script.c genfslist.sh + set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(= TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh no= rmal > $@ || (rm -f $@; exit 1) + + +normal_mod-normal_hppa_setjmp.o: normal/hppa/setjmp.S + $(TARGET_CC) -Inormal/hppa -I$(srcdir)/normal/hppa $(TARGET_CPPFLAGS) $(T= ARGET_ASFLAGS) $(normal_mod_ASFLAGS) -c -o $@ $< + +normal_mod-normal_hppa_setjmp.d: normal/hppa/setjmp.S + set -e; $(TARGET_CC) -Inormal/hppa -I$(srcdir)/normal/hppa $(TARGET_CP= PFLAGS) $(TARGET_ASFLAGS) $(normal_mod_ASFLAGS) -M $< | sed 's,setjmp\.o= [ :]*,normal_mod-normal_hppa_setjmp.o $@ : ,g' > $@; [ -s $@ ] || rm -f = $@ + +-include normal_mod-normal_hppa_setjmp.d + +CLEANFILES +=3D cmd-normal_mod-normal_hppa_setjmp.lst fs-normal_mod-normal= _hppa_setjmp.lst +COMMANDFILES +=3D cmd-normal_mod-normal_hppa_setjmp.lst +FSFILES +=3D fs-normal_mod-normal_hppa_setjmp.lst + +cmd-normal_mod-normal_hppa_setjmp.lst: normal/hppa/setjmp.S gencmdlist.sh + set -e; $(TARGET_CC) -Inormal/hppa -I$(srcdir)/normal/hppa $(TARGET_CP= PFLAGS) $(TARGET_ASFLAGS) $(normal_mod_ASFLAGS) -E $< | sh $(srcdir)/gen= cmdlist.sh normal > $@ || (rm -f $@; exit 1) + +fs-normal_mod-normal_hppa_setjmp.lst: normal/hppa/setjmp.S genfslist.sh + set -e; $(TARGET_CC) -Inormal/hppa -I$(srcdir)/normal/hppa $(TARGET_CP= PFLAGS) $(TARGET_ASFLAGS) $(normal_mod_ASFLAGS) -E $< | sh $(srcdir)/gen= fslist.sh normal > $@ || (rm -f $@; exit 1) + + +normal_mod_CFLAGS =3D $(COMMON_CFLAGS) +normal_mod_ASFLAGS =3D $(COMMON_ASFLAGS) +normal_mod_LDFLAGS =3D $(COMMON_LDFLAGS) + +include $(srcdir)/conf/common.mk + diff -ruN -x CVS grub2/conf/hppa-ipl.rmk grub2-work/conf/hppa-ipl.rmk --- grub2/conf/hppa-ipl.rmk 1969-12-31 19:00:00.000000000 -0500 +++ grub2-work/conf/hppa-ipl.rmk 2006-08-05 08:00:50.000000000 -0400 @@ -0,0 +1,46 @@ +# -*- makefile -*- + +COMMON_ASFLAGS =3D -nostdinc -fno-builtin=20 +COMMON_CFLAGS =3D -fno-builtin=20 +COMMON_LDFLAGS =3D -melf32_hppa -nostdlib + +sbin_UTILITIES =3D grub-emu + +grub_emu_SOURCES =3D commands/boot.c commands/cat.c commands/cmp.c \ + commands/configfile.c commands/help.c \ + commands/terminal.c commands/ls.c commands/test.c \ + commands/search.c commands/blocklist.c \ + disk/loopback.c \ + fs/affs.c fs/ext2.c fs/fat.c fs/fshelp.c fs/hfs.c fs/iso9660.c \ + fs/jfs.c fs/minix.c fs/sfs.c fs/ufs.c fs/xfs.c fs/hfsplus.c \ + io/gzio.c \ + kern/device.c kern/disk.c kern/dl.c kern/env.c kern/err.c \ + normal/execute.c kern/file.c kern/fs.c normal/lexer.c \ + kern/loader.c kern/main.c kern/misc.c kern/parser.c \ + grub_script.tab.c kern/partition.c kern/rescue.c kern/term.c \ + normal/arg.c normal/cmdline.c normal/command.c normal/function.c\ + normal/completion.c normal/main.c \ + normal/menu.c normal/menu_entry.c normal/misc.c normal/script.c \ + partmap/amiga.c partmap/apple.c partmap/pc.c partmap/sun.c \ + partmap/acorn.c partmap/gpt.c \ + util/i386/pc/biosdisk.c util/i386/pc/getroot.c \ + util/console.c util/grub-emu.c util/misc.c \ + grub_emu_init.c + +grub_emu_LDFLAGS =3D $(LIBCURSES) + +# Modules. +pkgdata_MODULES =3D normal.mod + +# For normal.mod. +normal_mod_SOURCES =3D normal/arg.c normal/cmdline.c normal/command.c \ + normal/completion.c normal/execute.c \ + normal/function.c normal/lexer.c normal/main.c normal/menu.c \ + normal/menu_entry.c normal/misc.c grub_script.tab.c \ + normal/script.c normal/hppa/setjmp.S +normal_mod_CFLAGS =3D $(COMMON_CFLAGS) +normal_mod_ASFLAGS =3D $(COMMON_ASFLAGS) +normal_mod_LDFLAGS =3D $(COMMON_LDFLAGS) + +include $(srcdir)/conf/common.mk + diff -ruN -x CVS grub2/configure grub2-work/configure --- grub2/configure 2006-07-12 16:42:52.000000000 -0400 +++ grub2-work/configure 2006-07-26 14:16:55.000000000 -0400 @@ -1440,6 +1440,7 @@ powerpc) ;; powerpc64) target_cpu=3Dpowerpc target_m32=3D1;; sparc64) ;; + hppa*) target_cpu=3Dhppa;; *) { { echo "$as_me:$LINENO: error: unsupported CPU type" >&5 echo "$as_me: error: unsupported CPU type" >&2;} { (exit 1); exit 1; }; } ;; @@ -1458,6 +1459,7 @@ case "$target_cpu"-"$target_vendor" in i386-apple) platform=3Defi ;; i386-*) platform=3Dpc ;; + hppa*-*) platform=3Dipl ;; powerpc-*) platform=3Dieee1275 ;; sparc64-*) platform=3Dieee1275 ;; *) { { echo "$as_me:$LINENO: error: unsupported machine type" >&5 @@ -1472,6 +1474,7 @@ case "$target_cpu"-"$platform" in i386-efi) ;; i386-pc) ;; + hppa*-ipl) ;; powerpc-ieee1275) ;; sparc64-ieee1275) ;; *) { { echo "$as_me:$LINENO: error: unsupported machine type" >&5 diff -ruN -x CVS grub2/configure.ac grub2-work/configure.ac --- grub2/configure.ac 2006-07-12 16:42:52.000000000 -0400 +++ grub2-work/configure.ac 2006-07-26 14:16:45.000000000 -0400 @@ -50,6 +50,7 @@ powerpc) ;; powerpc64) target_cpu=3Dpowerpc target_m32=3D1;; sparc64) ;; + hppa*) target_cpu=3Dhppa;; *) AC_MSG_ERROR([unsupported CPU type]) ;; esac =20 @@ -63,6 +64,7 @@ case "$target_cpu"-"$target_vendor" in i386-apple) platform=3Defi ;; i386-*) platform=3Dpc ;; + hppa*-*) platform=3Dipl ;; powerpc-*) platform=3Dieee1275 ;; sparc64-*) platform=3Dieee1275 ;; *) AC_MSG_ERROR([unsupported machine type]) ;; @@ -75,6 +77,7 @@ case "$target_cpu"-"$platform" in i386-efi) ;; i386-pc) ;; + hppa*-ipl) ;; powerpc-ieee1275) ;; sparc64-ieee1275) ;; *) AC_MSG_ERROR([unsupported machine type]) ;; diff -ruN -x CVS grub2/include/grub/hppa/ipl/biosdisk.h grub2-work/include/= grub/hppa/ipl/biosdisk.h --- grub2/include/grub/hppa/ipl/biosdisk.h 1969-12-31 19:00:00.000000000 -0= 500 +++ grub2-work/include/grub/hppa/ipl/biosdisk.h 2006-08-04 18:58:56.0000000= 00 -0400 @@ -0,0 +1,47 @@ +/* + * GRUB -- GRand Unified Bootloader + * Copyright (C) 2002, 2004 Free Software Foundation, Inc. + * + * GRUB 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 GRUB; if not, write to the Free Software + * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + */ + +#ifndef GRUB_BIOSDISK_MACHINE_HEADER +#define GRUB_BIOSDISK_MACHINE_HEADER 1 + +#define GRUB_BIOSDISK_FLAG_LBA 1 + +struct grub_biosdisk_data +{ + int drive; + unsigned long cylinders; + unsigned long heads; + unsigned long sectors; + unsigned long flags; +}; + +int grub_biosdisk_rw_int13_extensions (int ah, int drive, void *dap); +int grub_biosdisk_rw_standard (int ah, int drive, int coff, int hoff, + int soff, int nsec, int segment); +int grub_biosdisk_check_int13_extensions (int drive); +int grub_biosdisk_get_diskinfo_int13_extensions (int drive, void *drp); +int grub_biosdisk_get_diskinfo_standard (int drive, + unsigned long *cylinders, + unsigned long *heads, + unsigned long *sectors); +int grub_biosdisk_get_num_floppies (void); + +void grub_biosdisk_init (void); + +#endif /* ! GRUB_BIOSDISK_MACHINE_HEADER */ diff -ruN -x CVS grub2/include/grub/hppa/ipl/console.h grub2-work/include/g= rub/hppa/ipl/console.h --- grub2/include/grub/hppa/ipl/console.h 1969-12-31 19:00:00.000000000 -05= 00 +++ grub2-work/include/grub/hppa/ipl/console.h 2006-08-04 18:53:52.00000000= 0 -0400 @@ -0,0 +1,42 @@ +/* + * GRUB -- GRand Unified Bootloader + * Copyright (C) 2002, 2004, 2005 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. + */ + +#ifndef GRUB_CONSOLE_MACHINE_HEADER +#define GRUB_CONSOLE_MACHINE_HEADER 1 + +/* Define scan codes. */ +#define GRUB_CONSOLE_KEY_LEFT 0x4B00 +#define GRUB_CONSOLE_KEY_RIGHT 0x4D00 +#define GRUB_CONSOLE_KEY_UP 0x4800 +#define GRUB_CONSOLE_KEY_DOWN 0x5000 +#define GRUB_CONSOLE_KEY_IC 0x5200 +#define GRUB_CONSOLE_KEY_DC 0x5300 +#define GRUB_CONSOLE_KEY_BACKSPACE 0x0008 +#define GRUB_CONSOLE_KEY_HOME 0x4700 +#define GRUB_CONSOLE_KEY_END 0x4F00 +#define GRUB_CONSOLE_KEY_NPAGE 0x4900 +#define GRUB_CONSOLE_KEY_PPAGE 0x5100 + +/* Initialize the console system. */ +void grub_console_init (void); + +/* Finish the console system. */ +void grub_console_fini (void); + +#endif /* ! GRUB_CONSOLE_MACHINE_HEADER */ diff -ruN -x CVS grub2/include/grub/hppa/ipl/time.h grub2-work/include/grub= /hppa/ipl/time.h --- grub2/include/grub/hppa/ipl/time.h 1969-12-31 19:00:00.000000000 -0500 +++ grub2-work/include/grub/hppa/ipl/time.h 2006-08-04 18:49:33.000000000 -= 0400 @@ -0,0 +1,28 @@ +/* + * GRUB -- GRand Unified Bootloader + * Copyright (C) 2006 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., 51 Franklin Street, Fifth Floor, Boston, + * MA 02110-1301, USA. + */ + +#ifndef GRUB_MACHINE_TIME_HEADER +#define GRUB_MACHINE_TIME_HEADER 1 + +grub_uint32_t grub_get_rtc (); + +#define GRUB_TICKS_PER_SECOND 1193180 + +#endif /* ! GRUB_MACHINE_TIME_HEADER */ diff -ruN -x CVS grub2/include/grub/hppa/setjmp.h grub2-work/include/grub/h= ppa/setjmp.h --- grub2/include/grub/hppa/setjmp.h 1969-12-31 19:00:00.000000000 -0500 +++ grub2-work/include/grub/hppa/setjmp.h 2006-07-26 20:52:52.000000000 -04= 00 @@ -0,0 +1,25 @@ +/* + * GRUB -- GRand Unified Bootloader + * Copyright (C) 2003 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. + */ + +#ifndef GRUB_SETJMP_CPU_HEADER +#define GRUB_SETJMP_CPU_HEADER 1 + +typedef unsigned long grub_jmp_buf[21]; + +#endif /* ! GRUB_SETJMP_CPU_HEADER */ diff -ruN -x CVS grub2/include/grub/hppa/types.h grub2-work/include/grub/hp= pa/types.h --- grub2/include/grub/hppa/types.h 1969-12-31 19:00:00.000000000 -0500 +++ grub2-work/include/grub/hppa/types.h 2006-07-26 15:27:33.000000000 -0400 @@ -0,0 +1,29 @@ +/* + * GRUB -- GRand Unified Bootloader + * Copyright (C) 2006 Free Software Foundation, Inc. + * + * GRUB 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 GRUB; if not, write to the Free Software + * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + */ + +#ifndef GRUB_TYPES_CPU_HEADER +#define GRUB_TYPES_CPU_HEADER 1 + +/* The size of void *. */ +#define GRUB_TARGET_SIZEOF_VOID_P 4 + +/* The size of long. */ +#define GRUB_TARGET_SIZEOF_LONG 4 + +#endif /* ! GRUB_TYPES_CPU_HEADER */ Binary files grub2/kern/misc.o and grub2-work/kern/misc.o differ diff -ruN -x CVS grub2/Makefile.in grub2-work/Makefile.in --- grub2/Makefile.in 2006-05-28 19:01:43.000000000 -0400 +++ grub2-work/Makefile.in 2006-08-02 00:23:09.000000000 -0400 @@ -76,7 +76,7 @@ ### General variables. =20 RMKFILES =3D $(addprefix conf/,common.rmk i386-pc.rmk powerpc-ieee1275.rmk= \ - sparc64-ieee1275.rmk i386-efi.rmk) + sparc64-ieee1275.rmk i386-efi.rmk hppa-ipl.rmk) MKFILES =3D $(patsubst %.rmk,%.mk,$(RMKFILES)) =20 DATA =3D $(pkgdata_IMAGES) $(pkgdata_MODULES) $(pkgdata_PROGRAMS) \ diff -ruN -x CVS grub2/normal/hppa/setjmp.S grub2-work/normal/hppa/setjmp.S --- grub2/normal/hppa/setjmp.S 1969-12-31 19:00:00.000000000 -0500 +++ grub2-work/normal/hppa/setjmp.S 2006-07-26 21:17:18.000000000 -0400 @@ -0,0 +1,101 @@ +/* + * GRUB -- GRand Unified Bootloader + * Copyright (C) 2003 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 + + .file "setjmp.S" +=09 + .text +=09 +/* + * int grub_setjmp (grub_jmp_buf env) + */ +FUNCTION(grub_setjmp) + stw %r3,0(%r26) + stw %r4,8(%r26) + stw %r5,12(%r26) + stw %r6,16(%r26) + stw %r7,20(%r26) + stw %r8,24(%r26) + stw %r9,28(%r26) + stw %r10,32(%r26) + stw %r11,36(%r26) + stw %r12,40(%r26) + stw %r13,44(%r26) + stw %r14,48(%r26) + stw %r15,52(%r26) + stw %r16,56(%r26) + stw %r17,60(%r26) + stw %r18,64(%r26) + stw %r19,68(%r26) + stw %r27,72(%r26) + stw %r30,76(%r26) + stw %rp,80(%r26) + ldo 88(%r26),%r19 + fstd,ma %fr12,8(%r19) + fstd,ma %fr13,8(%r19) + fstd,ma %fr14,8(%r19) + fstd,ma %fr15,8(%r19) + fstd,ma %fr16,8(%r19) + fstd,ma %fr17,8(%r19) + fstd,ma %fr18,8(%r19) + fstd,ma %fr19,8(%r19) + fstd,ma %fr20,8(%r19) + fstd %fr21,0(%r19) + bv %r0(%rp) + copy %r0,%r28 + =09 +/* + * int grub_longjmp (grub_jmp_buf env, int val) + */ +FUNCTION(grub_longjmp) + ldw 0(%r26),%r3 + ldw 8(%r26),%r4 + ldw 12(%r26),%r5 + ldw 16(%r26),%r6 + ldw 20(%r26),%r7 + ldw 24(%r26),%r8 + ldw 28(%r26),%r9 + ldw 32(%r26),%r10 + ldw 36(%r26),%r11 + ldw 40(%r26),%r12 + ldw 44(%r26),%r13 + ldw 48(%r26),%r14 + ldw 52(%r26),%r15 + ldw 56(%r26),%r16 + ldw 60(%r26),%r17 + ldw 64(%r26),%r18 + ldw 68(%r26),%r19 + ldw 72(%r26),%r27 + ldw 76(%r26),%r30 + ldw 80(%r26),%rp + ldo 88(%r26),%r20 + fldd,ma 8(%r20),%fr12 + fldd,ma 8(%r20),%fr13 + fldd,ma 8(%r20),%fr14 + fldd,ma 8(%r20),%fr15 + fldd,ma 8(%r20),%fr16 + fldd,ma 8(%r20),%fr17 + fldd,ma 8(%r20),%fr18 + fldd,ma 8(%r20),%fr19 + fldd,ma 8(%r20),%fr20 + fldd 0(%r20),%fr21 + bv %r0(%rp) + copy %r25,%r28 +=09 --3V7upXqbjpZ4EhLz--