Skip to content
This repository has been archived by the owner on May 9, 2024. It is now read-only.

Commit

Permalink
Reduce system to 512M, add package.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
xunmod committed Apr 10, 2024
1 parent 30152f7 commit 36a72dc
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 1 deletion.
2 changes: 1 addition & 1 deletion BoardConfig.mk
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ INSTALLED_KERNEL_TARGET := kernel
BOARD_KERNEL_CMDLINE :=
TARGET_USERIMAGES_USE_EXT4 := true
BOARD_FLASH_BLOCK_SIZE := 4096
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 1073741824 # 1024M
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 536870912 # 512M
BOARD_BOOTIMAGE_PARTITION_SIZE := 16777216 # 16M
BOARD_RECOVERYIMAGE_PARTITION_SIZE := 33554432 # 32M
#BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
Expand Down
56 changes: 56 additions & 0 deletions package.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
#!/bin/bash

cd $PACKAGE

chip=sun8iw6p1
platform=android
board=f1
debug=uart0
sigmode=none
securemode=none

usage()
{
printf "Usage: pack [-cCHIP] [-pPLATFORM] [-bBOARD] [-d] [-s] [-v] [-h]
-c CHIP (default: $chip)
-p PLATFORM (default: $platform)
-b BOARD (default: $board)
-d pack firmware with debug info output to card0
-s pack firmware with signature
-v pack firmware with secureboot
-h print this help message
"
}

while getopts "c:p:b:dsvh" arg
do
case $arg in
c)
chip=$OPTARG
;;
p)
platform=$OPTARG
;;
b)
board=$OPTARG
;;
d)
debug=card0
;;
s)
sigmode=sig
;;
v)
securemode=secure
;;
h)
usage
exit 0
;;
?)
exit 1
;;
esac
done

./pack -c $chip -p $platform -b $board -d $debug -s $sigmode -v $securemode

0 comments on commit 36a72dc

Please sign in to comment.