Magellan Linux

Contents of /trunk/mkinitrd-magellan/klibc/usr/klibc/arch/arm/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: 987 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/arm/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 CPU_ARCH := armv4
11 CPU_TUNE := strongarm
12
13 KLIBCOPTFLAGS += -Os -march=$(CPU_ARCH) -mtune=$(CPU_TUNE)
14 KLIBCBITSIZE = 32
15 KLIBCREQFLAGS += -fno-exceptions
16 KLIBCSTRIPFLAGS += -R .ARM.exidx
17
18 ifeq ($(CONFIG_KLIBC_THUMB),y)
19 CPU_ARCH := $(CPU_ARCH)t
20 KLIBCREQFLAGS += -mthumb
21 KLIBCLDFLAGS += --thumb-entry _start
22 KLIBCEMAIN = --thumb-entry _start
23 KLIBCREQFLAGS += -mabi=aapcs-linux
24 KLIBCSHAREDFLAGS = -Ttext 0x380200
25 else
26 # Extra linkflags when building the shared version of the library
27 # This address needs to be reachable using normal inter-module
28 # calls, and work on the memory models for this architecture
29 KLIBCSHAREDFLAGS = -Ttext 0x01800200
30 ifeq ($(CONFIG_AEABI),y)
31 KLIBCREQFLAGS += -mabi=aapcs-linux -mno-thumb-interwork
32 else
33 KLIBCREQFLAGS += -mabi=apcs-gnu -mno-thumb-interwork
34 endif
35 endif