#@TYPE: Machine
#@DESCRIPTION: Machine configuration for running

TARGET_FPU = ""

require conf/machine/include/tune-ppce300c3.inc

KERNEL_IMAGETYPE = "uImage"

EXTRA_IMAGEDEPENDS += "u-boot"
UBOOT_MACHINE = "MPC8315ERDB_config"

SERIAL_CONSOLES = "115200;ttyS0"

MACHINE_FEATURES = "keyboard pci ext2 ext3 serial"

PREFERRED_VERSION_linux-yocto ?= "4.18%"
PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto"

PREFERRED_PROVIDER_virtual/xserver ?= "xserver-xorg"
XSERVER ?= "xserver-xorg \
            xf86-video-fbdev"

UBOOT_ENTRYPOINT = "0x00000000"

KERNEL_DEVICETREE = "mpc8315erdb.dtb"

MACHINE_EXTRA_RRECOMMENDS = "kernel-modules"

IMAGE_FSTYPES ?= "jffs2 tar.bz2"
JFFS2_ERASEBLOCK = "0x4000"

IMAGE_FSTYPES += "wic wic.bmap"
WKS_FILE ?= 'mpc8315e-rdb.wks'
IMAGE_BOOT_FILES ?= "u-boot.bin uImage mpc8315erdb.dtb;dtb"
