blob: df6e9968c84541c0dafdd3306b452fa762e3185f [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#
2# ia64/boot/Makefile
3#
4# This file is subject to the terms and conditions of the GNU General Public
5# License. See the file "COPYING" in the main directory of this archive
6# for more details.
7#
8# Copyright (C) 1998, 2003 by David Mosberger-Tang <davidm@hpl.hp.com>
9#
10
11targets-$(CONFIG_IA64_HP_SIM) += bootloader
12targets := vmlinux.bin vmlinux.gz $(targets-y)
13
14quiet_cmd_cptotop = LN $@
15 cmd_cptotop = ln -f $< $@
16
17vmlinux.gz: $(obj)/vmlinux.gz $(addprefix $(obj)/,$(targets-y))
18 $(call cmd,cptotop)
19 @echo ' Kernel: $@ is ready'
20
21boot: bootloader
22
23bootloader: $(obj)/bootloader
24 $(call cmd,cptotop)
25
26$(obj)/vmlinux.gz: $(obj)/vmlinux.bin FORCE
27 $(call if_changed,gzip)
28
29$(obj)/vmlinux.bin: vmlinux FORCE
30 $(call if_changed,objcopy)
31
32
33LDFLAGS_bootloader = -static -T
34
35$(obj)/bootloader: $(src)/bootloader.lds $(obj)/bootloader.o $(obj)/boot_head.o $(obj)/fw-emu.o \
Al Viro7f2084f2016-01-15 14:01:22 -050036 lib/lib.a arch/ia64/lib/lib.a FORCE
Linus Torvalds1da177e2005-04-16 15:20:36 -070037 $(call if_changed,ld)