Skip to content

Commit 62164e7

Browse files
committed
remove / fix hardcode for hikey_defconfig for the
premerge build case. Make sure to copy off the hikey_defconfig and then put it back to the configs directory
1 parent dd66d23 commit 62164e7

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

hikey-kernel-builder.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,16 +164,19 @@ else
164164
git clone https://android.googlesource.com/kernel/hikey-linaro
165165
cd "$KERNEL_DIR"
166166
git checkout -b "$KERNEL_BRANCH" origin/"$KERNEL_BRANCH"
167+
if [ "$mirrorbuild" == "1" ]; then
168+
cp arch/arm64/configs/hikey_defconfig ../.
169+
fi
170+
167171
if [ "$mirrorbuild" == "1" ]; then
168172
git merge --no-edit remotes/origin/${UPSTREAM_KERNEL_BRANCH}
173+
cp ../hikey_defconfig arch/arm64/configs/.
169174
fi
175+
170176
if [ "$VERSION" = "4.9" ]; then
171177
if [ "$ANDROID_VERSION" = "O-MR1" ]; then
172178
git revert --no-edit bbab5cb8a5bd598af247d9eaf5a3033e7d12104e
173179
fi
174-
if [ "$mirrorbuild" == "1" ]; then
175-
cp ~/hikey_defconfig arch/arm64/configs/.
176-
fi
177180
fi
178181
if [ "$VERSION" = "4.14" ]; then
179182
if [ "$ANDROID_VERSION" = "O-MR1" ]; then

0 commit comments

Comments
 (0)