Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Repo with Git/GitHub repository #31

Open
yorkie opened this issue Jun 7, 2018 · 0 comments
Open

Use Repo with Git/GitHub repository #31

yorkie opened this issue Jun 7, 2018 · 0 comments
Labels

Comments

@yorkie
Copy link
Owner

yorkie commented Jun 7, 2018

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.

@yorkie yorkie added the Notes label Jun 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant