diff options
Diffstat (limited to 'recipes-kernel/linux/linux-xlnx.inc')
-rw-r--r-- | recipes-kernel/linux/linux-xlnx.inc | 43 |
1 files changed, 25 insertions, 18 deletions
diff --git a/recipes-kernel/linux/linux-xlnx.inc b/recipes-kernel/linux/linux-xlnx.inc index 844fdfd5..50d6ebf1 100644 --- a/recipes-kernel/linux/linux-xlnx.inc +++ b/recipes-kernel/linux/linux-xlnx.inc | |||
@@ -1,4 +1,3 @@ | |||
1 | |||
2 | # This version extension should match CONFIG_LOCALVERSION in defconfig | 1 | # This version extension should match CONFIG_LOCALVERSION in defconfig |
3 | XILINX_RELEASE_VERSION ?= "" | 2 | XILINX_RELEASE_VERSION ?= "" |
4 | LINUX_VERSION_EXTENSION ?= "-xilinx-${XILINX_RELEASE_VERSION}" | 3 | LINUX_VERSION_EXTENSION ?= "-xilinx-${XILINX_RELEASE_VERSION}" |
@@ -10,28 +9,36 @@ SRCBRANCHARG = "${@['nobranch=1', 'branch=${KBRANCH}'][d.getVar('KBRANCH', True) | |||
10 | 9 | ||
11 | FILESOVERRIDES_append = ":${LINUX_VERSION}" | 10 | FILESOVERRIDES_append = ":${LINUX_VERSION}" |
12 | KERNELURI ?= "git://github.com/Xilinx/linux-xlnx.git;protocol=https" | 11 | KERNELURI ?= "git://github.com/Xilinx/linux-xlnx.git;protocol=https" |
13 | SRC_URI = " \ | 12 | SRC_URI = "${KERNELURI};${SRCBRANCHARG}" |
14 | ${KERNELURI};${SRCBRANCHARG} \ | ||
15 | file://xilinx-base;type=kmeta;name=kmeta-xilinx-base;destsuffix=xilinx-base \ | ||
16 | " | ||
17 | 13 | ||
18 | SRCREV_machine ?= "${SRCREV}" | 14 | SRCREV_machine ?= "${SRCREV}" |
19 | 15 | ||
20 | require recipes-kernel/linux/linux-yocto.inc | 16 | require recipes-kernel/linux/linux-yocto.inc |
17 | require linux-microblaze.inc | ||
21 | 18 | ||
22 | DESCRIPTION = "Xilinx Kernel" | 19 | DESCRIPTION = "Xilinx Kernel" |
23 | 20 | ||
24 | require linux-xilinx-configs.inc | 21 | # Force the use of the KBUILD_DEFCONFIG even if some other defconfig was generated in the ${WORKDIR} |
25 | require linux-xilinx-machines.inc | 22 | do_kernel_metadata_prepend () { |
26 | 23 | [ -n "${KBUILD_DEFCONFIG}" ] && [ -e ${WORKDIR}/defconfig ] && rm ${WORKDIR}/defconfig | |
27 | KBUILD_DEFCONFIG_zcu102-zynqmp = "xilinx_zynqmp_defconfig" | 24 | } |
28 | KCONFIG_MODE_zcu102-zynqmp = "alldefconfig" | 25 | |
29 | 26 | # Default to be only compatible with specific machines or soc families | |
30 | KERNEL_FEATURES_append = " bsp/xilinx/soc/linux-xlnx/drivers/xilinx.scc" | 27 | COMPATIBLE_MACHINE ?= "^$" |
31 | KERNEL_FEATURES_append_zynq = " bsp/xilinx/soc/linux-xlnx/drivers/zynq7.scc" | 28 | COMPATIBLE_MACHINE_zynq = ".*" |
32 | KERNEL_FEATURES_append_zynqmp = " \ | 29 | COMPATIBLE_MACHINE_zynqmp = ".*" |
33 | bsp/xilinx/soc/linux-xlnx/drivers/zynqmp.scc \ | 30 | COMPATIBLE_MACHINE_kc705-microblazeel = ".*" |
34 | features/drm/drm-xilinx.scc \ | 31 | |
35 | features/v4l2/v4l2-xilinx.scc \ | 32 | # Use DEFCONFIGs for configuring linux-xlnx kernels |
36 | " | 33 | KCONFIG_MODE ?= "alldefconfig" |
34 | KBUILD_DEFCONFIG_zynqmp = "xilinx_zynqmp_defconfig" | ||
35 | KBUILD_DEFCONFIG_zynq = "xilinx_zynq_defconfig" | ||
36 | KBUILD_DEFCONFIG_microblaze = "mmu_defconfig" | ||
37 | |||
38 | # Add meta-xilinx kmeta, used for MicroBlaze BSP fragments | ||
39 | FILESEXTRAPATHS_prepend := "${THISDIR}:" | ||
40 | SRC_URI_append = " file://xilinx-kmeta;type=kmeta;name=xilinx-kmeta;destsuffix=xilinx-kmeta" | ||
41 | |||
42 | # MicroBlaze BSP fragments | ||
43 | KERNEL_FEATURES_append_kc705-microblazeel = " bsp/kc705-microblazeel/kc705-microblazeel.scc" | ||
37 | 44 | ||