Skip to content

Commit

Permalink
meson: Move board-specific config (Odroid C1) away from family config
Browse files Browse the repository at this point in the history
Includes change from 7488222
  • Loading branch information
hzyitc authored and ColorfulRhino committed Jun 25, 2024
1 parent 2937ceb commit a7f471a
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 28 deletions.
15 changes: 15 additions & 0 deletions config/boards/odroidc1.csc
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
4 changes: 4 additions & 0 deletions config/boards/onecloud.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
29 changes: 1 addition & 28 deletions config/sources/families/include/meson_common.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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"
Expand Down

0 comments on commit a7f471a

Please sign in to comment.