Drop aarch64 host toolchain dependencies

This commit is contained in:
zador-blood-stained
2017-08-20 22:03:28 +03:00
parent 595cae9141
commit ced43bf527
7 changed files with 32 additions and 15 deletions

View File

@@ -5,10 +5,10 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -y dist-upgrade &&
pv bc lzop zip binfmt-support build-essential ccache debootstrap ntpdate gawk gcc-arm-linux-gnueabihf \
qemu-user-static u-boot-tools uuid-dev zlib1g-dev unzip libusb-1.0-0-dev ntpdate parted pkg-config libncurses5-dev whiptail \
debian-keyring debian-archive-keyring f2fs-tools libfile-fcntllock-perl rsync libssl-dev nfs-kernel-server btrfs-tools \
gcc-aarch64-linux-gnu ncurses-term p7zip-full dos2unix dosfstools libc6-dev-armhf-cross libc6-dev-arm64-cross \
curl gcc-arm-none-eabi libnewlib-arm-none-eabi patchutils python liblz4-tool libpython2.7-dev linux-base swig libpython-dev \
systemd-container udev distcc libstdc++-arm-none-eabi-newlib gcc-4.9-arm-linux-gnueabihf gcc-4.9-aarch64-linux-gnu \
g++-4.9-arm-linux-gnueabihf g++-4.9-aarch64-linux-gnu g++-5-aarch64-linux-gnu g++-5-arm-linux-gnueabihf lib32stdc++6 \
ncurses-term p7zip-full dos2unix dosfstools libc6-dev-armhf-cross \
curl patchutils python liblz4-tool libpython2.7-dev linux-base swig libpython-dev \
systemd-container udev distcc gcc-4.9-arm-linux-gnueabihf \
g++-4.9-arm-linux-gnueabihf g++-5-arm-linux-gnueabihf lib32stdc++6 \
libc6-i386 lib32ncurses5 lib32tinfo5 locales ncurses-base zlib1g:i386 aptly pixz
RUN locale-gen en_US.UTF-8
ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' LC_ALL='en_US.UTF-8' TERM=screen

View File

@@ -2,6 +2,8 @@ BOOTSOURCE=$MAINLINE_UBOOT_SOURCE
BOOTDIR=$MAINLINE_UBOOT_DIR
BOOTBRANCH=$MAINLINE_UBOOT_BRANCH
UBOOT_USE_GCC='> 7.0'
case $BOARD in
nanopik2)
BOOTSCRIPT="boot-meson64.cmd:boot.cmd"
@@ -25,11 +27,16 @@ case $BRANCH in
KERNELSOURCE='https://github.com/150balbes/Amlogic_s905-kernel'
KERNELBRANCH='branch:armbian'
KERNELDIR='linux-meson64'
KERNEL_USE_GCC='> 7.0'
;;
dev)
KERNELSOURCE=$MAINLINE_KERNEL_SOURCE
KERNELBRANCH='branch:master'
KERNELDIR=$MAINLINE_KERNEL_DIR
KERNEL_USE_GCC='> 7.0'
;;
esac

View File

@@ -1,5 +1,5 @@
ARCH=arm64
KERNEL_IMAGE_TYPE='Image'
KERNEL_IMAGE_TYPE=Image
HAS_UUID_SUPPORT=yes
#OFFSET=2
@@ -9,7 +9,6 @@ BOOTSOURCE=$MAINLINE_UBOOT_SOURCE
BOOTDIR=$MAINLINE_UBOOT_DIR
BOOTBRANCH=$MAINLINE_UBOOT_BRANCH
BOOTENV_FILE='clearfog-default.txt'
HAS_UUID_SUPPORT=yes
@@ -18,13 +17,16 @@ case $BRANCH in
KERNELSOURCE='https://github.com/MarvellEmbeddedProcessors/linux-marvell.git'
KERNELBRANCH='branch:linux-4.4.52-armada-17.08'
KERNELDIR='linux-marvell'
KERNEL_IMAGE_TYPE='Image'
KERNEL_USE_GCC='> 6.0'
;;
next)
KERNELSOURCE=$MAINLINE_KERNEL_SOURCE
KERNELBRANCH=$MAINLINE_KERNEL_BRANCH
KERNELDIR=$MAINLINE_KERNEL_DIR
KERNEL_USE_GCC='> 7.0'
;;
dev)
@@ -32,7 +34,7 @@ case $BRANCH in
KERNELBRANCH='branch:master'
KERNELDIR='linux-marvell'
KERNEL_USE_GCC='> 6.1'
KERNEL_USE_GCC='> 7.0'
;;
esac
@@ -40,7 +42,6 @@ CPUMIN=250000
CPUMAX=800000
GOVERNOR=ondemand
write_uboot_platform()
{
# dd if=$1/u-boot.mmc of=$2 bs=512 seek=1 status=noxfer > /dev/null 2>&1

View File

@@ -1,7 +1,6 @@
BOOTSOURCE='https://github.com/hardkernel/u-boot.git'
BOOTBRANCH='branch:odroidc2-v2015.01'
BOOTDIR='u-boot-odroidc2'
UBOOT_USE_GCC='< 5.0'
BOOTSCRIPT="boot-odroid-c2.ini:boot.ini"
UBOOT_TARGET_MAP='ARCH=arm;;sd_fuse/bl1.bin.hardkernel sd_fuse/u-boot.bin'
@@ -11,6 +10,8 @@ HAS_UUID_SUPPORT=yes
# NOTE: This u-boot version incorrectly parses boot.scr header
# due to wrong data type for 64 bit compiler, so boot.scr doesn't work
UBOOT_USE_GCC='== 4.9'
ARCH=arm64
KERNEL_IMAGE_TYPE=Image
@@ -19,16 +20,24 @@ case $BRANCH in
KERNELSOURCE='https://github.com/hardkernel/linux'
KERNELBRANCH='branch:odroidc2-3.14.y'
KERNELDIR='linux-odroidc2'
KERNEL_USE_GCC='> 5.0'
;;
next)
KERNELSOURCE=$MAINLINE_KERNEL_SOURCE
KERNELBRANCH='branch:linux-4.12.y'
KERNELDIR=$MAINLINE_KERNEL_DIR
KERNEL_USE_GCC='> 7.0'
;;
dev)
KERNELSOURCE=$MAINLINE_KERNEL_SOURCE
KERNELBRANCH='branch:master'
KERNELDIR=$MAINLINE_KERNEL_DIR
KERNEL_USE_GCC='> 7.0'
;;
esac

View File

@@ -4,7 +4,6 @@ BOOTDIR='u-boot-s5p6818'
BOOTSCRIPT='boot-s5p6818.cmd:boot.cmd'
BOOTENV_FILE='s5p6818-default.txt'
UBOOT_TARGET_MAP=";;boot.img"
UBOOT_USE_GCC='> 6.0'

View File

@@ -34,6 +34,7 @@ case $BRANCH in
KERNELSOURCE='https://github.com/ayufan-pine64/linux-pine64'
KERNELBRANCH='branch:my-hacks-1.2'
KERNELDIR='linux-pine64'
KERNEL_USE_GCC='> 5.0'
GOVERNOR=interactive
INITRD_ARCH=arm

View File

@@ -463,8 +463,8 @@ prepare_host()
local hostdeps="wget ca-certificates device-tree-compiler pv bc lzop zip binfmt-support build-essential ccache debootstrap ntpdate \
gawk gcc-arm-linux-gnueabihf qemu-user-static u-boot-tools uuid-dev zlib1g-dev unzip libusb-1.0-0-dev \
parted pkg-config libncurses5-dev whiptail debian-keyring debian-archive-keyring f2fs-tools libfile-fcntllock-perl rsync libssl-dev \
nfs-kernel-server btrfs-tools gcc-aarch64-linux-gnu ncurses-term p7zip-full dos2unix dosfstools libc6-dev-armhf-cross \
libc6-dev-arm64-cross curl gcc-arm-none-eabi libnewlib-arm-none-eabi patchutils python liblz4-tool libpython2.7-dev linux-base swig libpython-dev \
nfs-kernel-server btrfs-tools ncurses-term p7zip-full dos2unix dosfstools libc6-dev-armhf-cross \
curl patchutils python liblz4-tool libpython2.7-dev linux-base swig libpython-dev \
locales ncurses-base pixz"
local codename=$(lsb_release -sc)
@@ -474,8 +474,8 @@ prepare_host()
fi
if [[ $codename == xenial ]]; then
hostdeps="$hostdeps systemd-container udev distcc libstdc++-arm-none-eabi-newlib gcc-4.9-arm-linux-gnueabihf \
gcc-4.9-aarch64-linux-gnu g++-4.9-arm-linux-gnueabihf g++-4.9-aarch64-linux-gnu g++-5-aarch64-linux-gnu \
hostdeps="$hostdeps systemd-container udev distcc gcc-4.9-arm-linux-gnueabihf \
g++-4.9-arm-linux-gnueabihf \
g++-5-arm-linux-gnueabihf lib32stdc++6 libc6-i386 lib32ncurses5 lib32tinfo5 aptly"
grep -q i386 <(dpkg --print-foreign-architectures) || dpkg --add-architecture i386
if systemd-detect-virt -q -c; then