[meta-lsi] [PATCH 62/86] linux-yocto: Add support for building from GITHUB public repo

Daniel Dragomir daniel.dragomir at windriver.com
Wed Oct 29 08:36:10 PDT 2014


From: Paul Butler <paul.butler at windriver.com>

- Add support for building also from the LSI GitHub public repo depending
what .inc files is included. This choice is done by setting the LSI_SRC
variable in the build's local.conf file.
- By default, with LSI_SRC not set in local.conf, the Kernel will be
fetched from YOCTO repos. This is done because LSI_SRC is set to
"linux-yocto" in receipes. local.conf will overwrite it.
LSI_SRC ?= "linux-yocto"

Signed-off-by: Paul Butler <paul.butler at windriver.com>
---
 recipes-kernel/linux/linux-yocto-rt_3.10.bbappend | 3 ++-
 recipes-kernel/linux/linux-yocto-rt_3.10.inc      | 3 +++
 recipes-kernel/linux/linux-yocto-rt_3.4.bbappend  | 1 +
 recipes-kernel/linux/linux-yocto-rt_3.4.inc       | 1 +
 recipes-kernel/linux/linux-yocto_3.10.bbappend    | 1 +
 recipes-kernel/linux/linux-yocto_3.4.bbappend     | 4 +++-
 recipes-kernel/linux/linux-yocto_3.4.inc          | 2 +-
 recipes-kernel/linux/lsi-public-rt_3.10.inc       | 8 ++++++++
 recipes-kernel/linux/lsi-public-rt_3.4.inc        | 8 ++++++++
 recipes-kernel/linux/lsi-public_3.10.inc          | 8 ++++++++
 recipes-kernel/linux/lsi-public_3.4.inc           | 8 ++++++++
 11 files changed, 44 insertions(+), 3 deletions(-)
 create mode 100644 recipes-kernel/linux/lsi-public-rt_3.10.inc
 create mode 100644 recipes-kernel/linux/lsi-public-rt_3.4.inc
 create mode 100644 recipes-kernel/linux/lsi-public_3.10.inc
 create mode 100644 recipes-kernel/linux/lsi-public_3.4.inc

diff --git a/recipes-kernel/linux/linux-yocto-rt_3.10.bbappend b/recipes-kernel/linux/linux-yocto-rt_3.10.bbappend
index 3d06e7e..d25cec5 100644
--- a/recipes-kernel/linux/linux-yocto-rt_3.10.bbappend
+++ b/recipes-kernel/linux/linux-yocto-rt_3.10.bbappend
@@ -3,10 +3,11 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}/linux-3.10/${KARCH}:${THISDIR}:"
 LSI_KERNEL_TAG = "8.8.1.18"
 LINUX_KERNEL_TYPE = "preempt-rt"
 LINUX_VERSION = "3.10.17-${LSI_KERNEL_TAG}"
+LSI_SRC ?= "linux-yocto"
 
 require ${LSI_SRC}-rt_3.10.inc
 
-SRC_URI = "${KREPO};nocheckout=1;branch=${KBRANCH},${KMETA};name=machine,meta"
+SRC_URI = "${KREPO};bareclone=1;branch=${KBRANCH},${KMETA};name=machine,meta"
 
 SRC_URI += "file://defconfig"
 SRC_URI += "file://fit"
diff --git a/recipes-kernel/linux/linux-yocto-rt_3.10.inc b/recipes-kernel/linux/linux-yocto-rt_3.10.inc
index e8f7ba5..8a807c6 100644
--- a/recipes-kernel/linux/linux-yocto-rt_3.10.inc
+++ b/recipes-kernel/linux/linux-yocto-rt_3.10.inc
@@ -1,6 +1,9 @@
 
 require linux-yocto.inc
 
+LINUX_VERSION = "3.10.38"
+
+#KBRANCH = "standard/preempt-rt/axxia/base"
 KBRANCH = "standard/axxia/base"
 KREPO = "git://git.yoctoproject.org/linux-yocto-3.10.git"
 
diff --git a/recipes-kernel/linux/linux-yocto-rt_3.4.bbappend b/recipes-kernel/linux/linux-yocto-rt_3.4.bbappend
index 91d4fd7..7d67514 100644
--- a/recipes-kernel/linux/linux-yocto-rt_3.4.bbappend
+++ b/recipes-kernel/linux/linux-yocto-rt_3.4.bbappend
@@ -3,6 +3,7 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}/linux-3.4/${KARCH}:${THISDIR}:"
 LSI_KERNEL_TAG = "7.8.1.36"
 LINUX_KERNEL_TYPE = "preempt-rt"
 LINUX_VERSION = "3.4.43-${LSI_KERNEL_TAG}"
+LSI_SRC ?= "linux-yocto"
 
 require ${LSI_SRC}-rt_3.4.inc
 
diff --git a/recipes-kernel/linux/linux-yocto-rt_3.4.inc b/recipes-kernel/linux/linux-yocto-rt_3.4.inc
index 9388c77..f9477e9 100644
--- a/recipes-kernel/linux/linux-yocto-rt_3.4.inc
+++ b/recipes-kernel/linux/linux-yocto-rt_3.4.inc
@@ -1,6 +1,7 @@
 
 require linux-yocto.inc
 
+#KBRANCH = "standard/preempt-rt/axxia/base"
 KBRANCH = "standard/axxia/base"
 KREPO = "git://git.yoctoproject.org/linux-yocto-3.4.git"
 
diff --git a/recipes-kernel/linux/linux-yocto_3.10.bbappend b/recipes-kernel/linux/linux-yocto_3.10.bbappend
index 0411d00..e0aea98 100644
--- a/recipes-kernel/linux/linux-yocto_3.10.bbappend
+++ b/recipes-kernel/linux/linux-yocto_3.10.bbappend
@@ -3,6 +3,7 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}/linux-3.10/${KARCH}:${THISDIR}:"
 LSI_KERNEL_TAG = "8.8.1.18"
 LINUX_KERNEL_TYPE = "standard"
 LINUX_VERSION = "3.10.17-${LSI_KERNEL_TAG}"
+LSI_SRC ?= "linux-yocto"
 
 require ${LSI_SRC}_3.10.inc
 
diff --git a/recipes-kernel/linux/linux-yocto_3.4.bbappend b/recipes-kernel/linux/linux-yocto_3.4.bbappend
index 81df1c9..bb5685e 100644
--- a/recipes-kernel/linux/linux-yocto_3.4.bbappend
+++ b/recipes-kernel/linux/linux-yocto_3.4.bbappend
@@ -1,8 +1,10 @@
 FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}/linux-3.4/${KARCH}:${THISDIR}:"
 
-LSI_KERNEL_TAG = "7.8.1.36"
 LINUX_KERNEL_TYPE = "standard"
+
+LSI_KERNEL_TAG = "7.8.1.36"
 LINUX_VERSION = "3.4.43-${LSI_KERNEL_TAG}"
+LSI_SRC ?= "linux-yocto"
 
 require ${LSI_SRC}_3.4.inc
 
diff --git a/recipes-kernel/linux/linux-yocto_3.4.inc b/recipes-kernel/linux/linux-yocto_3.4.inc
index 13a3e7c..48201b3 100644
--- a/recipes-kernel/linux/linux-yocto_3.4.inc
+++ b/recipes-kernel/linux/linux-yocto_3.4.inc
@@ -1,7 +1,7 @@
 
 require linux-yocto.inc
 
-LINUX_VERSION = "3.4.88-${LSI_KERNEL_TAG}"
+LINUX_VERSION = "3.4.88"
 
 KBRANCH = "standard/axxia/base"
 KREPO = "git://git.yoctoproject.org/linux-yocto-3.4.git"
diff --git a/recipes-kernel/linux/lsi-public-rt_3.10.inc b/recipes-kernel/linux/lsi-public-rt_3.10.inc
new file mode 100644
index 0000000..ba44d15
--- /dev/null
+++ b/recipes-kernel/linux/lsi-public-rt_3.10.inc
@@ -0,0 +1,8 @@
+
+require linux-yocto.inc
+
+KBRANCH = "standard/preempt-rt/lsi/base"
+KREPO = "git://github.com/lsigithub/lsi_axxia_yocto_public_3.10.git"
+
+SRCREV_machine="a1524b72b73f75c14f216802e6ba6fdb0d3e9c1f"
+SRCREV_meta="43dd30e1955545a264fda63b4f66bb8f5cd875f9"
\ No newline at end of file
diff --git a/recipes-kernel/linux/lsi-public-rt_3.4.inc b/recipes-kernel/linux/lsi-public-rt_3.4.inc
new file mode 100644
index 0000000..3fbe86b
--- /dev/null
+++ b/recipes-kernel/linux/lsi-public-rt_3.4.inc
@@ -0,0 +1,8 @@
+
+require linux-yocto.inc
+
+KBRANCH = "standard/preempt-rt/lsi/base"
+KREPO = "git://github.com/lsigithub/lsi_axxia_yocto_public.git"
+
+SRCREV_machine="5931a20fcfe5bbce0a0451649d8c42005f4f71be"
+SRCREV_meta="1bab5bd090948b4cc4c4ed57c834603a3cf9f235"
\ No newline at end of file
diff --git a/recipes-kernel/linux/lsi-public_3.10.inc b/recipes-kernel/linux/lsi-public_3.10.inc
new file mode 100644
index 0000000..58258ec
--- /dev/null
+++ b/recipes-kernel/linux/lsi-public_3.10.inc
@@ -0,0 +1,8 @@
+
+require linux-yocto.inc
+
+KBRANCH = "standard/lsi/base"
+KREPO = "git://github.com/lsigithub/lsi_axxia_yocto_public_3.10.git"
+
+SRCREV_machine="92b92afd4d72774aad889b8ed6154a423ffaddb0"
+SRCREV_meta="43dd30e1955545a264fda63b4f66bb8f5cd875f9"
\ No newline at end of file
diff --git a/recipes-kernel/linux/lsi-public_3.4.inc b/recipes-kernel/linux/lsi-public_3.4.inc
new file mode 100644
index 0000000..e45bf39
--- /dev/null
+++ b/recipes-kernel/linux/lsi-public_3.4.inc
@@ -0,0 +1,8 @@
+
+require linux-yocto.inc
+
+KBRANCH = "standard/lsi/base"
+KREPO = "git://github.com/lsigithub/lsi_axxia_yocto_public.git"
+
+SRCREV_machine="db8ca45ff5d93e20bae41cdfa939040df94e4860"
+SRCREV_meta="1bab5bd090948b4cc4c4ed57c834603a3cf9f235"
\ No newline at end of file
-- 
1.8.1.4



More information about the meta-lsi mailing list