Include prebuilt static toybox
Built from lineage-18
This commit is contained in:
@@ -45,6 +45,7 @@ function create() {
|
||||
echo "Build directories are now ready" >> $GLOG
|
||||
echo "Getting prebuilts..."
|
||||
echo "Copying stuff" >> $GLOG
|
||||
cp $TOP/toybox-$GARCH $OUT/$GARCH/toybox >> $GLOG
|
||||
cp -r $PREBUILT/* $OUT/$GARCH/system >> $GLOG
|
||||
cp -r $COMMON/* $OUT/$GARCH/system >> $GLOG
|
||||
echo "Generating addon.d script" >> $GLOG
|
||||
|
@@ -25,6 +25,8 @@ cleanup() {
|
||||
ui_print "Cleaning up files"
|
||||
cd ../
|
||||
rm -rf system
|
||||
rm -rf bin
|
||||
rm toybox
|
||||
|
||||
ui_print "Unmounting partitions"
|
||||
umount -l "$SYSTEM_MNT"
|
||||
@@ -103,6 +105,24 @@ ui_print "**********************"
|
||||
ui_print "MindTheGapps installer"
|
||||
ui_print "**********************"
|
||||
|
||||
ui_print "Extracting files"
|
||||
TMP=/tmp
|
||||
cd "$TMP"
|
||||
unzip -o "$ZIP"
|
||||
rm -rf META-INF
|
||||
|
||||
ui_print "Setting up environment"
|
||||
TOYBOX="${TMP}/toybox"
|
||||
chmod +x "$TOYBOX"
|
||||
|
||||
TOYS_PATH="${TMP}/bin"
|
||||
rm -rf "$TOYS_PATH";
|
||||
$TOYBOX install -d "$TOYS_PATH"
|
||||
for toy in $($TOYBOX); do
|
||||
$TOYBOX ln -sf "$TOYBOX" "${TOYS_PATH}/${toy}"
|
||||
done
|
||||
PATH="${TOYS_PATH}:${PATH}"
|
||||
|
||||
ui_print "Mounting partitions"
|
||||
|
||||
# Ensure system is unmounted so mounting succeeds
|
||||
@@ -182,10 +202,6 @@ if [ -n "$SYSTEM_EXT_BLOCK" ]; then
|
||||
fi
|
||||
STORAGE_BUFFER=10240
|
||||
|
||||
ui_print "Extracting files"
|
||||
cd /tmp
|
||||
unzip -o "$ZIP"
|
||||
rm -rf META-INF
|
||||
cd system
|
||||
compute_apps_size
|
||||
|
||||
|
BIN
toybox-arm
Normal file
BIN
toybox-arm
Normal file
Binary file not shown.
BIN
toybox-arm64
Normal file
BIN
toybox-arm64
Normal file
Binary file not shown.
BIN
toybox-x86
Normal file
BIN
toybox-x86
Normal file
Binary file not shown.
Reference in New Issue
Block a user