Merge multiterm into gfxmenu+multiterm
This commit is contained in:
commit
e6e86df1de
238 changed files with 3524 additions and 1873 deletions
40
loader/xnu.c
40
loader/xnu.c
|
@ -366,7 +366,7 @@ grub_cmd_xnu_kernel (grub_command_t cmd __attribute__ ((unused)),
|
|||
{
|
||||
grub_macho_close (macho);
|
||||
return grub_error (GRUB_ERR_BAD_OS,
|
||||
"Kernel doesn't contain suitable 32-bit architecture");
|
||||
"kernel doesn't contain suitable 32-bit architecture");
|
||||
}
|
||||
|
||||
err = grub_macho_size32 (macho, &startcode, &endcode, GRUB_MACHO_NOBSS);
|
||||
|
@ -464,7 +464,7 @@ grub_cmd_xnu_kernel64 (grub_command_t cmd __attribute__ ((unused)),
|
|||
{
|
||||
grub_macho_close (macho);
|
||||
return grub_error (GRUB_ERR_BAD_OS,
|
||||
"Kernel doesn't contain suitable 64-bit architecture");
|
||||
"kernel doesn't contain suitable 64-bit architecture");
|
||||
}
|
||||
|
||||
err = grub_macho_size64 (macho, &startcode, &endcode, GRUB_MACHO_NOBSS);
|
||||
|
@ -655,7 +655,7 @@ grub_xnu_load_driver (char *infoplistname, grub_file_t binaryfile)
|
|||
if (macho)
|
||||
grub_macho_close (macho);
|
||||
return grub_error (GRUB_ERR_BAD_OS,
|
||||
"Extension doesn't contain suitable architecture");
|
||||
"extension doesn't contain suitable architecture");
|
||||
}
|
||||
if (grub_xnu_is_64bit)
|
||||
machosize = grub_macho_filesize64 (macho);
|
||||
|
@ -720,7 +720,7 @@ grub_xnu_load_driver (char *infoplistname, grub_file_t binaryfile)
|
|||
{
|
||||
grub_file_close (infoplist);
|
||||
grub_error_push ();
|
||||
return grub_error (GRUB_ERR_BAD_OS, "Couldn't read file %s: ",
|
||||
return grub_error (GRUB_ERR_BAD_OS, "couldn't read file %s: ",
|
||||
infoplistname);
|
||||
}
|
||||
grub_file_close (infoplist);
|
||||
|
@ -764,7 +764,7 @@ grub_cmd_xnu_mkext (grub_command_t cmd __attribute__ ((unused)),
|
|||
file = grub_gzfile_open (args[0], 1);
|
||||
if (! file)
|
||||
return grub_error (GRUB_ERR_FILE_NOT_FOUND,
|
||||
"Couldn't load driver package");
|
||||
"couldn't load driver package");
|
||||
|
||||
/* Sometimes caches are fat binary. Errgh. */
|
||||
if (grub_file_read (file, &head, sizeof (head))
|
||||
|
@ -774,7 +774,7 @@ grub_cmd_xnu_mkext (grub_command_t cmd __attribute__ ((unused)),
|
|||
can hardly imagine a valid package shorter than 20 bytes. */
|
||||
grub_file_close (file);
|
||||
grub_error_push ();
|
||||
return grub_error (GRUB_ERR_BAD_OS, "Couldn't read file %s", args[0]);
|
||||
return grub_error (GRUB_ERR_BAD_OS, "couldn't read file %s", args[0]);
|
||||
}
|
||||
|
||||
/* Find the corresponding architecture. */
|
||||
|
@ -787,7 +787,7 @@ grub_cmd_xnu_mkext (grub_command_t cmd __attribute__ ((unused)),
|
|||
grub_file_close (file);
|
||||
grub_error_push ();
|
||||
return grub_error (GRUB_ERR_OUT_OF_MEMORY,
|
||||
"Couldn't read file %s", args[0]);
|
||||
"couldn't read file %s", args[0]);
|
||||
|
||||
}
|
||||
if (grub_file_read (file, archs,
|
||||
|
@ -796,7 +796,7 @@ grub_cmd_xnu_mkext (grub_command_t cmd __attribute__ ((unused)),
|
|||
{
|
||||
grub_free (archs);
|
||||
grub_error_push ();
|
||||
return grub_error (GRUB_ERR_READ_ERROR, "Cannot read fat header.");
|
||||
return grub_error (GRUB_ERR_READ_ERROR, "cannot read fat header");
|
||||
}
|
||||
for (i = 0; i < narchs; i++)
|
||||
{
|
||||
|
@ -849,7 +849,7 @@ grub_cmd_xnu_mkext (grub_command_t cmd __attribute__ ((unused)),
|
|||
{
|
||||
grub_file_close (file);
|
||||
grub_error_push ();
|
||||
return grub_error (GRUB_ERR_BAD_OS, "Couldn't read file %s", args[0]);
|
||||
return grub_error (GRUB_ERR_BAD_OS, "couldn't read file %s", args[0]);
|
||||
}
|
||||
grub_file_close (file);
|
||||
|
||||
|
@ -876,7 +876,7 @@ grub_cmd_xnu_ramdisk (grub_command_t cmd __attribute__ ((unused)),
|
|||
file = grub_gzfile_open (args[0], 1);
|
||||
if (! file)
|
||||
return grub_error (GRUB_ERR_FILE_NOT_FOUND,
|
||||
"Couldn't load ramdisk");
|
||||
"couldn't load ramdisk");
|
||||
|
||||
err = grub_xnu_align_heap (GRUB_XNU_PAGESIZE);
|
||||
if (err)
|
||||
|
@ -892,7 +892,7 @@ grub_cmd_xnu_ramdisk (grub_command_t cmd __attribute__ ((unused)),
|
|||
{
|
||||
grub_file_close (file);
|
||||
grub_error_push ();
|
||||
return grub_error (GRUB_ERR_BAD_OS, "Couldn't read file %s", args[0]);
|
||||
return grub_error (GRUB_ERR_BAD_OS, "couldn't read file %s", args[0]);
|
||||
}
|
||||
return grub_xnu_register_memory ("RAMDisk", 0, loadto, size);
|
||||
}
|
||||
|
@ -918,7 +918,7 @@ grub_xnu_check_os_bundle_required (char *plistname, char *osbundlereq,
|
|||
{
|
||||
grub_file_close (file);
|
||||
grub_error_push ();
|
||||
grub_error (GRUB_ERR_BAD_OS, "Couldn't read file %s", plistname);
|
||||
grub_error (GRUB_ERR_BAD_OS, "couldn't read file %s", plistname);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -928,14 +928,14 @@ grub_xnu_check_os_bundle_required (char *plistname, char *osbundlereq,
|
|||
{
|
||||
grub_file_close (file);
|
||||
grub_error_push ();
|
||||
grub_error (GRUB_ERR_OUT_OF_MEMORY, "Couldn't read file %s", plistname);
|
||||
grub_error (GRUB_ERR_OUT_OF_MEMORY, "couldn't read file %s", plistname);
|
||||
return 0;
|
||||
}
|
||||
if (grub_file_read (file, buf, size) != (grub_ssize_t) (size))
|
||||
{
|
||||
grub_file_close (file);
|
||||
grub_error_push ();
|
||||
grub_error (GRUB_ERR_BAD_OS, "Couldn't read file %s", plistname);
|
||||
grub_error (GRUB_ERR_BAD_OS, "couldn't read file %s", plistname);
|
||||
return 0;
|
||||
}
|
||||
grub_file_close (file);
|
||||
|
@ -1425,23 +1425,23 @@ static grub_extcmd_t cmd_splash;
|
|||
GRUB_MOD_INIT(xnu)
|
||||
{
|
||||
cmd_kernel = grub_register_command ("xnu_kernel", grub_cmd_xnu_kernel, 0,
|
||||
"load a xnu kernel");
|
||||
"Load XNU image.");
|
||||
cmd_kernel64 = grub_register_command ("xnu_kernel64", grub_cmd_xnu_kernel64,
|
||||
0, "load a 64-bit xnu kernel");
|
||||
0, "Load 64-bit XNU image.");
|
||||
cmd_mkext = grub_register_command ("xnu_mkext", grub_cmd_xnu_mkext, 0,
|
||||
"Load XNU extension package.");
|
||||
cmd_kext = grub_register_command ("xnu_kext", grub_cmd_xnu_kext, 0,
|
||||
"Load XNU extension.");
|
||||
cmd_kextdir = grub_register_command ("xnu_kextdir", grub_cmd_xnu_kextdir,
|
||||
"xnu_kextdir DIRECTORY [OSBundleRequired]",
|
||||
"Load XNU extension directory");
|
||||
"DIRECTORY [OSBundleRequired]",
|
||||
"Load XNU extension directory.");
|
||||
cmd_ramdisk = grub_register_command ("xnu_ramdisk", grub_cmd_xnu_ramdisk, 0,
|
||||
"Load XNU ramdisk. "
|
||||
"It will be seen as md0");
|
||||
"It will be seen as md0.");
|
||||
cmd_splash = grub_register_extcmd ("xnu_splash",
|
||||
grub_cmd_xnu_splash,
|
||||
GRUB_COMMAND_FLAG_BOTH, 0,
|
||||
"Load a splash image for XNU",
|
||||
"Load a splash image for XNU.",
|
||||
xnu_splash_cmd_options);
|
||||
|
||||
#ifndef GRUB_UTIL
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue