mirror of https://github.com/parazyd/arm-sdk.git
sensible defaults
This commit is contained in:
parent
a539c7d477
commit
18b120a4b7
27
config
27
config
|
|
@ -17,29 +17,38 @@
|
|||
# You should have received a copy of the GNU General Public License
|
||||
# along with this source code. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
|
||||
## arm-sdk configuration
|
||||
## ---------------------
|
||||
|
||||
|
||||
## options for `make` when building kernel
|
||||
MAKEOPTS="-j$(expr $(grep -c 'processor' /proc/cpuinfo) + 1)"
|
||||
|
||||
## devuan packaged toolchain
|
||||
#compiler="arm-none-eabi-"
|
||||
#export PATH="$PATH:/sbin"
|
||||
|
||||
## custom toolchain (armv7+armhf; gcc 4.9.3)
|
||||
## https://pub.parazyd.cf/mirror/
|
||||
compiler="armv7-devuan-linux-gnueabihf-"
|
||||
export PATH="$R/gcc/armv7-devuan-linux-gnueabihf/bin:$PATH:/sbin"
|
||||
|
||||
## custom toolchain (DEPRECATED!)
|
||||
|
||||
## custom toolchain (aarch64+arm64; gcc 4.9.3)
|
||||
## https://pub.parazyd.cf/mirror/
|
||||
#compiler="arm-linux-gnueabihf-"
|
||||
#export PATH="$R/gcc/gcc-arm-linux-gnueabihf-4.7/bin:$PATH:/sbin"
|
||||
#compiler="aarch64-devuan-linux-gnueabi-"
|
||||
#export PATH="$R/gcc/aarch64-devuan-linux-gnueabi/bin:$PATH:/sbin"
|
||||
|
||||
|
||||
## devuan packaged toolchain
|
||||
#compiler="arm-none-eabi-"
|
||||
#export PATH="$PATH:/sbin"
|
||||
|
||||
|
||||
## static qemu arm binary
|
||||
qemu_bin="/usr/bin/qemu-arm-static" # Devuan
|
||||
#qemu_bin="/usr/bin/qemu-arm" # Gentoo
|
||||
qemu_bin="/usr/bin/qemu-arm-static" # Devuan
|
||||
#qemu_bin="/usr/bin/qemu-aarch64-static" # Devuan
|
||||
#qemu_bin="/usr/bin/qemu-arm" # Gentoo
|
||||
#qemu_bin="/usr/bin/qemu-aarch" # Gentoo
|
||||
|
||||
|
||||
## extra_packages for all images
|
||||
extra_packages=(wpasupplicant rdate)
|
||||
extra_packages=()
|
||||
|
|
|
|||
|
|
@ -88,8 +88,7 @@ copy-zram-init() {
|
|||
ckreq || return 1
|
||||
|
||||
notice "installing zram init"
|
||||
sudo cp $R/extra/zram $strapdir/etc/init.d/zram
|
||||
sudo chmod +x $strapdir/etc/init.d/zram
|
||||
sudo cp $CPVERBOSE $R/extra/zram $strapdir/root/
|
||||
}
|
||||
|
||||
copy-kernel-config() {
|
||||
|
|
@ -106,7 +105,7 @@ write-fstab() {
|
|||
fn write-fstab
|
||||
req=(strapdir)
|
||||
ckreq || return 1
|
||||
cat <<EOF | sudo tee ${strapdir}/etc/fstab ${TEEVERBOSE}
|
||||
cat <<EOF | sudo tee ${strapdir}/etc/fstab
|
||||
## <file system> <mount point> <type> <options> <dump><pass>
|
||||
## proc
|
||||
proc /proc proc nodev,noexec,nosuid 0 0
|
||||
|
|
|
|||
Loading…
Reference in New Issue