Implement automatic module license checking according to new GNU

guidelines.

	* grub-core/kern/dl.c (grub_dl_check_license): New function.
	(grub_dl_load_core): Use grub_dl_check_license.
	* include/grub/dl.h (GRUB_MOD_SECTION): New macro.
	(GRUB_MOD_LICENSE): Likewise.
	(GRUB_MOD_DUAL_LICENSE): Likewise.
	All modules updated.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2011-04-11 23:01:51 +02:00
parent 2a9bc0169e
commit e745cf0ca6
175 changed files with 447 additions and 2 deletions

View file

@ -23,6 +23,8 @@
#include <grub/partition.h>
#include <grub/acorn_filecore.h>
GRUB_MOD_LICENSE ("GPLv3+");
#define LINUX_NATIVE_MAGIC grub_cpu_to_le32 (0xdeafa1de)
#define LINUX_SWAP_MAGIC grub_cpu_to_le32 (0xdeafab1e)
#define LINUX_MAP_ENTRIES (512 / 12)

View file

@ -23,6 +23,8 @@
#include <grub/partition.h>
#include <grub/dl.h>
GRUB_MOD_LICENSE ("GPLv3+");
struct grub_amiga_rdsk
{
/* "RDSK". */

View file

@ -22,6 +22,8 @@
#include <grub/mm.h>
#include <grub/partition.h>
GRUB_MOD_LICENSE ("GPLv3+");
#define GRUB_APPLE_HEADER_MAGIC 0x4552
#define GRUB_APPLE_PART_MAGIC 0x504D

View file

@ -25,6 +25,8 @@
#include <grub/dl.h>
#include <grub/msdos_partition.h>
GRUB_MOD_LICENSE ("GPLv3+");
#ifdef GRUB_UTIL
#include <grub/emu/misc.h>
#endif

View file

@ -25,6 +25,8 @@
#include <grub/msdos_partition.h>
#include <grub/gpt_partition.h>
GRUB_MOD_LICENSE ("GPLv3+");
static grub_uint8_t grub_gpt_magic[8] =
{
0x45, 0x46, 0x49, 0x20, 0x50, 0x41, 0x52, 0x54

View file

@ -24,6 +24,8 @@
#include <grub/misc.h>
#include <grub/dl.h>
GRUB_MOD_LICENSE ("GPLv3+");
static struct grub_partition_map grub_msdos_partition_map;

View file

@ -26,6 +26,8 @@
#include <grub/types.h>
#include <grub/err.h>
GRUB_MOD_LICENSE ("GPLv3+");
#define GRUB_PARTMAP_SUN_MAGIC 0xDABE
#define GRUB_PARTMAP_SUN_MAX_PARTS 8
#define GRUB_PARTMAP_SUN_WHOLE_DISK_ID 0x05

View file

@ -26,6 +26,8 @@
#include <grub/types.h>
#include <grub/err.h>
GRUB_MOD_LICENSE ("GPLv3+");
#define GRUB_PARTMAP_SUN_PC_MAGIC 0xDABE
#define GRUB_PARTMAP_SUN_PC_MAX_PARTS 16
#define GRUB_PARTMAP_SUN_PC_WHOLE_DISK_ID 0x05