Move OS-dependent files to grub-core/osdep and document it.
This commit is contained in:
parent
a5b0365ab2
commit
672fa55e81
30 changed files with 39 additions and 30 deletions
|
@ -1,3 +1,7 @@
|
|||
2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
Move OS-dependent files to grub-core/osdep and document it.
|
||||
|
||||
2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* grub-core/kern/emu/misc.c (canonicalize_file_name): Move to ...
|
||||
|
|
|
@ -10,13 +10,13 @@ library = {
|
|||
common = grub-core/kern/device.c;
|
||||
common = grub-core/kern/disk.c;
|
||||
common = util/getroot.c;
|
||||
common = util/getroot_unix.c;
|
||||
common = util/getroot_os.c;
|
||||
common = util/getroot_devmapper.c;
|
||||
common = grub-core/osdep/unix/getroot.c;
|
||||
common = grub-core/osdep/getroot.c;
|
||||
common = grub-core/osdep/devmapper/getroot.c;
|
||||
common = grub-core/kern/emu/hostdisk.c;
|
||||
common = grub-core/kern/emu/hostdisk_devmapper.c;
|
||||
common = grub-core/kern/emu/hostdisk_os.c;
|
||||
common = grub-core/kern/emu/hostdisk_unix.c;
|
||||
common = grub-core/osdep/devmapper/hostdisk.c;
|
||||
common = grub-core/osdep/hostdisk.c;
|
||||
common = grub-core/osdep/unix/hostdisk.c;
|
||||
common = grub-core/kern/emu/misc.c;
|
||||
common = grub-core/kern/emu/mm.c;
|
||||
common = grub-core/kern/env.c;
|
||||
|
@ -221,7 +221,7 @@ program = {
|
|||
|
||||
common = util/grub-mkpasswd-pbkdf2.c;
|
||||
common = grub-core/kern/emu/argp_common.c;
|
||||
common = util/random.c;
|
||||
common = grub-core/osdep/random.c;
|
||||
|
||||
ldadd = libgrubmods.a;
|
||||
ldadd = libgrubgcry.a;
|
||||
|
|
|
@ -286,14 +286,19 @@ live under @file{grub-core/term/}.
|
|||
|
||||
@item
|
||||
The @samp{efiemu_*} commands live under @file{grub-core/efiemu/}.
|
||||
|
||||
@item
|
||||
OS-dependent code should be under @file{grub-core/osdep/}
|
||||
|
||||
@item
|
||||
Utility programs meant to be run from a full operating system
|
||||
(except OS-dependent code mentioned previously) are in @file{util/}.
|
||||
|
||||
@end itemize
|
||||
|
||||
There are a few other special-purpose exceptions; grep for them if they
|
||||
matter to you.
|
||||
|
||||
Utility programs meant to be run from a full operating system are in
|
||||
@file{util/}.
|
||||
|
||||
@node Contributing Changes
|
||||
@chapter Contributing changes
|
||||
@c By YoshinoriOkuji, VesaJääskeläinen, ColinWatson
|
||||
|
|
|
@ -1,20 +1,20 @@
|
|||
#ifdef __linux__
|
||||
#include "getroot_linux.c"
|
||||
#include "linux/getroot.c"
|
||||
#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
|
||||
#include "getroot_freebsd.c"
|
||||
#include "freebsd/getroot.c"
|
||||
#elif defined(__NetBSD__) || defined(__OpenBSD__)
|
||||
#include "getroot_bsd.c"
|
||||
#include "bsd/getroot.c"
|
||||
#elif defined(__APPLE__)
|
||||
#include "getroot_apple.c"
|
||||
#include "apple/getroot.c"
|
||||
#elif defined(__sun__)
|
||||
#include "getroot_sun.c"
|
||||
#include "sun/getroot.c"
|
||||
#elif defined(__GNU__)
|
||||
#include "getroot_hurd.c"
|
||||
#include "hurd/getroot.c"
|
||||
#elif defined(__CYGWIN__) || defined (__MINGW32__)
|
||||
#include "getroot_windows.c"
|
||||
#include "windows/getroot.c"
|
||||
#elif defined(__AROS__)
|
||||
#include "getroot_aros.c"
|
||||
#include "aros/getroot.c"
|
||||
#else
|
||||
# warning "No getroot OS-specific functions is available for your system. Device detection may not work properly."
|
||||
#include "getroot_basic.c"
|
||||
#include "basic/getroot.c"
|
||||
#endif
|
|
@ -1,20 +1,20 @@
|
|||
#ifdef __linux__
|
||||
#include "hostdisk_linux.c"
|
||||
#include "linux/hostdisk.c"
|
||||
#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
|
||||
#include "hostdisk_freebsd.c"
|
||||
#include "freebsd/hostdisk.c"
|
||||
#elif defined(__NetBSD__) || defined(__OpenBSD__)
|
||||
#include "hostdisk_bsd.c"
|
||||
#include "bsd/hostdisk.c"
|
||||
#elif defined(__APPLE__)
|
||||
#include "hostdisk_apple.c"
|
||||
#include "apple/hostdisk.c"
|
||||
#elif defined(__sun__)
|
||||
#include "hostdisk_sun.c"
|
||||
#include "sun/hostdisk.c"
|
||||
#elif defined(__GNU__)
|
||||
#include "hostdisk_hurd.c"
|
||||
#include "hurd/hostdisk.c"
|
||||
#elif defined(__CYGWIN__) || defined(__MINGW32__)
|
||||
#include "hostdisk_windows.c"
|
||||
#include "windows/hostdisk.c"
|
||||
#elif defined(__AROS__)
|
||||
#include "hostdisk_aros.c"
|
||||
#include "aros/hostdisk.c"
|
||||
#else
|
||||
# warning "No hostdisk OS-specific functions is available for your system. Device detection may not work properly."
|
||||
#include "hostdisk_basic.c"
|
||||
#include "basic/hostdisk.c"
|
||||
#endif
|
|
@ -1,5 +1,5 @@
|
|||
#if defined (_WIN32) || defined (__CYGWIN__)
|
||||
#include "random_windows.c"
|
||||
#include "windows/random.c"
|
||||
#else
|
||||
#include "random_unix.c"
|
||||
#include "unix/random.c"
|
||||
#endif
|
Loading…
Reference in a new issue