aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Rossi <nathan.rossi@xilinx.com>2013-09-17 18:32:25 +1000
committerNathan Rossi <nathan.rossi@xilinx.com>2013-09-17 18:32:25 +1000
commita16dfa56e5b9d17efb3f1ec1e26145eadc5c809c (patch)
treed52835c538db7dc0ec9e15bb37bdfd937ff92306
parent02a46d1a252cda6fb3ba990f2260d6438b6a7921 (diff)
downloadmeta-xilinx-a16dfa56e5b9d17efb3f1ec1e26145eadc5c809c.zip
meta-xilinx-a16dfa56e5b9d17efb3f1ec1e26145eadc5c809c.tar.gz
meta-xilinx-a16dfa56e5b9d17efb3f1ec1e26145eadc5c809c.tar.bz2
linux-xlnx.inc: Remove use of "linux-yocto"
* Remove the dependence on the linux-yocto.inc and linux-yocto classes. * This change is made to make linux-xlnx less dependent on features that are provided by the linux-yocto recipes, and in turn make the linux-xlnx recipe more portable. * Fix-up the individual .bb files where required. Signed-off-by: Nathan Rossi <nathan.rossi@xilinx.com>
-rw-r--r--recipes-kernel/linux/linux-xlnx-dev.bb2
-rw-r--r--recipes-kernel/linux/linux-xlnx.inc42
-rw-r--r--recipes-kernel/linux/linux-xlnx_3.8.bb5
3 files changed, 41 insertions, 8 deletions
diff --git a/recipes-kernel/linux/linux-xlnx-dev.bb b/recipes-kernel/linux/linux-xlnx-dev.bb
index d27f506..95e8af6 100644
--- a/recipes-kernel/linux/linux-xlnx-dev.bb
+++ b/recipes-kernel/linux/linux-xlnx-dev.bb
@@ -25,7 +25,7 @@ KBRANCH_DEFAULT = "master"
include linux-xlnx.inc
-SRC_URI = "git://github.com/Xilinx/linux-xlnx.git;protocol=git;nocheckout=1;branch=${KBRANCH}"
+SRC_URI = "git://github.com/Xilinx/linux-xlnx.git;protocol=git;branch=${KBRANCH}"
# Set default SRCREVs. SRCREVs statically set to prevent network access during
# parsing. If linux-xlnx-dev is the preferred provider, they will be overridden
diff --git a/recipes-kernel/linux/linux-xlnx.inc b/recipes-kernel/linux/linux-xlnx.inc
index e405b37..7d2952c 100644
--- a/recipes-kernel/linux/linux-xlnx.inc
+++ b/recipes-kernel/linux/linux-xlnx.inc
@@ -1,16 +1,24 @@
-inherit kernel
+DESCRIPTION = "Xilinx Kernel"
+SECTION = "kernel"
+LICENSE = "GPLv2"
+
+LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
# This version extension should match CONFIG_LOCALVERSION in defconfig
LINUX_VERSION_EXTENSION ?= "-xilinx"
+PV = "${LINUX_VERSION}${LINUX_VERSION_EXTENSION}+git${SRCREV}"
-require recipes-kernel/linux/linux-yocto.inc
-require linux-machine-common.inc
-
+# Sources
+SRC_URI = "git://github.com/Xilinx/linux-xlnx;protocol=git"
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
FILESEXTRAPATHS_prepend := "${THISDIR}/linux-xlnx:"
-SRC_URI = "git://github.com/Xilinx/linux-xlnx;protocol=git;nocheckout=1"
-PV = "${LINUX_VERSION}${LINUX_VERSION_EXTENSION}+git${SRCREV}"
+# Source Directory
+S = "${WORKDIR}/git"
+
+# Inherit/include base functionality
+inherit kernel
+require linux-machine-common.inc
# Override COMPATIBLE_MACHINE to include your machine in a bbappend file.
COMPATIBLE_MACHINE = "qemumicroblaze|qemuzynq|microblaze|zynq"
@@ -22,3 +30,25 @@ MACHINE_KCONFIG_append_microblaze += "common/microblaze_defconfig_${LINUX_VERSIO
# Add the modules directory to the 'kernel-base' files list
FILES_kernel-base_append = " /lib/modules/${KERNEL_VERSION}/kernel"
+
+# returns all the elements from the src uri that are .cfg files
+def find_config_fragments(d):
+ sources=src_patches(d, True)
+ sources_list=[]
+ for s in sources:
+ if s.endswith('.cfg'):
+ sources_list.append(s)
+ return sources_list
+
+kernel_do_configure_prepend() {
+ # Find all ".cfg" files and cat them together into a .config
+ CFG_FILES="${@" ".join(find_config_fragments(d))}"
+ if [ ! -z "$CFG_FILES" ]; then
+ echo "# Generated by linux-xlnx recipe in meta-xilinx" > "${B}/.config"
+ for i in $CFG_FILES; do
+ echo "Joining configuration file $i"
+ echo "# $i" >> "${B}/.config"
+ cat $i >> "${B}/.config"
+ done
+ fi
+}
diff --git a/recipes-kernel/linux/linux-xlnx_3.8.bb b/recipes-kernel/linux/linux-xlnx_3.8.bb
index ce54dc9..24cf7d4 100644
--- a/recipes-kernel/linux/linux-xlnx_3.8.bb
+++ b/recipes-kernel/linux/linux-xlnx_3.8.bb
@@ -9,5 +9,8 @@ SRCREV = "6a0bedad60e2bca8d9b50bf81b9895e29e31a6d7"
# MicroBlaze patches
SRC_URI_append_microblaze = " \
- file://microblaze-patches_v3.8.scc \
+ file://microblaze_Do_not_use_r6_in_head.S.patch \
+ file://microblaze_Fix_free_init_pages_function.patch \
+ file://microblaze_Fix_initrd_support.patch \
+ file://arch_microblaze_Add_linux.bin.ub_target.patch \
"