Skip to content

Commit 2e22874

Browse files
committed
Set up scripted building
1 parent 3b5c589 commit 2e22874

File tree

6 files changed

+21
-1
lines changed

6 files changed

+21
-1
lines changed

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,3 +125,9 @@ all.config
125125

126126
# fetched Android config fragments
127127
kernel/configs/android-*.cfg
128+
129+
# Build toolchains
130+
/toolchain/
131+
132+
# Build directory
133+
/out/

Publish/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
!a3core-A032FXXS6CXE1.tar.xz
2+
*.img
6.04 MB
Binary file not shown.

Publish/magiskboot

1.3 MB
Binary file not shown.

arch/arm64/configs/a3core_eur_open_defconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ CONFIG_THREAD_INFO_IN_TASK=y
4848
CONFIG_INIT_ENV_ARG_LIMIT=32
4949
CONFIG_CROSS_COMPILE=""
5050
# CONFIG_COMPILE_TEST is not set
51-
CONFIG_LOCALVERSION=""
51+
CONFIG_LOCALVERSION="-a3core_IverCoder-YYYYMMDDHHMM-NoKSU"
5252
# CONFIG_LOCALVERSION_AUTO is not set
5353
CONFIG_DEFAULT_HOSTNAME="(none)"
5454
CONFIG_SWAP=y

build_kernel.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,15 @@ make -C $(pwd) O=$(pwd)/out BSP_BUILD_DT_OVERLAY=y CC=clang LD=ld.lld ARCH=arm64
1414
make -C $(pwd) O=$(pwd)/out BSP_BUILD_DT_OVERLAY=y CC=clang LD=ld.lld ARCH=arm64 CLANG_TRIPLE=aarch64-linux-gnu- -j12
1515

1616
cp out/arch/arm64/boot/Image $(pwd)/arch/arm64/boot/Image
17+
18+
BUILD_OUTPUT="$(pwd)/out/arch/arm64/boot/Image"
19+
PUBLISH_DIR="$(pwd)/Publish"
20+
cd $PUBLISH_DIR
21+
rm boot.img -f
22+
tar -xvf a3core-A032FXXS6CXE1.tar.xz
23+
chmod +x magiskboot
24+
./magiskboot unpack stock-boot.img
25+
rm kernel -f
26+
cp $BUILD_OUTPUT kernel
27+
./magiskboot repack stock-boot.img boot.img
28+
rm $PUBLISH_DIR/kernel && rm $PUBLISH_DIR/ramdisk.cpio && rm $PUBLISH_DIR/dtb && rm $PUBLISH_DIR/stock-boot.img

0 commit comments

Comments
 (0)