On Mon, 29 Apr 2002 17:20:19 +1000, Brendan J Simon <[EMAIL PROTECTED]> wrote: >I'm having trouble getting the right Makefile.in syntax to build a >library (/arch/ppc/boot/lib/zlib.a to be precice). > >The original Makefile has only 3 statements. >L_TARGET := zlib.a >obj-y := zlib.o >include $(TOP_DIR)/Rules.make > >I thought this would be sooo easy to convert to a Makefile.in (and it >probably is) but I'm stumped. I've currently got the following in >/arch/ppc/boot/lib/Makefile.in >base_target(zvmlinux) >#select(zlib.o) >select(zlib.a)
base_target(zlib_dummy) # so it does not default to vmlinux objlink(zlib.a zlib.o) select(zlib.a) >I don't know if I need the base_target statement though kbuild complains >that zlib.o is selectd but not part of vmlinux (how it know's it is not >part of vmlinux escapes me). > >My /arch/ppc/boot/simple/Makefile.in has the following fragment: >base_target(zvmlinux) >link_subdir(/arch/ppc/boot/lib) >link_subdir(/arch/ppc/boot/common) >link_subdir(/arch/ppc/boot/images) >select(...) Is zlib.a only used in zvmlinux or will it be used by multiple boot loader targets? It makes a difference to the best way to handle it. _______________________________________________ kbuild-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/kbuild-devel