OpenCores
URL https://opencores.org/ocsvn/or1k_soc_on_altera_embedded_dev_kit/or1k_soc_on_altera_embedded_dev_kit/trunk

Subversion Repositories or1k_soc_on_altera_embedded_dev_kit

[/] [or1k_soc_on_altera_embedded_dev_kit/] [trunk/] [linux-2.6/] [linux-2.6.24/] [arch/] [m32r/] [Makefile] - Blame information for rev 3

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 3 xianfeng
#
2
# m32r/Makefile
3
#
4
# This file is included by the global makefile so that you can add your own
5
# architecture-specific flags and dependencies.
6
#
7
 
8
LDFLAGS         :=
9
OBJCOPYFLAGS    := -O binary -R .note -R .comment -S
10
LDFLAGS_vmlinux :=
11
 
12
KBUILD_CFLAGS += -pipe -fno-schedule-insns
13
CFLAGS_KERNEL += -mmodel=medium
14
CFLAGS_MODULE += -mmodel=large
15
 
16
ifdef CONFIG_CHIP_VDEC2
17
cflags-$(CONFIG_ISA_M32R2)      += -DNO_FPU -Wa,-bitinst
18
aflags-$(CONFIG_ISA_M32R2)      += -DNO_FPU -O2 -Wa,-bitinst -Wa,-no-parallel
19
else
20
cflags-$(CONFIG_ISA_M32R2)      += -DNO_FPU -m32r2
21
aflags-$(CONFIG_ISA_M32R2)      += -DNO_FPU -m32r2 -O2
22
endif
23
 
24
cflags-$(CONFIG_ISA_M32R)       += -DNO_FPU
25
aflags-$(CONFIG_ISA_M32R)       += -DNO_FPU -O2 -Wa,-no-bitinst
26
 
27
KBUILD_CFLAGS += $(cflags-y)
28
KBUILD_AFLAGS += $(aflags-y)
29
 
30
CHECKFLAGS      += -D__m32r__ -D__BIG_ENDIAN__=1
31
 
32
head-y  := arch/m32r/kernel/head.o arch/m32r/kernel/init_task.o
33
 
34
LIBGCC  := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name)
35
 
36
libs-y  += arch/m32r/lib/ $(LIBGCC)
37
core-y  += arch/m32r/kernel/    \
38
           arch/m32r/mm/        \
39
           arch/m32r/boot/      \
40
           arch/m32r/platforms/
41
 
42
drivers-$(CONFIG_OPROFILE)      += arch/m32r/oprofile/
43
 
44
boot := arch/m32r/boot
45
 
46
PHONY += zImage
47
 
48
all: zImage
49
 
50
zImage: vmlinux
51
        $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
52
 
53
compressed: zImage
54
 
55
archclean:
56
        $(Q)$(MAKE) $(clean)=$(boot)
57
 
58
define archhelp
59
        echo  '* zImage          - Compressed kernel image (arch/$(ARCH)/boot/zImage)'
60
endef

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.