blob: 84eec0bef93c273959e68a283da8fbb1a514e96c [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#
2# arch/ppc/boot/Makefile
3#
Paul Smith4f193362006-03-05 17:14:10 -05004# This file is included by the global makefile so that you can add your own
5# architecture-specific flags and dependencies.
6#
Linus Torvalds1da177e2005-04-16 15:20:36 -07007# This file is subject to the terms and conditions of the GNU General Public
8# License. See the file "COPYING" in the main directory of this archive
9# for more details.
10#
11# Copyright (C) 1994 by Linus Torvalds
12# Adapted for PowerPC by Gary Thomas
13# modified by Cort (cort@cs.nmt.edu)
14#
15
16CFLAGS += -fno-builtin -D__BOOTER__ -Iarch/$(ARCH)/boot/include
17HOSTCFLAGS += -Iarch/$(ARCH)/boot/include
18
19BOOT_TARGETS = zImage zImage.initrd znetboot znetboot.initrd
20
21bootdir-y := simple
22bootdir-$(CONFIG_PPC_OF) += openfirmware
23subdir-y := lib common images
Paul Mackerrasa7fdd902006-01-15 17:30:44 +110024subdir-$(CONFIG_PPC_MULTIPLATFORM) += of1275
Linus Torvalds1da177e2005-04-16 15:20:36 -070025
26# for cleaning
27subdir- += simple openfirmware
28
29hostprogs-y := $(addprefix utils/, addnote mknote hack-coff mkprep mkbugboot mktree)
30
Paul Smith4f193362006-03-05 17:14:10 -050031PHONY += $(BOOT_TARGETS) $(bootdir-y)
Linus Torvalds1da177e2005-04-16 15:20:36 -070032
33$(BOOT_TARGETS): $(bootdir-y)
34
35$(bootdir-y): $(addprefix $(obj)/,$(subdir-y)) \
36 $(addprefix $(obj)/,$(hostprogs-y))
37 $(Q)$(MAKE) $(build)=$(obj)/$@ $(MAKECMDGOALS)