Skip to content

Instantly share code, notes, and snippets.

@ungeskriptet
Last active December 24, 2024 09:57
Show Gist options
  • Save ungeskriptet/14572b031ad054c4f5f1f82d638ef142 to your computer and use it in GitHub Desktop.
Save ungeskriptet/14572b031ad054c4f5f1f82d638ef142 to your computer and use it in GitHub Desktop.
#!/bin/bash
(git --no-pager config --global --list | grep "trailer.changeid.key=Change-Id") && TRAILER_SET=1
[ -n $TRAILER_SET ] && git config --global --unset "trailer.changeid.key"
AUDIO=AUDIO.LA.9.0.r1-07800-lanai.0
CAMERA=CAMERA.LA.4.0.r2-07400-lanai.0
CV=CV.LA.2.0.r1-04900-lanai.0
DISPLAY=DISPLAY.LA.4.0.r2-08000-lanai.0
GRAPHICS=GRAPHICS.LA.14.0.r1-08200-lanai.0
VENDOR=LA.VENDOR.14.3.0.r1-18200-lanai.QSSI15.0
VIDEO=VIDEO.LA.4.0.r2-06500-lanai.0
REPO=https://git.codelinaro.org/clo/la/platform/vendor/nxp/opensource/driver
COMMIT=c6f0de7127de042241c6f2ac7c60c5deb77d7d85
git remote add nxp $REPO.git
git fetch nxp
git subtree add --prefix nxp/opensource/driver $COMMIT
git commit --amend --trailer "" --trailer "repo: $REPO" --trailer "tag: $VENDOR" --no-edit
REPO=https://git.codelinaro.org/clo/la/platform/vendor/qcom/opensource/audio-kernel-ar
COMMIT=113f2ea0c742929c79c229b0947eabe489ab9d5e
git remote add audio-kernel $REPO.git
git fetch audio-kernel
git subtree add --prefix qcom/opensource/audio-kernel $COMMIT
git commit --amend --trailer "" --trailer "repo: $REPO" --trailer "tag: $AUDIO" --no-edit
REPO=https://git.codelinaro.org/clo/la/platform/vendor/qcom-opensource/bt-kernel
COMMIT=2d5b3d6ee697ee3b35f690f9511c1c40e7652208
git remote add bt-kernel $REPO.git
git fetch bt-kernel
git subtree add --prefix qcom/opensource/bt-kernel $COMMIT
git commit --amend --trailer "" --trailer "repo: $REPO" --trailer "tag: $VENDOR" --no-edit
REPO=https://git.codelinaro.org/clo/la/platform/vendor/opensource/camera-kernel
COMMIT=d1e1d57aec74cacb6571d29170438cbcb7ab040c
git remote add camera-kernel $REPO.git
git fetch camera-kernel
git subtree add --prefix qcom/opensource/camera-kernel $COMMIT
git commit --amend --trailer "" --trailer "repo: $REPO" --trailer "tag: $CAMERA" --no-edit
REPO=https://git.codelinaro.org/clo/la/platform/vendor/opensource/dataipa
COMMIT=f26c154600e1fb12720433bda1562025b88807fc
git remote add dataipa $REPO.git
git fetch dataipa
git subtree add --prefix qcom/opensource/dataipa $COMMIT
git commit --amend --trailer "" --trailer "repo: $REPO" --trailer "tag: $VENDOR" --no-edit
REPO=https://git.codelinaro.org/clo/la/platform/vendor/qcom/opensource/datarmnet
COMMIT=c5d70f15d54c8489bd452d52729bcfcd301ab985
git remote add datarmnet $REPO.git
git fetch datarmnet
git subtree add --prefix qcom/opensource/datarmnet $COMMIT
git commit --amend --trailer "" --trailer "repo: $REPO" --trailer "tag: $VENDOR" --no-edit
REPO=https://git.codelinaro.org/clo/la/platform/vendor/qcom/opensource/datarmnet-ext
COMMIT=e7a27480ae7c8dbc5508a8dcfa69c5628d3afe2d
git remote add datarmnet-ext $REPO.git
git fetch datarmnet-ext
git subtree add --prefix qcom/opensource/datarmnet-ext $COMMIT
git commit --amend --trailer "" --trailer "repo: $REPO" --trailer "tag: $VENDOR" --no-edit
REPO=https://git.codelinaro.org/clo/la/platform/vendor/opensource/display-drivers
COMMIT=25064a87479ba7230d5c92850406bc9d9c47479e
git remote add display-drivers $REPO.git
git fetch display-drivers
git subtree add --prefix qcom/opensource/display-drivers $COMMIT
git commit --amend --trailer "" --trailer "repo: $REPO" --trailer "tag: $DISPLAY" --no-edit
REPO=https://git.codelinaro.org/clo/la/platform/vendor/qcom/opensource/dsp-kernel
COMMIT=269c015ccf2b6ec4072dfbcbfd922c19e9a94407
git remote add dsp-kernel $REPO.git
git fetch dsp-kernel
git subtree add --prefix qcom/opensource/dsp-kernel $COMMIT
git commit --amend --trailer "" --trailer "repo: $REPO" --trailer "tag: $VENDOR" --no-edit
REPO=https://git.codelinaro.org/clo/la/platform/vendor/opensource/eva-kernel
COMMIT=83383ebfdf2c8e841db546d1ca89523b5c0a6121
git remote add eva-kernel $REPO.git
git fetch eva-kernel
git subtree add --prefix qcom/opensource/eva-kernel $COMMIT
git commit --amend --trailer "" --trailer "repo: $REPO" --trailer "tag: $CV" --no-edit
REPO=https://git.codelinaro.org/clo/la/platform/vendor/qcom-opensource/fingerprint
COMMIT=bf1db14b5f25c95f72d4ad57026186a823c22eff
git remote add fingerprint $REPO.git
git fetch fingerprint
git subtree add --prefix qcom/opensource/fingerprint $COMMIT
git commit --amend --trailer "" --trailer "repo: $REPO" --trailer "tag: $VENDOR" --no-edit
REPO=https://git.codelinaro.org/clo/la/platform/vendor/qcom/opensource/graphics-kernel
COMMIT=5edf288e18f3684a089889820249be635df95ff3
git remote add graphics-kernel $REPO.git
git fetch graphics-kernel
git subtree add --prefix qcom/opensource/graphics-kernel $COMMIT
git commit --amend --trailer "" --trailer "repo: $REPO" --trailer "tag: $GRAPHICS" --no-edit
REPO=https://git.codelinaro.org/clo/la/platform/vendor/opensource/mm-drivers
COMMIT=a7b138e9ad13cfdca39fb86f599fa16c0ced2282
git remote add mm-drivers $REPO.git
git fetch mm-drivers
git subtree add --prefix qcom/opensource/mm-drivers $COMMIT
git commit --amend --trailer "" --trailer "repo: $REPO" --trailer "tag: $DISPLAY" --no-edit
REPO=https://git.codelinaro.org/clo/la/platform/vendor/opensource/mmrm-driver
COMMIT=35211a9255b69d52ddc2b82dc8b1dd2840b98868
git remote add mmrm-driver $REPO.git
git fetch mmrm-driver
git subtree add --prefix qcom/opensource/mmrm-driver $COMMIT
git commit --amend --trailer "" --trailer "repo: $REPO" --trailer "tag: $VIDEO" --no-edit
REPO=https://git.codelinaro.org/clo/la/platform/vendor/opensource/mm-sys-kernel
COMMIT=88eb9646a400c3c70d3614c3912af530dd332060
git remote add mm-sys-kernel $REPO.git
git fetch mm-sys-kernel
git subtree add --prefix qcom/opensource/mm-sys-kernel $COMMIT
git commit --amend --trailer "" --trailer "repo: $REPO" --trailer "tag: $VENDOR" --no-edit
REPO=https://git.codelinaro.org/clo/la/platform/vendor/qcom/opensource/securemsm-kernel
COMMIT=be514e59aceb5582ad43605647e300b85fb7873c
git remote add securemsm-kernel $REPO.git
git fetch securemsm-kernel
git subtree add --prefix qcom/opensource/securemsm-kernel $COMMIT
git commit --amend --trailer "" --trailer "repo: $REPO" --trailer "tag: $VENDOR" --no-edit
REPO=https://git.codelinaro.org/clo/la/platform/vendor/qcom/opensource/spu-kernel
COMMIT=0edbf1a122b5f3d26a5bd27f53a1a0b8dbedf360
git remote add spu-kernel $REPO.git
git fetch spu-kernel
git subtree add --prefix qcom/opensource/spu-kernel $COMMIT
git commit --amend --trailer "" --trailer "repo: $REPO" --trailer "tag: $VENDOR" --no-edit
REPO=https://git.codelinaro.org/clo/la/platform/vendor/opensource/synx-kernel
COMMIT=2657c18a7869feec83f4383bf72623b8d6a2ef18
git remote add synx-kernel $REPO.git
git fetch synx-kernel
git subtree add --prefix qcom/opensource/synx-kernel $COMMIT
git commit --amend --trailer "" --trailer "repo: $REPO" --trailer "tag: $VENDOR" --no-edit
REPO=https://git.codelinaro.org/clo/la/platform/vendor/opensource/touch-drivers
COMMIT=b874fadcd1ff1926e1416cdc57db73013647ff7a
git remote add touch-drivers $REPO.git
git fetch touch-drivers
git subtree add --prefix qcom/opensource/touch-drivers $COMMIT
git commit --amend --trailer "" --trailer "repo: $REPO" --trailer "tag: $VENDOR" --no-edit
REPO=https://git.codelinaro.org/clo/la/platform/vendor/opensource/video-driver
COMMIT=d0f80c27eee09bc53817f8cfd085691c88989c7e
git remote add video-driver $REPO.git
git fetch video-driver
git subtree add --prefix qcom/opensource/video-driver $COMMIT
git commit --amend --trailer "" --trailer "repo: $REPO" --trailer "tag: $VIDEO" --no-edit
REPO=https://git.codelinaro.org/clo/la/platform/vendor/qcom-opensource/wlan/fw-api
COMMIT=ef29d7d7e7e312dd2eb99dd1e84dfeb0e83ec6f6
git remote add fw-api $REPO.git
git fetch fw-api
git subtree add --prefix qcom/opensource/wlan/fw-api $COMMIT
git commit --amend --trailer "" --trailer "repo: $REPO" --trailer "tag: $VENDOR" --no-edit
REPO=https://git.codelinaro.org/clo/la/platform/vendor/qcom-opensource/wlan/platform
COMMIT=9e614bb09c65fa11facf1e22bc62c5eb7a9d1011
git remote add platform $REPO.git
git fetch platform
git subtree add --prefix qcom/opensource/wlan/platform $COMMIT
git commit --amend --trailer "" --trailer "repo: $REPO" --trailer "tag: $VENDOR" --no-edit
REPO=https://git.codelinaro.org/clo/la/platform/vendor/qcom-opensource/wlan/qcacld-3.0
COMMIT=4fd0ff380c7252864e5158e4b6b28610f47ca9e1
git remote add qcacld-3.0 $REPO.git
git fetch qcacld-3.0
git subtree add --prefix qcom/opensource/wlan/qcacld-3.0 $COMMIT
git commit --amend --trailer "" --trailer "repo: $REPO" --trailer "tag: $VENDOR" --no-edit
REPO=https://git.codelinaro.org/clo/la/platform/vendor/qcom-opensource/wlan/qca-wifi-host-cmn
COMMIT=fc9941d8ba7cee8177c05d76f347e6fda957c86e
git remote add qca-wifi-host-cmn $REPO.git
git fetch qca-wifi-host-cmn
git subtree add --prefix qcom/opensource/wlan/qca-wifi-host-cmn $COMMIT
git commit --amend --trailer "" --trailer "repo: $REPO" --trailer "tag: $VENDOR" --no-edit
[ -n $TRAILER_SET ] && git config --global trailer.changeid.key "Change-Id"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment