All of lore.kernel.org
 help / color / mirror / Atom feed
* How to detect change on a repo manifest.git and rebuild the recipe with "repo://"
@ 2017-08-25  2:06 GUAN Ben (ST-FIR/ENG1-Zhu)
  2017-08-25 15:11 ` Leonardo Sandoval
  2017-08-25 22:11 ` Andre McCurdy
  0 siblings, 2 replies; 3+ messages in thread
From: GUAN Ben (ST-FIR/ENG1-Zhu) @ 2017-08-25  2:06 UTC (permalink / raw)
  To: bitbake-devel; +Cc: Jonas Mark (ST-FIR/ENG1)

[-- Attachment #1: Type: text/plain, Size: 1438 bytes --]

The source code of my SW consist of multiple components from different repository, which is managed by a repo manifest repository. So I want to use "repo://" for the repo manifest repository instead of multiple "git://" to include all repositories in the SRC_URI.

I add the following to MyRecipe_git.bb:
```
SRC_URI = "repo://git@<MY_HOST>/manifest.git;protocol=ssh;branch=master"

S = "${WORKDIR}/repo/MyRecipe"
```

And in my local.conf, I add the following:
```
# Use this setting because I don't have internet connection to external Android repo.git, I mirror one in the internal host
REPO_URL = "git@<My_HOST>/repo.git"
# Use "repo" command in the host
HOSTTOOLS += "repo"
# Because the my Yocto meta-layers are managed by repo also, use a different directory for my recipe
REPODIR = "/home/benguan/projects/MyRecipeRepo"
```

Now I can build my recipe with Yocto, but there is an issue:  When there is any change required in the repositories of my application, I will change the code and update the tags in default.xml of manifest.git. I want Yocto could detect this change, fetch the change, them rebuild the recipe.

With "git://", it is easy to achieve via setting "${AUTOREV}" to "SRCREV". But the fetch2.repo doesn't support SRCREV. I have go through the existing recipe within meta-oe and oe-core, no recipe is using "repo://".

Does anybody have experience about it and help? Thank you in advance.


[-- Attachment #2: Type: text/html, Size: 3780 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-08-25 22:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-25  2:06 How to detect change on a repo manifest.git and rebuild the recipe with "repo://" GUAN Ben (ST-FIR/ENG1-Zhu)
2017-08-25 15:11 ` Leonardo Sandoval
2017-08-25 22:11 ` Andre McCurdy

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.