Makefile (8be98d2f2a0a262f8bf8a0bc1fdf522b3c7aab17) Makefile (8212f8986d311ccf6a72305e6bdbd814691701d6)
1#
2# m68k/Makefile
3#
4# This file is included by the global makefile so that you can add your own
1#
2# m68k/Makefile
3#
4# This file is included by the global makefile so that you can add your own
5# architecture-specific flags and dependencies. Remember to do have actions
6# for "archclean" and "archdep" for cleaning up and making dependencies for
7# this architecture
5# architecture-specific flags and dependencies.
8#
9# This file is subject to the terms and conditions of the GNU General Public
10# License. See the file "COPYING" in the main directory of this archive
11# for more details.
12#
13# Copyright (C) 1994 by Hamish Macdonald
14# Copyright (C) 2002,2011 Greg Ungerer <gerg@snapgear.com>
15#

--- 45 unchanged lines hidden (view full) ---

61cpuflags-y := $(cpuflags-y)
62
63KBUILD_AFLAGS += $(cpuflags-y)
64KBUILD_CFLAGS += $(cpuflags-y)
65
66KBUILD_CFLAGS += -pipe -ffreestanding
67
68ifdef CONFIG_MMU
6#
7# This file is subject to the terms and conditions of the GNU General Public
8# License. See the file "COPYING" in the main directory of this archive
9# for more details.
10#
11# Copyright (C) 1994 by Hamish Macdonald
12# Copyright (C) 2002,2011 Greg Ungerer <gerg@snapgear.com>
13#

--- 45 unchanged lines hidden (view full) ---

59cpuflags-y := $(cpuflags-y)
60
61KBUILD_AFLAGS += $(cpuflags-y)
62KBUILD_CFLAGS += $(cpuflags-y)
63
64KBUILD_CFLAGS += -pipe -ffreestanding
65
66ifdef CONFIG_MMU
69# without -fno-strength-reduce the 53c7xx.c driver fails ;-(
70KBUILD_CFLAGS += -fno-strength-reduce -ffixed-a2
67KBUILD_CFLAGS += -ffixed-a2
71else
72# we can use a m68k-linux-gcc toolchain with these in place
73KBUILD_CPPFLAGS += -DUTS_SYSNAME=\"uClinux\"
74KBUILD_CPPFLAGS += -D__uClinux__
75endif
76
77KBUILD_LDFLAGS := -m m68kelf
78

--- 14 unchanged lines hidden (view full) ---

93# Select the assembler head startup code. Order is important. The default
94# head code is first, processor specific selections can override it after.
95#
96head-y := arch/m68k/kernel/head.o
97head-$(CONFIG_SUN3) := arch/m68k/kernel/sun3-head.o
98head-$(CONFIG_M68000) := arch/m68k/68000/head.o
99head-$(CONFIG_COLDFIRE) := arch/m68k/coldfire/head.o
100
68else
69# we can use a m68k-linux-gcc toolchain with these in place
70KBUILD_CPPFLAGS += -DUTS_SYSNAME=\"uClinux\"
71KBUILD_CPPFLAGS += -D__uClinux__
72endif
73
74KBUILD_LDFLAGS := -m m68kelf
75

--- 14 unchanged lines hidden (view full) ---

90# Select the assembler head startup code. Order is important. The default
91# head code is first, processor specific selections can override it after.
92#
93head-y := arch/m68k/kernel/head.o
94head-$(CONFIG_SUN3) := arch/m68k/kernel/sun3-head.o
95head-$(CONFIG_M68000) := arch/m68k/68000/head.o
96head-$(CONFIG_COLDFIRE) := arch/m68k/coldfire/head.o
97
101core-y += arch/m68k/
102libs-y += arch/m68k/lib/
103
104
105all: zImage
106
107lilo: vmlinux
108 if [ -f $(INSTALL_PATH)/vmlinux ]; then mv -f $(INSTALL_PATH)/vmlinux $(INSTALL_PATH)/vmlinux.old; fi
109 if [ -f $(INSTALL_PATH)/System.map ]; then mv -f $(INSTALL_PATH)/System.map $(INSTALL_PATH)/System.old; fi

--- 37 unchanged lines hidden ---
98libs-y += arch/m68k/lib/
99
100
101all: zImage
102
103lilo: vmlinux
104 if [ -f $(INSTALL_PATH)/vmlinux ]; then mv -f $(INSTALL_PATH)/vmlinux $(INSTALL_PATH)/vmlinux.old; fi
105 if [ -f $(INSTALL_PATH)/System.map ]; then mv -f $(INSTALL_PATH)/System.map $(INSTALL_PATH)/System.old; fi

--- 37 unchanged lines hidden ---