* include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
(GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
This commit is contained in:
parent
5982495738
commit
c4b7e58882
8 changed files with 27 additions and 12 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
|
* include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
|
||||||
|
(GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
|
||||||
|
|
||||||
2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
|
2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
* include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
|
* include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
|
|
||||||
.file "setjmp.S"
|
.file "setjmp.S"
|
||||||
|
|
||||||
GRUB_MOD_LICENSE ("GPLv3+")
|
GRUB_MOD_LICENSE "GPLv3+"
|
||||||
|
|
||||||
.text
|
.text
|
||||||
|
|
||||||
|
|
|
@ -69,7 +69,7 @@
|
||||||
|
|
||||||
.file "setjmp.S"
|
.file "setjmp.S"
|
||||||
|
|
||||||
GRUB_MOD_LICENSE ("GPLv2+")
|
GRUB_MOD_LICENSE "GPLv2+"
|
||||||
|
|
||||||
/* The following two entry points are the traditional entry points: */
|
/* The following two entry points are the traditional entry points: */
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
|
|
||||||
.file "setjmp.S"
|
.file "setjmp.S"
|
||||||
|
|
||||||
GRUB_MOD_LICENSE ("GPLv3+")
|
GRUB_MOD_LICENSE "GPLv3+"
|
||||||
|
|
||||||
.text
|
.text
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
|
|
||||||
.file "setjmp.S"
|
.file "setjmp.S"
|
||||||
|
|
||||||
GRUB_MOD_LICENSE ("GPLv3+")
|
GRUB_MOD_LICENSE "GPLv3+"
|
||||||
|
|
||||||
.text
|
.text
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
|
|
||||||
.file "setjmp.S"
|
.file "setjmp.S"
|
||||||
|
|
||||||
GRUB_MOD_LICENSE ("GPLv3+")
|
GRUB_MOD_LICENSE "GPLv3+"
|
||||||
|
|
||||||
.text
|
.text
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
|
|
||||||
.file "setjmp.S"
|
.file "setjmp.S"
|
||||||
|
|
||||||
GRUB_MOD_LICENSE ("GPLv3+")
|
GRUB_MOD_LICENSE "GPLv3+"
|
||||||
|
|
||||||
.text
|
.text
|
||||||
|
|
||||||
|
|
|
@ -77,13 +77,13 @@ grub_mod_fini (void)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef ASM_FILE
|
#ifndef ASM_FILE
|
||||||
#ifdef APPLE_CC
|
#ifdef __APPLE__
|
||||||
#define GRUB_MOD_SECTION(x) "_" #x ", _" #x ""
|
#define GRUB_MOD_SECTION(x) "_" #x ", _" #x ""
|
||||||
#else
|
#else
|
||||||
#define GRUB_MOD_SECTION(x) "." #x
|
#define GRUB_MOD_SECTION(x) "." #x
|
||||||
#endif
|
#endif
|
||||||
#else
|
#else
|
||||||
#ifdef APPLE_CC
|
#ifdef __APPLE__
|
||||||
#define GRUB_MOD_SECTION(x) _ ## x , _ ##x
|
#define GRUB_MOD_SECTION(x) _ ## x , _ ##x
|
||||||
#else
|
#else
|
||||||
#define GRUB_MOD_SECTION(x) . ## x
|
#define GRUB_MOD_SECTION(x) . ## x
|
||||||
|
@ -114,11 +114,21 @@ static const char grub_module_name_##name[] \
|
||||||
static const char grub_module_depend_##name[] \
|
static const char grub_module_depend_##name[] \
|
||||||
__attribute__((section(GRUB_MOD_SECTION(moddeps)), __used__)) = #name
|
__attribute__((section(GRUB_MOD_SECTION(moddeps)), __used__)) = #name
|
||||||
#else
|
#else
|
||||||
#define GRUB_MOD_LICENSE(license) \
|
#ifdef __APPLE__
|
||||||
.section GRUB_MOD_SECTION(module_license), "a"; \
|
.macro GRUB_MOD_LICENSE
|
||||||
.ascii "LICENSE="; \
|
.section GRUB_MOD_SECTION(module_license)
|
||||||
.ascii license; \
|
.ascii "LICENSE="
|
||||||
|
.ascii $0
|
||||||
.byte 0
|
.byte 0
|
||||||
|
.endm
|
||||||
|
#else
|
||||||
|
.macro GRUB_MOD_LICENSE license
|
||||||
|
.section GRUB_MOD_SECTION(module_license), "a"
|
||||||
|
.ascii "LICENSE="
|
||||||
|
.ascii "\license"
|
||||||
|
.byte 0
|
||||||
|
.endm
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Under GPL license obligations you have to distribute your module
|
/* Under GPL license obligations you have to distribute your module
|
||||||
|
|
Loading…
Add table
Reference in a new issue