yorkie/me

Use Repo with Git/GitHub repository

yorkie opened this issue · 0 comments

Recently I'm switching company's OS development from buildroot to openwrt framework. In the past, I just writing a buildroot package, which *_SITE_METHOD is git, and every time, the buildroot just download the .tgz from GitHub.

When switching to openwrt, there are such many features from Buildroot not getting supported, like locally debugging from git package. That says we could not modify the source code under build directory.

Then I have to figure out a way to make the locally debug easy. Now I will show you how the Android repo works with any Git/GitHub repository.

Open your local manifest of repo, and add a remote tag like this:

<mainifest>
  <remote name="github" fetch="https://github.com" review="https://github.com"/>
</manifest>

Then add a project:

<manifest>
  ...
  <project name="Rokid/ShadowNode" remote="github" path="frameworks/shadow-node" revision="master"/>
</manifest>

Now, you could run repo sync to download the source code from GitHub. The advantage than the buildroot/openwrt remote package is the free modification of the source code by yourself, and perfect workflow lets any Git/GitHub repository works with Repo if you set correctly permissions.