meson: Move board-specific config (Odroid C1) away from family config
Includes change from 7488222b2a
This commit is contained in:
parent
cb7401babf
commit
eb152f4473
@ -4,8 +4,23 @@ BOARDFAMILY="meson8b"
|
||||
BOARD_MAINTAINER=""
|
||||
KERNEL_TARGET="current,edge"
|
||||
|
||||
BOOTDIR='u-boot-odroidc1'
|
||||
BOOTSOURCE='https://github.com/hardkernel/u-boot.git'
|
||||
BOOTBRANCH='branch:odroidc-v2011.03'
|
||||
BOOTPATCHDIR="legacy"
|
||||
UBOOT_COMPILER="arm-linux-gnueabi-"
|
||||
UBOOT_USE_GCC='< 4.9'
|
||||
BOOTCONFIG="odroidc_config"
|
||||
BOOTSCRIPT="boot-odroid-c1.ini:boot.ini"
|
||||
|
||||
UBOOT_TARGET_MAP=';;sd_fuse/bl1.bin.hardkernel sd_fuse/u-boot.bin'
|
||||
|
||||
BOOTSIZE="200"
|
||||
BOOTFS_TYPE="fat"
|
||||
|
||||
write_uboot_platform() {
|
||||
dd if=$1/bl1.bin.hardkernel of=$2 bs=1 count=442 conv=fsync > /dev/null 2>&1
|
||||
dd if=$1/bl1.bin.hardkernel of=$2 bs=512 skip=1 seek=1 conv=fsync > /dev/null 2>&1
|
||||
dd if=$1/u-boot.bin of=$2 bs=512 seek=64 conv=fsync > /dev/null 2>&1
|
||||
dd if=/dev/zero of=$2 seek=1024 count=32 bs=512 conv=fsync > /dev/null 2>&1
|
||||
}
|
||||
|
||||
@ -16,3 +16,7 @@ BOOTFS_TYPE="fat"
|
||||
# FIXED_IMAGE_SIZE=7456
|
||||
|
||||
BOOT_LOGO=desktop
|
||||
|
||||
family_tweaks() {
|
||||
cp $SRC/packages/blobs/splash/armbian-u-boot-24.bmp $SDCARD/boot/boot.bmp
|
||||
}
|
||||
|
||||
@ -19,26 +19,7 @@ CPUMIN=504000
|
||||
CPUMAX=1632000
|
||||
GOVERNOR=ondemand
|
||||
|
||||
case $BOARD in
|
||||
odroidc1)
|
||||
|
||||
BOOTDIR='u-boot-odroidc1'
|
||||
BOOTSOURCE='https://github.com/hardkernel/u-boot.git'
|
||||
BOOTBRANCH='branch:odroidc-v2011.03'
|
||||
BOOTPATCHDIR="legacy"
|
||||
UBOOT_COMPILER="arm-linux-gnueabi-"
|
||||
|
||||
UBOOT_TARGET_MAP=';;sd_fuse/bl1.bin.hardkernel sd_fuse/u-boot.bin'
|
||||
|
||||
write_uboot_platform() {
|
||||
dd if=$1/bl1.bin.hardkernel of=$2 bs=1 count=442 conv=fsync > /dev/null 2>&1
|
||||
dd if=$1/bl1.bin.hardkernel of=$2 bs=512 skip=1 seek=1 conv=fsync > /dev/null 2>&1
|
||||
dd if=$1/u-boot.bin of=$2 bs=512 seek=64 conv=fsync > /dev/null 2>&1
|
||||
dd if=/dev/zero of=$2 seek=1024 count=32 bs=512 conv=fsync > /dev/null 2>&1
|
||||
}
|
||||
|
||||
;;
|
||||
esac
|
||||
SKIP_BOOTSPLASH="yes"
|
||||
|
||||
case $BRANCH in
|
||||
|
||||
@ -55,14 +36,6 @@ case $BRANCH in
|
||||
;;
|
||||
esac
|
||||
|
||||
family_tweaks() {
|
||||
case $BOARD in
|
||||
onecloud)
|
||||
cp $SRC/packages/blobs/splash/armbian-u-boot-24.bmp $SDCARD/boot/boot.bmp
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
family_tweaks_bsp() {
|
||||
mkdir -p "$destination/etc/X11/xorg.conf.d"
|
||||
cat <<- EOF > "$destination/etc/X11/xorg.conf.d/02-driver.conf"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user