Makefile (cfdbc2e16e65c1ec1c23057640607cee98d1a1bd) Makefile (999159a5381bff3bd6f688c5d20fbec9d8789e53)
1#
2# Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)
3#
4# This program is free software; you can redistribute it and/or modify
5# it under the terms of the GNU General Public License version 2 as
6# published by the Free Software Foundation.
7#
8

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

78# Needed for Linker script preprocessing
79KBUILD_CPPFLAGS += -Iarch/arc/plat-$(PLATFORM)/include
80
81head-y := arch/arc/kernel/head.o
82
83# See arch/arc/Kbuild for content of core part of the kernel
84core-y += arch/arc/
85
1#
2# Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)
3#
4# This program is free software; you can redistribute it and/or modify
5# it under the terms of the GNU General Public License version 2 as
6# published by the Free Software Foundation.
7#
8

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

78# Needed for Linker script preprocessing
79KBUILD_CPPFLAGS += -Iarch/arc/plat-$(PLATFORM)/include
80
81head-y := arch/arc/kernel/head.o
82
83# See arch/arc/Kbuild for content of core part of the kernel
84core-y += arch/arc/
85
86# w/o this dtb won't embed into kernel binary
87core-y += arch/arc/boot/dts/
88
86# w/o this ifneq, make ARCH=arc clean was crapping out
87ifneq ($(platform-y),)
88core-y += arch/arc/plat-$(PLATFORM)/
89endif
90
91libs-y += arch/arc/lib/ $(LIBGCC)
92
93#default target for make without any arguements.
94KBUILD_IMAGE := bootpImage
95
96all: $(KBUILD_IMAGE)
97boot := arch/arc/boot
98
99bootpImage: vmlinux
100
101uImage: vmlinux
102 $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
103
89# w/o this ifneq, make ARCH=arc clean was crapping out
90ifneq ($(platform-y),)
91core-y += arch/arc/plat-$(PLATFORM)/
92endif
93
94libs-y += arch/arc/lib/ $(LIBGCC)
95
96#default target for make without any arguements.
97KBUILD_IMAGE := bootpImage
98
99all: $(KBUILD_IMAGE)
100boot := arch/arc/boot
101
102bootpImage: vmlinux
103
104uImage: vmlinux
105 $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
106
107%.dtb %.dtb.S %.dtb.o: scripts
108 $(Q)$(MAKE) $(build)=$(boot)/dts $(boot)/dts/$@
109
110dtbs: scripts
111 $(Q)$(MAKE) $(build)=$(boot)/dts dtbs
112
104archclean:
105 $(Q)$(MAKE) $(clean)=$(boot)
106
107# Hacks to enable final link due to absence of link-time branch relexation
108# and gcc choosing optimal(shorter) branches at -O3
109#
110# vineetg Feb 2010: -mlong-calls switched off for overall kernel build
111# However lib/decompress_inflate.o (.init.text) calls
112# zlib_inflate_workspacesize (.text) causing relocation errors.
113# Thus forcing all exten calls in this file to be long calls
114export CFLAGS_decompress_inflate.o = -mmedium-calls
115export CFLAGS_initramfs.o = -mmedium-calls
113archclean:
114 $(Q)$(MAKE) $(clean)=$(boot)
115
116# Hacks to enable final link due to absence of link-time branch relexation
117# and gcc choosing optimal(shorter) branches at -O3
118#
119# vineetg Feb 2010: -mlong-calls switched off for overall kernel build
120# However lib/decompress_inflate.o (.init.text) calls
121# zlib_inflate_workspacesize (.text) causing relocation errors.
122# Thus forcing all exten calls in this file to be long calls
123export CFLAGS_decompress_inflate.o = -mmedium-calls
124export CFLAGS_initramfs.o = -mmedium-calls