* grub-core/disk/ahci.c: Add missing license statements.
* grub-core/fs/romfs.c: Likewise. * grub-core/lib/ia64/setjmp.S: Likewise. * grub-core/loader/i386/pc/freedos.c: Likewise. * grub-core/loader/ia64/efi/linux.c: Likewise. * grub-core/video/colors.c: Likewise. * include/grub/dl.h (GRUB_MOD_DEP): New macro.
This commit is contained in:
parent
5ab3f48a92
commit
005dd67cb6
7 changed files with 20 additions and 0 deletions
|
@ -27,6 +27,8 @@
|
||||||
#include <grub/list.h>
|
#include <grub/list.h>
|
||||||
#include <grub/loader.h>
|
#include <grub/loader.h>
|
||||||
|
|
||||||
|
GRUB_MOD_LICENSE ("GPLv3+");
|
||||||
|
|
||||||
struct grub_ahci_cmd_head
|
struct grub_ahci_cmd_head
|
||||||
{
|
{
|
||||||
grub_uint32_t config;
|
grub_uint32_t config;
|
||||||
|
|
|
@ -24,6 +24,8 @@
|
||||||
#include <grub/fs.h>
|
#include <grub/fs.h>
|
||||||
#include <grub/fshelp.h>
|
#include <grub/fshelp.h>
|
||||||
|
|
||||||
|
GRUB_MOD_LICENSE ("GPLv3+");
|
||||||
|
|
||||||
struct grub_romfs_superblock
|
struct grub_romfs_superblock
|
||||||
{
|
{
|
||||||
char magic[8];
|
char magic[8];
|
||||||
|
|
|
@ -64,6 +64,12 @@
|
||||||
0x1b0 f30
|
0x1b0 f30
|
||||||
0x1c0 f31 */
|
0x1c0 f31 */
|
||||||
|
|
||||||
|
#include <grub/symbol.h>
|
||||||
|
#include <grub/dl.h>
|
||||||
|
|
||||||
|
.file "setjmp.S"
|
||||||
|
|
||||||
|
GRUB_MOD_LICENSE ("GPLv2+")
|
||||||
|
|
||||||
/* The following two entry points are the traditional entry points: */
|
/* The following two entry points are the traditional entry points: */
|
||||||
|
|
||||||
|
|
|
@ -33,6 +33,8 @@
|
||||||
#include <grub/mm.h>
|
#include <grub/mm.h>
|
||||||
#include <grub/cpu/relocator.h>
|
#include <grub/cpu/relocator.h>
|
||||||
|
|
||||||
|
GRUB_MOD_LICENSE ("GPLv3+");
|
||||||
|
|
||||||
static grub_dl_t my_mod;
|
static grub_dl_t my_mod;
|
||||||
static struct grub_relocator *rel;
|
static struct grub_relocator *rel;
|
||||||
static grub_uint32_t ebx = 0xffffffff;
|
static grub_uint32_t ebx = 0xffffffff;
|
||||||
|
|
|
@ -31,6 +31,8 @@
|
||||||
#include <grub/efi/efi.h>
|
#include <grub/efi/efi.h>
|
||||||
#include <grub/elf.h>
|
#include <grub/elf.h>
|
||||||
|
|
||||||
|
GRUB_MOD_LICENSE ("GPLv3+");
|
||||||
|
|
||||||
#define ALIGN_MIN (256*1024*1024)
|
#define ALIGN_MIN (256*1024*1024)
|
||||||
|
|
||||||
#define GRUB_ELF_SEARCH 1024
|
#define GRUB_ELF_SEARCH 1024
|
||||||
|
|
|
@ -21,6 +21,9 @@
|
||||||
#include <grub/gui.h>
|
#include <grub/gui.h>
|
||||||
#include <grub/gui_string_util.h>
|
#include <grub/gui_string_util.h>
|
||||||
#include <grub/misc.h>
|
#include <grub/misc.h>
|
||||||
|
#include <grub/dl.h>
|
||||||
|
|
||||||
|
GRUB_MOD_LICENSE ("GPLv3+");
|
||||||
|
|
||||||
struct named_color
|
struct named_color
|
||||||
{
|
{
|
||||||
|
|
|
@ -90,6 +90,9 @@ static const char grub_module_name_##name[] \
|
||||||
#ifndef ASM_FILE
|
#ifndef ASM_FILE
|
||||||
#define GRUB_MOD_LICENSE(license) \
|
#define GRUB_MOD_LICENSE(license) \
|
||||||
static char grub_module_license[] __attribute__ ((section (GRUB_MOD_SECTION (module_license)), used)) = "LICENSE=" license;
|
static char grub_module_license[] __attribute__ ((section (GRUB_MOD_SECTION (module_license)), used)) = "LICENSE=" license;
|
||||||
|
#define GRUB_MOD_DEP(name) \
|
||||||
|
static const char grub_module_depend_##name[] \
|
||||||
|
__attribute__((section(GRUB_MOD_SECTION(moddeps)), __used__)) = #name
|
||||||
#else
|
#else
|
||||||
#define GRUB_MOD_LICENSE(license) \
|
#define GRUB_MOD_LICENSE(license) \
|
||||||
.section GRUB_MOD_SECTION(module_license), "a"; \
|
.section GRUB_MOD_SECTION(module_license), "a"; \
|
||||||
|
|
Loading…
Reference in a new issue