blob: 500497e3c72dde5096673c2f4fc893135cfa49ea [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
Milton Miller437374e2007-10-20 03:58:03 -050016# KBUILD_CFLAGS used when building rest of boot (takes effect recursively)
17KBUILD_CFLAGS += -fno-builtin -D__BOOTER__ -Iarch/$(ARCH)/boot/include
Linus Torvalds1da177e2005-04-16 15:20:36 -070018HOSTCFLAGS += -Iarch/$(ARCH)/boot/include
19
20BOOT_TARGETS = zImage zImage.initrd znetboot znetboot.initrd
21
22bootdir-y := simple
Linus Torvalds1da177e2005-04-16 15:20:36 -070023subdir-y := lib common images
Paul Mackerras0a26b132006-03-28 10:22:10 +110024subdir-$(CONFIG_PPC_PREP) += of1275
Linus Torvalds1da177e2005-04-16 15:20:36 -070025
26# for cleaning
Paul Mackerras0a26b132006-03-28 10:22:10 +110027subdir- += simple
Linus Torvalds1da177e2005-04-16 15:20:36 -070028
Paul Mackerras0a26b132006-03-28 10:22:10 +110029hostprogs-y := $(addprefix utils/, mkprep mkbugboot mktree)
Linus Torvalds1da177e2005-04-16 15:20:36 -070030
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)