diff options
Diffstat (limited to 'arch/ppc/boot/lib/Makefile')
-rw-r--r-- | arch/ppc/boot/lib/Makefile | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/arch/ppc/boot/lib/Makefile b/arch/ppc/boot/lib/Makefile new file mode 100644 index 000000000000..d4077e69086f --- /dev/null +++ b/arch/ppc/boot/lib/Makefile | |||
@@ -0,0 +1,23 @@ | |||
1 | # | ||
2 | # Makefile for some libs needed by zImage. | ||
3 | # | ||
4 | |||
5 | CFLAGS_kbd.o := -Idrivers/char | ||
6 | CFLAGS_vreset.o := -I$(srctree)/arch/ppc/boot/include | ||
7 | |||
8 | zlib := infblock.c infcodes.c inffast.c inflate.c inftrees.c infutil.c | ||
9 | |||
10 | lib-y += $(zlib:.c=.o) div64.o | ||
11 | lib-$(CONFIG_VGA_CONSOLE) += vreset.o kbd.o | ||
12 | |||
13 | |||
14 | # zlib files needs header from their original place | ||
15 | EXTRA_CFLAGS += -Ilib/zlib_inflate | ||
16 | |||
17 | quiet_cmd_copy_zlib = COPY $@ | ||
18 | cmd_copy_zlib = cat $< > $@ | ||
19 | |||
20 | $(addprefix $(obj)/,$(zlib)): $(obj)/%: $(srctree)/lib/zlib_inflate/% | ||
21 | $(call cmd,copy_zlib) | ||
22 | |||
23 | clean-files := $(zlib) | ||