robertmh
b57d6a91c6
2007-05-05 Robert Millan <rmh@aybabtu.com>
...
* util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
initialisation.
2007-05-05 11:55:20 +00:00
robertmh
41f0050ea9
2007-04-19 Robert Millan <rmh@aybabtu.com>
...
* util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
it is used later.
2007-04-19 12:24:47 +00:00
jerone
1d543c3ec0
Add the ability to transform Grub program names. For example, a user can easily launch
...
./configure --program-transform-name="s/grub/grub2/"
And the installed files (in this case for i386-pc) will be:
/usr/lib/grub2/i386-pc/*
/usr/local/sbin/grub2-emu
/usr/local/sbin/grub2-install
...etc
Also grub2-install place boot files in "/boot/grub2"
This allows easy integration into distributions as it allows grub2 to
sit side by side with a grub legacy install without.
2007-04-10 21:38:26 +00:00
hollisb
a0cbb02386
2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
...
* conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
* kern/powerpc/ieee1275/init.c (_end): Add declaration.
(_start): Likewise.
(grub_arch_modules_addr): Return address after `_end'.
* util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
(load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
(add_segments): Calculate `_end' from phdr size and location.
(ALIGN_UP): Moved to ...
* include/grub/misc.h: here.
* include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
New macro.
(GRUB_IEEE1275_MODULE_BASE): Removed.
2007-02-21 23:22:20 +00:00
hollisb
02bb8accd5
2005-09-25 Hollis Blanchard <hollis@penguinppc.org>
...
* util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
2006-09-26 04:24:38 +00:00
okuji
b977bf01b3
2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
...
* util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
(target_cpu): New variable.
(pkglibdir): Use target_cpu instead of host_cpu.
* util/i386/pc/grub-install.in (host_cpu): Removed.
(target_cpu): New variable.
(pkglibdir): Use target_cpu instead of host_cpu.
* util/genmoddep.c: Removed.
* kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
instead of GRUB_HOST_SIZEOF_VOID_P.
* kern/dl.c: Likewise.
* include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
...
(GRUB_TARGET_SIZEOF_VOID_P): ... this.
(GRUB_HOST_SIZEOF_LONG): Renamed to ...
(GRUB_TARGET_SIZEOF_LONG): ... this.
(GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
(GRUB_TARGET_WORDS_BIGENDIAN): ... this.
* include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
to ...
(GRUB_TARGET_SIZEOF_VOID_P): ... this.
(GRUB_HOST_SIZEOF_LONG): Renamed to ...
(GRUB_TARGET_SIZEOF_LONG): ... this.
(GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
(GRUB_TARGET_WORDS_BIGENDIAN): ... this.
* include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
to ...
(GRUB_TARGET_SIZEOF_VOID_P): ... this.
(GRUB_HOST_SIZEOF_LONG): Renamed to ...
(GRUB_TARGET_SIZEOF_LONG): ... this.
(GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
(GRUB_TARGET_WORDS_BIGENDIAN): ... this.
* include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
[!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
instead of GRUB_HOST_SIZEOF_LONG.
[!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
GRUB_HOST_WORDS_BIGENDIAN to define or undefine
GRUB_CPU_WORDS_BIGENDIAN.
Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
grub_host_ssize_t.
* conf/i386-efi.rmk (noinst_UTILITIES): Removed.
(genmoddep_SOURCES): Likewise.
* conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
(genmoddep_SOURCES): Likewise.
* conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
(genmoddep_SOURCES): Likewise.
* conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
Likewise.
(genmoddep_SOURCES): Likewise.
* genmoddep.awk: New file.
* genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
(PModule::rule): Likewise.
(Program::rule): Likewise.
(Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
respectively.
* configure.ac: Rewritten intensively to use host and target
instead of build and host, respectively.
* Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
(host_cpu): Removed.
(target_cpu): New variable.
(CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
(BUILD_CC): Removed.
(BUILD_CFLAGS): Likewise.
(BUILD_CPPFLAGS): Likewise.
(TARGET_CC): New variable.
(TARGET_CFLAGS): Likewise.
(TARGET_CPPFLAGS): Likewise.
(TARGET_LDFLAGS): Likewise.
(AWK): Likewise.
(include): Use target_cpu instead of host_cpu.
(moddep.lst:): Use genmoddep.awk instead of genmoddep.
* DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
2006-05-28 23:01:43 +00:00
marco_g
5f0413bd2a
2006-05-08 Marco Gerards <marco@gnu.org>
...
* conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
this...
(kernel_elf_HEADERS): ...to this. Updated all users.
(grubof_symlist.c): Renamed from this...
(kernel_elf_symlist.c): ...to this. Updated all users.
(pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
(grubof_SOURCES): Renamed from this...
(kernel_elf_SOURCES): ...to this.
(grubof_HEADERS): Renamed from this...
(kernel_elf_HEADERS): ...to this.
(grubof_CFLAGS): Renamed from this...
(kernel_elf_CFLAGS): ...to this.
(grubof_ASFLAGS): Renamed from this...
(kernel_elf_ASFLAGS): ...to this.
(grubof_LDFLAGS): Renamed from this...
(kernel_elf_LDFLAGS): ...to this.
* conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
this...
(kernel_elf_HEADERS): ...to this. Updated all users.
(grubof_symlist.c): Renamed from this...
(kernel_elf_symlist.c): ...to this. Updated all users.
(pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
(grubof_SOURCES): Renamed from this...
(kernel_elf_SOURCES): ...to this.
(grubof_HEADERS): Renamed from this...
(kernel_elf_HEADERS): ...to this.
(grubof_CFLAGS): Renamed from this...
(kernel_elf_CFLAGS): ...to this.
(grubof_ASFLAGS): Renamed from this...
(kernel_elf_ASFLAGS): ...to this.
(grubof_LDFLAGS): Renamed from this...
(kernel_elf_LDFLAGS): ...to this.
* util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
`kernel.elf' instead of `grubof'.
2006-05-08 21:47:20 +00:00
okuji
05568c2e85
2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
...
Add --with-platform to configure. Use pkglibdir instead of
pkgdatadir. This is reported by Roger Leigh.
* util/powerpc/ieee1275/grub-install.in (datadir): Removed.
(host_vendor): Likewise.
(host_os): Likewise.
(pkgdatadir): Likewise.
(platform): New variable.
(pkglibdir): Likewise.
Use PKGLIBDIR instead of PKGDATADIR.
* util/i386/pc/grub-install.in (datadir): Removed.
(host_vendor): Likewise.
(host_os): Likewise.
(pkgdatadir): Likewise.
(platform): New variable.
(pkglibdir): Likewise.
Use PKGLIBDIR instead of PKGDATADIR.
* util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
instead of GRUB_DATADIR.
(main): Likewise.
* util/i386/pc/grub-mkimage.c (usage): Likewise.
(main): Likewise.
* util/i386/efi/grub-mkimage.c (usage): Likewise.
(main): Likewise.
* configure.ac (--with-platform): New option.
Use PLATFORM instead of HOST_VENDOR to specify a platform.
* Makefile.in: Include a makefile based on PLATFORM instead of
HOST_VENDOR.
(pkgdatadir): Not appended by the machine type.
(pkglibdir): Appended by the machine type.
(host_vendor): Removed.
(platform): New variable.
(BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
(install-local): Use PKGLIBDIR instead of PKGDATADIR.
(uninstall): Likewise.
2006-05-08 19:29:10 +00:00
hollisb
9abde152f5
2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
...
* util/powerpc/ieee1275/grub-install.in: Run the mount point
check before installing files.
2005-11-23 05:25:38 +00:00
hollisb
44b83271e6
2005-11-22 Mike Small <smallm@panix.com>
...
* util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
number regex so multidigit numbers are recognized correctly.
* loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
debugging message before attempting to claim memory.
(grub_rescue_cmd_initrd): Add a claim debugging message and try
multiple addresses in case of failure.
2005-11-23 04:25:16 +00:00
hollisb
4b60267db7
2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
...
* Makefile.in (install-local): Use $(DATA).
(uninstall): Likewise.
* conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
(sbin_UTILITIES): ... to here.
(sbin_SCRIPTS): New variable.
(grub_install_SOURCES): New variable.
* util/powerpc/ieee1275/grub-install.in: New file.
* util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
variable.
(add_segments): Call `grub_util_get_path'.
2005-11-03 05:05:05 +00:00
marco_g
121c1d832e
2005-06-30 Marco Gerards <metgerards@student.han.nl>
...
* configure.ac: Fix the test for cross-compiling.
* genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
define GRUB_UTIL anymore.
* util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
so this function works on other systems than just big endian.
(load_modules): Likewise.
(add_segments): Likewise.
2005-06-30 10:21:37 +00:00
hollisb
a5ce3a4a04
2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
...
* commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
instead of grub_ieee1275_interpret.
(grub_halt_init): New function.
(grub_halt_fini): Likewise.
(GRUB_MOD_INIT): Correct message grammar.
* commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
instead of grub_ieee1275_interpret.
(grub_reboot_init): New function.
(grub_reboot_fini): Likewise.
* conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
util/i386/pc/misc.c with commands/ieee1275/halt.c,
commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
* disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
function.
* include/grub/powerpc/ieee1275/console.h (grub_console_fini):
Add prototype.
* include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
prototype.
(grub_halt): Likewise.
* include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
(cmain): Remove __attribute__((unused)).
* kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
(grub_heap_len): Likewise.
(grub_machine_fini): New function.
* kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
(grub_halt): Likewise.
* term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
function.
* util/powerpc/ieee1275/misc.c: New file.
2005-03-26 17:34:50 +00:00
hollisb
d0ff18e182
2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
...
* util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
(note_path): Remove variable.
(GRUB_IEEE1275_NOTE_NAME): New macro.
(GRUB_IEEE1275_NOTE_TYPE): Likewise.
(grub_ieee1275_note_hdr): New structure.
(grub_ieee1275_note_desc): Likewise.
(grub_ieee1275_note): Likewise.
(load_note): Remove `dir' argument. All callers updated. Remove
`note_img' and `path'. Do not load a file from `note_path'.
Initialize a struct grub_ieee1275_note and write that to `out'.
Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
2005-01-09 18:11:05 +00:00
marco_g
0b412211b3
2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
...
* TODO: Add note about endianness in grub-mkimage.
* boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
section.
* conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
(grub_mkimage_SOURCES): New target.
* include/grub/kernel.h (grub_start_addr): Remove variable.
(grub_end_addr): Likewise.
(grub_total_module_size): Likewise.
(grub_kernel_image_size): Likewise.
(GRUB_MODULE_MAGIC): New constant.
(grub_module_info): New structure.
(grub_arch_modules_addr): New prototype.
(grub_get_end_addr): Remove prototype.
* include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
* include/grub/powerpc/ieee1275/kernel.h: New file.
* include/grub/util/misc.h (grub_util_get_fp_size): New
prototype.
(grub_util_read_at): Likewise.
(grub_util_write_image_at): Likewise.
* kern/main.c (grub_get_end_addr): Remove function.
(grub_load_modules): Call grub_arch_modules_addr instead of using
grub_end_addr. Look for a grub_module_info struct in memory. Use
the grub_module_info fields instead of calling grub_get_end_addr
as loop conditions. Move grub_add_unused_region code here.
(grub_add_unused_region): Remove function.
* kern/i386/pc/init.c: Include grub/cache.h.
(grub_machine_init): Remove call to grub_get_end_addr. Remove
one call to add_mem_region.
(grub_arch_modules_addr): New function.
* kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
(grub_total_module_size): Likewise.
Include grub/machine/kernel.h.
(grub_arch_modules_addr): New function.
* util/grub-emu.c (grub_end_addr): Remove variable.
(grub_total_module_size): Likewise.
(grub_arch_modules_addr): New function.
* util/misc.c: Include unistd.h.
(grub_util_get_fp_size): New function.
(grub_util_read_at): Likewise.
(grub_util_write_image_at): Likewise.
(grub_util_read_image): Call grub_util_read_at.
(grub_util_write_image): Call grub_util_write_image_at.
* util/i386/pc/grub-mkimage.c (generate_image): Allocate
additional memory in kernel_img for a struct grub_module_info.
Fill in that grub_module_info.
* util/powerpc/ieee1275/grub-mkimage.c: New file.
2005-01-04 14:01:45 +00:00