2 # arch/ppc/boot/Makefile
4 # This file is included by the global makefile so that you can add your own
5 # architecture-specific flags and dependencies.
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
11 # Copyright (C) 1994 by Linus Torvalds
12 # Adapted for PowerPC by Gary Thomas
13 # modified by Cort (cort@cs.nmt.edu)
16 CFLAGS
+= -fno-builtin
-D__BOOTER__
-Iarch
/$(ARCH
)/boot
/include
17 HOSTCFLAGS
+= -Iarch
/$(ARCH
)/boot
/include
19 BOOT_TARGETS
= zImage zImage.initrd znetboot znetboot.initrd
22 bootdir-
$(CONFIG_PPC_OF
) += openfirmware
23 subdir-y
:= lib common images
24 subdir-
$(CONFIG_PPC_MULTIPLATFORM
) += of1275
27 subdir-
+= simple openfirmware
29 hostprogs-y
:= $(addprefix utils
/, addnote mknote hack-coff mkprep mkbugboot mktree
)
31 PHONY
+= $(BOOT_TARGETS
) $(bootdir-y
)
33 $(BOOT_TARGETS
): $(bootdir-y
)
35 $(bootdir-y
): $(addprefix $(obj
)/,$(subdir-y
)) \
36 $(addprefix $(obj
)/,$(hostprogs-y
))
37 $(Q
)$(MAKE
) $(build
)=$(obj
)/$@
$(MAKECMDGOALS
)