Denys Dmytriyenko : setup-defconfig: support combined defconfig with listed config fragments
Module: meta-ti Branch: master Commit: abdbb75fb09037f85ab8b653dd5900a33f382e84 URL: http://arago-project.org/git/meta-ti.git?a=commit;h=abdbb75fb09037f85ab8b653dd5900a33f382e84
Author: Denys Dmytriyenko <[email protected]> Date: Tue Jan 6 05:31:57 2015 +0000
setup-defconfig: support combined defconfig with listed config fragments
---
.../linux/linux-ti-staging-3.14/defconfig | 2 +- recipes-kernel/linux/linux-ti-staging_3.14.bb | 8 +-- recipes-kernel/linux/setup-defconfig.inc | 64 +++++++++++++------- 3 files changed, 44 insertions(+), 30 deletions(-)
recipes-kernel/linux/linux-ti-staging-3.14/defconfig +1 -1
@@ -1 +1 @@ -use-kernel-config=omap2plus_defconfig +use-combined-config=ti_config_fragments/defconfig_fragment
recipes-kernel/linux/linux-ti-staging_3.14.bb +2 -6
@@ -44,18 +44,14 @@ S = "${WORKDIR}/git" BRANCH = "ti-linux-3.14.y" -SRCREV = "f93aba31cfc224ed7ea414d1b7ab988808d764ba" +SRCREV = "4311f726041145161621593e5d67f106913c0f28" PV = "3.14.26" # 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_DIR = "${S}/ti_config_fragments" -KERNEL_CONFIG_FRAGMENTS = "${KERNEL_CONFIG_DIR}/baseport.cfg ${KERNEL_CONFIG_DIR}/all_valid_socs.cfg \ - ${KERNEL_CONFIG_DIR}/power.cfg ${KERNEL_CONFIG_DIR}/connectivity.cfg \ - ${KERNEL_CONFIG_DIR}/ipc.cfg ${KERNEL_CONFIG_DIR}/audio_display.cfg \ - ${KERNEL_CONFIG_DIR}/wlan.cfg" KERNEL_CONFIG_FRAGMENTS_append_ti33x = " ${KERNEL_CONFIG_DIR}/am33xx_only.cfg" KERNEL_CONFIG_FRAGMENTS_append_ti43x = " ${KERNEL_CONFIG_DIR}/am43xx_only.cfg"
recipes-kernel/linux/setup-defconfig.inc +41 -23
94 lines not on this page · raw message
recipes-kernel/linux/setup-defconfig.inc do_configure() {
Quoted 13 lines · Arago Project git
recipes-kernel/linux/setup-defconfig.inc +13
-0+ config=`cat ${S}/.config | grep config-fragment | cut -d= -f2` + if [ -n "$config" ] + then + configfrags="" + for f in $config + do + # Check if the config fragment is available + if [ ! -e "$f" ] + then + echo "Could not find kernel config fragment $f" + exit 1 + else + # Sanitize config fragment files to be relative to
sources
recipes-kernel/linux/setup-defconfig.inc do_configure() { · line 44
Quoted 5 lines
recipes-kernel/linux/setup-defconfig.inc +5
-0+ configfrags+=" ${S}/$f" + fi + done + fi +
Hi,
I think that configfrags+="..." here is a bashism. It fails on my builder with "configfrags+= ..... not found".
I resolved with configfrags="$configfrags ${S}/$f"
Cheers,
Francesco
Re: Denys Dmytriyenko : setup-defconfig: support combined?defconfig with listed config fragments
Quoted 22 lines · Francesco Del Degan
recipes-kernel/linux/setup-defconfig.inc do_configure() {
Quoted 13 lines · Arago Project git
recipes-kernel/linux/setup-defconfig.inc +13
-0+ config=`cat ${S}/.config | grep config-fragment | cut -d= -f2` + if [ -n "$config" ] + then + configfrags="" + for f in $config + do + # Check if the config fragment is available + if [ ! -e "$f" ] + then + echo "Could not find kernel config fragment $f" + exit 1 + else + # Sanitize config fragment files to be relative tosources
recipes-kernel/linux/setup-defconfig.inc do_configure() { · line 44
Quoted 5 lines
recipes-kernel/linux/setup-defconfig.inc +5
-0+ configfrags+=" ${S}/$f" + fi + done + fi +
Quoted 6 lines
Hi,
I think that configfrags+="..." here is a bashism. It fails on my builder with "configfrags+= ..... not found".
I resolved with configfrags="$configfrags ${S}/$f"
Thanks. I'll fix it.
There are many more bashisms in other places, so I'm not specifically looking for them...
Signature · 1 line
Denys