deprecate old armhf toolchain; add missing dep

This commit is contained in:
parazyd 2016-10-10 19:57:01 +02:00
parent 91ff2bdef3
commit 7fd1825675
No known key found for this signature in database
GPG Key ID: F0CB28FCF78637DE
5 changed files with 32 additions and 15 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
tmp
PASSING

View File

@ -13,7 +13,7 @@ arm-sdk is designed to be used interactively from a terminal, as well as
from shell scripts. It requires the following packages to be installed:
```
sudo git-core zsh curl wget debootstrap cgpt xz-utils kpartx parted qemu-user-static build-essential rsync gcc-arm-none-eabi gcc-multilib lib32z1 u-boot-tools device-tree-compiler lzop
sudo git-core zsh curl wget debootstrap cgpt xz-utils kpartx parted qemu-user-static build-essential rsync gcc-arm-none-eabi gcc-multilib lib32z1 u-boot-tools device-tree-compiler lzop dosfstools
```
## Initial setup

22
config
View File

@ -21,22 +21,22 @@
## ---------------------
## options for `make` when building kernel
MAKEOPTS="-j$(grep -c 'processor' /proc/cpuinfo)"
MAKEOPTS="-j$(expr $(grep -c 'processor' /proc/cpuinfo) + 1)"
## devuan official toolchain
compiler="arm-none-eabi-"
export PATH="$PATH:/sbin"
## devuan packaged toolchain
#compiler="arm-none-eabi-"
#export PATH="$PATH:/sbin"
## custom toolchain (armhf) - https://pub.parazyd.cf/mirror/
## 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!)
## https://pub.parazyd.cf/mirror/
#compiler="arm-linux-gnueabihf-"
#export PATH="$R/gcc/gcc-arm-linux-gnueabihf-4.7/bin:$PATH:/sbin"
## custom toolchain (armel) - https://pub.parazyd.cf/mirror/
#compiler="arm-eabi-"
#export PATH="$R/gcc/gcc-arm-eabi-linaro-4.6.2/bin:$PATH:/sbin"
## custom toolchain (arm64) - https://pub.parazyd.cf/mirror/
## static qemu arm binary
qemu_bin="/usr/bin/qemu-arm-static" # Devuan
#qemu_bin="/usr/bin/qemu-arm" # Gentoo

View File

@ -82,6 +82,16 @@ clone-git() {
fi
}
copy-zram-init() {
fn copy-zram-init
req=(R strapdir)
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
}
copy-kernel-config() {
fn copy-kernel-config
req=(device_name)
@ -94,7 +104,7 @@ copy-kernel-config() {
write-fstab() {
fn write-fstab
cat <<EOF | sudo tee ${strapdir}/etc/fstab
cat <<EOF | sudo tee ${strapdir}/etc/fstab ${TEEVERBOSE}
## <file system> <mount point> <type> <options> <dump><pass>
## proc
proc /proc proc nodev,noexec,nosuid 0 0

10
sdk
View File

@ -24,14 +24,20 @@ setopt pushdsilent
R=${ARM_SDK:-$PWD}
## load zsh extension "Zuper"
DEBUG=1
QUIET=0
[[ $DEBUG = 1 ]] && {
## add -v to cp calls
CPVERBOSE="-v"
TEEVERBOSE=""
} || [[ $DEBUG = 0 ]] && {
CPVERBOSE=""
TEEVERBOSE=">/dev/null"
}
source lib/zuper/zuper
## global vars
@ -58,7 +64,7 @@ load() {
## initialize binfmt_misc if not already, needed to run qemu
if [[ -f /etc/init.d/binfmt-support ]]; then
sudo /etc/init.d/binfmt-support start
sudo /etc/init.d/binfmt-support restart
else
[[ -d /proc/sys/fs/binfmt_misc ]] || sudo modprobe binfmt_misc
[[ -f /proc/sys/fs/binfmt_misc/register ]] || \