summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2016-03-14 13:13:23 -0700
committerKhem Raj <raj.khem@gmail.com>2016-03-14 13:13:23 -0700
commitb06e1b63a2974ca9707397f227dccbedad33c2c7 (patch)
tree6ce3833ecca4e06b459200a4ad7ec8e86ebe16ac
parent4af0126039e5a91f309d175570140e9b74491542 (diff)
parent3d03ad610c5cfa24a5d1302691f0764a0df391c8 (diff)
downloadmeta-altera-b06e1b63a2974ca9707397f227dccbedad33c2c7.tar.gz
Merge pull request #14 from dwesterg/master
Add support for the Stratix10 SW Virtual Platform
-rw-r--r--conf/machine/stratix10swvp.conf39
-rw-r--r--recipes-kernel/linux/linux-altera-configs.inc2
-rw-r--r--recipes-kernel/linux/linux-altera.inc1
3 files changed, 42 insertions, 0 deletions
diff --git a/conf/machine/stratix10swvp.conf b/conf/machine/stratix10swvp.conf
new file mode 100644
index 0000000..f67f48d
--- /dev/null
+++ b/conf/machine/stratix10swvp.conf
@@ -0,0 +1,39 @@
1#@TYPE: Machine
2#@NAME: Altera Stratix10 SWVP
3#@DESCRIPTION: Layer for the Altera Stratix10 Software Virtual Platform
4
5require conf/machine/include/arm/arch-armv8.inc
6
7PREFERRED_PROVIDER_virtual/xserver ?= "xserver-xorg"
8
9XSERVER ?= "xserver-xorg \
10 mesa-driver-swrast \
11 xf86-input-evdev \
12 xf86-input-mouse \
13 xf86-video-fbdev \
14 xf86-input-keyboard"
15
16MACHINE_FEATURES = ""
17
18# Don't include kernels in standard images
19RDEPENDS_kernel-base = ""
20
21KERNEL_PROVIDER ?= "linux-altera"
22PREFERRED_PROVIDER_virtual/kernel ?= "${KERNEL_PROVIDER}"
23
24KERNEL_IMAGETYPE = "Image"
25
26# We have to disable SERIAL_CONSOLE due to auto-serial-console
27#SERIAL_CONSOLE = "115200 ttyAMA0"
28
29# Force auto-serial-console to be used by all image types
30# Ideally this would be part of core oe or as a bbclassappend,
31# but as we don't have an easy way to append a class, defining
32# it here
33EXTRA_IMAGE_FEATURES += "autoserial"
34FEATURE_PACKAGES_autoserial = "auto-serial-console"
35
36# we do not want to have getty running on tty1 as we run
37# auto-serial-console there
38#USE_VT = "0"
39IMAGE_FSTYPES ?= "cpio ext3 tar.gz"
diff --git a/recipes-kernel/linux/linux-altera-configs.inc b/recipes-kernel/linux/linux-altera-configs.inc
index 3e4fd8b..dcb1469 100644
--- a/recipes-kernel/linux/linux-altera-configs.inc
+++ b/recipes-kernel/linux/linux-altera-configs.inc
@@ -1,3 +1,5 @@
1 1
2KBUILD_DEFCONFIG ?= "socfpga_defconfig" 2KBUILD_DEFCONFIG ?= "socfpga_defconfig"
3KBUILD_DEFCONFIG_stratix10swvp ?= "defconfig"
4
3KCONFIG_MODE ?= "--alldefconfig" 5KCONFIG_MODE ?= "--alldefconfig"
diff --git a/recipes-kernel/linux/linux-altera.inc b/recipes-kernel/linux/linux-altera.inc
index a2ece92..c2add2f 100644
--- a/recipes-kernel/linux/linux-altera.inc
+++ b/recipes-kernel/linux/linux-altera.inc
@@ -28,6 +28,7 @@ SRC_URI = "${KERNEL_REPO};protocol=${KERNEL_PROT};branch=${KBRANCH}"
28KERNEL_DEVICETREE_cyclone5 ?= "socfpga_cyclone5_socdk.dtb socfpga_cyclone5_sockit.dtb socfpga_cyclone5_socrates.dtb socfpga_cyclone5_de0_sockit.dtb" 28KERNEL_DEVICETREE_cyclone5 ?= "socfpga_cyclone5_socdk.dtb socfpga_cyclone5_sockit.dtb socfpga_cyclone5_socrates.dtb socfpga_cyclone5_de0_sockit.dtb"
29KERNEL_DEVICETREE_arria5 ?= "socfpga_arria5_socdk.dtb" 29KERNEL_DEVICETREE_arria5 ?= "socfpga_arria5_socdk.dtb"
30KERNEL_DEVICETREE_arria10 ?= "socfpga_arria10_socdk_sdmmc.dtb socfpga_arria10_socdk_qspi.dtb socfpga_arria10_swvp.dtb" 30KERNEL_DEVICETREE_arria10 ?= "socfpga_arria10_socdk_sdmmc.dtb socfpga_arria10_socdk_qspi.dtb socfpga_arria10_swvp.dtb"
31KERNEL_DEVICETREE_stratix10swvp ?= "altera/stratix10_swvp.dtb"
31 32
32require recipes-kernel/linux/linux-yocto.inc 33require recipes-kernel/linux/linux-yocto.inc
33require linux-altera-configs.inc 34require linux-altera-configs.inc