Committer: Michael Beasley <mike@snafu.setup>
[mikesnafu-overlay.git] / arch / ia64 / hp / sim / boot / Makefile
blob2e805e0cc56059f51074ec738010a81d2232605f
2 # ia64/boot/Makefile
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.
8 # Copyright (C) 1998, 2003 by David Mosberger-Tang <davidm@hpl.hp.com>
11 targets-$(CONFIG_IA64_HP_SIM) += bootloader
12 targets := vmlinux.bin vmlinux.gz $(targets-y)
14 quiet_cmd_cptotop = LN $@
15 cmd_cptotop = ln -f $< $@
17 vmlinux.gz: $(obj)/vmlinux.gz $(addprefix $(obj)/,$(targets-y))
18 $(call cmd,cptotop)
19 @echo ' Kernel: $@ is ready'
21 boot: bootloader
23 bootloader: $(obj)/bootloader
24 $(call cmd,cptotop)
26 $(obj)/vmlinux.gz: $(obj)/vmlinux.bin FORCE
27 $(call if_changed,gzip)
29 $(obj)/vmlinux.bin: vmlinux FORCE
30 $(call if_changed,objcopy)
33 LDFLAGS_bootloader = -static -T
35 $(obj)/bootloader: $(src)/bootloader.lds $(obj)/bootloader.o $(obj)/boot_head.o $(obj)/fw-emu.o \
36 lib/lib.a arch/ia64/lib/built-in.o arch/ia64/lib/lib.a FORCE
37 $(call if_changed,ld)