* [Xenomai-help] Flattened linux tree and CVS
@ 2007-03-26 11:56 Fillod Stephane
2007-03-26 17:09 ` Gilles Chanteperdrix
0 siblings, 1 reply; 2+ messages in thread
From: Fillod Stephane @ 2007-03-26 11:56 UTC (permalink / raw)
To: xenomai
Hi,
For those who have to cope with flat handling of a linux tree in CVS,
and thus never really liked the prepare-kernel.sh approach (which is
fine in other cases), here is some linux/Makefile sugar that can
certainly
be improved:
ifdef XENO_TAG
xenotagspec = -r $(XENO_TAG)
endif
xeno_checkout:
@cd $(srctree)/drivers && cvs checkout $(xenotagspec) -P \
-d xenomai $(XENO_CVS_PATH)/ksrc/drivers
@cd $(srctree)/include && cvs checkout $(xenotagspec) -P \
-d xenomai $(XENO_CVS_PATH)/include
@cd $(srctree)/include/asm-generic && cvs checkout
$(xenotagspec) -P \
-d xenomai
$(XENO_CVS_PATH)/include/asm-generic
@cd $(srctree)/include/asm-$(ARCH) && cvs checkout
$(xenotagspec) -P \
-d xenomai
$(XENO_CVS_PATH)/include/asm-powerpc
@cd $(srctree)/kernel && cvs checkout $(xenotagspec) -P \
-d xenomai $(XENO_CVS_PATH)/ksrc
@cd $(srctree)/arch/$(ARCH) && cvs checkout $(xenotagspec) -P \
-d xenomai
$(XENO_CVS_PATH)/ksrc/arch/powerpc
Rem: replace powerpc by whatever you see fit.
The variable XENO_CVS_PATH *must* be defined for this work:
make xeno_checkout XENO_CVS_PATH=some/where/over/the/rainbow/xenomai
This will mix linux and xenomai CVS trees, without links, and let you
do any cvs action like update, commit, tag, etc. against appropriate
CVS modules.
Of course, the "flat" kernel must have been patched beforehand with
adeos-ipipe patch, and also with the following fragments:
cat xenomai/scripts/Kconfig.frag >> init/Kconfig # + edit
echo "drivers-\$(CONFIG_XENOMAI) += arch/$linux_arch/xenomai/" >>
arch/$linux_arch/Makefile
echo "obj-\$(CONFIG_XENOMAI) += xenomai/" >> drivers/Makefile
echo "obj-\$(CONFIG_XENOMAI) += xenomai/" >> kernel/Makefile
Rem: this is for linux kernel 2.6, and not for the faint of heart.
Maybe a "prepare-kernel.sh --patch-only-for-those-pesky-cvs-users"
would come handy :-)
Comments are welcome.
--
Stephane
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Xenomai-help] Flattened linux tree and CVS
2007-03-26 11:56 [Xenomai-help] Flattened linux tree and CVS Fillod Stephane
@ 2007-03-26 17:09 ` Gilles Chanteperdrix
0 siblings, 0 replies; 2+ messages in thread
From: Gilles Chanteperdrix @ 2007-03-26 17:09 UTC (permalink / raw)
To: Fillod Stephane; +Cc: xenomai
Fillod Stephane wrote:
> Hi,
>
> For those who have to cope with flat handling of a linux tree in CVS,
> and thus never really liked the prepare-kernel.sh approach (which is
> fine in other cases), here is some linux/Makefile sugar that can
> certainly
> be improved:
>
> ifdef XENO_TAG
> xenotagspec = -r $(XENO_TAG)
> endif
>
> xeno_checkout:
> @cd $(srctree)/drivers && cvs checkout $(xenotagspec) -P \
> -d xenomai $(XENO_CVS_PATH)/ksrc/drivers
> @cd $(srctree)/include && cvs checkout $(xenotagspec) -P \
> -d xenomai $(XENO_CVS_PATH)/include
> @cd $(srctree)/include/asm-generic && cvs checkout
> $(xenotagspec) -P \
> -d xenomai
> $(XENO_CVS_PATH)/include/asm-generic
> @cd $(srctree)/include/asm-$(ARCH) && cvs checkout
> $(xenotagspec) -P \
> -d xenomai
> $(XENO_CVS_PATH)/include/asm-powerpc
> @cd $(srctree)/kernel && cvs checkout $(xenotagspec) -P \
> -d xenomai $(XENO_CVS_PATH)/ksrc
> @cd $(srctree)/arch/$(ARCH) && cvs checkout $(xenotagspec) -P \
> -d xenomai
> $(XENO_CVS_PATH)/ksrc/arch/powerpc
>
>
> Rem: replace powerpc by whatever you see fit.
>
> The variable XENO_CVS_PATH *must* be defined for this work:
>
> make xeno_checkout XENO_CVS_PATH=some/where/over/the/rainbow/xenomai
>
> This will mix linux and xenomai CVS trees, without links, and let you
> do any cvs action like update, commit, tag, etc. against appropriate
> CVS modules.
>
> Of course, the "flat" kernel must have been patched beforehand with
> adeos-ipipe patch, and also with the following fragments:
>
> cat xenomai/scripts/Kconfig.frag >> init/Kconfig # + edit
> echo "drivers-\$(CONFIG_XENOMAI) += arch/$linux_arch/xenomai/" >>
> arch/$linux_arch/Makefile
> echo "obj-\$(CONFIG_XENOMAI) += xenomai/" >> drivers/Makefile
> echo "obj-\$(CONFIG_XENOMAI) += xenomai/" >> kernel/Makefile
>
> Rem: this is for linux kernel 2.6, and not for the faint of heart.
> Maybe a "prepare-kernel.sh --patch-only-for-those-pesky-cvs-users"
> would come handy :-)
>
> Comments are welcome.
I guess everyone has his recipe, mine is to use the --enable-linux-build
option of Xenomai configure script.
--
Gilles Chanteperdrix
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-03-26 17:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-26 11:56 [Xenomai-help] Flattened linux tree and CVS Fillod Stephane
2007-03-26 17:09 ` Gilles Chanteperdrix
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.