mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
* Add most recent GCC compilers * Remove obsolete compilers * Adjust compiler for RockpiS Uboot * Remove deprecated compiler definitions * Resolve small bug and building Espressobin * Small cleanup
47 lines
1.0 KiB
Plaintext
47 lines
1.0 KiB
Plaintext
source "${BASH_SOURCE%/*}/include/meson64_common.inc"
|
|
|
|
CPUMIN=667000
|
|
CPUMAX=2016000
|
|
GOVERNOR=ondemand
|
|
|
|
if [[ $BRANCH == legacy ]]; then
|
|
|
|
BOOTCONFIG="odroidc4_defconfig"
|
|
BOOTSOURCE='https://github.com/hardkernel/u-boot.git'
|
|
BOOTBRANCH='branch:odroidg12-v2015.01'
|
|
BOOTPATCHDIR='u-boot-odroidn2'
|
|
BOOTDIR='u-boot-odroidc2'
|
|
UBOOT_USE_GCC='< 4.9'
|
|
UBOOT_TOOLCHAIN2="arm-none-eabi-:< 5.0"
|
|
UBOOT_COMPILER="aarch64-none-elf-"
|
|
UBOOT_TARGET_MAP=';;sd_fuse/u-boot.bin'
|
|
BOOTSCRIPT="boot-odroid-c4.ini:boot.ini"
|
|
SERIALCON=ttyS0
|
|
ATF_COMPILE="no"
|
|
LINUXFAMILY=odroidc4
|
|
KERNELSOURCE='https://github.com/hardkernel/linux'
|
|
KERNELBRANCH='branch:odroidg12-4.9.y'
|
|
KERNELDIR='linux-odroid'
|
|
# unstable EXT4 support
|
|
BOOTSIZE="200"
|
|
BOOTFS_TYPE="fat"
|
|
|
|
write_uboot_platform()
|
|
{
|
|
dd if=$1/u-boot.bin of=$2 bs=512 seek=1 conv=fsync > /dev/null 2>&1
|
|
}
|
|
|
|
fi
|
|
|
|
family_tweaks()
|
|
{
|
|
:
|
|
}
|
|
|
|
uboot_custom_postprocess()
|
|
{
|
|
if [[ $BOARD == odroidc4 && $BRANCH != legacy ]]; then
|
|
uboot_g12_postprocess $SRC/cache/sources/amlogic-boot-fip/odroid-c4 g12a
|
|
fi
|
|
}
|