From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from ptx.hi.pengutronix.de ([2001:6f8:1178:2:5054:ff:fec0:8e10] ident=Debian-exim) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1W1BWY-0000PT-M5 for ptxdist@pengutronix.de; Thu, 09 Jan 2014 10:03:34 +0100 Received: from mol by ptx.hi.pengutronix.de with local (Exim 4.80) (envelope-from ) id 1W1BWY-0001BT-KH for ptxdist@pengutronix.de; Thu, 09 Jan 2014 10:03:34 +0100 Date: Thu, 9 Jan 2014 10:03:34 +0100 From: "Olbrich, Michael" Message-ID: <20140109090334.GI2156@pengutronix.de> References: <201401080859.43988.jbe@pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <201401080859.43988.jbe@pengutronix.de> Subject: Re: [ptxdist] git ptxdist best practices Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de On Wed, Jan 08, 2014 at 08:59:43AM +0100, J=FCrgen Beisert wrote: > On Wednesday 08 January 2014 03:32:41 Jon Ringle wrote: > > I'm looking for some best practices ideas as it relates to using ptxdis= t to > > build a complete system that pulls from various git repos. > > > > I have a clone Linux git repo that has local commits specific to our > > embedded hardware. > > I build an initramfs filesystem with ptxdist that gets embedded within = the > > Linux kernel image. > > I build a rootfs with ptxdist for the real rootfs > > I also have a couple of libs and apps that have their own git repos as = well > > that I'm getting ptxdist to build as well. > > > > I'm now at the point where I now need to make this available to other > > developers and also get setup for a build bot to build (bamboo). > > > > My initial thought is to create a git repo that holds the ptxconfig fil= es > > and local rules/, and then configure the rules to somehow get the git r= epos > > by tag for building (as it seems that there is some sort of support for > > this in scripts/lib/ptxd_make_get.sh)... but I don't quite understand h= ow > > to integrate this in my rules/*.make file. > > > > Perhaps there is a better way of doing this. I'd be interested to hear = what > > others are doing in this regard. > = > Do you want to use this BSP only by your own, or is it intended to provid= e it = > to other developers who use it as a base for their own work? > = > In the latter case I would "release" the various components and create ar= chives = > of it. And these archives can simply be part of the (finally) released BS= P you = > provide to other developers (in contrast to the downloadable archives PTX= dist = > uses for the remaining packages like Busybox, Qt and so on). > = > If you still want to use git repositories for the external components we = should = > wait for Michael, because he can explain how to use the PTXdist feature w= hich = > deals with such repositories. It really depends on how you want to work with this. If the external repositories are integrated often, then add them as git submodules in local_src and use "file://$(PTXDIST_WORKSPACE)/local_src/foo/" as URL. If not then create a tag when integrating and use git://myhost.de/foo.git;tag=3Dmytag1" as URL and foo-mytag1.tar.bz2 as SOUR= CE and update the tag as needed. This will clone the repository and create a tarball for the tag. Note: you cannot follow a branch here! It will just use the tarball and ignore any changes to the branch. This is only for projects that only provide git tags for releases but no tarballs. Michael -- = Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | -- = ptxdist mailing list ptxdist@pengutronix.de