Keith Owens wrote:
>I assume that the nano files are in a shadow tree. You can convert
>base plus shadow trees to a single view by
>
> make -f $KBUILD_SRCTREE_000/Makefile-2.5 $KBUILD_OBJTREE/.tmp_src
>
>$KBUILD_OBJTREE/.tmp_src will be built as a directory containing 10,000
>symlinks pointing at the relevant source files.
>
> diff -urN $KBUILD_SRCTREE_000 $KBUILD_OBJTREE/.tmp_src
>
>to generate a patch from base to base+shadow. Use that diff against a
>separate copy of the base tree as a starting point for kbuild 2.4.
Ah, nice. I'll probably do that the next time then.
I decided to try out kbuild properly the last time it was discussed
here, if I'm going to complain I'd better know what I'm talking about :-)
It is working really well, it's very convenient to just have to check
my rather small changes in CVS rather than the whole Linux kernel
tree. It makes it rather easy to do automatic builds too, since to be
certain that everything really is recompiled properly with the old
kbuild I had to do "make distclean; cat saved_config >.config; make
oldconfig; make dep; make bzImage modules".
I have a few small nits though:
I usually add "NO_MAKEFILE_GEN=anything" when compiling things so to
avoid the dependency checking when just doing small changes, but I'm
not allowed to do "make NO_MAKEFILE_GEN=anything install" which is a
bit of a pain. I usually run everything on my test system over NFS so
I install the modules straight into the NFS tree. So I'd really like
to be able to tell the kbuild system "I know what I'm doing, don't
babysit me".
Is it still possible to build modules outside of the kernel tree? I
really like the MTD model of building some modules where the Makefile
looks like this:
ifndef TOPDIR
TOPDIR:=$(shell cd ../linux && pwd)
endif
all:
make -C $(TOPDIR) SUBDIRS=`pwd` modules
M_OBJS := my_module.o
# Real actions are started from Rules.make
include $(TOPDIR)/Rules.make
Because this way I can build third party modules afterwards without
having to recompile everything else.
/Christer
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Sat Feb 23 2002 - 21:00:31 EST