mirror of https://github.com/parazyd/arm-sdk.git
114 lines
3.2 KiB
Bash
114 lines
3.2 KiB
Bash
#!/usr/bin/env zsh
|
|
# Copyright (c) 2016-2020 Ivan J. <parazyd@dyne.org>
|
|
# This file is part of arm-sdk
|
|
#
|
|
# This source code is free software: you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
# (at your option) any later version.
|
|
#
|
|
# This software is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# 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/>.
|
|
|
|
# Options for `make` when building kernels
|
|
MAKEOPTS="-j$(( $(grep -c 'processor' /proc/cpuinfo) + 1 ))"
|
|
|
|
# Comment if you wish to disable stage4 archives for faster rebuilding
|
|
CPIO_STAGE4=1
|
|
|
|
# Comment if you wish to disable image compression
|
|
COMPRESS_IMAGE=1
|
|
|
|
armhftc="arm-linux-gnueabihf-"
|
|
armeltc="arm-none-eabi-"
|
|
arm64tc="aarch64-linux-gnu-"
|
|
|
|
export PATH="$PATH:/usr/sbin:/sbin:/usr/bin:/bin:$R/gcc/or1k-linux-musl/bin"
|
|
|
|
# Static qemu arm binaries
|
|
armel_qemu_bin="/usr/bin/qemu-arm-static"
|
|
armhf_qemu_bin="/usr/bin/qemu-arm-static"
|
|
arm64_qemu_bin="/usr/bin/qemu-aarch64-static"
|
|
|
|
# extra_packages for all images
|
|
extra_packages+=(fake-hwclock busybox-static ntp)
|
|
extra_packages+=(pciutils usbutils)
|
|
purge_packages+=()
|
|
|
|
# Linux kernel firmware
|
|
linuxfirmware="https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git"
|
|
|
|
# Linux mainline kernel
|
|
linuxmainline="git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git"
|
|
|
|
# u-boot mainline
|
|
ubootmainline="git://git.denx.de/u-boot.git"
|
|
|
|
arrs+=(uboot_configs board_dtbs)
|
|
uboot_configs=(
|
|
A10-OLinuXino-Lime_defconfig
|
|
A20-OLinuXino-Lime2_defconfig
|
|
A20-OLinuXino-Lime_defconfig
|
|
A20-OLinuXino_MICRO_defconfig
|
|
Bananapi_defconfig
|
|
Bananapro_defconfig
|
|
CHIP_defconfig
|
|
CHIP_pro_defconfig
|
|
Cubieboard2_defconfig
|
|
Cubieboard4_defconfig
|
|
Cubieboard_defconfig
|
|
Cubietruck_defconfig
|
|
Cubietruck_plus_defconfig
|
|
Lamobo_R1_defconfig
|
|
orangepi_2_defconfig
|
|
Orangepi_defconfig
|
|
orangepi_lite_defconfig
|
|
Orangepi_mini_defconfig
|
|
orangepi_pc_defconfig
|
|
orangepi_plus_defconfig
|
|
orangepi_plus2e_defconfig
|
|
orangepi_zero_defconfig
|
|
q8_a33_tablet_1024x600_defconfig
|
|
q8_a33_tablet_800x480_defconfig
|
|
Sinovoip_BPI_M2_defconfig
|
|
)
|
|
board_dtbs=(
|
|
sun4i-a10-olinuxino-lime.dtb
|
|
sun7i-a20-olinuxino-lime2.dtb
|
|
sun7i-a20-olinuxino-lime.dtb
|
|
sun7i-a20-olinuxino-micro.dtb
|
|
sun7i-a20-bananapi.dtb
|
|
sun7i-a20-bananapro.dtb
|
|
sun5i-r8-chip.dtb
|
|
sun5i-gr8-chip-pro.dtb
|
|
sun7i-a20-cubieboard2.dtb
|
|
sun9i-a80-cubieboard4.dtb
|
|
sun4i-a10-cubieboard.dtb
|
|
sun7i-a20-cubietruck.dtb
|
|
sun8i-a83t-cubietruck-plus.dtb
|
|
sun7i-a20-lamobo-r1.dtb
|
|
sun8i-h3-orangepi-2.dtb
|
|
sun7i-a20-orangepi.dtb
|
|
sun8i-h3-orangepi-lite.dtb
|
|
sun7i-a20-orangepi-mini.dtb
|
|
sun8i-h3-orangepi-pc.dtb
|
|
sun8i-h3-orangepi-plus.dtb
|
|
sun8i-h3-orangepi-plus2e.dtb
|
|
sun8i-h2-plus-orangepi-zero.dtb
|
|
sun8i-a33-q8-tablet.dtb
|
|
sun6i-a31s-sinovoip-bpi-m2.dtb
|
|
)
|
|
|
|
## http://git.denx.de/?p=u-boot.git;a=blob;f=board/sunxi/README.pine64
|
|
uboot64_configs=(
|
|
pine64_plus_defconfig
|
|
)
|
|
board64_dtbs=(
|
|
allwinner/sun50i-a64-pine64-plus.dtb
|
|
)
|