Skip to content

Commit

Permalink
jfnskcbjsjzbfjwn
Browse files Browse the repository at this point in the history
  • Loading branch information
fukiame committed Sep 4, 2023
1 parent 645a2e2 commit 1fb1b32
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 0 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ for toolchain in $1; do
if [ -e "${out_image}" ]; then
BUILD_END=$(date +"%s")
DIFF=$((BUILD_END - BUILD_START))
zip_name="${maindir}/${kernel_name}${SUFFIX}-${TIME}-${kernel_head}-${kernel_ver}.zip"
pack ${zip_name}
echo "build succeeded in $((DIFF / 60))m, $((DIFF % 60))s" >> "${zip_name}.info"
echo "md5: $(md5sum "${zip_name}" | cut -d' ' -f1)" >> "${zip_name}.info"
Expand Down
8 changes: 5 additions & 3 deletions env
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
export maindir="$(pwd)"
export outside="${maindir}/.."

# config start -----
#

export ARCH="arm64"
export SUBARCH="arm64"
Expand All @@ -21,13 +21,15 @@ export out_image="${maindir}/out/arch/arm64/boot/Image.gz-dtb"
export out_dtb="${maindir}/out/arch/arm64/boot/dts/mediatek/mt6768.dtb"
export out_dtbo="${maindir}/out/arch/arm64/boot/dtbo.img"

# config end -----

export zipper="${outside}/zipper"

#

export defconfig_file="${maindir}/arch/${ARCH}/configs/${defconfig}"

export kernel_head="$(git log --pretty=format:'%h' -1)"
export kernel_name=$(cat "${defconfig_file}" | grep "CONFIG_LOCALVERSION=" | sed 's/CONFIG_LOCALVERSION="-*//g' | sed 's/"*//g' )
export kernel_ver="4.14.$(cat "${maindir}/Makefile" | grep "SUBLEVEL =" | sed 's/SUBLEVEL = *//g')"
export TIME=$(date +"%y%m%d-%H%M")

export zip_name="${maindir}/${kernel_name}${SUFFIX}-${TIME}-${kernel_head}-${kernel_ver}.zip"

0 comments on commit 1fb1b32

Please sign in to comment.