Add externs to avoid multiple definitions, and then add missing definitions.
[rrq/maintain_lilo.git] / make.vars
1 ### Configuration variables for makefiles ###
2 #
3 # Copyright 2009-2013 Joachim Wiedorn
4 # All rights reserved.
5
6 # Licensed under the terms contained in the file 'COPYING'
7 # in the source directory.
8 #
9
10 # NOTE: These variables can also be stored in a file /etc/lilo.defines, e.g.
11 # -DIGNORECASE -DONE_SHOT
12 #
13 # NOTE: If the file /etc/lilo.defines exists, variables configured in this
14 # Makefile are ignored
15 #
16 #   ATARAID     Detect 'dmraid' drivers (linux/drivers/raid/dm.c).
17 #   AUTOAUTO    Enable automatic generation of change rules for MS partitions;
18 #               issue warning if "CHANGE AUTOMATIC" is assumed
19 # * BDATA       Enable real mode gathering of system information for '-T'
20 #   BEEP        Beep after displaying "LILO".
21 #   BOOT_FILE   Append "BOOT_FILE=<path>" to the kernel command line.
22 #   BUG_SI_EBDA=n  Compensate for BIOS's (notably early Silicon Image S-ATA)
23 #               that use the EBDA, but don't properly allocate the space.
24 #               (n=1..64) specifies the extra EBDA in kilobytes (default 20).
25 #   COHERENT    Make boot loaders (chain.b & mbr.b) compatible with Coherent
26 #               by writing the boot device code to the memory copy of the PT
27 # * DEVMAPPER   Device Mapper (aka LVM2) support (2.6 kernels only)
28 # * DSECS=n     Set the number of Descriptor Sectors (n=1..12).  Each sector
29 #               of the descriptor table holds 9..10 descriptors.
30 # * EVMS        Enables support for booting from EVMS volumes. Requires a
31 #               2.4 or 2.6 kernel patched to EVMS version 1.1.0 or later.
32 #   HP_TTRC     Insert 150ms delay for HP TTRC card.  Affects 'second.S'
33 # * IGNORECASE  Image selection is case-insensitive. Passwords are still
34 #               case-sensitive.
35 #   INITRDLOW   Always load initial ramdisk images below address 15M,
36 #               ignoring any 'large-memory' option in the config file.
37 # * LVM         Enables support for booting from LVM partitions. Requires a
38 #               2.4 kernel (>= 2.4.7) or a 2.6 kernel.
39 # * MDPRAID     Enable automatic marking of volumes of full volume raid
40 #               as 'inaccessible.  Add "noraid" keyword to suppress.
41 #   NO1STDIAG   Don't show diagnostic on read errors in the first stage
42 #               boot. (not recommended)
43 #   NODRAIN     Don't drain keyboard buffer after booting.
44 #   NOINSTDEF   Don't install a new boot sector if INSTALL is not specified.
45 # * NOKEYBOARD  Enable the 'nokbdefault' keyword, and test for booting on
46 #               a system without a keyboard; alters default descriptor
47 #               to be booted.  Enable the 'nokbdisable' keyword also.
48 #   NOSERIAL    Don't assemble serial line support in the boot loader.
49 #   NOVGA       Don't write to Monochrome or VGA displays.
50 #   OLD_DIRSTR  Use old locations of config and boot files: (/etc/lilo)
51 # * ONE_SHOT    Disable the command-line and password timeout if any key is
52 #               hit at the boot prompt.
53 # * PASS160     Use 160-bit password hash (Secure Hash Standard, see
54 #               FIPS PUB 180-1) instead of 64-bit CRC-32 hash
55 #   READAHEAD   Enable read-ahead on EDD disks which support the function.
56 #               Note:  no BIOS has yet been seen which supports this
57 #               EDD revision 1.1 function.
58 #   READONLY    Don't write to disk while booting, e.g. don't overwrite the
59 #               default command line in the map file after reading it.
60 # * REISERFS    Compile support for parts of LILO on ReiserFS.
61 #               Requires header files for kernel 2.4.0test8 or later.
62 # * REWRITE_TABLE Enable rewriting the partition table at boot time.
63 # * SOLO_CHAIN  Assemble all chain-loader functions into 'chain.b'.
64 #   SUSPEND=    Modify 'vmdefault' action if this partition type on C: drive
65 #               is marked active; (Dell suspend partition is -DSUSPEND=0x84).
66 #   USE_TMPDIR  Create temporary devices in $TMPDIR if set
67 # * VERSION     Prints version string at LILO boot prompt.
68 # * VIRTUAL     Enable 'vmdefault', 'vmdisable', 'vmwarn' keywords; feature
69 #               requested by VMware users (new, experimental)
70 #   XL_SECS=n   Support for extra large (non-standard) floppies.
71
72 CONFIG=-DBDATA -DDSECS=3 -DEVMS -DIGNORECASE -DLVM -DNOKEYBOARD -DONE_SHOT \
73     -DPASS160 -DREISERFS -DREWRITE_TABLE -DSOLO_CHAIN -DVERSION -DVIRTUAL \
74     -DMDPRAID -DDEVMAPPER
75    
76 # set the following if you wish LILO.COM to be installed
77 DOS_DIR=/dosC/boot
78
79 # select place for man pages
80 MAN_DIR=/usr/share/man
81
82 # set the compiler optimization level
83 OPT=-Os
84
85 ### End of configuration variables for makefiles ###
86
87
88 #
89 #  Do not modify anything below this point
90 #
91
92 SBIN_DIR=/sbin
93 CFG_DIR=/etc
94 BOOT_DIR=/boot
95 USRSBIN_DIR=/usr/sbin
96 BUILTIN=1
97
98 PCONFIG=$(KVER) $(HDM) $(LILO) `( if [ -r $$DESTDIR/etc/lilo.defines ]; then \
99   cat $$DESTDIR/etc/lilo.defines; else echo $(CONFIG); fi ) | \
100   sed 's/-D/-DLCF_/g'`
101 LILO=-DLILO=0xbb920890
102 KVER=`if [ -f /usr/include/linux/version.h ]; then echo -DHAS_VERSION_H; fi`
103 HDM=`if [ -f /usr/include/libdevmapper.h ]; then echo -DHAS_LIBDEVMAPPER_H; fi`
104 DEVMAPPER=`if [ -f /usr/include/libdevmapper.h ]; then echo "-ldevmapper"; fi`
105
106 TMP=_TmP_
107