Magellan Linux

Contents of /trunk/mkinitrd-magellan/klibc/usr/klibc/arch/i386/MCONFIG

Parent Directory Parent Directory | Revision Log Revision Log


Revision 532 - (show annotations) (download)
Sat Sep 1 22:45:15 2007 UTC (16 years, 9 months ago) by niro
File size: 1018 byte(s)
-import if magellan mkinitrd; it is a fork of redhats mkinitrd-5.0.8 with all magellan patches and features; deprecates magellan-src/mkinitrd

1 # -*- makefile -*-
2 #
3 # arch/i386/MCONFIG
4 #
5 # Special rules for this architecture. Note that this is actually
6 # included from the main Makefile, and that pathnames should be
7 # accordingly.
8 #
9
10 # Enable this to compile with register parameters; only safe for
11 # gcc >= 3
12
13 ifeq ($(CONFIG_REGPARM),y)
14 REGPARM_OPT := -mregparm=3 -D_REGPARM=3
15 endif
16
17 gcc_align_option := $(call cc-option, \
18 -falign-functions=0 -falign-jumps=0 -falign-loops=0, \
19 -malign-functions=0 -malign-jumps=0 -malign-loops=0)
20 gcc_m32_option := $(call cc-option, -m32, )
21
22 KLIBCOPTFLAGS += -march=i386 -Os -g -fomit-frame-pointer $(gcc_align_option)
23 KLIBCLDFLAGS = -m elf_i386
24 KLIBCREQFLAGS += $(REGPARM_OPT)
25 KLIBCARCHREQFLAGS += $(gcc_m32_option)
26
27 KLIBCBITSIZE = 32
28
29 # Extra linkflags when building the shared version of the library
30 # This address needs to be reachable using normal inter-module
31 # calls, and work on the memory models for this architecture
32 # 96 MB - normal binaries start at 128 MB
33 KLIBCSHAREDFLAGS = -Ttext 0x06000200