* developmet setup
@ 2010-05-26 6:34 Raffaele Recalcati
2010-05-26 11:19 ` Koen Kooi
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Raffaele Recalcati @ 2010-05-26 6:34 UTC (permalink / raw)
To: openembedded-devel
Hi all,
I was searching a clean way to develop in OE my new kernel and my new
applications.
I saw this nice article about kernel development:
http://bec-systems.com/site/521/best-practices-for-kernel-development-with-openembedded
I would like a way to develop inside Openembedded, but not in work
directory.
I mean to develop a project in a git tree, allowing me to use 'git diff'
..... and finally 'git push' to my internal git servers.
This is an idea:
bitbake -c devshell-path /home/myapplication myapplicationrecipe
Perhaps srctree is a good tool already done for it?
Thanks,
Raffaele
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: developmet setup
2010-05-26 6:34 Raffaele Recalcati
@ 2010-05-26 11:19 ` Koen Kooi
2010-05-27 12:46 ` Raffaele Recalcati
2010-05-27 13:14 ` Antonio Ospite
2010-05-27 15:50 ` Enrico Scholz
2 siblings, 1 reply; 8+ messages in thread
From: Koen Kooi @ 2010-05-26 11:19 UTC (permalink / raw)
To: openembedded-devel
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 26-05-10 08:34, Raffaele Recalcati wrote:
> Hi all,
> I was searching a clean way to develop in OE my new kernel and my new
> applications.
>
> I saw this nice article about kernel development:
> http://bec-systems.com/site/521/best-practices-for-kernel-development-with-openembedded
>
> I would like a way to develop inside Openembedded, but not in work
> directory.
> I mean to develop a project in a git tree, allowing me to use 'git diff'
> ..... and finally 'git push' to my internal git servers.
I do 'git diff' and 'git commit' in the work directory, what's stopping you?
regards,
Koen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
iD8DBQFL/QO4MkyGM64RGpERAnCnAKCvx1253vNihBK/qkrQ8LuEheF7wACfWmeL
vWNSX5W9ifFiMP7bA6r+5IE=
=3boW
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: developmet setup
2010-05-26 11:19 ` Koen Kooi
@ 2010-05-27 12:46 ` Raffaele Recalcati
0 siblings, 0 replies; 8+ messages in thread
From: Raffaele Recalcati @ 2010-05-27 12:46 UTC (permalink / raw)
To: openembedded-devel
I do 'git diff' and 'git commit' in the work directory, what's stopping you?
>
Hi Koen,
in my work dir of
commit d9264a5e565906ccf75f695dbecd251e21407fdf
Author: Khem Raj <raj.khem@gmail.com>
Date: Tue May 11 21:26:31 2010 -0700
the command:
find . -name .git
doens't report any git tree.
So I try the same command in the download dir and I find:
downloads/git/arago-project.org.git.projects.u-boot-davinci.git/.git/
So I guess that git clone is done from the remote server to download dir.
But you are saying you can do git diff in your working directory.
How is you typical bb file?
Which bb file can be look as an example?
The other problem about having a git tree inside the work directory is that
sometimes a git pull requires to rebuild all the working directory, but
normally my development is done in an overlay and I hope that is possible to
have the overlay working directory different from the openembedded working
directory.
Regards,
Raffaele
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: developmet setup
2010-05-26 6:34 Raffaele Recalcati
2010-05-26 11:19 ` Koen Kooi
@ 2010-05-27 13:14 ` Antonio Ospite
2010-05-27 13:46 ` Raffaele Recalcati
2010-05-27 15:50 ` Enrico Scholz
2 siblings, 1 reply; 8+ messages in thread
From: Antonio Ospite @ 2010-05-27 13:14 UTC (permalink / raw)
To: openembedded-devel
[-- Attachment #1: Type: text/plain, Size: 1053 bytes --]
On Wed, 26 May 2010 08:34:07 +0200
Raffaele Recalcati <lamiaposta71@gmail.com> wrote:
> Hi all,
> I was searching a clean way to develop in OE my new kernel and my new
> applications.
>
> I saw this nice article about kernel development:
> http://bec-systems.com/site/521/best-practices-for-kernel-development-with-openembedded
>
> I would like a way to develop inside Openembedded, but not in work
> directory.
> I mean to develop a project in a git tree, allowing me to use 'git diff'
> ..... and finally 'git push' to my internal git servers.
Hi Raffaele, you can even avoid having a git server, look at:
http://ao2.it/blog/2010/05/27/neat-compilerun-cycle-git-and-openembedded
does this work for you?
Regards,
Antonio
--
Antonio Ospite
http://ao2.it
PGP public key ID: 0x4553B001
A: Because it messes up the order in which people normally read text.
See http://en.wikipedia.org/wiki/Posting_style
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
[-- Attachment #2: Type: application/pgp-signature, Size: 205 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: developmet setup
2010-05-27 13:14 ` Antonio Ospite
@ 2010-05-27 13:46 ` Raffaele Recalcati
0 siblings, 0 replies; 8+ messages in thread
From: Raffaele Recalcati @ 2010-05-27 13:46 UTC (permalink / raw)
To: Antonio Ospite; +Cc: openembedded-devel
> Hi Raffaele, you can even avoid having a git server, look at:
> http://ao2.it/blog/2010/05/27/neat-compilerun-cycle-git-and-openembedded
>
> does this work for you?
>
Can be nice.
I need to have myapps on my pc already manually git cloned.
For instance myapp1.
So I modify in $MYAPP1 out of OE.
And I compile using :
bitbake recipes/myapps/myapp1.bb
If MYAPP1 == /home/devel/myapps/myapp1
I'll use
SRC_URI = "git:///home/devel/myapps/myapp1;protocol=file;"
The only problem is that for any change in $MYAPP1 dir I need a new fetch
and a new complete rebuild.
Not very nice for large projects.
Thx for your help,
Raffaele
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: developmet setup
@ 2010-05-27 14:42 Vladimir Davydov
2010-05-27 17:16 ` Denys Dmytriyenko
0 siblings, 1 reply; 8+ messages in thread
From: Vladimir Davydov @ 2010-05-27 14:42 UTC (permalink / raw)
To: openembedded-devel
Hi,
Maybe following way will not usefull for you, but it is working for me.
I have overrided do_fetch() method in the kernel recipe to make symlink to my
kernel source tree, which is under git control.
S = "${WORKDIR}/linux-2.6"
do_fetch () {
cd ${WORKDIR}
if [ ! -L ${S} ]; then
ln -sf ${MY_KERNEL_PATH} ${S}
fi
}
MY_KERNEL_PATH is the local path to my kernel source tree. It is passed from
environment variables.
I'm using this way only for kernel development.
> Hi all,
> I was searching a clean way to develop in OE my new kernel and my new
> applications.
>
> I saw this nice article about kernel development:
> http://bec-systems.com/site/521/best-practices-for-kernel-development-with-
> openembedded
>
> I would like a way to develop inside Openembedded, but not in work
> directory.
> I mean to develop a project in a git tree, allowing me to use 'git diff'
> ..... and finally 'git push' to my internal git servers.
> This is an idea:
> bitbake -c devshell-path /home/myapplication myapplicationrecipe
>
> Perhaps srctree is a good tool already done for it?
>
> Thanks,
> Raffaele
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
--
Vladimir Davydov
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: developmet setup
2010-05-26 6:34 Raffaele Recalcati
2010-05-26 11:19 ` Koen Kooi
2010-05-27 13:14 ` Antonio Ospite
@ 2010-05-27 15:50 ` Enrico Scholz
2 siblings, 0 replies; 8+ messages in thread
From: Enrico Scholz @ 2010-05-27 15:50 UTC (permalink / raw)
To: openembedded-devel
Raffaele Recalcati <lamiaposta71@gmail.com> writes:
> I was searching a clean way to develop in OE my new kernel and my new
> applications.
I wrote a recipe[1] which generates a special 'Makefile'[2]. It can be
used for developing an application in a way like
| $ make -C ~/src/my-app -f <workspace>/Makefile.ipan7 all
| $ make -f <workspace>/Makefile.ipan7 shell
and sets all the crosscompiler information. There exist some extensions
for U-Boot[3] or common tasks like pkg-installation in NFS
rootfilesystems[4]. Sample commands are
| $ make -C ~/src/u-boot -f <workspace>/Makefile.ipan7 CFG=u-boot
or
| $ make -f <workspace>/Makefile.ipan7 CFG=pkg pkg-install P=busybox
| $ make -f <workspace>/Makefile.ipan7 CFG=pkg pkg-upgrade
We started with a variation for the kernel which was placed into a
kernel recipe[5] and generates a more simple makefile[6]. It should be
probably ported to the previous, more modern method but it works and
I do not have time for it :(
Our development model is to work on NFS rootfs where applications are
installed on by the methods above. There are OE recipes for these apps
which fetch either from git repositories or fetch normal tarballs of
these apps.
Enrico
Footnotes:
[1] https://www.cvg.de/people/ensc/oe/elito-develcomp.bb
[2] https://www.cvg.de/people/ensc/oe/Makefile.ipan7
[3] https://www.cvg.de/people/ensc/oe/u-boot.mk
[4] https://www.cvg.de/people/ensc/oe/pkg.mk
[5] https://www.cvg.de/people/ensc/oe/elito-kernel.inc
[6] https://www.cvg.de/people/ensc/oe/Makefile.kernel.ipan7
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: developmet setup
2010-05-27 14:42 developmet setup Vladimir Davydov
@ 2010-05-27 17:16 ` Denys Dmytriyenko
0 siblings, 0 replies; 8+ messages in thread
From: Denys Dmytriyenko @ 2010-05-27 17:16 UTC (permalink / raw)
To: openembedded-devel
On Thu, May 27, 2010 at 05:42:21PM +0300, Vladimir Davydov wrote:
> Hi,
Has anyone looked at srctree class from kergoth? There were some usage
examples on the list before...
> Maybe following way will not usefull for you, but it is working for me.
>
> I have overrided do_fetch() method in the kernel recipe to make symlink to my
> kernel source tree, which is under git control.
>
> S = "${WORKDIR}/linux-2.6"
>
> do_fetch () {
> cd ${WORKDIR}
> if [ ! -L ${S} ]; then
> ln -sf ${MY_KERNEL_PATH} ${S}
> fi
> }
>
> MY_KERNEL_PATH is the local path to my kernel source tree. It is passed from
> environment variables.
> I'm using this way only for kernel development.
>
>
> > Hi all,
> > I was searching a clean way to develop in OE my new kernel and my new
> > applications.
> >
> > I saw this nice article about kernel development:
> > http://bec-systems.com/site/521/best-practices-for-kernel-development-with-
> > openembedded
> >
> > I would like a way to develop inside Openembedded, but not in work
> > directory.
> > I mean to develop a project in a git tree, allowing me to use 'git diff'
> > ..... and finally 'git push' to my internal git servers.
> > This is an idea:
> > bitbake -c devshell-path /home/myapplication myapplicationrecipe
> >
> > Perhaps srctree is a good tool already done for it?
> >
> > Thanks,
> > Raffaele
> > _______________________________________________
> > Openembedded-devel mailing list
> > Openembedded-devel@lists.openembedded.org
> > http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>
>
> --
> Vladimir Davydov
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2010-05-27 17:20 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-27 14:42 developmet setup Vladimir Davydov
2010-05-27 17:16 ` Denys Dmytriyenko
-- strict thread matches above, loose matches on Subject: below --
2010-05-26 6:34 Raffaele Recalcati
2010-05-26 11:19 ` Koen Kooi
2010-05-27 12:46 ` Raffaele Recalcati
2010-05-27 13:14 ` Antonio Ospite
2010-05-27 13:46 ` Raffaele Recalcati
2010-05-27 15:50 ` Enrico Scholz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox