64
67
#define GRUB_MOD_DEP(name) \
65
68
__asm__ (".section .moddeps\n.asciz \"" #name "\"\n")
76
#define GRUB_MOD_SECTION(x) "_" #x ", _" #x ""
78
#define GRUB_MOD_SECTION(x) "." #x
82
#define GRUB_MOD_SECTION(x) _ ## x , _ ##x
84
#define GRUB_MOD_SECTION(x) . ## x
88
/* Me, Vladimir Serbinenko, hereby I add this module check as per new
89
GNU module policy. Note that this license check is informative only.
90
Modules have to be licensed under GPLv3 or GPLv3+ (optionally
91
multi-licensed under other licences as well) independently of the
92
presence of this check and solely by linking (module loading in GRUB
93
constitutes linking) and GRUB core being licensed under GPLv3+.
94
Be sure to understand your license obligations.
97
#define GRUB_MOD_LICENSE(license) \
98
static char grub_module_license[] __attribute__ ((section (GRUB_MOD_SECTION (module_license)), used)) = "LICENSE=" license;
100
#define GRUB_MOD_LICENSE(license) \
101
.section GRUB_MOD_SECTION(module_license), "a"; \
107
/* Under GPL license obligations you have to distribute your module
108
under GPLv3(+). However, you can also distribute the same code under
109
another license as long as GPLv3(+) version is provided.
111
#define GRUB_MOD_DUAL_LICENSE(x)
68
115
struct grub_dl_segment