Giter VIP home page Giter VIP logo

cmjenkins's Introduction

cmbuild

Various build scripts to support CyanogenMod automated build and a repository mirror.

How to add a repo to the mirror

  1. Disable the repo sync script:
$ ~/sync_cm/sync_cm -d
-rw-r--r-- 1 cyanogenmod cyanogenmod 0 Apr 21 16:10 /home/cyanogenmod/sync_cm.disabled
>>> Script 'sync_cm' disabled...
  1. CD to ~/cm/.repo/manifests

  2. Make appropriate modifications to default.xml

    For example, moving from a public CM repo, to a private cozybit repo:

    diff --git a/default.xml b/default.xml
    index 7faae76..9bb3ddd 100644
    --- a/default.xml
    +++ b/default.xml
    @@ -278,7 +278,7 @@
        <project path="hardware/cm" name="CyanogenMod/android_hardware_cm" />
        <project path="hardware/invensense" name="CyanogenMod/android_hardware_invensense" groups="invensense" />
        <project path="hardware/libhardware" name="CyanogenMod/android_hardware_libhardware" groups="pdk" />
    -   <project path="hardware/libhardware_legacy" name="CyanogenMod/android_hardware_libhardware_legacy" groups="pdk" />
    +   <project path="hardware/libhardware_legacy" name="cozybit/android_hardware_libhardware_legacy-pvt" remote="private" groups="pdk" />
        <project path="hardware/msm7k" name="CyanogenMod/android_hardware_msm7k" />
        <project path="hardware/qcom/audio" name="CyanogenMod/android_hardware_qcom_audio" groups="qcom" />
        <project path="hardware/qcom/audio-caf" name="CyanogenMod/android_hardware_qcom_audio-caf" groups="caf" />
  3. Git commit and push, be careful with the .repo/manifest dir, it is cloned in a funny state (perhaps HEAD is not pointing at any branch?), so do this manually:

    $ git checkout origin/cm-10.2 -b cm-10.2
    # ... do edits or cherry-pick if you already made the edits ...
    $ git commit -a
    $ git push origin cm-10.2
  4. Move the old .repo dir out of the way: mv ~/cm/.repo /tmp

  5. Re-init the mirror: repo init -u https://github.com/cozybit/android-platform.git --mirror -b cm-10.2

  6. Re-enable the sync_cm script: sync_cm -e

cmjenkins's People

Contributors

cozy-jenkins avatar silverjam avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.