summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Rossi <nathan.rossi@xilinx.com>2014-07-08 16:43:12 +1000
committerNathan Rossi <nathan.rossi@xilinx.com>2014-10-27 17:58:43 +1000
commit2add7980d34bf9f558c7ea87b79d07479d50c600 (patch)
treec43fbe018c62ba84c8814397766ff3b3c32e6a97
parent3a81a7e049bd16b762d1fe00fb9f8bc0ddb2eb91 (diff)
downloadmeta-xilinx-2add7980d34bf9f558c7ea87b79d07479d50c600.tar.gz
linux: Add support for linux-yocto config fragments
* Added kernel config fragments for Zynq and MicroBlaze * Includes config fragments specifically for the architecture/SoC and drivers * Feature fragments for features commonly used with Zynq and MicroBlaze platforms that are not yet part of the default yocto kernel configs * Setup the linux-yocto append recipes to add the in layers config/* kernel cache * Remove the use of MACHINE_KCONFIG and MACHINE_DEVICETREE from the linux-yocto recipes Signed-off-by: Nathan Rossi <nathan.rossi@xilinx.com>
-rw-r--r--recipes-kernel/linux/config/xilinx-common/arch/microblaze/microblaze.cfg8
-rw-r--r--recipes-kernel/linux/config/xilinx-common/arch/microblaze/microblaze.scc6
-rw-r--r--recipes-kernel/linux/config/xilinx-common/bsp/microblaze/microblaze-standard.scc14
-rw-r--r--recipes-kernel/linux/config/xilinx-common/bsp/microblaze/microblaze.cfg32
-rw-r--r--recipes-kernel/linux/config/xilinx-common/bsp/microblaze/microblaze.scc14
-rw-r--r--recipes-kernel/linux/config/xilinx-common/bsp/zynq/zynq-standard.scc14
-rw-r--r--recipes-kernel/linux/config/xilinx-common/bsp/zynq/zynq.cfg53
-rw-r--r--recipes-kernel/linux/config/xilinx-common/bsp/zynq/zynq.scc17
-rw-r--r--recipes-kernel/linux/config/xilinx-common/features/mtd/mtd.cfg14
-rw-r--r--recipes-kernel/linux/config/xilinx-common/features/mtd/mtd.scc5
-rw-r--r--recipes-kernel/linux/config/xilinx-common/features/rtc/rtc.cfg1
-rw-r--r--recipes-kernel/linux/config/xilinx-common/features/rtc/rtc.scc4
-rw-r--r--recipes-kernel/linux/config/xilinx-common/features/scsi/scsi-generic.cfg4
-rw-r--r--recipes-kernel/linux/config/xilinx-common/features/scsi/scsi-generic.scc5
-rw-r--r--recipes-kernel/linux/config/xilinx-common/features/uio/uio.cfg2
-rw-r--r--recipes-kernel/linux/config/xilinx-common/features/uio/uio.scc5
-rw-r--r--recipes-kernel/linux/config/xilinx-common/features/xilinx/board-common.cfg30
-rw-r--r--recipes-kernel/linux/config/xilinx-common/features/xilinx/board-common.scc5
-rw-r--r--recipes-kernel/linux/config/xilinx-common/features/xilinx/xilinx-ip.cfg52
-rw-r--r--recipes-kernel/linux/config/xilinx-common/features/xilinx/xilinx-ip.scc5
-rw-r--r--recipes-kernel/linux/config/xilinx-common/features/xilinx/zynq7-ip.cfg64
-rw-r--r--recipes-kernel/linux/config/xilinx-common/features/xilinx/zynq7-ip.scc5
-rw-r--r--recipes-kernel/linux/linux-xilinx-configs.inc11
-rw-r--r--recipes-kernel/linux/linux-xilinx-machines.inc16
-rw-r--r--recipes-kernel/linux/linux-yocto-dev.bbappend5
-rw-r--r--recipes-kernel/linux/linux-yocto_3.10.bbappend6
-rw-r--r--recipes-kernel/linux/linux-yocto_3.14.bbappend5
27 files changed, 392 insertions, 10 deletions
diff --git a/recipes-kernel/linux/config/xilinx-common/arch/microblaze/microblaze.cfg b/recipes-kernel/linux/config/xilinx-common/arch/microblaze/microblaze.cfg
new file mode 100644
index 00000000..06e03a3f
--- /dev/null
+++ b/recipes-kernel/linux/config/xilinx-common/arch/microblaze/microblaze.cfg
@@ -0,0 +1,8 @@
1
2CONFIG_MICROBLAZE=y
3
4# Important for performance and code size optimization
5CONFIG_CC_OPTIMIZE_FOR_SIZE=y
6
7CONFIG_ARCH_REQUIRE_GPIOLIB=y
8
diff --git a/recipes-kernel/linux/config/xilinx-common/arch/microblaze/microblaze.scc b/recipes-kernel/linux/config/xilinx-common/arch/microblaze/microblaze.scc
new file mode 100644
index 00000000..2b3aba2c
--- /dev/null
+++ b/recipes-kernel/linux/config/xilinx-common/arch/microblaze/microblaze.scc
@@ -0,0 +1,6 @@
1
2if [ "$KARCH" = "microblaze" ]; then
3 kconf hardware microblaze.cfg
4 include cfg/timer/hz_100.scc
5fi
6
diff --git a/recipes-kernel/linux/config/xilinx-common/bsp/microblaze/microblaze-standard.scc b/recipes-kernel/linux/config/xilinx-common/bsp/microblaze/microblaze-standard.scc
new file mode 100644
index 00000000..66eaccca
--- /dev/null
+++ b/recipes-kernel/linux/config/xilinx-common/bsp/microblaze/microblaze-standard.scc
@@ -0,0 +1,14 @@
1define KMACHINE microblaze
2define KTYPE standard
3define KARCH microblaze
4
5include ktypes/standard/standard.scc
6
7include bsp/microblaze/microblaze.scc
8
9# Common board drivers
10include features/xilinx/board-common.scc
11
12# default policy for standard kernels
13include features/latencytop/latencytop.scc
14include features/profiling/profiling.scc
diff --git a/recipes-kernel/linux/config/xilinx-common/bsp/microblaze/microblaze.cfg b/recipes-kernel/linux/config/xilinx-common/bsp/microblaze/microblaze.cfg
new file mode 100644
index 00000000..e9dcfb7a
--- /dev/null
+++ b/recipes-kernel/linux/config/xilinx-common/bsp/microblaze/microblaze.cfg
@@ -0,0 +1,32 @@
1
2# Arch Feature Selections
3CONFIG_MMU=y
4
5# Default Arch Configuration
6CONFIG_XILINX_MICROBLAZE0_USE_MSR_INSTR=1
7CONFIG_XILINX_MICROBLAZE0_USE_PCMP_INSTR=1
8CONFIG_XILINX_MICROBLAZE0_USE_BARREL=1
9CONFIG_XILINX_MICROBLAZE0_USE_DIV=0
10CONFIG_XILINX_MICROBLAZE0_USE_HW_MUL=0
11CONFIG_XILINX_MICROBLAZE0_USE_FPU=0
12
13# Memory
14CONFIG_HIGHMEM=y
15
16# Device tree
17CONFIG_PROC_DEVICETREE=y
18
19# Debug
20CONFIG_PRINTK_TIME=y
21CONFIG_EARLY_PRINTK=y
22
23# OF Scan serial devices
24CONFIG_SERIAL_OF_PLATFORM=y
25
26# Disable VT (Non-Functional with MicroBlaze)
27CONFIG_VT=n
28# Disable FTRACE, does not work with MicroBlaze
29CONFIG_FTRACE=n
30# Not supported on MicroBlaze
31CONFIG_SERIO_I8042=n
32
diff --git a/recipes-kernel/linux/config/xilinx-common/bsp/microblaze/microblaze.scc b/recipes-kernel/linux/config/xilinx-common/bsp/microblaze/microblaze.scc
new file mode 100644
index 00000000..955e0275
--- /dev/null
+++ b/recipes-kernel/linux/config/xilinx-common/bsp/microblaze/microblaze.scc
@@ -0,0 +1,14 @@
1include arch/microblaze/microblaze.scc
2
3kconf hardware microblaze.cfg
4
5include features/xilinx/xilinx-ip.scc
6
7include features/scsi/scsi.scc
8include features/scsi/scsi-generic.scc
9include features/scsi/disk.scc
10
11include features/mtd/mtd.scc
12include features/uio/uio.scc
13
14include cfg/fs/debugfs.scc
diff --git a/recipes-kernel/linux/config/xilinx-common/bsp/zynq/zynq-standard.scc b/recipes-kernel/linux/config/xilinx-common/bsp/zynq/zynq-standard.scc
new file mode 100644
index 00000000..05ab5ec1
--- /dev/null
+++ b/recipes-kernel/linux/config/xilinx-common/bsp/zynq/zynq-standard.scc
@@ -0,0 +1,14 @@
1define KMACHINE zynq
2define KTYPE standard
3define KARCH arm
4
5include ktypes/standard/standard.scc
6
7include bsp/zynq/zynq.scc
8
9# Common board drivers
10include features/xilinx/board-common.scc
11
12# default policy for standard kernels
13include features/latencytop/latencytop.scc
14include features/profiling/profiling.scc
diff --git a/recipes-kernel/linux/config/xilinx-common/bsp/zynq/zynq.cfg b/recipes-kernel/linux/config/xilinx-common/bsp/zynq/zynq.cfg
new file mode 100644
index 00000000..3b5e2eb5
--- /dev/null
+++ b/recipes-kernel/linux/config/xilinx-common/bsp/zynq/zynq.cfg
@@ -0,0 +1,53 @@
1
2# Arch Feature Selections
3CONFIG_ARCH_VEXPRESS=y
4CONFIG_ARCH_ZYNQ=y
5CONFIG_VFP=y
6CONFIG_NEON=y
7CONFIG_AEABI=y
8
9# CPU Erratas
10CONFIG_ARM_ERRATA_754322=y
11CONFIG_ARM_ERRATA_754327=y
12CONFIG_ARM_ERRATA_764369=y
13CONFIG_ARM_ERRATA_775420=y
14
15# SMP
16CONFIG_SMP=y
17CONFIG_SCHED_MC=y
18CONFIG_SCHED_SMT=y
19
20# Memory
21CONFIG_HIGHMEM=y
22
23# Power management
24CONFIG_PM_RUNTIME=y
25
26# Thermal
27CONFIG_THERMAL=y
28CONFIG_CPU_THERMAL=y
29
30# CPU Frequency
31CONFIG_CPU_FREQ=y
32CONFIG_CPU_FREQ_STAT_DETAILS=y
33CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE=y
34CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
35CONFIG_CPU_FREQ_GOV_POWERSAVE=y
36CONFIG_CPU_FREQ_GOV_ONDEMAND=y
37CONFIG_CPU_FREQ_GOV_CONSERVATIVE=y
38CONFIG_GENERIC_CPUFREQ_CPU0=y
39CONFIG_CPU_IDLE=y
40CONFIG_ARM_ZYNQ_CPUIDLE=y
41
42# EDAC
43CONFIG_EDAC=y
44CONFIG_EDAC_MM_EDAC=y
45CONFIG_EDAC_ZYNQ=y
46
47# Device tree
48CONFIG_PROC_DEVICETREE=y
49
50# Debug
51CONFIG_PRINTK_TIME=y
52CONFIG_EARLY_PRINTK=y
53
diff --git a/recipes-kernel/linux/config/xilinx-common/bsp/zynq/zynq.scc b/recipes-kernel/linux/config/xilinx-common/bsp/zynq/zynq.scc
new file mode 100644
index 00000000..358f6596
--- /dev/null
+++ b/recipes-kernel/linux/config/xilinx-common/bsp/zynq/zynq.scc
@@ -0,0 +1,17 @@
1kconf hardware zynq.cfg
2
3include cfg/timer/no_hz.scc
4
5include features/xilinx/zynq7-ip.scc
6include features/xilinx/xilinx-ip.scc
7
8include cfg/usb-mass-storage.scc
9
10include features/scsi/scsi.scc
11include features/scsi/scsi-generic.scc
12include features/scsi/disk.scc
13
14include features/mtd/mtd.scc
15include features/uio/uio.scc
16
17include cfg/fs/debugfs.scc
diff --git a/recipes-kernel/linux/config/xilinx-common/features/mtd/mtd.cfg b/recipes-kernel/linux/config/xilinx-common/features/mtd/mtd.cfg
new file mode 100644
index 00000000..17b4ece4
--- /dev/null
+++ b/recipes-kernel/linux/config/xilinx-common/features/mtd/mtd.cfg
@@ -0,0 +1,14 @@
1
2# MTD
3CONFIG_MTD=y
4CONFIG_MTD_CMDLINE_PARTS=y
5CONFIG_MTD_BLOCK=y
6CONFIG_MTD_CFI=y
7CONFIG_MTD_CFI_AMDSTD=y
8CONFIG_MTD_CFI_INTELEXT=y
9CONFIG_MTD_CFI_STAA=y
10CONFIG_MTD_PHYSMAP=y
11CONFIG_MTD_PHYSMAP_OF=y
12CONFIG_MTD_M25P80=y
13CONFIG_MTD_NAND=y
14
diff --git a/recipes-kernel/linux/config/xilinx-common/features/mtd/mtd.scc b/recipes-kernel/linux/config/xilinx-common/features/mtd/mtd.scc
new file mode 100644
index 00000000..48925c6b
--- /dev/null
+++ b/recipes-kernel/linux/config/xilinx-common/features/mtd/mtd.scc
@@ -0,0 +1,5 @@
1define KFEATURE_DESCRIPTION "Enable MTD Support"
2define KFEATURE_COMPATIBILITY board
3
4kconfig hardware mtd.cfg
5
diff --git a/recipes-kernel/linux/config/xilinx-common/features/rtc/rtc.cfg b/recipes-kernel/linux/config/xilinx-common/features/rtc/rtc.cfg
new file mode 100644
index 00000000..70c9c29c
--- /dev/null
+++ b/recipes-kernel/linux/config/xilinx-common/features/rtc/rtc.cfg
@@ -0,0 +1 @@
CONFIG_RTC_CLASS=y
diff --git a/recipes-kernel/linux/config/xilinx-common/features/rtc/rtc.scc b/recipes-kernel/linux/config/xilinx-common/features/rtc/rtc.scc
new file mode 100644
index 00000000..cb1a0a3d
--- /dev/null
+++ b/recipes-kernel/linux/config/xilinx-common/features/rtc/rtc.scc
@@ -0,0 +1,4 @@
1define KFEATURE_DESCRIPTION "Enable RTC Class Support"
2define KFEATURE_COMPATIBILITY board
3
4kconfig hardware rtc.cfg
diff --git a/recipes-kernel/linux/config/xilinx-common/features/scsi/scsi-generic.cfg b/recipes-kernel/linux/config/xilinx-common/features/scsi/scsi-generic.cfg
new file mode 100644
index 00000000..70210a01
--- /dev/null
+++ b/recipes-kernel/linux/config/xilinx-common/features/scsi/scsi-generic.cfg
@@ -0,0 +1,4 @@
1
2# Generic SCSI
3CONFIG_CHR_DEV_SG=y
4CONFIG_SCSI_MULTI_LUN=y
diff --git a/recipes-kernel/linux/config/xilinx-common/features/scsi/scsi-generic.scc b/recipes-kernel/linux/config/xilinx-common/features/scsi/scsi-generic.scc
new file mode 100644
index 00000000..ad4a5681
--- /dev/null
+++ b/recipes-kernel/linux/config/xilinx-common/features/scsi/scsi-generic.scc
@@ -0,0 +1,5 @@
1define KFEATURE_DESCRIPTION "Enable Options for SCSI Generic Support"
2define KFEATURE_COMPATIBILITY board
3
4kconfig hardware scsi-generic.cfg
5
diff --git a/recipes-kernel/linux/config/xilinx-common/features/uio/uio.cfg b/recipes-kernel/linux/config/xilinx-common/features/uio/uio.cfg
new file mode 100644
index 00000000..6c066070
--- /dev/null
+++ b/recipes-kernel/linux/config/xilinx-common/features/uio/uio.cfg
@@ -0,0 +1,2 @@
1CONFIG_UIO=y
2CONFIG_UIO_PDRV_GENIRQ=y
diff --git a/recipes-kernel/linux/config/xilinx-common/features/uio/uio.scc b/recipes-kernel/linux/config/xilinx-common/features/uio/uio.scc
new file mode 100644
index 00000000..9697949a
--- /dev/null
+++ b/recipes-kernel/linux/config/xilinx-common/features/uio/uio.scc
@@ -0,0 +1,5 @@
1define KFEATURE_DESCRIPTION "Enable UIO Support"
2define KFEATURE_COMPATIBILITY board
3
4kconfig hardware uio.cfg
5
diff --git a/recipes-kernel/linux/config/xilinx-common/features/xilinx/board-common.cfg b/recipes-kernel/linux/config/xilinx-common/features/xilinx/board-common.cfg
new file mode 100644
index 00000000..c2afc9a8
--- /dev/null
+++ b/recipes-kernel/linux/config/xilinx-common/features/xilinx/board-common.cfg
@@ -0,0 +1,30 @@
1# Common drivers for Zynq Boards
2
3# Ethernet PHYs
4CONFIG_PHYLIB=y
5CONFIG_MARVELL_PHY=y
6CONFIG_VITESSE_PHY=y
7
8# I2C
9CONFIG_I2C=y
10CONFIG_I2C_CHARDEV=y
11CONFIG_I2C_MUX=y
12CONFIG_I2C_MUX_PCA954x=y
13
14# EEPROM
15CONFIG_EEPROM_AT24=y
16CONFIG_EEPROM_AT25=y
17
18# Hardware monitors
19CONFIG_PMBUS=y
20CONFIG_SENSORS_PMBUS=y
21CONFIG_REGULATOR=y
22CONFIG_SENSORS_UCD9000=y
23CONFIG_SENSORS_UCD9200=y
24
25# RTC drivers
26CONFIG_RTC_DRV_PCF8563=y
27
28# SI570 I2C Device
29CONFIG_COMMON_CLK_SI570=y
30
diff --git a/recipes-kernel/linux/config/xilinx-common/features/xilinx/board-common.scc b/recipes-kernel/linux/config/xilinx-common/features/xilinx/board-common.scc
new file mode 100644
index 00000000..480158ee
--- /dev/null
+++ b/recipes-kernel/linux/config/xilinx-common/features/xilinx/board-common.scc
@@ -0,0 +1,5 @@
1define KFEATURE_DESCRIPTION "Xilinx Evaluation Board Common Drivers"
2define KFEATURE_COMPATIBILITY board
3
4kconfig hardware board-common.cfg
5
diff --git a/recipes-kernel/linux/config/xilinx-common/features/xilinx/xilinx-ip.cfg b/recipes-kernel/linux/config/xilinx-common/features/xilinx/xilinx-ip.cfg
new file mode 100644
index 00000000..bc1c6ee1
--- /dev/null
+++ b/recipes-kernel/linux/config/xilinx-common/features/xilinx/xilinx-ip.cfg
@@ -0,0 +1,52 @@
1
2# Serial/UART
3CONFIG_SERIAL=y
4CONFIG_SERIAL_CONSOLE=y
5CONFIG_SERIAL_8250=y
6CONFIG_SERIAL_8250_CONSOLE=y
7CONFIG_SERIAL_UARTLITE=y
8CONFIG_SERIAL_UARTLITE_CONSOLE=y
9
10# DMA
11CONFIG_DMADEVICES=y
12CONFIG_XILINX_DMA_ENGINES=y
13CONFIG_XILINX_AXIDMA=y
14CONFIG_XILINX_AXIVDMA=y
15CONFIG_XILINX_AXICDMA=y
16
17# Watchdog
18CONFIG_WATCHDOG=y
19CONFIG_XILINX_WATCHDOG=y
20
21# Ethernet
22CONFIG_XILINX_EMACLITE=y
23CONFIG_XILINX_AXI_EMAC=y
24
25# GPIO
26CONFIG_GPIOLIB=y
27CONFIG_OF_GPIO=y
28CONFIG_GPIO_SYSFS=y
29CONFIG_GPIO_XILINX=y
30
31# I2C
32CONFIG_I2C=y
33CONFIG_I2C_XILINX=y
34
35# SPI
36CONFIG_SPI=y
37CONFIG_SPI_XILINX=y
38
39# PCI(e)
40CONFIG_XILINX_AXIPCIE=y
41CONFIG_PCI_MSI=y
42
43# Xilinx Traffic Generator
44CONFIG_XILINX_TRAFGEN=y
45
46# Xilinx XADC
47CONFIG_IIO=y
48CONFIG_XILINX_XADC=y
49
50# Xilinx SYSACE
51CONFIG_XILINX_SYSACE=y
52
diff --git a/recipes-kernel/linux/config/xilinx-common/features/xilinx/xilinx-ip.scc b/recipes-kernel/linux/config/xilinx-common/features/xilinx/xilinx-ip.scc
new file mode 100644
index 00000000..e4f75d7e
--- /dev/null
+++ b/recipes-kernel/linux/config/xilinx-common/features/xilinx/xilinx-ip.scc
@@ -0,0 +1,5 @@
1define KFEATURE_DESCRIPTION "Xilinx Soft IP Core Drivers/Support"
2define KFEATURE_COMPATIBILITY board
3
4kconfig hardware xilinx-ip.cfg
5
diff --git a/recipes-kernel/linux/config/xilinx-common/features/xilinx/zynq7-ip.cfg b/recipes-kernel/linux/config/xilinx-common/features/xilinx/zynq7-ip.cfg
new file mode 100644
index 00000000..340d3fb2
--- /dev/null
+++ b/recipes-kernel/linux/config/xilinx-common/features/xilinx/zynq7-ip.cfg
@@ -0,0 +1,64 @@
1
2# UART
3CONFIG_SERIAL_XILINX_PS_UART=y
4CONFIG_SERIAL_XILINX_PS_UART_CONSOLE=y
5
6# devcfg
7CONFIG_XILINX_DEVCFG=y
8
9# SRAM
10CONFIG_SRAM=y
11
12# DMA
13CONFIG_DMADEVICES=y
14CONFIG_XILINX_DMA_ENGINES=y
15CONFIG_PL330_DMA=y
16
17# PL310
18CONFIG_PL310_ERRATA_588369=y
19CONFIG_PL310_ERRATA_727915=y
20CONFIG_PL310_ERRATA_769419=y
21
22# Watchdog
23CONFIG_WATCHDOG=y
24CONFIG_CADENCE_WATCHDOG=y
25
26# Ethernet
27CONFIG_MACB=y
28CONFIG_XILINX_PS_EMAC=y
29
30# GPIO
31CONFIG_GPIO_SYSFS=y
32CONFIG_GPIO_ZYNQ=y
33
34# I2C
35CONFIG_I2C=y
36CONFIG_I2C_CADENCE=y
37
38# SPI
39CONFIG_SPI=y
40CONFIG_SPI_CADENCE=y
41CONFIG_SPI_ZYNQ_QSPI=y
42
43# CAN
44CONFIG_CAN=y
45CONFIG_CAN_XILINXCAN=y
46
47# MMC/SD
48CONFIG_MMC=y
49CONFIG_MMC_SDHCI=y
50CONFIG_MMC_SDHCI_PLTFM=y
51CONFIG_MMC_SDHCI_OF_ARASAN=y
52
53# NAND
54CONFIG_MTD_NAND_PL353=y
55
56# USB (+otg)
57CONFIG_USB=y
58CONFIG_USB_OTG=y
59CONFIG_USB_EHCI_HCD=y
60CONFIG_USB_EHCI_ZYNQ=y
61CONFIG_USB_ZYNQ_ERRATA_DT654401=y
62CONFIG_USB_GADGET=y
63CONFIG_USB_GADGET_XILINX=y
64
diff --git a/recipes-kernel/linux/config/xilinx-common/features/xilinx/zynq7-ip.scc b/recipes-kernel/linux/config/xilinx-common/features/xilinx/zynq7-ip.scc
new file mode 100644
index 00000000..3a7f8ce4
--- /dev/null
+++ b/recipes-kernel/linux/config/xilinx-common/features/xilinx/zynq7-ip.scc
@@ -0,0 +1,5 @@
1define KFEATURE_DESCRIPTION "Xilinx Zynq 7000 IP Core Drivers/Support"
2define KFEATURE_COMPATIBILITY board
3
4kconfig hardware zynq7-ip.cfg
5
diff --git a/recipes-kernel/linux/linux-xilinx-configs.inc b/recipes-kernel/linux/linux-xilinx-configs.inc
new file mode 100644
index 00000000..4d9efcc3
--- /dev/null
+++ b/recipes-kernel/linux/linux-xilinx-configs.inc
@@ -0,0 +1,11 @@
1# This include file sets up the xilinx config fragments, these
2# fragments build on top of the base config infrastructure provided in
3# the linux-yocto/kernel-yocto recipes and classes in core layer of OE.
4
5FILESEXTRAPATHS_prepend := "${THISDIR}/config:"
6
7SRC_URI_append += " \
8 file://xilinx-common;type=kmeta;destsuffix=xilinx-common \
9 file://xilinx-machine;type=kmeta;destsuffix=xilinx-machine \
10 "
11
diff --git a/recipes-kernel/linux/linux-xilinx-machines.inc b/recipes-kernel/linux/linux-xilinx-machines.inc
new file mode 100644
index 00000000..d448d71a
--- /dev/null
+++ b/recipes-kernel/linux/linux-xilinx-machines.inc
@@ -0,0 +1,16 @@
1# Setup for MicroBlaze and Zynq architectures
2
3COMPATIBLE_MACHINE_zynq = "zynq"
4KMACHINE_zynq ?= "zynq"
5
6COMPATIBLE_MACHINE_microblaze = "microblaze"
7KMACHINE_microblaze ?= "microblaze"
8
9# Default kernel config fragements for specific machines
10
11KERNEL_FEATURES_append_qemumicroblaze += "bsp/qemumicroblaze/qemumicroblaze.scc"
12KERNEL_FEATURES_append_kc705-trd-microblazeel += "bsp/kc705-trd-microblazeel/kc705-trd-microblazeel.scc"
13
14# MicroBlaze is a uImage target, but its not called 'uImage'
15DEPENDS_append_microblaze += "u-boot-mkimage-native"
16
diff --git a/recipes-kernel/linux/linux-yocto-dev.bbappend b/recipes-kernel/linux/linux-yocto-dev.bbappend
index b9b6b9e3..651e0d72 100644
--- a/recipes-kernel/linux/linux-yocto-dev.bbappend
+++ b/recipes-kernel/linux/linux-yocto-dev.bbappend
@@ -1,5 +1,4 @@
1 1
2require linux-machine-common.inc 2require linux-xilinx-configs.inc
3require linux-xilinx-machines.inc
3 4
4COMPATIBLE_MACHINE_zynq = "zynq"
5COMPATIBLE_MACHINE_microblaze = "microblaze"
diff --git a/recipes-kernel/linux/linux-yocto_3.10.bbappend b/recipes-kernel/linux/linux-yocto_3.10.bbappend
index 3601d587..a8b72e04 100644
--- a/recipes-kernel/linux/linux-yocto_3.10.bbappend
+++ b/recipes-kernel/linux/linux-yocto_3.10.bbappend
@@ -1,8 +1,6 @@
1 1
2require linux-machine-common.inc 2require linux-xilinx-configs.inc
3 3require linux-xilinx-machines.inc
4COMPATIBLE_MACHINE_zynq = "zynq"
5COMPATIBLE_MACHINE_microblaze = "microblaze"
6 4
7FILESEXTRAPATHS_prepend := "${THISDIR}/linux-yocto:" 5FILESEXTRAPATHS_prepend := "${THISDIR}/linux-yocto:"
8SRC_URI_append_microblaze += "file://ec2eba55f0c0e74dd39aca14dcc597583cf1eb67.patch" 6SRC_URI_append_microblaze += "file://ec2eba55f0c0e74dd39aca14dcc597583cf1eb67.patch"
diff --git a/recipes-kernel/linux/linux-yocto_3.14.bbappend b/recipes-kernel/linux/linux-yocto_3.14.bbappend
index b9b6b9e3..651e0d72 100644
--- a/recipes-kernel/linux/linux-yocto_3.14.bbappend
+++ b/recipes-kernel/linux/linux-yocto_3.14.bbappend
@@ -1,5 +1,4 @@
1 1
2require linux-machine-common.inc 2require linux-xilinx-configs.inc
3require linux-xilinx-machines.inc
3 4
4COMPATIBLE_MACHINE_zynq = "zynq"
5COMPATIBLE_MACHINE_microblaze = "microblaze"