Skip to contentSkip to conversation

how to build code checked out from a version control system

Buildroot Sven Neumann 3 participants 3 messages Aug 25, 2009 – Aug 26, 2009

lore
Share & tools
lore
#0 lore raw

Hi,

we have some code there that lives in a Bazaar repository and that we would like to build from within our buildroot setup. I have created buildroot packages for these modules, but somehow I ended up with lots of hacks and things are still not working properly. I wonder if there is some example or documentation that I should have a look at. Is anyone doing something similar and could show me how to do this properly?

Sven

#1 lore raw

Le mardi 25 ao?t 2009 ? 12:25 +0200, Sven Neumann a ?crit :

Quoted 9 lines

Hi,

we have some code there that lives in a Bazaar repository and that we would like to build from within our buildroot setup. I have created buildroot packages for these modules, but somehow I ended up with lots of hacks and things are still not working properly. I wonder if there is some example or documentation that I should have a look at. Is anyone doing something similar and could show me how to do this properly?

Hi Sven,

I'm working with buildroot in a similar way than you do.

Currently I'm doing everything myself :

Usually I first compile everything from the last buildroot branch, then I remove the packages I want to hack on manually from the build directory, replacing them with the a git repository of the package (initialized locally or cloned from the package's official repository). Each time I'm making a change to the build directory of the package I remove some of the .stamp_* files (usally the built/configure/autoconfigure) and the stamp installation file and rerun make from the top directory of buildroot.

Once everything is compiled, and once the image generated (in a tar archive), I just have to untar the archive in my nfs shared directory and reboot my board/qemu.

This way I can rebuild the package I'm working on and quickly run some tests just by removing 2/3 files and run make.

If I get some time to work on buildroot, my plans are to automatize this process from the top directory of buildroot by running something like :

make configure-PACKAGENAME
make build-PACKAGENAME
make install-PACKAGENAME

etc...

And maybe add some make commands to automaticly "gitize" a source package to keep track of modifications.

Nothing to complicated ;)

Signature · 1 line
Lionel Landwerlin <[email protected]>
#2 lore raw
In reply to Sven Neumann
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Sven" == Sven Neumann <[email protected]> writes:

Sven> Hi,
Sven> we have some code there that lives in a Bazaar repository and that we Sven> would like to build from within our buildroot setup. I have created Sven> buildroot packages for these modules, but somehow I ended up with lots Sven> of hacks and things are still not working properly. I wonder if there is Sven> some example or documentation that I should have a look at. Is anyone Sven> doing something similar and could show me how to do this properly?

What exactly goes wrong? It's normally just a matter of providing a custom source step doing the checkout.

See the tremor handling in package/multimedia/libvorbis/libvorbis.mk for an example. You could argue about the usefullness of creating a dated tarball of the checkout or not.

Signature · 1 line
Bye, Peter Korsgaard