linux-ti-staging: Remove old 3.8 version
PATCH 1/4 linux-ti-staging: Remove old 3.8 version
* The 3.8 version is replaced with v3.12 which has full support for all devices.
* As part of adding a v3.15 version cleanup the v3.8 version to reduce the number of kernels to latest and last stable.
--- recipes-kernel/linux/linux-ti-staging_3.8.bb | 39 -------------------------- 1 file changed, 39 deletions(-) delete mode 100644 recipes-kernel/linux/linux-ti-staging_3.8.bb
recipes-kernel/linux/linux-ti-staging_3.8.bb deleted +0 -39
@@ -1,39 +0,0 @@ -SECTION = "kernel" -DESCRIPTION = "Linux kernel for TI devices" -LICENSE = "GPLv2" -LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" -KERNEL_IMAGETYPE = "uImage" - -inherit kernel - -require recipes-kernel/linux/linux-dtb.inc -require recipes-kernel/linux/setup-defconfig.inc - -# Add a run-time dependency for the PM firmware to be installed -# on the target file system. -RDEPENDS_kernel-base_append_ti33x = " am33x-cm3 am33x-cm3-initscript" - -# Default is to package all dtb files for ti33x devices unless building -# for the specific beaglebone machine. -KERNEL_DEVICETREE_ti33x = "am335x-evm.dtb am335x-evmsk.dtb am335x-bone.dtb" -KERNEL_DEVICETREE_beaglebone = "am335x-bone.dtb" -KERNEL_DEVICETREE_omap5-evm = "omap5-sevm.dtb omap5-uevm.dtb" -KERNEL_DEVICETREE_dra7xx-evm = "dra7-evm.dtb" - -COMPATIBLE_MACHINE = "ti33x|omap-a15" - -S = "${WORKDIR}/git" - -BRANCH = "ti-linux-3.8.y" - -# This commit corresponds to ti2013.04.02 release tag -SRCREV = "f3cb62a800ae37f17a3382b10d155ee02dbc83fc" -PV = "3.8.13" - -# Append to the MACHINE_KERNEL_PR so that a new SRCREV will cause a rebuild -MACHINE_KERNEL_PR_append = "g+gitr${SRCPV}" -PR = "${MACHINE_KERNEL_PR}" - -SRC_URI = "git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git;protocol=git;branch=${BRANCH} \ - file://defconfig \ - "
Signature · 1 line
1.7.9.5
PATCH 2/4 linux-ti-staging: Make files directory version specific
* As we add the next version of the linux-ti-staging kernel there will be a different list of config fragments, removed patches, etc. For this reason it makes sense to have the file directory be version specific
---
...ge-ARM-config-omap-Disable-SMP-for-AM335x.patch | 0
.../baseport.cfg | 0
.../connectivity.cfg | 0
.../defconfig | 0
.../ipc.cfg | 0
.../systest.cfg | 0
recipes-kernel/linux/linux-ti-staging_3.12.bb | 3 +++
7 files changed, 3 insertions(+)
rename recipes-kernel/linux/{linux-ti-staging => linux-ti-staging-3.12}/0001-Not-for-merge-ARM-config-omap-Disable-SMP-for-AM335x.patch (100%)
rename recipes-kernel/linux/{linux-ti-staging => linux-ti-staging-3.12}/baseport.cfg (100%)
rename recipes-kernel/linux/{linux-ti-staging => linux-ti-staging-3.12}/connectivity.cfg (100%)
rename recipes-kernel/linux/{linux-ti-staging => linux-ti-staging-3.12}/defconfig (100%)
rename recipes-kernel/linux/{linux-ti-staging => linux-ti-staging-3.12}/ipc.cfg (100%)
rename recipes-kernel/linux/{linux-ti-staging => linux-ti-staging-3.12}/systest.cfg (100%)recipes-kernel/linux/linux-ti-staging-3.12/0001-Not-for-merge-ARM-config-omap-Disable-SMP-for-AM335x.patch renamed from recipes-kernel/linux/linux-ti-staging/0001-Not-for-merge-ARM-config-omap-Disable-SMP-for-AM335x.patch +0 -0
recipes-kernel/linux/linux-ti-staging-3.12/baseport.cfg renamed from recipes-kernel/linux/linux-ti-staging/baseport.cfg +0 -0
recipes-kernel/linux/linux-ti-staging-3.12/connectivity.cfg renamed from recipes-kernel/linux/linux-ti-staging/connectivity.cfg +0 -0
recipes-kernel/linux/linux-ti-staging-3.12/defconfig renamed from recipes-kernel/linux/linux-ti-staging/defconfig +0 -0
recipes-kernel/linux/linux-ti-staging-3.12/ipc.cfg renamed from recipes-kernel/linux/linux-ti-staging/ipc.cfg +0 -0
recipes-kernel/linux/linux-ti-staging-3.12/systest.cfg renamed from recipes-kernel/linux/linux-ti-staging/systest.cfg +0 -0
recipes-kernel/linux/linux-ti-staging_3.12.bb +3 -0
@@ -8,6 +8,9 @@ inherit kernel require recipes-kernel/linux/linux-dtb.inc require recipes-kernel/linux/setup-defconfig.inc +# Look in the generic major.minor directory for files +FILESEXTRAPATHS_append := "${THISDIR}/${PN}-3.12:" + # Pull in the devicetree files into the rootfs RDEPENDS_kernel-base += "kernel-devicetree"
Signature · 1 line
1.7.9.5
PATCH 3/4 setup-defconfig: allow use of in-kernel config fragments
In reply to Chase Maupin* Allow the use of in-kernel config fragments instead of only pulling config fragments from the OE meta data. The OE meta data fragments will still take precedence over in tree .cfg files.
--- recipes-kernel/linux/setup-defconfig.inc | 36 ++++++++++++++++++++++++++++-- 1 file changed, 34 insertions(+), 2 deletions(-)
recipes-kernel/linux/setup-defconfig.inc +34 -2
@@ -2,6 +2,10 @@ # kernel version string. such as the commit id KERNEL_LOCALVERSION ?= "" +# KERNEL_CONFIG_DIR can be set to specify a subdirectory to search for +# kernel configuration fragments +KERNEL_CONFIG_DIR ?= "" + # Check the defconfig file and see if it points to an in kernel # defconfig that should be used, or if it is a complete config file
@@ -27,10 +31,38 @@ do_configure() { yes '' | oe_runmake oldconfig fi - # check for fragments + # Check for kernel config fragments. First check the files copied from + # the OE meta data since we may want to override kernel config fragments + # in the recipe. If you don't find the fragment in the OE meta data + # then check the kernel sources. If you still can't find it then bail + # with an error. + # Check if any config fragments are specified. if [ ! -z "${KERNEL_CONFIG_FRAGMENTS}" ] then - ( cd ${WORKDIR} && ${S}/scripts/kconfig/merge_config.sh -m -r -O ${S} ${S}/.config ${KERNEL_CONFIG_FRAGMENTS} 1>&2 ) + # Variable to hold the assembled list of fragments with absolute paths + configs="" + + for f in ${KERNEL_CONFIG_FRAGMENTS} + do + # Check if the config fragment was copied into the WORKDIR from + # the OE meta data + if [ -e "${WORKDIR}/$f" ] + then + echo "Found config in workdir" + configs="$configs ""${WORKDIR}/$f" + # Check if the fragement is in the kernel sources + elif [ -e "${S}/${KERNEL_CONFIG_DIR}/$f" ] + then + echo "Found config in kernel" + configs="$configs ""${S}/${KERNEL_CONFIG_DIR}/$f" + else + echo "Could not find kernel config fragment $f" + exit 1 + fi + done + + # Now that all the fragments are located merge them. + ( cd ${WORKDIR} && ${S}/scripts/kconfig/merge_config.sh -m -r -O ${S} ${S}/.config ${configs} 1>&2 ) yes '' | oe_runmake oldconfig fi }
Signature · 1 line
1.7.9.5
Re: [PATCH 3/4] setup-defconfig: allow use of in-kernel config fragments
Quoted 4 lines · Chase Maupin
* Allow the use of in-kernel config fragments instead of only pulling config fragments from the OE meta data. The OE meta data fragments will still take precedence over in tree .cfg files.
I was thinking to do it differently...
Quoted 69 lines
Signed-off-by Chase Maupin <[email protected]>--- recipes-kernel/linux/setup-defconfig.inc | 36 ++++++++++++++++++++++++++++-- 1 file changed, 34 insertions(+), 2 deletions(-)recipes-kernel/linux/setup-defconfig.inc +34
-2@@ -2,6 +2,10 @@ # kernel version string. such as the commit id KERNEL_LOCALVERSION ?= "" +# KERNEL_CONFIG_DIR can be set to specify a subdirectory to search for +# kernel configuration fragments +KERNEL_CONFIG_DIR ?= "" + # Check the defconfig file and see if it points to an in kernel # defconfig that should be used, or if it is a complete config file@@ -27,10 +31,38 @@ do_configure() { yes '' | oe_runmake oldconfig fi - # check for fragments + # Check for kernel config fragments. First check the files copied from + # the OE meta data since we may want to override kernel config fragments + # in the recipe. If you don't find the fragment in the OE meta data + # then check the kernel sources. If you still can't find it then bail + # with an error. + # Check if any config fragments are specified. if [ ! -z "${KERNEL_CONFIG_FRAGMENTS}" ] then - ( cd ${WORKDIR} && ${S}/scripts/kconfig/merge_config.sh -m -r -O ${S} ${S}/.config ${KERNEL_CONFIG_FRAGMENTS} 1>&2 ) + # Variable to hold the assembled list of fragments with absolute paths + configs="" + + for f in ${KERNEL_CONFIG_FRAGMENTS} + do + # Check if the config fragment was copied into the WORKDIR from + # the OE meta data + if [ -e "${WORKDIR}/$f" ] + then + echo "Found config in workdir" + configs="$configs ""${WORKDIR}/$f" + # Check if the fragement is in the kernel sources + elif [ -e "${S}/${KERNEL_CONFIG_DIR}/$f" ] + then + echo "Found config in kernel" + configs="$configs ""${S}/${KERNEL_CONFIG_DIR}/$f" + else + echo "Could not find kernel config fragment $f" + exit 1 + fi + done + + # Now that all the fragments are located merge them. + ( cd ${WORKDIR} && ${S}/scripts/kconfig/merge_config.sh -m -r -O ${S} ${S}/.config ${configs} 1>&2 ) yes '' | oe_runmake oldconfig fi }Signature · 7 lines
1.7.9.5 -- _______________________________________________ meta-ti mailing list [email protected] https://lists.yoctoproject.org/listinfo/meta-ti
Re: [PATCH 3/4] setup-defconfig: allow use of in-kernel config fragments
Quoted 7 lines · Denys Dmytriyenko
Quoted 4 lines · Chase Maupin
* Allow the use of in-kernel config fragments instead of only pulling config fragments from the OE meta data. The OE meta data fragments will still take precedence over in tree .cfg files.
I was thinking to do it differently...
Basically, I was thinking of embedding the path in the KERNEL_CONFIG_FRAGMENTS variable, similar to how KERNEL_DEVICETREE used to do it:
KERNEL_CONFIG_FRAGMENTS = "${WORKDIR}/ipc.cfg ${KERNEL_CONFIG_DIR}/non-smp.cfg"
This way you could have fragments of the same name and choose which one to use. But the logic in setup-defconfig.inc would be much simpler...
Quoted 74 lines
Quoted 69 lines
Signed-off-by Chase Maupin <[email protected]>--- recipes-kernel/linux/setup-defconfig.inc | 36 ++++++++++++++++++++++++++++-- 1 file changed, 34 insertions(+), 2 deletions(-)recipes-kernel/linux/setup-defconfig.inc +34
-2@@ -2,6 +2,10 @@ # kernel version string. such as the commit id KERNEL_LOCALVERSION ?= "" +# KERNEL_CONFIG_DIR can be set to specify a subdirectory to search for +# kernel configuration fragments +KERNEL_CONFIG_DIR ?= "" + # Check the defconfig file and see if it points to an in kernel # defconfig that should be used, or if it is a complete config file@@ -27,10 +31,38 @@ do_configure() { yes '' | oe_runmake oldconfig fi - # check for fragments + # Check for kernel config fragments. First check the files copied from + # the OE meta data since we may want to override kernel config fragments + # in the recipe. If you don't find the fragment in the OE meta data + # then check the kernel sources. If you still can't find it then bail + # with an error. + # Check if any config fragments are specified. if [ ! -z "${KERNEL_CONFIG_FRAGMENTS}" ] then - ( cd ${WORKDIR} && ${S}/scripts/kconfig/merge_config.sh -m -r -O ${S} ${S}/.config ${KERNEL_CONFIG_FRAGMENTS} 1>&2 ) + # Variable to hold the assembled list of fragments with absolute paths + configs="" + + for f in ${KERNEL_CONFIG_FRAGMENTS} + do + # Check if the config fragment was copied into the WORKDIR from + # the OE meta data + if [ -e "${WORKDIR}/$f" ] + then + echo "Found config in workdir" + configs="$configs ""${WORKDIR}/$f" + # Check if the fragement is in the kernel sources + elif [ -e "${S}/${KERNEL_CONFIG_DIR}/$f" ] + then + echo "Found config in kernel" + configs="$configs ""${S}/${KERNEL_CONFIG_DIR}/$f" + else + echo "Could not find kernel config fragment $f" + exit 1 + fi + done + + # Now that all the fragments are located merge them. + ( cd ${WORKDIR} && ${S}/scripts/kconfig/merge_config.sh -m -r -O ${S} ${S}/.config ${configs} 1>&2 ) yes '' | oe_runmake oldconfig fi }Signature · 7 lines
1.7.9.5 -- _______________________________________________ meta-ti mailing list [email protected] https://lists.yoctoproject.org/listinfo/meta-tiSignature · 4 lines
_______________________________________________ meta-ti mailing list [email protected] https://lists.yoctoproject.org/listinfo/meta-ti
Re: [PATCH 3/4] setup-defconfig: allow use of in-kernel config fragments
Quoted 21 lines
-----Original Message-----
From: Dmytriyenko, Denys
Sent: Thursday, May 22, 2014 11:51 AM
To: Maupin, Chase
Cc: [email protected]
Subject: Re: [meta-ti] [PATCH 3/4] setup-defconfig: allow use of in-kernel config fragmentsQuoted 7 lines · Denys Dmytriyenko
Quoted 4 lines · Chase Maupin
* Allow the use of in-kernel config fragments instead of only pulling config fragments from the OE meta data. The OE meta data fragments will still take precedence over in tree .cfg files.
I was thinking to do it differently...
Basically, I was thinking of embedding the path in the
KERNEL_CONFIG_FRAGMENTS
variable, similar to howKERNEL_DEVICETREEused to do it:
Quoted 6 lines
KERNEL_CONFIG_FRAGMENTS= "${WORKDIR}/ipc.cfg
${KERNEL_CONFIG_DIR}/non-smp.cfg"This way you could have fragments of the same name and choose which one to
use. But the logic in setup-defconfig.inc would be much simpler...
I also considered this. I had rejected it because I didn't want to see a bunch of duplicate entries for ${WORKDIR} and ${KERNEL_CONFIG_DIR}. You are right though that it makes the setup-defconfig simpler.
Maybe a use case to consider is whether we think we would have fragments in more than 2 locations. i.e. one in WORKDIR, another in directory x of the kernel, and another in directory y of the kernel. If we think this would be reasonable to support then your method makes more sense. What do you think?
Quoted 93 lines
Quoted 5 lines
Quoted 5 lines
Signed-off-by Chase Maupin <[email protected]>--- recipes-kernel/linux/setup-defconfig.inc | 36++++++++++++++++++++++++++++--
Quoted 3 lines
Review
Quoted 3 lines
1 file changed, 34 insertions(+), 2 deletions(-)(quoted diff) +0
-0b/recipes-kernel/linux/setup-defconfig.inc
Quoted 8 lines
recipes-kernel/linux/setup-defconfig.inc line 5
Quoted 8 lines
index 4277f26..fbe7e96 100644
recipes-kernel/linux/setup-defconfig.inc +1
-0@@ -2,6 +2,10 @@ # kernel version string. such as the commit id KERNEL_LOCALVERSION ?= "" +# KERNEL_CONFIG_DIR can be set to specify a subdirectory tosearch for
Quoted 4 lines
recipes-kernel/linux/setup-defconfig.inc
Quoted 4 lines
recipes-kernel/linux/setup-defconfig.inc +3
-0+# kernel configuration fragments +KERNEL_CONFIG_DIR ?= "" + # Check the defconfig file and see if it points to an inkernel
Quoted 1 line
recipes-kernel/linux/setup-defconfig.inc line 10
Quoted 1 line
recipes-kernel/linux/setup-defconfig.inc +0
-0# defconfig that should be used, or if it is a completeconfig file
Quoted 7 lines
recipes-kernel/linux/setup-defconfig.inc do_configure() { · line 34
Quoted 7 lines
recipes-kernel/linux/setup-defconfig.inc +1
-1@@ -27,10 +31,38 @@ do_configure() { yes '' | oe_runmake oldconfig fi - # check for fragments + # Check for kernel config fragments. First check thefiles copied from
Quoted 1 line
recipes-kernel/linux/setup-defconfig.inc do_configure() { · line 35
Quoted 1 line
recipes-kernel/linux/setup-defconfig.inc +1
-0+ # the OE meta data since we may want to override kernelconfig fragments
Quoted 1 line
recipes-kernel/linux/setup-defconfig.inc do_configure() { · line 36
Quoted 1 line
recipes-kernel/linux/setup-defconfig.inc +1
-0+ # in the recipe. If you don't find the fragment in theOE meta data
Quoted 1 line
recipes-kernel/linux/setup-defconfig.inc do_configure() { · line 37
Quoted 1 line
recipes-kernel/linux/setup-defconfig.inc +1
-0+ # then check the kernel sources. If you still can't findit then bail
Quoted 5 lines
recipes-kernel/linux/setup-defconfig.inc do_configure() {
Quoted 5 lines
recipes-kernel/linux/setup-defconfig.inc +2
-1+ # with an error. + # Check if any config fragments are specified. if [ ! -z "${KERNEL_CONFIG_FRAGMENTS}" ] then - ( cd ${WORKDIR} &&
${S}/scripts/kconfig/merge_config.sh-m -r -O ${S} ${S}/.config ${KERNEL_CONFIG_FRAGMENTS} 1>&2 )Quoted 1 line
recipes-kernel/linux/setup-defconfig.inc do_configure() { · line 42
Quoted 1 line
recipes-kernel/linux/setup-defconfig.inc +1
-0+ # Variable to hold the assembled list of fragmentswith absolute paths
Quoted 5 lines
recipes-kernel/linux/setup-defconfig.inc do_configure() {
Quoted 5 lines
recipes-kernel/linux/setup-defconfig.inc +5
-0+ configs="" + + for f in ${KERNEL_CONFIG_FRAGMENTS} + do + # Check if the config fragment was copied intothe WORKDIR from
Quoted 10 lines
recipes-kernel/linux/setup-defconfig.inc do_configure() {
Quoted 10 lines
recipes-kernel/linux/setup-defconfig.inc +10
-0+ # the OE meta data + if [ -e "${WORKDIR}/$f" ] + then + echo "Found config in workdir" + configs="$configs ""${WORKDIR}/$f" + # Check if the fragement is in the kernel sources + elif [ -e "${S}/${KERNEL_CONFIG_DIR}/$f" ] + then + echo "Found config in kernel" + configs="$configs""${S}/${KERNEL_CONFIG_DIR}/$f"
Quoted 2 lines
recipes-kernel/linux/setup-defconfig.inc do_configure() { · line 59
Quoted 2 lines
recipes-kernel/linux/setup-defconfig.inc +2
-0+ else + echo "Could not find kernel config fragment$f"
Quoted 6 lines
recipes-kernel/linux/setup-defconfig.inc do_configure() {
Quoted 6 lines
recipes-kernel/linux/setup-defconfig.inc +6
-0+ exit 1 + fi + done + + # Now that all the fragments are located merge them. + ( cd ${WORKDIR} &&
${S}/scripts/kconfig/merge_config.sh-m -r -O ${S} ${S}/.config ${configs} 1>&2 )Quoted 16 lines
Quoted 11 lines
recipes-kernel/linux/setup-defconfig.inc +0
-1yes '' | oe_runmake oldconfig fi } --1.7.9.5
--
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti--
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti
Re: [PATCH 3/4] setup-defconfig: allow use of in-kernel config fragments
Quoted 28 lines · Chase
Quoted 21 lines
-----Original Message-----
From: Dmytriyenko, Denys
Sent: Thursday, May 22, 2014 11:51 AM
To: Maupin, Chase
Cc: [email protected]
Subject: Re: [meta-ti] [PATCH 3/4] setup-defconfig: allow use of in-kernel config fragmentsQuoted 7 lines · Denys Dmytriyenko
Quoted 4 lines · Chase Maupin
* Allow the use of in-kernel config fragments instead of only pulling config fragments from the OE meta data. The OE meta data fragments will still take precedence over in tree .cfg files.
I was thinking to do it differently...
Basically, I was thinking of embedding the path in the
KERNEL_CONFIG_FRAGMENTS
variable, similar to howKERNEL_DEVICETREEused to do it:Quoted 6 lines
KERNEL_CONFIG_FRAGMENTS= "${WORKDIR}/ipc.cfg
${KERNEL_CONFIG_DIR}/non-smp.cfg"This way you could have fragments of the same name and choose which one to
use. But the logic in setup-defconfig.inc would be much simpler...
Quoted 8 lines
I also considered this. I had rejected it because I didn't want to see a bunch of duplicate entries for ${WORKDIR} and ${KERNEL_CONFIG_DIR}. You are right though that it makes the setup-defconfig simpler.
Maybe a use case to consider is whether we think we would have fragments in more than 2 locations. i.e. one in WORKDIR, another in directory x of the kernel, and another in directory y of the kernel. If we think this would be reasonable to support then your method makes more sense. What do you think?
Another possible location could be inside a separate git repository. Which I was considering initially, as I didn't know where Dan would create it...
Quoted 91 lines
Quoted 91 lines
Quoted 3 lines
Quoted 3 lines
Signed-off-by Chase Maupin <[email protected]>--- recipes-kernel/linux/setup-defconfig.inc | 36++++++++++++++++++++++++++++--
Quoted 3 lines
Review
Quoted 3 lines
1 file changed, 34 insertions(+), 2 deletions(-)(quoted diff) +0
-0b/recipes-kernel/linux/setup-defconfig.inc
Quoted 8 lines
recipes-kernel/linux/setup-defconfig.inc line 5
Quoted 8 lines
index 4277f26..fbe7e96 100644
recipes-kernel/linux/setup-defconfig.inc +1
-0@@ -2,6 +2,10 @@ # kernel version string. such as the commit id KERNEL_LOCALVERSION ?= "" +# KERNEL_CONFIG_DIR can be set to specify a subdirectory tosearch for
Quoted 4 lines
recipes-kernel/linux/setup-defconfig.inc
Quoted 4 lines
recipes-kernel/linux/setup-defconfig.inc +3
-0+# kernel configuration fragments +KERNEL_CONFIG_DIR ?= "" + # Check the defconfig file and see if it points to an inkernel
Quoted 1 line
recipes-kernel/linux/setup-defconfig.inc line 10
Quoted 1 line
recipes-kernel/linux/setup-defconfig.inc +0
-0# defconfig that should be used, or if it is a completeconfig file
Quoted 7 lines
recipes-kernel/linux/setup-defconfig.inc do_configure() { · line 34
Quoted 7 lines
recipes-kernel/linux/setup-defconfig.inc +1
-1@@ -27,10 +31,38 @@ do_configure() { yes '' | oe_runmake oldconfig fi - # check for fragments + # Check for kernel config fragments. First check thefiles copied from
Quoted 1 line
recipes-kernel/linux/setup-defconfig.inc do_configure() { · line 35
Quoted 1 line
recipes-kernel/linux/setup-defconfig.inc +1
-0+ # the OE meta data since we may want to override kernelconfig fragments
Quoted 1 line
recipes-kernel/linux/setup-defconfig.inc do_configure() { · line 36
Quoted 1 line
recipes-kernel/linux/setup-defconfig.inc +1
-0+ # in the recipe. If you don't find the fragment in theOE meta data
Quoted 1 line
recipes-kernel/linux/setup-defconfig.inc do_configure() { · line 37
Quoted 1 line
recipes-kernel/linux/setup-defconfig.inc +1
-0+ # then check the kernel sources. If you still can't findit then bail
Quoted 5 lines
recipes-kernel/linux/setup-defconfig.inc do_configure() {
Quoted 5 lines
recipes-kernel/linux/setup-defconfig.inc +2
-1+ # with an error. + # Check if any config fragments are specified. if [ ! -z "${KERNEL_CONFIG_FRAGMENTS}" ] then - ( cd ${WORKDIR} &&
${S}/scripts/kconfig/merge_config.sh-m -r -O ${S} ${S}/.config ${KERNEL_CONFIG_FRAGMENTS} 1>&2 )Quoted 1 line
recipes-kernel/linux/setup-defconfig.inc do_configure() { · line 42
Quoted 1 line
recipes-kernel/linux/setup-defconfig.inc +1
-0+ # Variable to hold the assembled list of fragmentswith absolute paths
Quoted 5 lines
recipes-kernel/linux/setup-defconfig.inc do_configure() {
Quoted 5 lines
recipes-kernel/linux/setup-defconfig.inc +5
-0+ configs="" + + for f in ${KERNEL_CONFIG_FRAGMENTS} + do + # Check if the config fragment was copied intothe WORKDIR from
Quoted 10 lines
recipes-kernel/linux/setup-defconfig.inc do_configure() {
Quoted 10 lines
recipes-kernel/linux/setup-defconfig.inc +10
-0+ # the OE meta data + if [ -e "${WORKDIR}/$f" ] + then + echo "Found config in workdir" + configs="$configs ""${WORKDIR}/$f" + # Check if the fragement is in the kernel sources + elif [ -e "${S}/${KERNEL_CONFIG_DIR}/$f" ] + then + echo "Found config in kernel" + configs="$configs""${S}/${KERNEL_CONFIG_DIR}/$f"
Quoted 2 lines
recipes-kernel/linux/setup-defconfig.inc do_configure() { · line 59
Quoted 2 lines
recipes-kernel/linux/setup-defconfig.inc +2
-0+ else + echo "Could not find kernel config fragment$f"
Quoted 6 lines
recipes-kernel/linux/setup-defconfig.inc do_configure() {
Quoted 6 lines
recipes-kernel/linux/setup-defconfig.inc +6
-0+ exit 1 + fi + done + + # Now that all the fragments are located merge them. + ( cd ${WORKDIR} &&
${S}/scripts/kconfig/merge_config.sh-m -r -O ${S} ${S}/.config ${configs} 1>&2 )Quoted 16 lines
Quoted 11 lines
recipes-kernel/linux/setup-defconfig.inc +0
-1yes '' | oe_runmake oldconfig fi } --1.7.9.5
--
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti--
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti
Re: [PATCH 3/4] setup-defconfig: allow use of in-kernel config fragments
Quoted 54 lines
-----Original Message-----
From: Dmytriyenko, Denys
Sent: Thursday, May 22, 2014 12:36 PM
To: Maupin, Chase
Cc: [email protected]
Subject: Re: [meta-ti] [PATCH 3/4] setup-defconfig: allow use of in-kernel config fragmentsQuoted 6 lines · Chase
Quoted 6 lines
-----Original Message-----
From: Dmytriyenko, Denys
Sent: Thursday, May 22, 2014 11:51 AM
To: Maupin, Chase
Cc: [email protected]
Subject: Re: [meta-ti] [PATCH 3/4] setup-defconfig: allow useof
Quoted 3 lines
Quoted 3 lines
in-kernel config fragments
On Thu, May 22, 2014 at 12:19:01PM -0400, Denys Dmytriyenko
Quoted 2 lines · wrote:
Quoted 2 lines
Quoted 2 lines · Chase Maupin
Quoted 1 line
* Allow the use of in-kernel config fragments instead of
only
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
pulling config fragments from the OE meta data. The OE
meta
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
data fragments will still take precedence over in tree
.cfg
Quoted 8 lines
Quoted 8 lines
Quoted 3 lines
Quoted 1 line
files.
I was thinking to do it differently...
Basically, I was thinking of embedding the path in the
KERNEL_CONFIG_FRAGMENTS
variable, similar to howKERNEL_DEVICETREEused to do it:Quoted 6 lines
Quoted 6 lines
KERNEL_CONFIG_FRAGMENTS= "${WORKDIR}/ipc.cfg
${KERNEL_CONFIG_DIR}/non-smp.cfg"This way you could have fragments of the same name and choose which one to
use. But the logic in setup-defconfig.inc would be muchsimpler...
Quoted 2 lines
I also considered this. I had rejected it because I didn't want
to see a
Quoted 1 line
bunch of duplicate entries for ${WORKDIR} and
${KERNEL_CONFIG_DIR}. You are
Quoted 3 lines
right though that it makes the setup-defconfig simpler.
Maybe a use case to consider is whether we think we would have
fragments in
Quoted 1 line
more than 2 locations. i.e. one in WORKDIR, another in
directory x of the
Quoted 1 line
kernel, and another in directory y of the kernel. If we think
Quoted 8 lines
this would be
Quoted 1 line
reasonable to support then your method makes more sense. What
do you think?
Another possible location could be inside a separate git repository. Which I
was considering initially, as I didn't know where Dan would create it...
So it sounds like it would be better if I let the PATH be in the config fragment name. I'll rework this and send v2.
Quoted 100 lines
Quoted 10 lines
Quoted 10 lines
Quoted 5 lines
Quoted 5 lines
Signed-off-by Chase Maupin <[email protected]>--- recipes-kernel/linux/setup-defconfig.inc | 36++++++++++++++++++++++++++++--
Quoted 3 lines
Review
Quoted 3 lines
1 file changed, 34 insertions(+), 2 deletions(-)(quoted diff) +0
-0b/recipes-kernel/linux/setup-defconfig.inc
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
recipes-kernel/linux/setup-defconfig.inc line 5
Quoted 8 lines
index 4277f26..fbe7e96 100644
recipes-kernel/linux/setup-defconfig.inc +1
-0@@ -2,6 +2,10 @@ # kernel version string. such as the commit id KERNEL_LOCALVERSION ?= "" +# KERNEL_CONFIG_DIR can be set to specify a subdirectoryto
Quoted 9 lines
Quoted 9 lines
search for
Quoted 4 lines
recipes-kernel/linux/setup-defconfig.inc
Quoted 4 lines
recipes-kernel/linux/setup-defconfig.inc +3
-0+# kernel configuration fragments +KERNEL_CONFIG_DIR ?= "" + # Check the defconfig file and see if it points to an inkernel
Quoted 1 line
recipes-kernel/linux/setup-defconfig.inc line 10
Quoted 1 line
recipes-kernel/linux/setup-defconfig.inc +0
-0# defconfig that should be used, or if it is a completeconfig file
Quoted 1 line
Quoted 1 line
Quoted 8 lines
Quoted 8 lines
Quoted 6 lines
recipes-kernel/linux/setup-defconfig.inc do_configure() { · line 34
Quoted 6 lines
recipes-kernel/linux/setup-defconfig.inc +1
-1@@ -27,10 +31,38 @@ do_configure() { yes '' | oe_runmake oldconfig fi - # check for fragments + # Check for kernel config fragments. First check thefiles copied from
Quoted 1 line
Quoted 1 line
recipes-kernel/linux/setup-defconfig.inc +1
-0+ # the OE meta data since we may want to overridekernel
Quoted 2 lines
Quoted 2 lines
config fragments
Quoted 1 line
Quoted 1 line
recipes-kernel/linux/setup-defconfig.inc +1
-0+ # in the recipe. If you don't find the fragment inthe
Quoted 2 lines
Quoted 2 lines
OE meta data
Quoted 1 line
Quoted 1 line
recipes-kernel/linux/setup-defconfig.inc +1
-0+ # then check the kernel sources. If you still can'tfind
Quoted 15 lines
Quoted 15 lines
it then bail
Quoted 5 lines
recipes-kernel/linux/setup-defconfig.inc do_configure() {
Quoted 5 lines
recipes-kernel/linux/setup-defconfig.inc +2
-1+ # with an error. + # Check if any config fragments are specified. if [ ! -z "${KERNEL_CONFIG_FRAGMENTS}" ] then - ( cd ${WORKDIR} &&
${S}/scripts/kconfig/merge_config.sh-m -r -O ${S} ${S}/.config ${KERNEL_CONFIG_FRAGMENTS} 1>&2 )Quoted 1 line
recipes-kernel/linux/setup-defconfig.inc do_configure() { · line 42
Quoted 1 line
recipes-kernel/linux/setup-defconfig.inc +1
-0+ # Variable to hold the assembled list of fragmentswith absolute paths
Quoted 5 lines
Quoted 5 lines
recipes-kernel/linux/setup-defconfig.inc +5
-0+ configs="" + + for f in ${KERNEL_CONFIG_FRAGMENTS} + do + # Check if the config fragment was copied intoQuoted 7 lines
Quoted 7 lines
the WORKDIR from
Quoted 6 lines
Quoted 6 lines
recipes-kernel/linux/setup-defconfig.inc +6
-0+ # the OE meta data + if [ -e "${WORKDIR}/$f" ] + then + echo "Found config in workdir" + configs="$configs ""${WORKDIR}/$f" + # Check if the fragement is in the kernelsources
Quoted 7 lines
Quoted 7 lines
Quoted 4 lines
recipes-kernel/linux/setup-defconfig.inc do_configure() {
Quoted 4 lines
recipes-kernel/linux/setup-defconfig.inc +4
-0+ elif [ -e "${S}/${KERNEL_CONFIG_DIR}/$f" ] + then + echo "Found config in kernel" + configs="$configs""${S}/${KERNEL_CONFIG_DIR}/$f"
Quoted 2 lines
Quoted 2 lines
recipes-kernel/linux/setup-defconfig.inc +2
-0+ else + echo "Could not find kernel configfragment
Quoted 6 lines
Quoted 6 lines
$f"
Quoted 5 lines
Quoted 5 lines
recipes-kernel/linux/setup-defconfig.inc +5
-0+ exit 1 + fi + done + + # Now that all the fragments are located mergethem.
Quoted 19 lines
Quoted 19 lines
Quoted 1 line
recipes-kernel/linux/setup-defconfig.inc do_configure() { · line 65
Quoted 1 line
recipes-kernel/linux/setup-defconfig.inc +1
-0+ ( cd ${WORKDIR} &&
${S}/scripts/kconfig/merge_config.sh-m -r -O ${S} ${S}/.config ${configs} 1>&2 )Quoted 16 lines
Quoted 11 lines
recipes-kernel/linux/setup-defconfig.inc +0
-1yes '' | oe_runmake oldconfig fi } --1.7.9.5
--
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti--
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti
PATCH 4/4 linux-ti-staging: Add version 3.15 of TI integration kernel
In reply to Chase Maupin* Add version 3.15 of the TI integration kernel. Major changes from previous version are:
* Config fragments now come primarily from the integration tree. Removed baseport and connectivity fragments for now and the others can be removed as they are added to the integration tree.
* Added a non-smp.cfg config to disable SMP for single core devices instead of using a patch to the defconfig file as we did in the past.
---
.../defconfig | 0
.../ipc.cfg | 0
.../linux/linux-ti-staging-3.15/non-smp.cfg | 5 +++++
.../systest.cfg | 0
...ti-staging_3.12.bb => linux-ti-staging_3.15.bb} | 20 +++++++++-----------
5 files changed, 14 insertions(+), 11 deletions(-)
copy recipes-kernel/linux/{linux-mainline => linux-ti-staging-3.15}/defconfig (100%)
copy recipes-kernel/linux/{linux-ti-staging-3.12 => linux-ti-staging-3.15}/ipc.cfg (100%)
create mode 100644 recipes-kernel/linux/linux-ti-staging-3.15/non-smp.cfg
copy recipes-kernel/linux/{linux-ti-staging-3.12 => linux-ti-staging-3.15}/systest.cfg (100%)
copy recipes-kernel/linux/{linux-ti-staging_3.12.bb => linux-ti-staging_3.15.bb} (75%)recipes-kernel/linux/linux-ti-staging-3.15/defconfig renamed from recipes-kernel/linux/linux-mainline/defconfig +0 -0
recipes-kernel/linux/linux-ti-staging-3.15/ipc.cfg renamed from recipes-kernel/linux/linux-ti-staging-3.12/ipc.cfg +0 -0
recipes-kernel/linux/linux-ti-staging-3.15/non-smp.cfg new file +5 -0
@@ -0,0 +1,5 @@ +################################################## +# Non-SMP config options +################################################## +CONFIG_SMP=n +CONFIG_NR_CPUS=n
recipes-kernel/linux/linux-ti-staging-3.15/systest.cfg renamed from recipes-kernel/linux/linux-ti-staging-3.12/systest.cfg +0 -0
recipes-kernel/linux/linux-ti-staging_3.15.bb renamed from recipes-kernel/linux/linux-ti-staging_3.12.bb +9 -11
@@ -9,7 +9,7 @@ require recipes-kernel/linux/linux-dtb.inc require recipes-kernel/linux/setup-defconfig.inc # Look in the generic major.minor directory for files -FILESEXTRAPATHS_append := "${THISDIR}/${PN}-3.12:" +FILESEXTRAPATHS_append := "${THISDIR}/${PN}-3.15:" # Pull in the devicetree files into the rootfs RDEPENDS_kernel-base += "kernel-devicetree"
@@ -37,25 +37,23 @@ COMPATIBLE_MACHINE = "ti33x|ti43x|omap-a15" S = "${WORKDIR}/git" -BRANCH = "ti-linux-3.12.y" +BRANCH = "ti-linux-3.15.y" SRCREV = "f0d4672333685697320f4907d5b4d3919121c299" -PV = "3.12.17" +PV = "3.14+3.15-rc6" # Append to the MACHINE_KERNEL_PR so that a new SRCREV will cause a rebuild -MACHINE_KERNEL_PR_append = "b+gitr${SRCPV}" +MACHINE_KERNEL_PR_append = "c+gitr${SRCPV}" PR = "${MACHINE_KERNEL_PR}" -KERNEL_CONFIG_FRAGMENTS = "baseport.cfg connectivity.cfg ipc.cfg" +KERNEL_CONFIG_DIR = "arch/arm/configs/ti_config_fragments" +KERNEL_CONFIG_FRAGMENTS = "ipc.cfg" +KERNEL_CONFIG_FRAGMENTS_append_ti33x = "non-smp.cfg" +KERNEL_CONFIG_FRAGMENTS_append_ti43x = "non-smp.cfg" SRC_URI = "git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git;protocol=git;branch=${BRANCH} \ file://defconfig \ - file://baseport.cfg \ - file://connectivity.cfg \ file://ipc.cfg \ file://systest.cfg \ + file://non-smp.cfg \ " - -# Disable SMP in defconfig on single-core platforms to reduce overhead -SRC_URI_append_ti33x = "file://0001-Not-for-merge-ARM-config-omap-Disable-SMP-for-AM335x.patch" -SRC_URI_append_ti43x = "file://0001-Not-for-merge-ARM-config-omap-Disable-SMP-for-AM335x.patch"
Signature · 1 line
1.7.9.5