Using local git repo for recipe development

Patrick Voelker Patrick_Voelker at phoenix.com
Fri Oct 30 10:00:29 AEDT 2020


Hm.  I wasn't setting the S variable in my .bb.  Apparently, that's what was missing.  I didn't see that as required when reading the Yocto docs.

Thanks for the assistance!

> -----Original Message-----
> From: Brandon Wyman [mailto:bjwyman at gmail.com]
> Sent: Thursday, October 29, 2020 3:48 PM
> To: Patrick Voelker
> Subject: Re: Using local git repo for recipe development
> 
> 
> On 2020-10-29 17:12, Patrick Voelker wrote:
> > My understanding is that if devtool can't find the source then bitbake won't
> be able to build it either.
> >
> >> -----Original Message-----
> >> From: Vijay Khemka [mailto:vijaykhemka at fb.com]
> >> Sent: Thursday, October 29, 2020 3:10 PM
> >> To: Patrick Voelker; OpenBMC (openbmc at lists.ozlabs.org)
> >> Subject: Re: Using local git repo for recipe development
> >>
> >> What are you trying to achieve here, devtool is for local source and you
> >> already have local source, just build it from there.
> >>
> >> On 10/29/20, 2:33 PM, "Patrick Voelker" <Patrick_Voelker at phoenix.com>
> >> wrote:
> >>
> >>      Vijay, that didn't make any difference.  I get the same result.
> >>
> >>      > -----Original Message-----
> >>      > From: Vijay Khemka [mailto:vijaykhemka at fb.com]
> >>      > Sent: Thursday, October 29, 2020 12:27 PM
> >>      > To: Patrick Voelker; OpenBMC (openbmc at lists.ozlabs.org)
> >>      > Subject: Re: Using local git repo for recipe development
> >>      >
> >>      >
> >>      >
> >>      > On 10/29/20, 10:17 AM, "openbmc on behalf of Patrick Voelker"
> >> <openbmc-
> >>      > bounces+vijaykhemka=fb.com at lists.ozlabs.org on behalf of
> >>      > Patrick_Voelker at phoenix.com> wrote:
> >>      >
> >>      >     I'm creating a new recipe for local development but when I do a
> >> 'devtool
> >>      > modify <recipe>' it always seems to make an empty directory (that
> >> contains
> >>      > only .git.)
> >>      >
> >>      >     Here's the relevant lines from my .bb file:
> >>      >     SRC_URI = "git:///home/pvoelker/bmc/dev/oem;protocol=file"
> >>      >
> >>      > I am not too sure but this should be file://, You may have to fix above
> line.
> >>      >
> >>      >     SRCREV = "4db17f482b0bdcdcf5658c7d323cc563eb78556a"
> >>      >     inherit autotools
> >>      >
> >>      >     Here's the warning from 'devtool modify':
> >>      >     WARNING: No source unpacked to S - either the phoenix-oem
> recipe
> >>      > doesn't use any source or the correct source directory could not be
> >>      > determined
> 
> I am not sure if you are hitting that S issue I noted for a build, but
> maybe this is informative for that particular error:
> 
> https://gerrit.openbmc-project.xyz/c/openbmc/meta-phosphor/+/37704
> 
> meta-phosphor: fix S with trailing slash
> 
> Upstream OE added a warning when S has a trailing slash.  Remove the
> trailing S from the flagged recipes to avoid the warning.
> 
> Change-Id: I457e7ee021b40b206bd3cd25d4cafe49854682a4
> Signed-off-by: Brad Bishop <bradleyb at fuzziesquirrel.com>
> 
> >>      >
> >>      >     If I change either the SRC_URI or the SRCREV to be invalid, I get an
> >> error
> >>      > instead of a warning so it's definitely finding the local repo.
> >>      >
> >>      >     I can't figure out why none of the files in my commit are making it
> into
> >> the
> >>      > unpack directory.  Any ideas or tips on debugging?  I also tried using
> >> a .tar.gz
> >>      > file instead of a local git repo and had the same result.
> >>      >
> >>



More information about the openbmc mailing list