setup-defconfig: allow use of in-kernel config fragments
PATCH v2 3/4 setup-defconfig: allow use of in-kernel config fragments
* Allow the use of in-kernel config fragments instead of only pulling config fragments from the OE meta data.
* The absolute path to the config fragment is used to allow pointing to different fragment locations.
* Update the linux-ti-staging_3.12 recipe which uses config fragments to specify the absolute path
---
* Updated in version 2
* Use absolute paths in the config fragment list instead of just searching two paths inside of setup-config.inc.
* Update the linux-ti-staging_3.12 kernel recipe which uses config fragments to use the absolute path to the fragments.
--- recipes-kernel/linux/linux-ti-staging_3.12.bb | 3 ++- recipes-kernel/linux/setup-defconfig.inc | 24 +++++++++++++++++++++++- 2 files changed, 25 insertions(+), 2 deletions(-)
recipes-kernel/linux/linux-ti-staging_3.12.bb +2 -1
@@ -46,7 +46,8 @@ PV = "3.12.17" MACHINE_KERNEL_PR_append = "b+gitr${SRCPV}" PR = "${MACHINE_KERNEL_PR}" -KERNEL_CONFIG_FRAGMENTS = "baseport.cfg connectivity.cfg ipc.cfg" +KERNEL_CONFIG_FRAGMENTS = "${WORKDIR}/baseport.cfg ${WORKDIR}/connectivity.cfg \ + ${WORKDIR}/ipc.cfg" SRC_URI = "git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git;protocol=git;branch=${BRANCH} \ file://defconfig \
recipes-kernel/linux/setup-defconfig.inc +23 -1
@@ -27,9 +27,31 @@ do_configure() { yes '' | oe_runmake oldconfig fi - # check for fragments + # Check for kernel config fragments. The assumption is that the config + # fragment will be specified with the absolute path. For example: + # * ${WORKDIR}/config1.cfg + # * ${S}/config2.cfg + # Iterate through the list of configs and make sure that you can find + # each one. If not then error out. + # NOTE: If you want to override a configuration that is kept in the kernel + # with one from the OE meta data then you should make sure that the + # OE meta data version (i.e. ${WORKDIR}/config1.cfg) is listed + # after the in kernel configuration fragment. + # Check if any config fragments are specified. if [ ! -z "${KERNEL_CONFIG_FRAGMENTS}" ] then + for f in ${KERNEL_CONFIG_FRAGMENTS} + do + # Check if the config fragment was copied into the WORKDIR from + # the OE meta data + if [ ! -e "$f" ] + then + 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 ${KERNEL_CONFIG_FRAGMENTS} 1>&2 ) yes '' | oe_runmake oldconfig fi
Signature · 1 line
1.7.9.5
PATCH v3 4/4 linux-ti-staging: Add version 3.15 of TI integration kernel
* 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.
---
* Updated in version 2
* Change the default config fragements location
* Updated in version 3
* Use absolute paths in the config fragment names
---
.../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} | 21 +++++++++-----------
5 files changed, 14 insertions(+), 12 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} (73%)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 -12
@@ -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,26 +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 = "${WORKDIR}/baseport.cfg ${WORKDIR}/connectivity.cfg \ - ${WORKDIR}/ipc.cfg" +KERNEL_CONFIG_DIR = "ti_config_fragments" +KERNEL_CONFIG_FRAGMENTS = "${WORKDIR}/ipc.cfg" +KERNEL_CONFIG_FRAGMENTS_append_ti33x = "${WORKDIR}/non-smp.cfg" +KERNEL_CONFIG_FRAGMENTS_append_ti43x = "${WORKDIR}/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
Re: [PATCHv3 4/4] linux-ti-staging: Add version 3.15 of TI integration kernel
Quoted 79 lines · 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.Signed-off-by Chase Maupin <[email protected]>---
* Updated in version 2
* Change the default config fragements location* Updated in version 3
* Use absolute paths in the config fragment names--- .../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} | 21 +++++++++----------- 5 files changed, 14 insertions(+), 12 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} (73%)recipes-kernel/linux/linux-ti-staging-3.15/defconfig renamed from recipes-kernel/linux/linux-mainline/defconfig +0
-0recipes-kernel/linux/linux-ti-staging-3.15/ipc.cfg renamed from recipes-kernel/linux/linux-ti-staging-3.12/ipc.cfg +0
-0recipes-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=nrecipes-kernel/linux/linux-ti-staging-3.15/systest.cfg renamed from recipes-kernel/linux/linux-ti-staging-3.12/systest.cfg +0
-0recipes-kernel/linux/linux-ti-staging_3.15.bb renamed from recipes-kernel/linux/linux-ti-staging_3.12.bb +2
-3@@ -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,26 +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"
recipes-kernel/linux/linux-ti-staging_3.15.bb COMPATIBLE_MACHINE = "ti33x|ti43x|omap-a15" · line 49
Quoted 10 lines
recipes-kernel/linux/linux-ti-staging_3.15.bb renamed from recipes-kernel/linux/linux-ti-staging_3.12.bb +3
-3+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 = "${WORKDIR}/baseport.cfg ${WORKDIR}/connectivity.cfg \ - ${WORKDIR}/ipc.cfg" +KERNEL_CONFIG_DIR = "ti_config_fragments"
So, where this directory is meant to be? The last patch assumed it was in arch/arm/configs... Or did I miss v2 of the patch?
Quoted 24 lines
recipes-kernel/linux/linux-ti-staging_3.15.bb renamed from recipes-kernel/linux/linux-ti-staging_3.12.bb +4
-6+KERNEL_CONFIG_FRAGMENTS = "${WORKDIR}/ipc.cfg" +KERNEL_CONFIG_FRAGMENTS_append_ti33x = "${WORKDIR}/non-smp.cfg" +KERNEL_CONFIG_FRAGMENTS_append_ti43x = "${WORKDIR}/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 · 7 lines
1.7.9.5 -- _______________________________________________ meta-ti mailing list [email protected] https://lists.yoctoproject.org/listinfo/meta-ti
Re: [PATCHv3 4/4] linux-ti-staging: Add version 3.15 of TI integration kernel
Quoted 108 lines
-----Original Message-----
From: Dmytriyenko, Denys
Sent: Thursday, May 22, 2014 3:24 PM
To: Maupin, Chase
Cc: [email protected]
Subject: Re: [meta-ti] [PATCHv3 4/4] linux-ti-staging: Add version 3.15 of TI integration kernelQuoted 16 lines · 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.Signed-off-by Chase Maupin <[email protected]>---
* Updated in version 2
* Change the default config fragements locationQuoted 8 lines
* Updated in version 3
* Use absolute paths in the config fragment names--- .../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} | 21+++++++++-----------
Quoted 2 lines
5 files changed, 14 insertions(+), 12 deletions(-) copy recipes-kernel/linux/{linux-mainline => linux-ti-staging-3.15}/defconfig (100%)
Quoted 1 line
copy recipes-kernel/linux/{linux-ti-staging-3.12 => linux-ti-staging-3.15}/ipc.cfg (100%)
Quoted 1 line
create mode 100644 recipes-kernel/linux/linux-ti-staging-3.15/non-smp.cfg
Quoted 1 line
copy recipes-kernel/linux/{linux-ti-staging-3.12 => linux-ti-staging-3.15}/systest.cfg (100%)
Quoted 1 line
copy recipes-kernel/linux/{linux-ti-staging_3.12.bb => linux-ti-staging_3.15.bb} (73%)
Review
Quoted 2 lines
(quoted diff) +0
-0b/recipes-kernel/linux/linux-ti-staging-3.15/defconfig
Review
Quoted 4 lines
similarity index 100%
copy from recipes-kernel/linux/linux-mainline/defconfig copy to recipes-kernel/linux/linux-ti-staging-3.15/defconfig(quoted diff) +0
-0b/recipes-kernel/linux/linux-ti-staging-3.15/ipc.cfg
Review
Quoted 4 lines
similarity index 100%
copy from recipes-kernel/linux/linux-ti-staging-3.12/ipc.cfg copy to recipes-kernel/linux/linux-ti-staging-3.15/ipc.cfg(quoted diff) +0
-0smp.cfg b/recipes-kernel/linux/linux-ti-staging-3.15/non-smp.cfg
Review
Quoted 11 lines
new file mode 100644
index 0000000..d61a413recipes-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(quoted diff) +0
-03.12/systest.cfg b/recipes-kernel/linux/linux-ti-staging- 3.15/systest.cfg
Review
Quoted 4 lines
similarity index 100%
copy from recipes-kernel/linux/linux-ti-staging-3.12/systest.cfg copy to recipes-kernel/linux/linux-ti-staging-3.15/systest.cfg(quoted diff) +0
-0b/recipes-kernel/linux/linux-ti-staging_3.15.bb
Quoted 17 lines
similarity index 73%
copy from recipes-kernel/linux/linux-ti-staging_3.12.bb copy to recipes-kernel/linux/linux-ti-staging_3.15.bb index 5c4d669..fee67ce 100644recipes-kernel/linux/linux-ti-staging_3.15.bb renamed from recipes-kernel/linux/linux-ti-staging_3.12.bb +1
-1@@ -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,26 +37,23 @@ COMPATIBLE_MACHINE = "ti33x|ti43x|omap-a15"recipes-kernel/linux/linux-ti-staging_3.15.bb COMPATIBLE_MACHINE = "ti33x|ti43x|omap-a15" · line 45
Quoted 10 lines
recipes-kernel/linux/linux-ti-staging_3.15.bb renamed from recipes-kernel/linux/linux-ti-staging_3.12.bb +2
-2S = "${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 willcause a rebuild
Quoted 4 lines
recipes-kernel/linux/linux-ti-staging_3.15.bb renamed from recipes-kernel/linux/linux-ti-staging_3.12.bb +1
-1-MACHINE_KERNEL_PR_append = "b+gitr${SRCPV}" +MACHINE_KERNEL_PR_append = "c+gitr${SRCPV}" PR = "${MACHINE_KERNEL_PR}"
Quoted 8 lines
recipes-kernel/linux/linux-ti-staging_3.15.bb COMPATIBLE_MACHINE = "ti33x|ti43x|omap-a15" · line 49
Quoted 1 line
recipes-kernel/linux/linux-ti-staging_3.15.bb renamed from recipes-kernel/linux/linux-ti-staging_3.12.bb +0
-1-KERNEL_CONFIG_FRAGMENTS = "${WORKDIR}/baseport.cfg${WORKDIR}/connectivity.cfg \
recipes-kernel/linux/linux-ti-staging_3.15.bb COMPATIBLE_MACHINE = "ti33x|ti43x|omap-a15" · line 49
Quoted 2 lines
recipes-kernel/linux/linux-ti-staging_3.15.bb renamed from recipes-kernel/linux/linux-ti-staging_3.12.bb +1
-1- ${WORKDIR}/ipc.cfg" +KERNEL_CONFIG_DIR = "ti_config_fragments"So, where this directory is meant to be? The last patch assumed it was in
arch/arm/configs... Or did I miss v2 of the patch?
There will be configs in the ti_config_fragments in the base of the kernel tree. Those are being merged in over the next couple of days. Then we can add ${KERNEL_CONFIG_DIR}/connnectivity.cfg, etc.
So I left this directory here because I plan to use it soon but it isn't used right now.
Quoted 30 lines
recipes-kernel/linux/linux-ti-staging_3.15.bb COMPATIBLE_MACHINE = "ti33x|ti43x|omap-a15"
Quoted 7 lines
recipes-kernel/linux/linux-ti-staging_3.15.bb renamed from recipes-kernel/linux/linux-ti-staging_3.12.bb +3
-0+KERNEL_CONFIG_FRAGMENTS = "${WORKDIR}/ipc.cfg" +KERNEL_CONFIG_FRAGMENTS_append_ti33x = "${WORKDIR}/non-smp.cfg" +KERNEL_CONFIG_FRAGMENTS_append_ti43x = "${WORKDIR}/non-smp.cfg" SRC_URI = "git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git;protocol=git;branch=${BRANCH} \
recipes-kernel/linux/linux-ti-staging_3.15.bb COMPATIBLE_MACHINE = "ti33x|ti43x|omap-a15"
Quoted 9 lines
recipes-kernel/linux/linux-ti-staging_3.15.bb renamed from recipes-kernel/linux/linux-ti-staging_3.12.bb +1
-4file://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 reduceoverhead
recipes-kernel/linux/linux-ti-staging_3.15.bb COMPATIBLE_MACHINE = "ti33x|ti43x|omap-a15" · line 61
Quoted 1 line
recipes-kernel/linux/linux-ti-staging_3.15.bb renamed from recipes-kernel/linux/linux-ti-staging_3.12.bb +0
-1-SRC_URI_append_ti33x = "file://0001-Not-for-merge-ARM-config-omap-Disable-SMP-for-AM335x.patch"
recipes-kernel/linux/linux-ti-staging_3.15.bb COMPATIBLE_MACHINE = "ti33x|ti43x|omap-a15" · line 62
Quoted 1 line
recipes-kernel/linux/linux-ti-staging_3.15.bb renamed from recipes-kernel/linux/linux-ti-staging_3.12.bb +0
-1-SRC_URI_append_ti43x = "file://0001-Not-for-merge-ARM-config-omap-Disable-SMP-for-AM335x.patch"
Quoted 8 lines
--
1.7.9.5--
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti