~ubuntu-branches/ubuntu/maverick/uboot-imx/maverick

« back to all changes in this revision

Viewing changes to lib_arm/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Oliver Grawert
  • Date: 2010-01-06 09:28:25 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20100106092825-q8o7x811035syh8k
Tags: 2009.08-0ubuntu1
* move to new upstream (2009.08)
* move to new freescale patchset for the 2009.08 release
* remove README.nios_CONFIG_SYS_NIOS_CPU from debian/docs, 
  this is not shipped upstream anymore
* update 1000_fix_gcc_4.4_compability.patch to apply to the new code
* Makefile target is now mx51_bbg_config, update rules accordingly
* switch everything to to3 (including the binary package)

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
include $(TOPDIR)/config.mk
25
25
 
26
26
LIB     = $(obj)lib$(ARCH).a
27
 
 
28
 
SOBJS-y += _ashldi3.o
29
 
SOBJS-y += _ashrdi3.o
30
 
SOBJS-y += _divsi3.o
31
 
SOBJS-y += _modsi3.o
32
 
SOBJS-y += _udivsi3.o
33
 
SOBJS-y += _umodsi3.o
 
27
LIBGCC  = $(obj)libgcc.a
 
28
 
 
29
GLSOBJS += _ashldi3.o
 
30
GLSOBJS += _ashrdi3.o
 
31
GLSOBJS += _divsi3.o
 
32
GLSOBJS += _lshrdi3.o
 
33
GLSOBJS += _modsi3.o
 
34
GLSOBJS += _udivsi3.o
 
35
GLSOBJS += _umodsi3.o
 
36
 
 
37
GLCOBJS += div0.o
34
38
 
35
39
COBJS-y += board.o
36
40
COBJS-y += bootm.o
37
41
COBJS-y += cache.o
38
 
COBJS-y += div0.o
 
42
ifndef CONFIG_SYS_NO_CP15_CACHE
 
43
COBJS-y += cache-cp15.o
 
44
endif
39
45
COBJS-y += interrupts.o
 
46
COBJS-y += reset.o
40
47
 
41
 
SRCS    := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
 
48
SRCS    := $(GLSOBJS:.o=.S) $(GLCOBJS:.o=.c) \
 
49
           $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
42
50
OBJS    := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
 
51
LGOBJS  := $(addprefix $(obj),$(GLSOBJS)) \
 
52
           $(addprefix $(obj),$(GLCOBJS))
 
53
 
 
54
# Always build libarm.a
 
55
TARGETS := $(LIB)
 
56
 
 
57
# Build private libgcc only when asked for
 
58
ifdef USE_PRIVATE_LIBGCC
 
59
TARGETS += $(LIBGCC)
 
60
endif
 
61
 
 
62
# For EABI conformant tool chains, provide eabi_compat()
 
63
ifneq (,$(findstring -mabi=aapcs-linux,$(PLATFORM_CPPFLAGS)))
 
64
TARGETS += $(obj)eabi_compat.o
 
65
endif
 
66
 
 
67
all:    $(TARGETS)
43
68
 
44
69
$(LIB): $(obj).depend $(OBJS)
45
70
        $(AR) $(ARFLAGS) $@ $(OBJS)
46
71
 
 
72
$(LIBGCC): $(obj).depend $(LGOBJS)
 
73
        $(AR) $(ARFLAGS) $@ $(LGOBJS)
 
74
 
47
75
#########################################################################
48
76
 
49
77
# defines $(obj).depend target