* 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:
Vladimir 'phcoder' Serbinenko 2011-06-24 00:29:21 +02:00
parent 5ab3f48a92
commit 005dd67cb6
7 changed files with 20 additions and 0 deletions

View file

@ -27,6 +27,8 @@
#include <grub/list.h>
#include <grub/loader.h>
GRUB_MOD_LICENSE ("GPLv3+");
struct grub_ahci_cmd_head
{
grub_uint32_t config;

View file

@ -24,6 +24,8 @@
#include <grub/fs.h>
#include <grub/fshelp.h>
GRUB_MOD_LICENSE ("GPLv3+");
struct grub_romfs_superblock
{
char magic[8];

View file

@ -64,6 +64,12 @@
0x1b0 f30
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: */

View file

@ -33,6 +33,8 @@
#include <grub/mm.h>
#include <grub/cpu/relocator.h>
GRUB_MOD_LICENSE ("GPLv3+");
static grub_dl_t my_mod;
static struct grub_relocator *rel;
static grub_uint32_t ebx = 0xffffffff;

View file

@ -31,6 +31,8 @@
#include <grub/efi/efi.h>
#include <grub/elf.h>
GRUB_MOD_LICENSE ("GPLv3+");
#define ALIGN_MIN (256*1024*1024)
#define GRUB_ELF_SEARCH 1024

View file

@ -21,6 +21,9 @@
#include <grub/gui.h>
#include <grub/gui_string_util.h>
#include <grub/misc.h>
#include <grub/dl.h>
GRUB_MOD_LICENSE ("GPLv3+");
struct named_color
{

View file

@ -90,6 +90,9 @@ static const char grub_module_name_##name[] \
#ifndef ASM_FILE
#define GRUB_MOD_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
#define GRUB_MOD_LICENSE(license) \
.section GRUB_MOD_SECTION(module_license), "a"; \