Syncing|building from source - OnePlus 5 Questions & Answers

I am trying to sync source, but repo sync is very slow compared to all other ROMs and aosp.
Code:
repo init -u git://github.com/OnePlusOSS/android.git -b oneplus/QC8998_N_7.1 repo sync
Is there a way to sync without all tags/branches being involved as well?
Any other tips?
Thank you

Related

[Q] More help building cm7..

When i type the repo init command : repo init -u git://github.com/CyanogenMod/android.git -b gingerbread I get this: [email protected]:~/android/system$ repo init -u git://github.com/CyanogenMod/android.git -b gingerbread
/home/jeremy/bin/repo: line 1: syntax error near unexpected token `newline'
/home/jeremy/bin/repo: line 1: `<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">'
Can someone please help? I just switched from a wubi install of linux to a partitioned one. Had no problems building before.

[Q] help w/ repo sync

im making a PA3 port for the nc, and repo sync keeps giving me fetch errors. ive tried repo sync -j4, -j16, -j4 -c, -j16 -c, -j4 -f, -j16 -f. what else should i do?
heres my git:
git://github.com/delta-linux/android.git
(brach: cm_jellybean)

repo snapshot

Lets assume we've fetched the source tree
Code:
repo init -u git://github.com/omnirom/android.git -b android-4.4 && repo sync
.. committed some local project changes and then saved a snapshot
Code:
repo manifest -o ~/snapshot.xml -r
Will another 'repo sync' wipe the snapshot from our local tree or can we still revert to that snapshot later on?
Where to find reference to the snapshot in the local tree?
aguaz said:
Lets assume we've fetched the source tree
Code:
repo init -u git://github.com/omnirom/android.git -b android-4.4 && repo sync
.. committed some local project changes and then saved a snapshot
Code:
repo manifest -o ~/snapshot.xml -r
Will another 'repo sync' wipe the snapshot from our local tree or can we still revert to that snapshot later on?
Where to find reference to the snapshot in the local tree?
Click to expand...
Click to collapse
I would have expected that the snapshot build would be reproducible even after a 'repo sync' if:
- the local changes are committed to local topic/feature branches on your local clone(s) of the omnirom git repo(s)
My impression is, if you want to be sure that your manifest snapshot remains relevant, clone the upstream git repo(s) and commit your changes to your clone on a local branch. Use a local_manifest to specify your branch/revision rather than the default branch/revision that sync'ing with upstream will change or reset.
Hopefully someone else will offer a definitive answer.
Meanwhile I'm using btrfs copy-on-write feature to store snapshots:
Before syncing make a reference of the current-tree with
Code:
cp -a --reflink=always old-tree/ new-tree/
This "copy" won't take up disk space other than for the references themselves. You can now sync new-tree/ and always go back to the old one.
I guess it's pretty similar to using btrfs' snapshot feature.

Building LOS 15.0

Before starting, yes, I know there is a project already.
Hello everyone. I've been following this step by step:
https://wiki.lineageos.org/devices/harpia/build
Only I have replaced this line:
Code:
repo init -u https://github.com/LineageOS/android.git -b cm-14.1
For this one:
Code:
repo init -u git://github.com/LineageOS/android.git -b lineage-15.0
The problem is, I get loads of fatal errors when running:
Code:
repo sync
What am I doing wrong?
Thank you.-
Seems the error was due to a bad internet connection.
Hope it works out for you now. Good luck.
i tried too few weeks ago. can you post your roomservice.xml?

Github asking for password when syncing repo

Hi everyone!
I'm trying to build RR for my Samsung S5. I've been able to successfully build it for LineageOS 15.1, (Oreo), but when I try to build for RR, the build locks up when resycning the repo after "breakfast klte" or "brunch klte" and asks "Password for 'https://github.com':". I've tried using my personnel github credentials, as well as creating a token for my github account, but these do not work.
Here are the steps that I'm taking:
mkdir -p ~/bin
PATH=~/bin:$PATH
curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo
cd ~/work/rr
repo init -u https://github.com/ResurrectionRemix/platform_manifest.git -b oreo
repo sync
. build/envsetup.sh
breakfast klte
Does anyone have any suggestions as to what I'm doing wrong?
Thanks!
zog

Categories

Resources