Makefile (79828b4fa835f73cdaf4bffa48696abdcbea9d02) Makefile (10375ccc670669a26adbc059b6723aeee4bfa4bb)
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

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

116
117$(boot_targets): vmlinux
118 $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
119
120%.dtb %.dtb.S %.dtb.o: scripts
121 $(Q)$(MAKE) $(build)=$(boot)/dts $(boot)/dts/$@
122
123dtbs: scripts
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

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

116
117$(boot_targets): vmlinux
118 $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
119
120%.dtb %.dtb.S %.dtb.o: scripts
121 $(Q)$(MAKE) $(build)=$(boot)/dts $(boot)/dts/$@
122
123dtbs: scripts
124 $(Q)$(MAKE) $(build)=$(boot)/dts dtbs
124 $(Q)$(MAKE) $(build)=$(boot)/dts
125
126archclean:
127 $(Q)$(MAKE) $(clean)=$(boot)
128
129# Hacks to enable final link due to absence of link-time branch relexation
130# and gcc choosing optimal(shorter) branches at -O3
131#
132# vineetg Feb 2010: -mlong-calls switched off for overall kernel build
133# However lib/decompress_inflate.o (.init.text) calls
134# zlib_inflate_workspacesize (.text) causing relocation errors.
135# Thus forcing all exten calls in this file to be long calls
136export CFLAGS_decompress_inflate.o = -mmedium-calls
137export CFLAGS_initramfs.o = -mmedium-calls
138ifdef CONFIG_SMP
139export CFLAGS_core.o = -mmedium-calls
140endif
125
126archclean:
127 $(Q)$(MAKE) $(clean)=$(boot)
128
129# Hacks to enable final link due to absence of link-time branch relexation
130# and gcc choosing optimal(shorter) branches at -O3
131#
132# vineetg Feb 2010: -mlong-calls switched off for overall kernel build
133# However lib/decompress_inflate.o (.init.text) calls
134# zlib_inflate_workspacesize (.text) causing relocation errors.
135# Thus forcing all exten calls in this file to be long calls
136export CFLAGS_decompress_inflate.o = -mmedium-calls
137export CFLAGS_initramfs.o = -mmedium-calls
138ifdef CONFIG_SMP
139export CFLAGS_core.o = -mmedium-calls
140endif