Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | # |
| 2 | # arch/ppc/boot/Makefile |
| 3 | # |
Paul Smith | 4f19336 | 2006-03-05 17:14:10 -0500 | [diff] [blame] | 4 | # This file is included by the global makefile so that you can add your own |
| 5 | # architecture-specific flags and dependencies. |
| 6 | # |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 7 | # 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 Miller | 437374e | 2007-10-20 03:58:03 -0500 | [diff] [blame] | 16 | # KBUILD_CFLAGS used when building rest of boot (takes effect recursively) |
| 17 | KBUILD_CFLAGS += -fno-builtin -D__BOOTER__ -Iarch/$(ARCH)/boot/include |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 18 | HOSTCFLAGS += -Iarch/$(ARCH)/boot/include |
| 19 | |
| 20 | BOOT_TARGETS = zImage zImage.initrd znetboot znetboot.initrd |
| 21 | |
| 22 | bootdir-y := simple |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 23 | subdir-y := lib common images |
Paul Mackerras | 0a26b13 | 2006-03-28 10:22:10 +1100 | [diff] [blame] | 24 | subdir-$(CONFIG_PPC_PREP) += of1275 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 25 | |
| 26 | # for cleaning |
Paul Mackerras | 0a26b13 | 2006-03-28 10:22:10 +1100 | [diff] [blame] | 27 | subdir- += simple |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 28 | |
Paul Mackerras | 0a26b13 | 2006-03-28 10:22:10 +1100 | [diff] [blame] | 29 | hostprogs-y := $(addprefix utils/, mkprep mkbugboot mktree) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 30 | |
Paul Smith | 4f19336 | 2006-03-05 17:14:10 -0500 | [diff] [blame] | 31 | PHONY += $(BOOT_TARGETS) $(bootdir-y) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 32 | |
| 33 | $(BOOT_TARGETS): $(bootdir-y) |
| 34 | |
| 35 | $(bootdir-y): $(addprefix $(obj)/,$(subdir-y)) \ |
| 36 | $(addprefix $(obj)/,$(hostprogs-y)) |
| 37 | $(Q)$(MAKE) $(build)=$(obj)/$@ $(MAKECMDGOALS) |