diff options
| author | Khem Raj <raj.khem@gmail.com> | 2016-03-14 13:13:23 -0700 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2016-03-14 13:13:23 -0700 |
| commit | b06e1b63a2974ca9707397f227dccbedad33c2c7 (patch) | |
| tree | 6ce3833ecca4e06b459200a4ad7ec8e86ebe16ac | |
| parent | 4af0126039e5a91f309d175570140e9b74491542 (diff) | |
| parent | 3d03ad610c5cfa24a5d1302691f0764a0df391c8 (diff) | |
| download | meta-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.conf | 39 | ||||
| -rw-r--r-- | recipes-kernel/linux/linux-altera-configs.inc | 2 | ||||
| -rw-r--r-- | recipes-kernel/linux/linux-altera.inc | 1 |
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 | |||
| 5 | require conf/machine/include/arm/arch-armv8.inc | ||
| 6 | |||
| 7 | PREFERRED_PROVIDER_virtual/xserver ?= "xserver-xorg" | ||
| 8 | |||
| 9 | XSERVER ?= "xserver-xorg \ | ||
| 10 | mesa-driver-swrast \ | ||
| 11 | xf86-input-evdev \ | ||
| 12 | xf86-input-mouse \ | ||
| 13 | xf86-video-fbdev \ | ||
| 14 | xf86-input-keyboard" | ||
| 15 | |||
| 16 | MACHINE_FEATURES = "" | ||
| 17 | |||
| 18 | # Don't include kernels in standard images | ||
| 19 | RDEPENDS_kernel-base = "" | ||
| 20 | |||
| 21 | KERNEL_PROVIDER ?= "linux-altera" | ||
| 22 | PREFERRED_PROVIDER_virtual/kernel ?= "${KERNEL_PROVIDER}" | ||
| 23 | |||
| 24 | KERNEL_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 | ||
| 33 | EXTRA_IMAGE_FEATURES += "autoserial" | ||
| 34 | FEATURE_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" | ||
| 39 | IMAGE_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 | ||
| 2 | KBUILD_DEFCONFIG ?= "socfpga_defconfig" | 2 | KBUILD_DEFCONFIG ?= "socfpga_defconfig" |
| 3 | KBUILD_DEFCONFIG_stratix10swvp ?= "defconfig" | ||
| 4 | |||
| 3 | KCONFIG_MODE ?= "--alldefconfig" | 5 | KCONFIG_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}" | |||
| 28 | KERNEL_DEVICETREE_cyclone5 ?= "socfpga_cyclone5_socdk.dtb socfpga_cyclone5_sockit.dtb socfpga_cyclone5_socrates.dtb socfpga_cyclone5_de0_sockit.dtb" | 28 | KERNEL_DEVICETREE_cyclone5 ?= "socfpga_cyclone5_socdk.dtb socfpga_cyclone5_sockit.dtb socfpga_cyclone5_socrates.dtb socfpga_cyclone5_de0_sockit.dtb" |
| 29 | KERNEL_DEVICETREE_arria5 ?= "socfpga_arria5_socdk.dtb" | 29 | KERNEL_DEVICETREE_arria5 ?= "socfpga_arria5_socdk.dtb" |
| 30 | KERNEL_DEVICETREE_arria10 ?= "socfpga_arria10_socdk_sdmmc.dtb socfpga_arria10_socdk_qspi.dtb socfpga_arria10_swvp.dtb" | 30 | KERNEL_DEVICETREE_arria10 ?= "socfpga_arria10_socdk_sdmmc.dtb socfpga_arria10_socdk_qspi.dtb socfpga_arria10_swvp.dtb" |
| 31 | KERNEL_DEVICETREE_stratix10swvp ?= "altera/stratix10_swvp.dtb" | ||
| 31 | 32 | ||
| 32 | require recipes-kernel/linux/linux-yocto.inc | 33 | require recipes-kernel/linux/linux-yocto.inc |
| 33 | require linux-altera-configs.inc | 34 | require linux-altera-configs.inc |
