42 lines
1.4 KiB
Plaintext
42 lines
1.4 KiB
Plaintext
# Pinecube
|
|
#
|
|
# Sochip S3 SoC
|
|
# ARMv7 Processor rev 5 (v7l)
|
|
# Allwinner sun8i Family
|
|
# half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm
|
|
#
|
|
# There apparently is some support for the device in mainline kernel,
|
|
# let's see how far can we take it.
|
|
|
|
|
|
# Architecture tuning
|
|
require conf/machine/include/sun8i.inc
|
|
require conf/machine/include/arm/feature-arm-dsp.inc
|
|
require conf/machine/include/arm/feature-arm-idiv.inc
|
|
|
|
# Available machine features
|
|
MACHINE_FEATURES = "ext2 rtc serial usbhost vfat wifi"
|
|
|
|
# Kernel and device tree
|
|
PREFERRED_PROVIDER_virtual/kernel = "linux-yocto"
|
|
PREFERRED_VERSION_virtual/kernel = "6.1%"
|
|
KERNEL_DEVICETREE = "sun8i-s3-pinecube.dtb"
|
|
MACHINE_EXTRA_RRECOMMENDS = "kernel-modules kernel-devicetree"
|
|
|
|
# Serial console
|
|
SERIAL_CONSOLES ?= "115200;ttyS0"
|
|
SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}"
|
|
|
|
# Bootloader
|
|
EXTRA_IMAGEDEPENDS += "virtual/bootloader"
|
|
PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot"
|
|
SPL_BINARY = "u-boot-sunxi-with-spl.bin"
|
|
UBOOT_MACHINE = "pinecube_defconfig"
|
|
|
|
# wic SD card image
|
|
IMAGE_FSTYPES += " wic"
|
|
WKS_FILE = "pinecube.wks"
|
|
do_image_wic[depends] += "mtools-native:do_populate_sysroot dosfstools-native:do_populate_sysroot virtual/bootloader:do_deploy"
|
|
IMAGE_BOOT_FILES ?= "${SPL_BINARY} boot.scr ${KERNEL_IMAGETYPE} ${KERNEL_DEVICETREE}"
|
|
MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-image kernel-devicetree"
|