diff options
Diffstat (limited to 'lkft/hikey-aosp/builders.sh')
-rw-r--r-- | lkft/hikey-aosp/builders.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lkft/hikey-aosp/builders.sh b/lkft/hikey-aosp/builders.sh index 3cf10edcba..c66b4af3bd 100644 --- a/lkft/hikey-aosp/builders.sh +++ b/lkft/hikey-aosp/builders.sh @@ -10,6 +10,7 @@ make ARCH=arm64 CROSS_COMPILE=aarch64-linux-android- -j$(nproc) Image-dtb wget -q https://android-git.linaro.org/platform/system/core.git/plain/mkbootimg/mkbootimg -O mkbootimg wget -q ${REFERENCE_AOSP_BUILD}/ramdisk.img -O ramdisk.img + mkdir -p out python mkbootimg \ --kernel ${PWD}/arch/arm64/boot/Image-dtb \ @@ -18,3 +19,11 @@ python mkbootimg \ --os_patch_level 2016-11-05 \ --ramdisk ramdisk.img \ --output out/boot.img + +wget -q ${REFERENCE_AOSP_BUILD}/build_config.json -O out/build_config.json +remote=$(git remote -v | grep push | cut -d" " -f1 | cut -f2) +commit=$(git log | grep commit | cut -d" " -f2) +branch=$(git branch | cut -d" " -f2) +sed -i "s|\"kernel_repo\" : \"|\"kernel_repo\" : \"$remote|g" out/build_config.json +sed -i "s|\"kernel_commit_id\" : \"|\"kernel_commit_id\" : \"$commit|g" out/build_config.json +sed -i "s|\"kernel_branch\" : \"|\"kernel_branch\" : \"$branch|g" out/build_config.json |