Split /lib/chroot-buildpackages.sh

This commit is contained in:
hzy
2022-10-03 17:04:21 +08:00
committed by Ricardo Pardini
parent 7761049c65
commit 56971b1530
2 changed files with 4 additions and 29 deletions

View File

@@ -1,25 +1,3 @@
#!/bin/bash
#
# Copyright (c) 2013-2021 Igor Pecovnik, igor.pecovnik@gma**.com
#
# This file is licensed under the terms of the GNU General Public
# License version 2. This program is licensed "as is" without any
# warranty of any kind, whether express or implied.
#
# This file is a part of the Armbian build script
# https://github.com/armbian/build/
# Functions:
# create_chroot
# chroot_prepare_distccd
# chroot_build_packages
# chroot_installpackages_local
# chroot_installpackages
# create_chroot <target_dir> <release> <arch>
#
create_chroot()
@@ -125,8 +103,7 @@ create_chroot()
touch "${target_dir}"/root/.debootstrap-complete
display_alert "Debootstrap complete" "${release}/${arch}" "info"
} #############################################################################
}
# chroot_prepare_distccd <release> <arch>
#
@@ -335,7 +312,7 @@ chroot_build_packages()
display_alert "$p"
done
fi
} #############################################################################
}
# create build script
create_build_script ()
@@ -439,7 +416,7 @@ chroot_installpackages_local()
EOF
chroot_installpackages
kill "${aptly_pid}"
} #############################################################################
}
# chroot_installpackages <remote_only>
#
@@ -483,4 +460,4 @@ chroot_installpackages()
EOF
chmod +x "${SDCARD}"/tmp/install.sh
chroot "${SDCARD}" /bin/bash -c "/tmp/install.sh" >> "${DEST}"/${LOG_SUBPATH}/install.log 2>&1
} #############################################################################
}

View File

@@ -66,8 +66,6 @@ source "${SRC}/lib/import-functions.sh"
# shellcheck source=compilation-prepare.sh
source "${SRC}"/lib/compilation-prepare.sh # drivers that are not upstreamed
# shellcheck source=chroot-buildpackages.sh
source "${SRC}"/lib/chroot-buildpackages.sh # chroot packages building
# set log path