~hamo/ubuntu/precise/grub2/grub2.hi_res

« back to all changes in this revision

Viewing changes to conf/Makefile.common

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson, Colin Watson, Robert Millan, Updated translations
  • Date: 2010-11-22 12:24:56 UTC
  • mfrom: (1.26.4 upstream) (17.3.36 sid)
  • mto: (17.3.43 sid)
  • mto: This revision was merged to the branch mainline in revision 89.
  • Revision ID: james.westby@ubuntu.com-20101122122456-y82z3sfb7k4zfdcc
Tags: 1.99~20101122-1
[ Colin Watson ]
* New Bazaar snapshot.  Too many changes to list in full, but some of the
  more user-visible ones are as follows:
  - GRUB script:
    + Function parameters, "break", "continue", "shift", "setparams",
      "return", and "!".
    + "export" command supports multiple variable names.
    + Multi-line quoted strings support.
    + Wildcard expansion.
  - sendkey support.
  - USB hotunplugging and USB serial support.
  - Rename CD-ROM to cd on BIOS.
  - Add new --boot-directory option to grub-install, grub-reboot, and
    grub-set-default; the old --root-directory option is still accepted
    but was often confusing.
  - Basic btrfs detection/UUID support (but no file reading yet).
  - bash-completion for utilities.
  - If a device is listed in device.map, always assume that it is
    BIOS-visible rather than using extra layers such as LVM or RAID.
  - Add grub-mknetdir script (closes: #550658).
  - Remove deprecated "root" command.
  - Handle RAID devices containing virtio components.
  - GRUB Legacy configuration file support (via grub-menulst2cfg).
  - Keyboard layout support (via grub-mklayout and grub-kbdcomp).
  - Check generated grub.cfg for syntax errors before saving.
  - Pause execution for at most ten seconds if any errors are displayed,
    so that the user has a chance to see them.
  - Support submenus.
  - Write embedding zone using Reed-Solomon, so that it's robust against
    being partially overwritten (closes: #550702, #591416, #593347).
  - GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY merged
    into a single GRUB_DISABLE_RECOVERY variable.
  - Fix loader memory allocation failure (closes: #551627).
  - Don't call savedefault on recovery entries (closes: #589325).
  - Support triple-indirect blocks on ext2 (closes: #543924).
  - Recognise DDF1 fake RAID (closes: #603354).

[ Robert Millan ]
* Use dpkg architecture wildcards.

[ Updated translations ]
* Slovenian (Vanja Cvelbar).  Closes: #604003
* Dzongkha (dawa pemo via Tenzin Dendup).  Closes: #604102

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- makefile -*-
 
2
 
 
3
CFLAGS_PLATFORM=
 
4
 
 
5
# Platform specific options
 
6
if COND_i386_pc
 
7
  CFLAGS_PLATFORM += -mrtd -mregparm=3
 
8
endif
 
9
if COND_i386_efi
 
10
  LDFLAGS_PLATFORM = -melf_i386
 
11
endif
 
12
if COND_x86_64_efi
 
13
  LDFLAGS_PLATFORM = -melf_x86_64
 
14
endif
 
15
if COND_i386_qemu
 
16
  CFLAGS_PLATFORM += -mrtd -mregparm=3
 
17
endif
 
18
if COND_i386_coreboot
 
19
  CFLAGS_PLATFORM += -mrtd -mregparm=3
 
20
endif
 
21
if COND_i386_ieee1275
 
22
  CFLAGS_PLATFORM += -mrtd -mregparm=3
 
23
endif
 
24
if COND_mips_yeeloong
 
25
  CFLAGS_PLATFORM += -mexplicit-relocs
 
26
  CPPFLAGS_PLATFORM = -DUSE_ASCII_FAILBACK
 
27
  CCASFLAGS_PLATFORM = -march=mips3
 
28
endif
 
29
if COND_mips
 
30
  CFLAGS_PLATFORM += -mflush-func=grub_cpu_flush_cache
 
31
endif
 
32
if COND_sparc64_ieee1275
 
33
  CFLAGS_PLATFORM += -mno-app-regs
 
34
  LDFLAGS_PLATFORM = -melf64_sparc -mno-relax
 
35
endif
 
36
 
 
37
# Other options
 
38
 
 
39
CPPFLAGS_DEFAULT = -DGRUB_FILE=\"$(subst $(srcdir)/,,$<)\"
 
40
CPPFLAGS_DEFAULT += -I$(builddir)
 
41
CPPFLAGS_DEFAULT += -I$(srcdir)
 
42
CPPFLAGS_DEFAULT += -I$(top_builddir)
 
43
CPPFLAGS_DEFAULT += -I$(top_srcdir)
 
44
CPPFLAGS_DEFAULT += -I$(top_srcdir)/include
 
45
CPPFLAGS_DEFAULT += -I$(top_builddir)/include
 
46
CCASFLAGS_DEFAULT = -DASM_FILE=1
 
47
 
 
48
LDADD_KERNEL =
 
49
 
 
50
if ! COND_i386_pc
 
51
if ! COND_i386_efi
 
52
if ! COND_i386_qemu
 
53
if ! COND_i386_coreboot
 
54
if ! COND_i386_multiboot
 
55
if ! COND_i386_ieee1275
 
56
if ! COND_x86_64_efi
 
57
LDADD_KERNEL += -lgcc
 
58
endif
 
59
endif
 
60
endif
 
61
endif
 
62
endif
 
63
endif
 
64
endif
 
65
 
 
66
CFLAGS_KERNEL = $(CFLAGS_CPU) $(CFLAGS_PLATFORM) -ffreestanding
 
67
LDFLAGS_KERNEL = $(LDFLAGS_CPU) $(LDFLAGS_PLATFORM) -nostdlib -Wl,-N -static-libgcc
 
68
CPPFLAGS_KERNEL = $(CPPFLAGS_CPU) $(CPPFLAGS_PLATFORM)
 
69
CCASFLAGS_KERNEL = $(CCASFLAGS_CPU) $(CCASFLAGS_PLATFORM)
 
70
STRIPFLAGS_KERNEL = -R .rel.dyn -R .reginfo -R .note -R .comment
 
71
 
 
72
CFLAGS_MODULE = $(CFLAGS_CPU) $(CFLAGS_PLATFORM) -ffreestanding
 
73
LDFLAGS_MODULE = $(LDFLAGS_CPU) $(LDFLAGS_PLATFORM) -nostdlib -Wl,-N,-r,-d
 
74
CPPFLAGS_MODULE = $(CPPFLAGS_CPU) $(CPPFLAGS_PLATFORM)
 
75
CCASFLAGS_MODULE = $(CCASFLAGS_CPU) $(CCASFLAGS_PLATFORM)
 
76
 
 
77
CFLAGS_IMAGE = $(CFLAGS_CPU) $(CFLAGS_PLATFORM) -fno-builtin
 
78
LDFLAGS_IMAGE = $(LDFLAGS_CPU) $(LDFLAGS_PLATFORM) -nostdlib -Wl,-N,-S
 
79
CPPFLAGS_IMAGE = $(CPPFLAGS_CPU) $(CPPFLAGS_PLATFORM)
 
80
CCASFLAGS_IMAGE = $(CCASFLAGS_CPU) $(CCASFLAGS_PLATFORM)
 
81
 
 
82
CFLAGS_PROGRAM =
 
83
LDFLAGS_PROGRAM =
 
84
CPPFLAGS_PROGRAM =
 
85
CCASFLAGS_PROGRAM =
 
86
 
 
87
CFLAGS_LIBRARY =
 
88
CPPFLAGS_LIBRARY =
 
89
CCASFLAGS_LIBRARY =
 
90
 
 
91
# Other variables
 
92
 
 
93
grubconfdir = $(sysconfdir)/grub.d
 
94
grubdatadir = $(datadir)/`echo @PACKAGE_TARNAME@ | sed '$(transform)'`
 
95
platformdir = $(pkglibrootdir)/$(target_cpu)-$(platform)
 
96
 
 
97
CFLAGS_GCRY = -Wno-error -Wno-missing-field-initializers
 
98
CPPFLAGS_GCRY = -I$(top_srcdir)/grub-core/lib/libgcrypt_wrap
 
99
 
 
100
CFLAGS_GNULIB = -Wno-undef -Wno-sign-compare -Wno-unused -Wno-unused-parameter
 
101
CPPFLAGS_GNULIB = -I$(top_builddir)/grub-core/gnulib -I$(top_srcdir)/grub-core/gnulib
 
102
 
 
103
CFLAGS_POSIX = -fno-builtin
 
104
CPPFLAGS_POSIX = -I$(top_srcdir)/grub-core/lib/posix_wrap
 
105
 
 
106
CPPFLAGS_EFIEMU = -I$(top_srcdir)/grub-core/efiemu/runtime
 
107
 
 
108
# List file macros for recognizing /interesting/ modules
 
109
CPPFLAGS_FS_LIST = -Dgrub_fs_register=FS_LIST_MARKER
 
110
CPPFLAGS_VIDEO_LIST= -Dgrub_video_register=VIDEO_LIST_MARKER
 
111
CPPFLAGS_PARTMAP_LIST = -Dgrub_partition_map_register=PARTMAP_LIST_MARKER
 
112
CPPFLAGS_PARTTOOL_LIST = -Dgrub_parttool_register=PARTTOOL_LIST_MARKER
 
113
CPPFLAGS_TERMINAL_LIST = '-Dgrub_term_register_input(...)=INPUT_TERMINAL_LIST_MARKER(__VA_ARGS__)'
 
114
CPPFLAGS_TERMINAL_LIST += '-Dgrub_term_register_output(...)=OUTPUT_TERMINAL_LIST_MARKER(__VA_ARGS__)'
 
115
CPPFLAGS_COMMAND_LIST = '-Dgrub_register_command(...)=COMMAND_LIST_MARKER(__VA_ARGS__)'
 
116
CPPFLAGS_COMMAND_LIST += '-Dgrub_register_extcmd(...)=EXTCOMMAND_LIST_MARKER(__VA_ARGS__)'
 
117
CPPFLAGS_COMMAND_LIST += '-Dgrub_register_command_p1(...)=P1COMMAND_LIST_MARKER(__VA_ARGS__)'
 
118
CPPFLAGS_MARKER = $(CPPFLAGS_FS_LIST) $(CPPFLAGS_VIDEO_LIST) \
 
119
        $(CPPFLAGS_PARTTOOL_LIST) $(CPPFLAGS_PARTMAP_LIST) \
 
120
        $(CPPFLAGS_TERMINAL_LIST) $(CPPFLAGS_COMMAND_LIST)
 
121
 
 
122
# Define these variables to calm down automake
 
123
 
 
124
IMG_FILES =
 
125
MOD_FILES =
 
126
MODULE_FILES =
 
127
MARKER_FILES =
 
128
KERNEL_HEADER_FILES =
 
129
 
 
130
man_MANS =
 
131
noinst_DATA =
 
132
pkglib_DATA =
 
133
bin_SCRIPTS =
 
134
sbin_SCRIPTS =
 
135
bin_PROGRAMS =
 
136
platform_DATA =
 
137
sbin_PROGRAMS =
 
138
check_SCRIPTS =
 
139
grubconf_DATA =
 
140
check_PROGRAMS =
 
141
noinst_SCRIPTS =
 
142
pkglib_SCRIPTS =
 
143
noinst_PROGRAMS =
 
144
grubconf_SCRIPTS =
 
145
noinst_LIBRARIES =
 
146
dist_noinst_DATA =
 
147
 
 
148
TESTS =
 
149
EXTRA_DIST =
 
150
CLEANFILES =
 
151
BUILT_SOURCES =
 
152
 
 
153
# Rules for autogen definition files
 
154
 
 
155
.PRECIOUS: $(top_srcdir)/Makefile.tpl
 
156
$(top_srcdir)/Makefile.tpl: $(top_srcdir)/gentpl.py
 
157
        python $< | sed -e '/^$$/{N;/^\\n$$/D;}' > $@.new || (rm -f $@.new; exit 1)
 
158
        mv $@.new $@
 
159
 
 
160
.PRECIOUS: $(top_srcdir)/Makefile.util.am
 
161
$(top_srcdir)/Makefile.util.am: $(top_srcdir)/Makefile.util.def $(top_srcdir)/Makefile.tpl
 
162
        autogen -T $(top_srcdir)/Makefile.tpl $< | sed -e '/^$$/{N;/^\\n$$/D;}' > $@.new || (rm -f $@.new; exit 1)
 
163
        mv $@.new $@
 
164
 
 
165
.PRECIOUS: $(top_srcdir)/grub-core/Makefile.core.am
 
166
$(top_srcdir)/grub-core/Makefile.core.am: $(top_srcdir)/grub-core/Makefile.core.def $(top_srcdir)/grub-core/Makefile.gcry.def $(top_srcdir)/Makefile.tpl
 
167
        if [ "x$$GRUB_CONTRIB" != x ]; then echo "You need to run ./autogen.sh manually." >&2; exit 1; fi
 
168
        autogen -T $(top_srcdir)/Makefile.tpl $(top_srcdir)/grub-core/Makefile.core.def $(top_srcdir)/grub-core/Makefile.gcry.def | sed -e '/^$$/{N;/^\\n$$/D;}' > $@.new || (rm -f $@.new; exit 1)
 
169
        mv $@.new $@