ACK superproject - liuyq/android-issues GitHub Wiki

$ git clone https://android.googlesource.com/kernel/superproject -b common-android-mainline --recursive
# $ git clone https://mirrors.ustc.edu.cn/aosp/kernel/superproject -b common-android-mainline --recursive
$ tools/bazel run --config=release //common:db845c_dist -- --dist_dir=/home/liuyq/data/android/superproject/out/lkft-db845c-aosp-master-mainline-gki/vendor-kernel/dist

$ git clone https://android-git.linaro.org/git/platform/prebuilts/linaro-prebuilts prebuilts/linaro-prebuilts
$ git clone -b lkft https://android-git.linaro.org/git/android-build-configs
$ test.sh

$ cd common
$ git log --oneline
...
0bbe66a90b4f ANDROID: GKI: Include kheaders in gki_system_dlkm_modules
...
$

$ cd ../
$ git log --oneline
...
4c739f264027 ANDROID: GKI: Include kheaders in gki_system_dlkm_modules
...
$ 
$ git checkout 4c739f264027
warning: unable to rmdir 'external/bazelbuild-apple_support': Directory not empty
warning: unable to rmdir 'external/bazelbuild-bazel-central-registry': Directory not empty
warning: unable to rmdir 'external/bazelbuild-platforms': Directory not empty
warning: unable to rmdir 'external/bazelbuild-rules_cc': Directory not empty
warning: unable to rmdir 'external/bazelbuild-rules_java': Directory not empty
warning: unable to rmdir 'external/bazelbuild-rules_pkg': Directory not empty
warning: unable to rmdir 'external/bazelbuild-rules_python': Directory not empty
warning: unable to rmdir 'external/bazelbuild-rules_rust': Directory not empty
warning: unable to rmdir 'external/libcap': Directory not empty
warning: unable to rmdir 'external/libcap-ng': Directory not empty
warning: unable to rmdir 'external/pigz': Directory not empty
warning: unable to rmdir 'external/zlib': Directory not empty
warning: unable to rmdir 'external/zopfli': Directory not empty
warning: unable to rmdir 'prebuilts/asuite': Directory not empty
warning: unable to rmdir 'prebuilts/ndk-r26': Directory not empty
warning: unable to rmdir 'prebuilts/tradefed': Directory not empty
warning: unable to rmdir 'test/dittosuite': Directory not empty
M	build/bazel_common_rules
M	build/kernel
M	common
M	common-modules/virtual-device
M	external/bazel-skylib
M	external/bazelbuild-rules_license
M	external/python/absl-py
M	external/stardoc
M	kernel/common-patches
M	kernel/configs
M	kernel/tests
M	prebuilts/build-tools
M	prebuilts/clang-tools
M	prebuilts/clang/host/linux-x86
M	prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8
M	prebuilts/jdk/jdk11
M	prebuilts/kernel-build-tools
M	prebuilts/rust
M	tools/mkbootimg
Note: switching to '4c739f264027'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at 4c739f264027 ANDROID: GKI: Include kheaders in gki_system_dlkm_modules
$ git submodule update
error: Server does not allow request for unadvertised object 92619b01fa7bbaf14ea1ceab3c48033e58d83eb3
Fetched in submodule path 'prebuilts/bazel/linux-x86_64', but it did not contain 92619b01fa7bbaf14ea1ceab3c48033e58d83eb3. Direct fetching of that commit failed.
$

$ git clone https://mirrors.ustc.edu.cn/aosp/platform/prebuilts/build-tools
$ mv /tmp/work/platform-build-tools/.git/ .git/modules/platform/prebuilts/build-tools

$ git bisect start
$ git bisect good aaa
$ git bisect bad bbb # the current working directory will be checked out to commit bbb
$ git submodule update --init --no-recommend-shallow # to update the submodules, they are not updated by the git bisect good or git bisect bad commands
# git bisect run could be used to do some compiling or testing automatically, please check the manpage  on how to write such a script