Skip to content

Instantly share code, notes, and snippets.

@ungeskriptet
Last active July 9, 2025 07:17
Show Gist options
  • Select an option

  • Save ungeskriptet/14572b031ad054c4f5f1f82d638ef142 to your computer and use it in GitHub Desktop.

Select an option

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-07900-lanai.0
CAMERA=CAMERA.LA.4.0.r2-07500-lanai.0
CV=CV.LA.2.0.r1-05000-lanai.0
DISPLAY=DISPLAY.LA.4.0.r2-08100-lanai.0
GRAPHICS=GRAPHICS.LA.14.0.r1-08400-lanai.0
VENDOR=LA.VENDOR.14.3.0.r1-18400-lanai.QSSI15.0
VIDEO=VIDEO.LA.4.0.r2-06800-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=2bdf61dc3acba19bee7e23699dd95757757a492f
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=ad99244c6c54b39a03c11bcfcbabf7ad9096bc4d
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=6482ecda58e6f0287b394b1ed3665265e14e189c
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=0cd877f8bd15626cebf7499872f45c8532a6fcc0
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=08f6beca0d120e9a977c722b7ac2b6a9a7c4ef72
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=448244c48909d4b57396ad498ddd6e214f337461
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=855dffbb182002fcf3d4e829fa7fb745016f8d0d
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=0b2609b4024a8aead33ffd9f8bcfcbe64e4ab033
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=df3a8f41cbe7f727e532ae2601e52eaf323d23e7
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=8209e34e04c393339b8ca49f8f9b9feae3f0908d
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=a89792ae60183883e4fc2191947d8ac53ce074a4
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=7a5e292d66d426cfdf4c931ae0d0f3e698e89a9d
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=4bb08ef6330f5f8d892d059cb5cf9a03e9d96864
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=eaad60e07ea64c72eb844d48d218facfa7b6fcd9
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=f1081d170cb67d54b666571a6d5496dc825b89cb
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=74b8b351d6812b499ddd581c04aa4bb8ac5173f1
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