SlideShare a Scribd company logo
1 of 7
Download to read offline
How to Build a Custom Rom on Crave
– Megh
So, you just got added to the team, and want to build your rom on crave, this is the correct place to
come.
This is a tutorial assuming that you know the basics of rom building and have built a working rom
before. This also assumes that you have a set of trees ( device tree, vendor tree, kernel) and know
what dependencies your device needs.
Firstly, log in to foss.crave.io ( your account will be created by crave itself)
After logging in, this is the homescreen you’ll see
You will need to download the crave binary and the crave.conf file, so head on to downloads first
and download the crave binary according to your platform.
Currently, Windows and Linux is supported, support for android may be added in the future.
Now, head on to api keys section to download your conf file.
Hit the download button ( next to the cross) to download the file
below instructions are for linux:
```
cd ~/Downloads
mv crave-* crave
sudo cp crave /usr/bin/
```
This is just shortening the file name, and moving it to a place in path, so you can directly run crave.
For windows, obv the instructions would be different, but you would have to add it to path like you
would do anything else, tons of instructions online, or you can skip this step :smile
now run
```
crave -c crave.conf devspace
```
This will be only needed the first time, the next time you’ll only have to run crave devspace
after running, this is the screen you should see.( this is your devspace, each user has their own
devspace, and is private to some level, but dont enter nuclear launch codes here maybe.)
now run crave list
below, is what you should see
( or atleast something similar)
Now, let’s say you want to build one of these two roms ( more on building roms except this later)
so, you need to clone it. Run the command
crave clone create –projectID=(id here, for example, 36) directoryname
Now, cd to your newly cloned source.
```
cd directoryname/repo
ls
```
Now, here, building with crave is somewhat different that what you would do on a regular server.
Essentially, right now we are in the “devspace”, which has limited hardware, which cannot build
aosp. But what can build aosp, is their servers, currently having 64gb of ram. So you would have to
write a command to run your build enclosed by crave run.
Now, there are 2 methods of running builds, i prefer the second one, but you should select whatever
feels easy.
1.
crave run --no-patch --clean “ 
rm -rf .repo/local_manifests && 
git clone https://github.com/username/yourlocalmanifest .repo/local_manifests && 
repo sync --force-sync -c -j $(nproc) && 
source build/envsetup.sh && 
lunch rom_device-userdebug && 
mka bacon”
Note, the above is just a template, feel free to modify it yourself. Now what does each of these do?
Crave has a feature, which would let you make changes to your devspace, and that changes get
applied to the source in the server automatically, without even commiting or pushing them to git.
But currently that is broken for aosp, so we specify that we dont want to patch the rom directory.
Running clean is just a way of having a fresh image of the source to build on, you shouldnt need to
do this many times. But in the case you mess up the source very badly ( happens to everyone) you
would run clean.
Then it is just a matter of ensuring there are no left over files in local_manifests, syncing your own,
and then building.
The other method to do so, is via a build script, it could be as simple as
```
git clone https://github.com/username/trees tree
repo sync
lunch rom_device-userdebug
mka bacon
```
now, either upload this script to github, to git clone this repo, or upload to github gist.
```
crave run –no-patch --clean “git clone https://github.com/username/scripts . && bash script.sh ”
```
or, if you prefer github gists,
```
crave run --no-patch --clean "wget -O a37.sh
https://gist.github.com/Meghthedev/1cf556f04cb6752c295447e22bd7bc76/raw/
2d0eff7a442b2ba54cb45e736e5c33b598e21c25/a37.sh && chmod +x a37.sh && ./a37.sh"
```
( just wget the build script and then running it after making it executable.)
Here is the script i made, which was slightly more complex, which basically shows you could do
quite a lot on crave
https://gist.github.com/Meghthedev/6314eb98ff1d2fb8b7e03769a739a101
Once you have run the command, your build will be added to the queue, the queue isnt much long,
at max you would have 2-3 people in queue.
The builds section looks like so on foss.crave.io ( you would also get output on your terminal, also
the build wont stop if you close your devspace)
How to build a different rom than los or derpfest.
For now the method is, for example you want to build crdroid, now crdroid shares a lot of common
repos with los, so you clone los, and in your build script, you add
```
repo init -u https://github.com/crdroidandroid/android.git -b 13.0 --git-lfs
```
before doing repo sync, note, it is recommended you do same android version re syncs, ie android
13 rom on top of android 13. you may face problems otherwise.
Now, what to do if your build succeeded, well the method is to first pull that build to your devspace,
so go to romfolder/repo and do
```
crave pull out/target/product/*/*.zip
```
and that would pull the zip to your devspace, from there, it is just a matter of uploading.
Whether you use github releases, or ksau, or sourceforge, or devuploads, its your choice, you can
ask about these methods in the discord server.
Congrats on your first build!

More Related Content

Similar to aosp_crave_tutorial-3.pdfhasudshsuajdhkhh

Using Docker in the Real World
Using Docker in the Real WorldUsing Docker in the Real World
Using Docker in the Real WorldTim Haak
 
Docker module 1
Docker module 1Docker module 1
Docker module 1Liang Bo
 
Docker - A Ruby Introduction
Docker - A Ruby IntroductionDocker - A Ruby Introduction
Docker - A Ruby IntroductionTyler Johnston
 
Writing Rust Command Line Applications
Writing Rust Command Line ApplicationsWriting Rust Command Line Applications
Writing Rust Command Line ApplicationsAll Things Open
 
Tutorial CentOS 5 untuk Webhosting
Tutorial CentOS 5 untuk WebhostingTutorial CentOS 5 untuk Webhosting
Tutorial CentOS 5 untuk WebhostingBeni Krisbiantoro
 
Midwest php 2013 deploying php on paas- why & how
Midwest php 2013   deploying php on paas- why & howMidwest php 2013   deploying php on paas- why & how
Midwest php 2013 deploying php on paas- why & howdotCloud
 
Docker Containers: Developer’s experience and building robust developer envir...
Docker Containers: Developer’s experience and building robust developer envir...Docker Containers: Developer’s experience and building robust developer envir...
Docker Containers: Developer’s experience and building robust developer envir...Future Cloud Summit
 
Laravel Forge: Hello World to Hello Production
Laravel Forge: Hello World to Hello ProductionLaravel Forge: Hello World to Hello Production
Laravel Forge: Hello World to Hello ProductionJoe Ferguson
 
introduction-infra-as-a-code using terraform
introduction-infra-as-a-code using terraformintroduction-infra-as-a-code using terraform
introduction-infra-as-a-code using terraformniyof97
 
Corwin on Containers
Corwin on ContainersCorwin on Containers
Corwin on ContainersCorwin Brown
 
Austin Web Architecture
Austin Web ArchitectureAustin Web Architecture
Austin Web Architecturejoaquincasares
 
Making kubernetes simple for developers
Making kubernetes simple for developersMaking kubernetes simple for developers
Making kubernetes simple for developersSuraj Deshmukh
 
Настройка окружения для кросскомпиляции проектов на основе docker'a
Настройка окружения для кросскомпиляции проектов на основе docker'aНастройка окружения для кросскомпиляции проектов на основе docker'a
Настройка окружения для кросскомпиляции проектов на основе docker'acorehard_by
 
DevOps For Small Teams
DevOps For Small TeamsDevOps For Small Teams
DevOps For Small TeamsJoe Ferguson
 
codemotion-docker-2014
codemotion-docker-2014codemotion-docker-2014
codemotion-docker-2014Carlo Bonamico
 
Building a Gateway Server
Building a Gateway ServerBuilding a Gateway Server
Building a Gateway ServerDashamir Hoxha
 
Word press workflows and gulp
Word press workflows and gulpWord press workflows and gulp
Word press workflows and gulpEli McMakin
 

Similar to aosp_crave_tutorial-3.pdfhasudshsuajdhkhh (20)

Using Docker in the Real World
Using Docker in the Real WorldUsing Docker in the Real World
Using Docker in the Real World
 
Docker module 1
Docker module 1Docker module 1
Docker module 1
 
Docker - A Ruby Introduction
Docker - A Ruby IntroductionDocker - A Ruby Introduction
Docker - A Ruby Introduction
 
Docker by Example - Basics
Docker by Example - Basics Docker by Example - Basics
Docker by Example - Basics
 
A Hands-on Introduction to Docker
A Hands-on Introduction to DockerA Hands-on Introduction to Docker
A Hands-on Introduction to Docker
 
Writing Rust Command Line Applications
Writing Rust Command Line ApplicationsWriting Rust Command Line Applications
Writing Rust Command Line Applications
 
Tutorial CentOS 5 untuk Webhosting
Tutorial CentOS 5 untuk WebhostingTutorial CentOS 5 untuk Webhosting
Tutorial CentOS 5 untuk Webhosting
 
Midwest php 2013 deploying php on paas- why & how
Midwest php 2013   deploying php on paas- why & howMidwest php 2013   deploying php on paas- why & how
Midwest php 2013 deploying php on paas- why & how
 
Docker Containers: Developer’s experience and building robust developer envir...
Docker Containers: Developer’s experience and building robust developer envir...Docker Containers: Developer’s experience and building robust developer envir...
Docker Containers: Developer’s experience and building robust developer envir...
 
Laravel Forge: Hello World to Hello Production
Laravel Forge: Hello World to Hello ProductionLaravel Forge: Hello World to Hello Production
Laravel Forge: Hello World to Hello Production
 
Composer Helpdesk
Composer HelpdeskComposer Helpdesk
Composer Helpdesk
 
introduction-infra-as-a-code using terraform
introduction-infra-as-a-code using terraformintroduction-infra-as-a-code using terraform
introduction-infra-as-a-code using terraform
 
Corwin on Containers
Corwin on ContainersCorwin on Containers
Corwin on Containers
 
Austin Web Architecture
Austin Web ArchitectureAustin Web Architecture
Austin Web Architecture
 
Making kubernetes simple for developers
Making kubernetes simple for developersMaking kubernetes simple for developers
Making kubernetes simple for developers
 
Настройка окружения для кросскомпиляции проектов на основе docker'a
Настройка окружения для кросскомпиляции проектов на основе docker'aНастройка окружения для кросскомпиляции проектов на основе docker'a
Настройка окружения для кросскомпиляции проектов на основе docker'a
 
DevOps For Small Teams
DevOps For Small TeamsDevOps For Small Teams
DevOps For Small Teams
 
codemotion-docker-2014
codemotion-docker-2014codemotion-docker-2014
codemotion-docker-2014
 
Building a Gateway Server
Building a Gateway ServerBuilding a Gateway Server
Building a Gateway Server
 
Word press workflows and gulp
Word press workflows and gulpWord press workflows and gulp
Word press workflows and gulp
 

Recently uploaded

Keppel Ltd. 1Q 2024 Business Update Presentation Slides
Keppel Ltd. 1Q 2024 Business Update  Presentation SlidesKeppel Ltd. 1Q 2024 Business Update  Presentation Slides
Keppel Ltd. 1Q 2024 Business Update Presentation SlidesKeppelCorporation
 
Islamabad Escorts | Call 03274100048 | Escort Service in Islamabad
Islamabad Escorts | Call 03274100048 | Escort Service in IslamabadIslamabad Escorts | Call 03274100048 | Escort Service in Islamabad
Islamabad Escorts | Call 03274100048 | Escort Service in IslamabadAyesha Khan
 
Pitch Deck Teardown: Geodesic.Life's $500k Pre-seed deck
Pitch Deck Teardown: Geodesic.Life's $500k Pre-seed deckPitch Deck Teardown: Geodesic.Life's $500k Pre-seed deck
Pitch Deck Teardown: Geodesic.Life's $500k Pre-seed deckHajeJanKamps
 
8447779800, Low rate Call girls in Saket Delhi NCR
8447779800, Low rate Call girls in Saket Delhi NCR8447779800, Low rate Call girls in Saket Delhi NCR
8447779800, Low rate Call girls in Saket Delhi NCRashishs7044
 
BEST Call Girls In Old Faridabad ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,
BEST Call Girls In Old Faridabad ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,BEST Call Girls In Old Faridabad ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,
BEST Call Girls In Old Faridabad ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,noida100girls
 
Global Scenario On Sustainable and Resilient Coconut Industry by Dr. Jelfina...
Global Scenario On Sustainable  and Resilient Coconut Industry by Dr. Jelfina...Global Scenario On Sustainable  and Resilient Coconut Industry by Dr. Jelfina...
Global Scenario On Sustainable and Resilient Coconut Industry by Dr. Jelfina...ictsugar
 
MAHA Global and IPR: Do Actions Speak Louder Than Words?
MAHA Global and IPR: Do Actions Speak Louder Than Words?MAHA Global and IPR: Do Actions Speak Louder Than Words?
MAHA Global and IPR: Do Actions Speak Louder Than Words?Olivia Kresic
 
Lowrate Call Girls In Sector 18 Noida ❤️8860477959 Escorts 100% Genuine Servi...
Lowrate Call Girls In Sector 18 Noida ❤️8860477959 Escorts 100% Genuine Servi...Lowrate Call Girls In Sector 18 Noida ❤️8860477959 Escorts 100% Genuine Servi...
Lowrate Call Girls In Sector 18 Noida ❤️8860477959 Escorts 100% Genuine Servi...lizamodels9
 
Future Of Sample Report 2024 | Redacted Version
Future Of Sample Report 2024 | Redacted VersionFuture Of Sample Report 2024 | Redacted Version
Future Of Sample Report 2024 | Redacted VersionMintel Group
 
Contemporary Economic Issues Facing the Filipino Entrepreneur (1).pptx
Contemporary Economic Issues Facing the Filipino Entrepreneur (1).pptxContemporary Economic Issues Facing the Filipino Entrepreneur (1).pptx
Contemporary Economic Issues Facing the Filipino Entrepreneur (1).pptxMarkAnthonyAurellano
 
Call Girls In Connaught Place Delhi ❤️88604**77959_Russian 100% Genuine Escor...
Call Girls In Connaught Place Delhi ❤️88604**77959_Russian 100% Genuine Escor...Call Girls In Connaught Place Delhi ❤️88604**77959_Russian 100% Genuine Escor...
Call Girls In Connaught Place Delhi ❤️88604**77959_Russian 100% Genuine Escor...lizamodels9
 
8447779800, Low rate Call girls in New Ashok Nagar Delhi NCR
8447779800, Low rate Call girls in New Ashok Nagar Delhi NCR8447779800, Low rate Call girls in New Ashok Nagar Delhi NCR
8447779800, Low rate Call girls in New Ashok Nagar Delhi NCRashishs7044
 
(Best) ENJOY Call Girls in Faridabad Ex | 8377087607
(Best) ENJOY Call Girls in Faridabad Ex | 8377087607(Best) ENJOY Call Girls in Faridabad Ex | 8377087607
(Best) ENJOY Call Girls in Faridabad Ex | 8377087607dollysharma2066
 
8447779800, Low rate Call girls in Shivaji Enclave Delhi NCR
8447779800, Low rate Call girls in Shivaji Enclave Delhi NCR8447779800, Low rate Call girls in Shivaji Enclave Delhi NCR
8447779800, Low rate Call girls in Shivaji Enclave Delhi NCRashishs7044
 
Market Sizes Sample Report - 2024 Edition
Market Sizes Sample Report - 2024 EditionMarket Sizes Sample Report - 2024 Edition
Market Sizes Sample Report - 2024 EditionMintel Group
 
Kenya’s Coconut Value Chain by Gatsby Africa
Kenya’s Coconut Value Chain by Gatsby AfricaKenya’s Coconut Value Chain by Gatsby Africa
Kenya’s Coconut Value Chain by Gatsby Africaictsugar
 
Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...
Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...
Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...lizamodels9
 
2024 Numerator Consumer Study of Cannabis Usage
2024 Numerator Consumer Study of Cannabis Usage2024 Numerator Consumer Study of Cannabis Usage
2024 Numerator Consumer Study of Cannabis UsageNeil Kimberley
 
Investment in The Coconut Industry by Nancy Cheruiyot
Investment in The Coconut Industry by Nancy CheruiyotInvestment in The Coconut Industry by Nancy Cheruiyot
Investment in The Coconut Industry by Nancy Cheruiyotictsugar
 

Recently uploaded (20)

Corporate Profile 47Billion Information Technology
Corporate Profile 47Billion Information TechnologyCorporate Profile 47Billion Information Technology
Corporate Profile 47Billion Information Technology
 
Keppel Ltd. 1Q 2024 Business Update Presentation Slides
Keppel Ltd. 1Q 2024 Business Update  Presentation SlidesKeppel Ltd. 1Q 2024 Business Update  Presentation Slides
Keppel Ltd. 1Q 2024 Business Update Presentation Slides
 
Islamabad Escorts | Call 03274100048 | Escort Service in Islamabad
Islamabad Escorts | Call 03274100048 | Escort Service in IslamabadIslamabad Escorts | Call 03274100048 | Escort Service in Islamabad
Islamabad Escorts | Call 03274100048 | Escort Service in Islamabad
 
Pitch Deck Teardown: Geodesic.Life's $500k Pre-seed deck
Pitch Deck Teardown: Geodesic.Life's $500k Pre-seed deckPitch Deck Teardown: Geodesic.Life's $500k Pre-seed deck
Pitch Deck Teardown: Geodesic.Life's $500k Pre-seed deck
 
8447779800, Low rate Call girls in Saket Delhi NCR
8447779800, Low rate Call girls in Saket Delhi NCR8447779800, Low rate Call girls in Saket Delhi NCR
8447779800, Low rate Call girls in Saket Delhi NCR
 
BEST Call Girls In Old Faridabad ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,
BEST Call Girls In Old Faridabad ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,BEST Call Girls In Old Faridabad ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,
BEST Call Girls In Old Faridabad ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,
 
Global Scenario On Sustainable and Resilient Coconut Industry by Dr. Jelfina...
Global Scenario On Sustainable  and Resilient Coconut Industry by Dr. Jelfina...Global Scenario On Sustainable  and Resilient Coconut Industry by Dr. Jelfina...
Global Scenario On Sustainable and Resilient Coconut Industry by Dr. Jelfina...
 
MAHA Global and IPR: Do Actions Speak Louder Than Words?
MAHA Global and IPR: Do Actions Speak Louder Than Words?MAHA Global and IPR: Do Actions Speak Louder Than Words?
MAHA Global and IPR: Do Actions Speak Louder Than Words?
 
Lowrate Call Girls In Sector 18 Noida ❤️8860477959 Escorts 100% Genuine Servi...
Lowrate Call Girls In Sector 18 Noida ❤️8860477959 Escorts 100% Genuine Servi...Lowrate Call Girls In Sector 18 Noida ❤️8860477959 Escorts 100% Genuine Servi...
Lowrate Call Girls In Sector 18 Noida ❤️8860477959 Escorts 100% Genuine Servi...
 
Future Of Sample Report 2024 | Redacted Version
Future Of Sample Report 2024 | Redacted VersionFuture Of Sample Report 2024 | Redacted Version
Future Of Sample Report 2024 | Redacted Version
 
Contemporary Economic Issues Facing the Filipino Entrepreneur (1).pptx
Contemporary Economic Issues Facing the Filipino Entrepreneur (1).pptxContemporary Economic Issues Facing the Filipino Entrepreneur (1).pptx
Contemporary Economic Issues Facing the Filipino Entrepreneur (1).pptx
 
Call Girls In Connaught Place Delhi ❤️88604**77959_Russian 100% Genuine Escor...
Call Girls In Connaught Place Delhi ❤️88604**77959_Russian 100% Genuine Escor...Call Girls In Connaught Place Delhi ❤️88604**77959_Russian 100% Genuine Escor...
Call Girls In Connaught Place Delhi ❤️88604**77959_Russian 100% Genuine Escor...
 
8447779800, Low rate Call girls in New Ashok Nagar Delhi NCR
8447779800, Low rate Call girls in New Ashok Nagar Delhi NCR8447779800, Low rate Call girls in New Ashok Nagar Delhi NCR
8447779800, Low rate Call girls in New Ashok Nagar Delhi NCR
 
(Best) ENJOY Call Girls in Faridabad Ex | 8377087607
(Best) ENJOY Call Girls in Faridabad Ex | 8377087607(Best) ENJOY Call Girls in Faridabad Ex | 8377087607
(Best) ENJOY Call Girls in Faridabad Ex | 8377087607
 
8447779800, Low rate Call girls in Shivaji Enclave Delhi NCR
8447779800, Low rate Call girls in Shivaji Enclave Delhi NCR8447779800, Low rate Call girls in Shivaji Enclave Delhi NCR
8447779800, Low rate Call girls in Shivaji Enclave Delhi NCR
 
Market Sizes Sample Report - 2024 Edition
Market Sizes Sample Report - 2024 EditionMarket Sizes Sample Report - 2024 Edition
Market Sizes Sample Report - 2024 Edition
 
Kenya’s Coconut Value Chain by Gatsby Africa
Kenya’s Coconut Value Chain by Gatsby AfricaKenya’s Coconut Value Chain by Gatsby Africa
Kenya’s Coconut Value Chain by Gatsby Africa
 
Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...
Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...
Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...
 
2024 Numerator Consumer Study of Cannabis Usage
2024 Numerator Consumer Study of Cannabis Usage2024 Numerator Consumer Study of Cannabis Usage
2024 Numerator Consumer Study of Cannabis Usage
 
Investment in The Coconut Industry by Nancy Cheruiyot
Investment in The Coconut Industry by Nancy CheruiyotInvestment in The Coconut Industry by Nancy Cheruiyot
Investment in The Coconut Industry by Nancy Cheruiyot
 

aosp_crave_tutorial-3.pdfhasudshsuajdhkhh

  • 1. How to Build a Custom Rom on Crave – Megh So, you just got added to the team, and want to build your rom on crave, this is the correct place to come. This is a tutorial assuming that you know the basics of rom building and have built a working rom before. This also assumes that you have a set of trees ( device tree, vendor tree, kernel) and know what dependencies your device needs. Firstly, log in to foss.crave.io ( your account will be created by crave itself) After logging in, this is the homescreen you’ll see
  • 2. You will need to download the crave binary and the crave.conf file, so head on to downloads first and download the crave binary according to your platform. Currently, Windows and Linux is supported, support for android may be added in the future. Now, head on to api keys section to download your conf file.
  • 3. Hit the download button ( next to the cross) to download the file below instructions are for linux: ``` cd ~/Downloads mv crave-* crave sudo cp crave /usr/bin/ ``` This is just shortening the file name, and moving it to a place in path, so you can directly run crave. For windows, obv the instructions would be different, but you would have to add it to path like you would do anything else, tons of instructions online, or you can skip this step :smile now run ``` crave -c crave.conf devspace ``` This will be only needed the first time, the next time you’ll only have to run crave devspace after running, this is the screen you should see.( this is your devspace, each user has their own devspace, and is private to some level, but dont enter nuclear launch codes here maybe.)
  • 4. now run crave list below, is what you should see ( or atleast something similar) Now, let’s say you want to build one of these two roms ( more on building roms except this later) so, you need to clone it. Run the command crave clone create –projectID=(id here, for example, 36) directoryname
  • 5. Now, cd to your newly cloned source. ``` cd directoryname/repo ls ``` Now, here, building with crave is somewhat different that what you would do on a regular server. Essentially, right now we are in the “devspace”, which has limited hardware, which cannot build aosp. But what can build aosp, is their servers, currently having 64gb of ram. So you would have to write a command to run your build enclosed by crave run. Now, there are 2 methods of running builds, i prefer the second one, but you should select whatever feels easy. 1. crave run --no-patch --clean “ rm -rf .repo/local_manifests && git clone https://github.com/username/yourlocalmanifest .repo/local_manifests && repo sync --force-sync -c -j $(nproc) && source build/envsetup.sh && lunch rom_device-userdebug && mka bacon” Note, the above is just a template, feel free to modify it yourself. Now what does each of these do? Crave has a feature, which would let you make changes to your devspace, and that changes get applied to the source in the server automatically, without even commiting or pushing them to git. But currently that is broken for aosp, so we specify that we dont want to patch the rom directory. Running clean is just a way of having a fresh image of the source to build on, you shouldnt need to do this many times. But in the case you mess up the source very badly ( happens to everyone) you would run clean. Then it is just a matter of ensuring there are no left over files in local_manifests, syncing your own, and then building. The other method to do so, is via a build script, it could be as simple as ``` git clone https://github.com/username/trees tree repo sync lunch rom_device-userdebug mka bacon ```
  • 6. now, either upload this script to github, to git clone this repo, or upload to github gist. ``` crave run –no-patch --clean “git clone https://github.com/username/scripts . && bash script.sh ” ``` or, if you prefer github gists, ``` crave run --no-patch --clean "wget -O a37.sh https://gist.github.com/Meghthedev/1cf556f04cb6752c295447e22bd7bc76/raw/ 2d0eff7a442b2ba54cb45e736e5c33b598e21c25/a37.sh && chmod +x a37.sh && ./a37.sh" ``` ( just wget the build script and then running it after making it executable.) Here is the script i made, which was slightly more complex, which basically shows you could do quite a lot on crave https://gist.github.com/Meghthedev/6314eb98ff1d2fb8b7e03769a739a101 Once you have run the command, your build will be added to the queue, the queue isnt much long, at max you would have 2-3 people in queue. The builds section looks like so on foss.crave.io ( you would also get output on your terminal, also the build wont stop if you close your devspace) How to build a different rom than los or derpfest. For now the method is, for example you want to build crdroid, now crdroid shares a lot of common repos with los, so you clone los, and in your build script, you add
  • 7. ``` repo init -u https://github.com/crdroidandroid/android.git -b 13.0 --git-lfs ``` before doing repo sync, note, it is recommended you do same android version re syncs, ie android 13 rom on top of android 13. you may face problems otherwise. Now, what to do if your build succeeded, well the method is to first pull that build to your devspace, so go to romfolder/repo and do ``` crave pull out/target/product/*/*.zip ``` and that would pull the zip to your devspace, from there, it is just a matter of uploading. Whether you use github releases, or ksau, or sourceforge, or devuploads, its your choice, you can ask about these methods in the discord server. Congrats on your first build!