Makefile (4ba25a496f62129a2ad8c2436ab2b402752dc66c) Makefile (b42b4f3af8b1ac2f7b09781d523bf918f366d8d6)
1#
2# This file is subject to the terms and conditions of the GNU General Public
3# License. See the file "COPYING" in the main directory of this archive
4# for more details.
5#
6# Copyright (C) 1994, 95, 96, 2003 by Ralf Baechle
7# DECStation modifications by Paul M. Antoine, 1996
8# Copyright (C) 2002, 2003, 2004 Maciej W. Rozycki

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

189#
190# Board-dependent options and extra files
191#
192include $(srctree)/arch/mips/Kbuild.platforms
193
194ifdef CONFIG_PHYSICAL_START
195load-y = $(CONFIG_PHYSICAL_START)
196endif
1#
2# This file is subject to the terms and conditions of the GNU General Public
3# License. See the file "COPYING" in the main directory of this archive
4# for more details.
5#
6# Copyright (C) 1994, 95, 96, 2003 by Ralf Baechle
7# DECStation modifications by Paul M. Antoine, 1996
8# Copyright (C) 2002, 2003, 2004 Maciej W. Rozycki

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

189#
190# Board-dependent options and extra files
191#
192include $(srctree)/arch/mips/Kbuild.platforms
193
194ifdef CONFIG_PHYSICAL_START
195load-y = $(CONFIG_PHYSICAL_START)
196endif
197entry-y = 0x$(shell $(NM) vmlinux 2>/dev/null \
198 | grep "\bkernel_entry\b" | cut -f1 -d \ )
197
198cflags-y += -I$(srctree)/arch/mips/include/asm/mach-generic
199drivers-$(CONFIG_PCI) += arch/mips/pci/
200
201#
202# Automatically detect the build format. By default we choose
203# the elf format according to the load address.
204# We can always force a build with a 64-bits symbol format by

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

220 endif
221endif
222
223KBUILD_AFLAGS += $(cflags-y)
224KBUILD_CFLAGS += $(cflags-y)
225KBUILD_CPPFLAGS += -DVMLINUX_LOAD_ADDRESS=$(load-y)
226KBUILD_CPPFLAGS += -DDATAOFFSET=$(if $(dataoffset-y),$(dataoffset-y),0)
227
199
200cflags-y += -I$(srctree)/arch/mips/include/asm/mach-generic
201drivers-$(CONFIG_PCI) += arch/mips/pci/
202
203#
204# Automatically detect the build format. By default we choose
205# the elf format according to the load address.
206# We can always force a build with a 64-bits symbol format by

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

222 endif
223endif
224
225KBUILD_AFLAGS += $(cflags-y)
226KBUILD_CFLAGS += $(cflags-y)
227KBUILD_CPPFLAGS += -DVMLINUX_LOAD_ADDRESS=$(load-y)
228KBUILD_CPPFLAGS += -DDATAOFFSET=$(if $(dataoffset-y),$(dataoffset-y),0)
229
230bootvars-y = VMLINUX_LOAD_ADDRESS=$(load-y) \
231 VMLINUX_ENTRY_ADDRESS=$(entry-y)
232
228LDFLAGS += -m $(ld-emul)
229
230ifdef CONFIG_CC_STACKPROTECTOR
231 KBUILD_CFLAGS += -fstack-protector
232endif
233
234ifdef CONFIG_MIPS
235CHECKFLAGS += $(shell $(CC) $(KBUILD_CFLAGS) -dM -E -x c /dev/null | \

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

249# See arch/mips/Kbuild for content of core part of the kernel
250core-y += arch/mips/
251
252drivers-$(CONFIG_OPROFILE) += arch/mips/oprofile/
253
254# suspend and hibernation support
255drivers-$(CONFIG_PM) += arch/mips/power/
256
233LDFLAGS += -m $(ld-emul)
234
235ifdef CONFIG_CC_STACKPROTECTOR
236 KBUILD_CFLAGS += -fstack-protector
237endif
238
239ifdef CONFIG_MIPS
240CHECKFLAGS += $(shell $(CC) $(KBUILD_CFLAGS) -dM -E -x c /dev/null | \

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

254# See arch/mips/Kbuild for content of core part of the kernel
255core-y += arch/mips/
256
257drivers-$(CONFIG_OPROFILE) += arch/mips/oprofile/
258
259# suspend and hibernation support
260drivers-$(CONFIG_PM) += arch/mips/power/
261
262# boot image targets (arch/mips/boot/)
263boot-y := vmlinux.bin
264boot-y += vmlinux.ecoff
265boot-y += vmlinux.srec
266ifeq ($(shell expr $(load-y) \< 0xffffffff80000000 2> /dev/null), 0)
267boot-y += uImage
268boot-y += uImage.gz
269endif
270
271# compressed boot image targets (arch/mips/boot/compressed/)
272bootz-y := vmlinuz
273bootz-y += vmlinuz.bin
274bootz-y += vmlinuz.ecoff
275bootz-y += vmlinuz.srec
276
257ifdef CONFIG_LASAT
258rom.bin rom.sw: vmlinux
277ifdef CONFIG_LASAT
278rom.bin rom.sw: vmlinux
259 $(Q)$(MAKE) $(build)=arch/mips/lasat/image $@
279 $(Q)$(MAKE) $(build)=arch/mips/lasat/image \
280 $(bootvars-y) $@
260endif
261
262#
263# Some machines like the Indy need 32-bit ELF binaries for booting purposes.
264# Other need ECOFF, so we build a 32-bit ELF binary for them which we then
265# convert to ECOFF using elf2ecoff.
266#
267vmlinux.32: vmlinux
268 $(OBJCOPY) -O $(32bit-bfd) $(OBJCOPYFLAGS) $< $@
269
281endif
282
283#
284# Some machines like the Indy need 32-bit ELF binaries for booting purposes.
285# Other need ECOFF, so we build a 32-bit ELF binary for them which we then
286# convert to ECOFF using elf2ecoff.
287#
288vmlinux.32: vmlinux
289 $(OBJCOPY) -O $(32bit-bfd) $(OBJCOPYFLAGS) $< $@
290
270
271#obj-$(CONFIG_KPROBES) += kprobes.o
272
273#
274# The 64-bit ELF tools are pretty broken so at this time we generate 64-bit
275# ELF files from 32-bit files by conversion.
276#
277vmlinux.64: vmlinux
278 $(OBJCOPY) -O $(64bit-bfd) $(OBJCOPYFLAGS) $< $@
279
280all: $(all-y)
281
282# boot
291#
292# The 64-bit ELF tools are pretty broken so at this time we generate 64-bit
293# ELF files from 32-bit files by conversion.
294#
295vmlinux.64: vmlinux
296 $(OBJCOPY) -O $(64bit-bfd) $(OBJCOPYFLAGS) $< $@
297
298all: $(all-y)
299
300# boot
283vmlinux.bin vmlinux.ecoff vmlinux.srec: $(vmlinux-32) FORCE
284 $(Q)$(MAKE) $(build)=arch/mips/boot VMLINUX=$(vmlinux-32) arch/mips/boot/$@
301$(boot-y): $(vmlinux-32) FORCE
302 $(Q)$(MAKE) $(build)=arch/mips/boot VMLINUX=$(vmlinux-32) \
303 $(bootvars-y) arch/mips/boot/$@
285
286# boot/compressed
304
305# boot/compressed
287vmlinuz vmlinuz.bin vmlinuz.ecoff vmlinuz.srec: $(vmlinux-32) FORCE
306$(bootz-y): $(vmlinux-32) FORCE
288 $(Q)$(MAKE) $(build)=arch/mips/boot/compressed \
307 $(Q)$(MAKE) $(build)=arch/mips/boot/compressed \
289 VMLINUX_LOAD_ADDRESS=$(load-y) 32bit-bfd=$(32bit-bfd) $@
308 $(bootvars-y) 32bit-bfd=$(32bit-bfd) $@
290
291
292CLEAN_FILES += vmlinux.32 vmlinux.64
293
294archprepare:
295ifdef CONFIG_MIPS32_N32
296 @echo ' Checking missing-syscalls for N32'
297 $(Q)$(MAKE) $(build)=. missing-syscalls missing_syscalls_flags="-mabi=n32"

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

318 echo ' install - install kernel into $(INSTALL_PATH)'
319 echo ' vmlinux.ecoff - ECOFF boot image'
320 echo ' vmlinux.bin - Raw binary boot image'
321 echo ' vmlinux.srec - SREC boot image'
322 echo ' vmlinuz - Compressed boot(zboot) image'
323 echo ' vmlinuz.ecoff - ECOFF zboot image'
324 echo ' vmlinuz.bin - Raw binary zboot image'
325 echo ' vmlinuz.srec - SREC zboot image'
309
310
311CLEAN_FILES += vmlinux.32 vmlinux.64
312
313archprepare:
314ifdef CONFIG_MIPS32_N32
315 @echo ' Checking missing-syscalls for N32'
316 $(Q)$(MAKE) $(build)=. missing-syscalls missing_syscalls_flags="-mabi=n32"

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

337 echo ' install - install kernel into $(INSTALL_PATH)'
338 echo ' vmlinux.ecoff - ECOFF boot image'
339 echo ' vmlinux.bin - Raw binary boot image'
340 echo ' vmlinux.srec - SREC boot image'
341 echo ' vmlinuz - Compressed boot(zboot) image'
342 echo ' vmlinuz.ecoff - ECOFF zboot image'
343 echo ' vmlinuz.bin - Raw binary zboot image'
344 echo ' vmlinuz.srec - SREC zboot image'
345 echo ' uImage - U-Boot image'
346 echo ' uImage.gz - U-Boot image (gzip)'
326 echo
327 echo ' These will be default as appropriate for a configured platform.'
328endef
347 echo
348 echo ' These will be default as appropriate for a configured platform.'
349endef