Skip to contentSkip to conversation

setup-defconfig.inc: implement config fragments by using in-kernel script

RFC PATCH Superseded Denys Dmytriyenko 4 participants 7 messages Apr 14, 2014

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

RFC PATCH 1/2 setup-defconfig.inc: implement config fragments by using in-kernel script

From: Denys Dmytriyenko <[email protected]>

---
 recipes-kernel/linux/setup-defconfig.inc | 27 ++++++++++++++++-----------
 1 file changed, 16 insertions(+), 11 deletions(-)
recipes-kernel/linux/setup-defconfig.inc +16 -11
index ed3bce2..d6e5557 100644
@@ -5,27 +5,32 @@ KERNEL_LOCALVERSION ?= ""
 # 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
 
-addtask setup_defconfig before do_configure after do_patch
-do_setup_defconfig() {
-    # Always copy the defconfig file to .config to keep consistency
-    # between the case where there is a real config and the in kernel
-    # tree config
-    cp ${WORKDIR}/defconfig ${S}/.config
-}
-
 # define our own do_configure that will:
 #   1. Check the .config file and see if string use-kernel-config= is present
 #   2. If the use-kernel-config string is present parse out the config to use
-#      and run make ${config}
+#      and run make $config
 #   3. else run yes '' | oe_runmake oldconfig like the default do_configure
 #      does
 do_configure() {
+    # Always copy the defconfig file to .config to keep consistency
+    # between the case where there is a real config and the in kernel
+    # tree config
+    cp ${WORKDIR}/defconfig ${S}/.config
+
     echo ${KERNEL_LOCALVERSION} > ${B}/.scmversion
     echo ${KERNEL_LOCALVERSION} > ${S}/.scmversion
     config=`cat ${S}/.config | grep use-kernel-config | cut -d= -f2`
-    if [ "x${config}" != "x" ]
+    if [ "x$config" != "x" ]
     then
-        oe_runmake ${config}
+        # check for fragments
+        fragments=`cat ${S}/.config | grep config-fragment | cut -d= -f2`
+        oe_runmake $config
+        if [ "x$fragments" != "x" ]
+        then
+            fragnames=`basename -a $fragments`
+            ( cd ${WORKDIR} && ${S}/scripts/kconfig/merge_config.sh -m -r -O ${S} ${S}/.config $fragnames 1>&2 )
+            yes '' | oe_runmake oldconfig
+        fi
     else
         yes '' | oe_runmake oldconfig
     fi
Signature · 1 line
1.9.2
#1 lore raw

RFC PATCH 2/2 linux-ti-staging: add baseport, connectivity, ipc and systest config fragments

From: Denys Dmytriyenko <[email protected]>

---
 .../linux/linux-ti-staging/baseport_defconfig        |  8 ++++++++
 .../linux/linux-ti-staging/connectivity_defconfig    | 14 ++++++++++++++
 recipes-kernel/linux/linux-ti-staging/defconfig      |  4 ++++
 recipes-kernel/linux/linux-ti-staging/ipc_defconfig  | 18 ++++++++++++++++++
 .../linux/linux-ti-staging/systest_defconfig         | 20 ++++++++++++++++++++
 recipes-kernel/linux/linux-ti-staging_3.12.bb        |  6 +++++-
 6 files changed, 69 insertions(+), 1 deletion(-)
 create mode 100644 recipes-kernel/linux/linux-ti-staging/baseport_defconfig
 create mode 100644 recipes-kernel/linux/linux-ti-staging/connectivity_defconfig
 create mode 100644 recipes-kernel/linux/linux-ti-staging/ipc_defconfig
 create mode 100644 recipes-kernel/linux/linux-ti-staging/systest_defconfig
recipes-kernel/linux/linux-ti-staging/baseport_defconfig new file +8 -0
new file mode 100644
index 0000000..8dc24af
@@ -0,0 +1,8 @@
+##################################################
+# Baseport Config Options
+##################################################
+CONFIG_CRYPTO_HW=y
+CONFIG_CRYPTO_DEV_OMAP_AES=y
+CONFIG_CRYPTO_DEV_OMAP_SHAM=y
+CONFIG_CRYPTO_TEST=m
+CONFIG_CRYPTO_MANAGER_DISABLE_TESTS=n
recipes-kernel/linux/linux-ti-staging/connectivity_defconfig new file +14 -0
new file mode 100644
index 0000000..bf18dae
@@ -0,0 +1,14 @@
+##################################################
+# Connectivity Configs
+##################################################
+CONFIG_MTD_NAND_OMAP_BCH=y
+CONFIG_MTD_TESTS=m
+CONFIG_SPI_SPIDEV=y
+CONFIG_USB_TEST=m
+CONFIG_USB_ACM=y
+CONFIG_USB_SERIAL_PL2303=y
+CONFIG_USB_PRINTER=y
+CONFIG_USB_NET_AX8817X=y
+CONFIG_USB_G_MULTI=m
+CONFIG_USB_G_MULTI_RNDIS=y
+CONFIG_USB_G_MULTI_CDC=y
recipes-kernel/linux/linux-ti-staging/defconfig +4 -0
index 926b35a..2a920e8 100644
@@ -1 +1,5 @@
 use-kernel-config=omap2plus_defconfig
+config-fragment=baseport_defconfig
+config-fragment=connectivity_defconfig
+config-fragment=systest_defconfig
+config-fragment=ipc_defconfig
recipes-kernel/linux/linux-ti-staging/ipc_defconfig new file +18 -0
new file mode 100644
index 0000000..645dfdf
@@ -0,0 +1,18 @@
+##################################################
+# IPC config options
+##################################################
+CONFIG_IOMMU_API=y
+CONFIG_IOMMU_SUPPORT=y
+CONFIG_OF_IOMMU=y
+CONFIG_OMAP_IOMMU=y
+CONFIG_OMAP_IOVMM=y
+CONFIG_OMAP_IOMMU_DEBUG=y
+CONFIG_VIRTIO=m
+CONFIG_RPMSG=m
+CONFIG_RPMSG_RPC=m
+CONFIG_REMOTEPROC=m
+CONFIG_OMAP_REMOTEPROC=m
+CONFIG_OMAP_REMOTEPROC_IPU=y
+CONFIG_OMAP_REMOTEPROC_DSP=y
+CONFIG_OMAP_REMOTEPROC_IPU1=y
+CONFIG_OMAP_REMOTEPROC_DSP2=y
recipes-kernel/linux/linux-ti-staging/systest_defconfig new file +20 -0
new file mode 100644
index 0000000..e21602f
@@ -0,0 +1,20 @@
+##################################################
+# Systest config options
+##################################################
+CONFIG_DEBUG_SPINLOCK=y
+CONFIG_DEBUG_MUTEXES=y
+CONFIG_DEBUG_KMEMLEAK=y
+CONFIG_DEVKMEM=y
+CONFIG_HAVE_DEBUG_KMEMLEAK=y
+CONFIG_DEBUG_KMEMLEAK_EARLY_LOG_SIZE=400
+CONFIG_DEBUG_KMEMLEAK_TEST=n
+CONFIG_DEBUG_KMEMLEAK_DEFAULT_OFF=n
+CONFIG_DEBUG_LOCK_ALLOC=y
+CONFIG_DEBUG_INFO=y
+CONFIG_DEBUG_FS=y
+CONFIG_DEBUG_KERNEL=y
+CONFIG_PM_DEBUG=y
+CONFIG_DEBUG_GPIO=y
+CONFIG_USB_DEBUG=y
+CONFIG_SND_DEBUG=y
+CONFIG_RTC_DEBUG=y
recipes-kernel/linux/linux-ti-staging_3.12.bb +5 -1
index 96be621..704d96b 100644
@@ -40,11 +40,15 @@ SRCREV = "f0d4672333685697320f4907d5b4d3919121c299"
 PV = "3.12.17"
 
 # Append to the MACHINE_KERNEL_PR so that a new SRCREV will cause a rebuild
-MACHINE_KERNEL_PR_append = "a+gitr${SRCPV}"
+MACHINE_KERNEL_PR_append = "b+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 \
+           file://baseport_defconfig \
+           file://connectivity_defconfig \
+           file://ipc_defconfig \
+           file://systest_defconfig \
           "
 
 # Disable SMP in defconfig on single-core platforms to reduce overhead
Signature · 1 line
1.9.2
#2 lore raw

Re: [RFC][PATCH 2/2] linux-ti-staging: add baseport, connectivity, ipc and systest config fragments

Quoted 9 lines · Denys Dmytriyenko

From: Denys Dmytriyenko <[email protected]>

---
 .../linux/linux-ti-staging/baseport_defconfig        |  8 ++++++++
 .../linux/linux-ti-staging/connectivity_defconfig    | 14 ++++++++++++++
 recipes-kernel/linux/linux-ti-staging/defconfig      |  4 ++++
 recipes-kernel/linux/linux-ti-staging/ipc_defconfig  | 18

++++++++++++++++++

Quoted 1 line
 .../linux/linux-ti-staging/systest_defconfig         | 20

++++++++++++++++++++

Quoted 3 lines
 recipes-kernel/linux/linux-ti-staging_3.12.bb        |  6 +++++-
 6 files changed, 69 insertions(+), 1 deletion(-)
 create mode 100644

recipes-kernel/linux/linux-ti-staging/baseport_defconfig

Quoted 1 line
 create mode 100644

recipes-kernel/linux/linux-ti-staging/connectivity_defconfig

Quoted 2 lines
 create mode 100644 recipes-kernel/linux/linux-ti-staging/ipc_defconfig
 create mode 100644

recipes-kernel/linux/linux-ti-staging/systest_defconfig

should they be called with .cfg extension ?

Review

Quoted 2 lines
(quoted diff) +0 -0

b/recipes-kernel/linux/linux-ti-staging/baseport_defconfig

Review

Quoted 14 lines

new file mode 100644
index 0000000..8dc24af

recipes-kernel/linux/linux-ti-staging/baseport_defconfig new file +8 -0
@@ -0,0 +1,8 @@
+##################################################
+# Baseport Config Options
+##################################################
+CONFIG_CRYPTO_HW=y
+CONFIG_CRYPTO_DEV_OMAP_AES=y
+CONFIG_CRYPTO_DEV_OMAP_SHAM=y
+CONFIG_CRYPTO_TEST=m
+CONFIG_CRYPTO_MANAGER_DISABLE_TESTS=n
(quoted diff) +0 -0

b/recipes-kernel/linux/linux-ti-staging/connectivity_defconfig

Review

Quoted 20 lines

new file mode 100644
index 0000000..bf18dae

recipes-kernel/linux/linux-ti-staging/connectivity_defconfig new file +14 -0
@@ -0,0 +1,14 @@
+##################################################
+# Connectivity Configs
+##################################################
+CONFIG_MTD_NAND_OMAP_BCH=y
+CONFIG_MTD_TESTS=m
+CONFIG_SPI_SPIDEV=y
+CONFIG_USB_TEST=m
+CONFIG_USB_ACM=y
+CONFIG_USB_SERIAL_PL2303=y
+CONFIG_USB_PRINTER=y
+CONFIG_USB_NET_AX8817X=y
+CONFIG_USB_G_MULTI=m
+CONFIG_USB_G_MULTI_RNDIS=y
+CONFIG_USB_G_MULTI_CDC=y
(quoted diff) +0 -0

b/recipes-kernel/linux/linux-ti-staging/defconfig

Review

Quoted 10 lines

index 926b35a..2a920e8 100644

recipes-kernel/linux/linux-ti-staging/defconfig +4 -0
@@ -1 +1,5 @@
 use-kernel-config=omap2plus_defconfig
+config-fragment=baseport_defconfig
+config-fragment=connectivity_defconfig
+config-fragment=systest_defconfig
+config-fragment=ipc_defconfig
(quoted diff) +0 -0

b/recipes-kernel/linux/linux-ti-staging/ipc_defconfig

Review

Quoted 24 lines

new file mode 100644
index 0000000..645dfdf

recipes-kernel/linux/linux-ti-staging/ipc_defconfig new file +18 -0
@@ -0,0 +1,18 @@
+##################################################
+# IPC config options
+##################################################
+CONFIG_IOMMU_API=y
+CONFIG_IOMMU_SUPPORT=y
+CONFIG_OF_IOMMU=y
+CONFIG_OMAP_IOMMU=y
+CONFIG_OMAP_IOVMM=y
+CONFIG_OMAP_IOMMU_DEBUG=y
+CONFIG_VIRTIO=m
+CONFIG_RPMSG=m
+CONFIG_RPMSG_RPC=m
+CONFIG_REMOTEPROC=m
+CONFIG_OMAP_REMOTEPROC=m
+CONFIG_OMAP_REMOTEPROC_IPU=y
+CONFIG_OMAP_REMOTEPROC_DSP=y
+CONFIG_OMAP_REMOTEPROC_IPU1=y
+CONFIG_OMAP_REMOTEPROC_DSP2=y
(quoted diff) +0 -0

b/recipes-kernel/linux/linux-ti-staging/systest_defconfig

Review

Quoted 26 lines

new file mode 100644
index 0000000..e21602f

recipes-kernel/linux/linux-ti-staging/systest_defconfig new file +20 -0
@@ -0,0 +1,20 @@
+##################################################
+# Systest config options
+##################################################
+CONFIG_DEBUG_SPINLOCK=y
+CONFIG_DEBUG_MUTEXES=y
+CONFIG_DEBUG_KMEMLEAK=y
+CONFIG_DEVKMEM=y
+CONFIG_HAVE_DEBUG_KMEMLEAK=y
+CONFIG_DEBUG_KMEMLEAK_EARLY_LOG_SIZE=400
+CONFIG_DEBUG_KMEMLEAK_TEST=n
+CONFIG_DEBUG_KMEMLEAK_DEFAULT_OFF=n
+CONFIG_DEBUG_LOCK_ALLOC=y
+CONFIG_DEBUG_INFO=y
+CONFIG_DEBUG_FS=y
+CONFIG_DEBUG_KERNEL=y
+CONFIG_PM_DEBUG=y
+CONFIG_DEBUG_GPIO=y
+CONFIG_USB_DEBUG=y
+CONFIG_SND_DEBUG=y
+CONFIG_RTC_DEBUG=y
(quoted diff) +0 -0

linux-ti-staging_3.12.bb

recipes-kernel/linux/linux-ti-staging_3.12.bb SRCREV = "f0d4672333685697320f4907d5b4d3919121c299" · line 42

Quoted 7 lines

index 96be621..704d96b 100644

recipes-kernel/linux/linux-ti-staging_3.12.bb +0 -0
@@ -40,11 +40,15 @@ SRCREV = "f0d4672333685697320f4907d5b4d3919121c299"
 PV = "3.12.17"
 
 # Append to the MACHINE_KERNEL_PR so that a new SRCREV will cause a

rebuild

recipes-kernel/linux/linux-ti-staging_3.12.bb SRCREV = "f0d4672333685697320f4907d5b4d3919121c299"

Quoted 5 lines
recipes-kernel/linux/linux-ti-staging_3.12.bb +1 -1
-MACHINE_KERNEL_PR_append = "a+gitr${SRCPV}"
+MACHINE_KERNEL_PR_append = "b+gitr${SRCPV}"
 PR = "${MACHINE_KERNEL_PR}"
 
 SRC_URI = "git://

git.ti.com/ti-linux-kernel/ti-linux-kernel.git;protocol=git;branch=${BRANCH}\

Quoted 16 lines
recipes-kernel/linux/linux-ti-staging_3.12.bb +4 -1
            file://defconfig \
+           file://baseport_defconfig \
+           file://connectivity_defconfig \
+           file://ipc_defconfig \
+           file://systest_defconfig \
           "
 
 # Disable SMP in defconfig on single-core platforms to reduce overhead
--

1.9.2

--
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti

#3 lore raw

Re: [RFC][PATCH 2/2] linux-ti-staging: add baseport, connectivity, ipc and systest config fragments

Quoted 16 lines · Khem Raj
Quoted 9 lines · Denys Dmytriyenko

From: Denys Dmytriyenko <[email protected]>

---
 .../linux/linux-ti-staging/baseport_defconfig        |  8 ++++++++
 .../linux/linux-ti-staging/connectivity_defconfig    | 14 ++++++++++++++
 recipes-kernel/linux/linux-ti-staging/defconfig      |  4 ++++
 recipes-kernel/linux/linux-ti-staging/ipc_defconfig  | 18

++++++++++++++++++

Quoted 1 line
 .../linux/linux-ti-staging/systest_defconfig         | 20

++++++++++++++++++++

Quoted 3 lines
 recipes-kernel/linux/linux-ti-staging_3.12.bb        |  6 +++++-
 6 files changed, 69 insertions(+), 1 deletion(-)
 create mode 100644
Quoted 8 lines

recipes-kernel/linux/linux-ti-staging/baseport_defconfig

Quoted 1 line
 create mode 100644

recipes-kernel/linux/linux-ti-staging/connectivity_defconfig

Quoted 2 lines
 create mode 100644 recipes-kernel/linux/linux-ti-staging/ipc_defconfig
 create mode 100644

recipes-kernel/linux/linux-ti-staging/systest_defconfig

should they be called with .cfg extension ?

Doesn't really matter. To match linux-yocto, they could have an extension, but it's not really required.

Quoted 137 lines

Review

Quoted 1 line
(quoted diff) +0 -0

b/recipes-kernel/linux/linux-ti-staging/baseport_defconfig

Review

Quoted 14 lines

new file mode 100644
index 0000000..8dc24af

recipes-kernel/linux/linux-ti-staging/baseport_defconfig new file +8 -0
@@ -0,0 +1,8 @@
+##################################################
+# Baseport Config Options
+##################################################
+CONFIG_CRYPTO_HW=y
+CONFIG_CRYPTO_DEV_OMAP_AES=y
+CONFIG_CRYPTO_DEV_OMAP_SHAM=y
+CONFIG_CRYPTO_TEST=m
+CONFIG_CRYPTO_MANAGER_DISABLE_TESTS=n
(quoted diff) +0 -0

b/recipes-kernel/linux/linux-ti-staging/connectivity_defconfig

Review

Quoted 20 lines

new file mode 100644
index 0000000..bf18dae

recipes-kernel/linux/linux-ti-staging/connectivity_defconfig new file +14 -0
@@ -0,0 +1,14 @@
+##################################################
+# Connectivity Configs
+##################################################
+CONFIG_MTD_NAND_OMAP_BCH=y
+CONFIG_MTD_TESTS=m
+CONFIG_SPI_SPIDEV=y
+CONFIG_USB_TEST=m
+CONFIG_USB_ACM=y
+CONFIG_USB_SERIAL_PL2303=y
+CONFIG_USB_PRINTER=y
+CONFIG_USB_NET_AX8817X=y
+CONFIG_USB_G_MULTI=m
+CONFIG_USB_G_MULTI_RNDIS=y
+CONFIG_USB_G_MULTI_CDC=y
(quoted diff) +0 -0

b/recipes-kernel/linux/linux-ti-staging/defconfig

Review

Quoted 10 lines

index 926b35a..2a920e8 100644

recipes-kernel/linux/linux-ti-staging/defconfig +4 -0
@@ -1 +1,5 @@
 use-kernel-config=omap2plus_defconfig
+config-fragment=baseport_defconfig
+config-fragment=connectivity_defconfig
+config-fragment=systest_defconfig
+config-fragment=ipc_defconfig
(quoted diff) +0 -0

b/recipes-kernel/linux/linux-ti-staging/ipc_defconfig

Review

Quoted 24 lines

new file mode 100644
index 0000000..645dfdf

recipes-kernel/linux/linux-ti-staging/ipc_defconfig new file +18 -0
@@ -0,0 +1,18 @@
+##################################################
+# IPC config options
+##################################################
+CONFIG_IOMMU_API=y
+CONFIG_IOMMU_SUPPORT=y
+CONFIG_OF_IOMMU=y
+CONFIG_OMAP_IOMMU=y
+CONFIG_OMAP_IOVMM=y
+CONFIG_OMAP_IOMMU_DEBUG=y
+CONFIG_VIRTIO=m
+CONFIG_RPMSG=m
+CONFIG_RPMSG_RPC=m
+CONFIG_REMOTEPROC=m
+CONFIG_OMAP_REMOTEPROC=m
+CONFIG_OMAP_REMOTEPROC_IPU=y
+CONFIG_OMAP_REMOTEPROC_DSP=y
+CONFIG_OMAP_REMOTEPROC_IPU1=y
+CONFIG_OMAP_REMOTEPROC_DSP2=y
(quoted diff) +0 -0

b/recipes-kernel/linux/linux-ti-staging/systest_defconfig

Review

Quoted 26 lines

new file mode 100644
index 0000000..e21602f

recipes-kernel/linux/linux-ti-staging/systest_defconfig new file +20 -0
@@ -0,0 +1,20 @@
+##################################################
+# Systest config options
+##################################################
+CONFIG_DEBUG_SPINLOCK=y
+CONFIG_DEBUG_MUTEXES=y
+CONFIG_DEBUG_KMEMLEAK=y
+CONFIG_DEVKMEM=y
+CONFIG_HAVE_DEBUG_KMEMLEAK=y
+CONFIG_DEBUG_KMEMLEAK_EARLY_LOG_SIZE=400
+CONFIG_DEBUG_KMEMLEAK_TEST=n
+CONFIG_DEBUG_KMEMLEAK_DEFAULT_OFF=n
+CONFIG_DEBUG_LOCK_ALLOC=y
+CONFIG_DEBUG_INFO=y
+CONFIG_DEBUG_FS=y
+CONFIG_DEBUG_KERNEL=y
+CONFIG_PM_DEBUG=y
+CONFIG_DEBUG_GPIO=y
+CONFIG_USB_DEBUG=y
+CONFIG_SND_DEBUG=y
+CONFIG_RTC_DEBUG=y
(quoted diff) +0 -0

linux-ti-staging_3.12.bb

recipes-kernel/linux/linux-ti-staging_3.12.bb SRCREV = "f0d4672333685697320f4907d5b4d3919121c299" · line 42

Quoted 7 lines

index 96be621..704d96b 100644

recipes-kernel/linux/linux-ti-staging_3.12.bb +0 -0
@@ -40,11 +40,15 @@ SRCREV = "f0d4672333685697320f4907d5b4d3919121c299"
 PV = "3.12.17"
 
 # Append to the MACHINE_KERNEL_PR so that a new SRCREV will cause a

rebuild

recipes-kernel/linux/linux-ti-staging_3.12.bb SRCREV = "f0d4672333685697320f4907d5b4d3919121c299"

Quoted 5 lines
recipes-kernel/linux/linux-ti-staging_3.12.bb +1 -1
-MACHINE_KERNEL_PR_append = "a+gitr${SRCPV}"
+MACHINE_KERNEL_PR_append = "b+gitr${SRCPV}"
 PR = "${MACHINE_KERNEL_PR}"
 
 SRC_URI = "git://

git.ti.com/ti-linux-kernel/ti-linux-kernel.git;protocol=git;branch=${BRANCH}\

Quoted 16 lines
recipes-kernel/linux/linux-ti-staging_3.12.bb +4 -1
            file://defconfig \
+           file://baseport_defconfig \
+           file://connectivity_defconfig \
+           file://ipc_defconfig \
+           file://systest_defconfig \
           "
 
 # Disable SMP in defconfig on single-core platforms to reduce overhead
--

1.9.2

--
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti

Signature · 4 lines
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti
#4 lore raw

Re: [RFC][PATCH 2/2] linux-ti-staging: add baseport, connectivity, ipc and systest config fragments

Quoted 10 lines · Denys Dmytriyenko
Quoted 8 lines · Khem Raj
Quoted 7 lines · Denys Dmytriyenko

From: Denys Dmytriyenko <[email protected]>

---
 .../linux/linux-ti-staging/baseport_defconfig        |  8 ++++++++
 .../linux/linux-ti-staging/connectivity_defconfig    | 14

++++++++++++++

Quoted 4 lines
Quoted 4 lines
Quoted 2 lines
 recipes-kernel/linux/linux-ti-staging/defconfig      |  4 ++++
 recipes-kernel/linux/linux-ti-staging/ipc_defconfig  | 18

++++++++++++++++++

Quoted 1 line
 .../linux/linux-ti-staging/systest_defconfig         | 20
Quoted 8 lines
Quoted 8 lines

++++++++++++++++++++

Quoted 3 lines
 recipes-kernel/linux/linux-ti-staging_3.12.bb        |  6 +++++-
 6 files changed, 69 insertions(+), 1 deletion(-)
 create mode 100644

recipes-kernel/linux/linux-ti-staging/baseport_defconfig

Quoted 1 line
 create mode 100644

recipes-kernel/linux/linux-ti-staging/connectivity_defconfig

Quoted 1 line
 create mode 100644

recipes-kernel/linux/linux-ti-staging/ipc_defconfig

Quoted 6 lines
Quoted 4 lines
Quoted 1 line
 create mode 100644

recipes-kernel/linux/linux-ti-staging/systest_defconfig

should they be called with .cfg extension ?

Doesn't really matter. To match linux-yocto, they could have an

extension, but

Quoted 2 lines

it's not really required.

yes however consistent naming would be helpful

Quoted 17 lines
Quoted 17 lines

Review

Quoted 2 lines
(quoted diff) +0 -0

b/recipes-kernel/linux/linux-ti-staging/baseport_defconfig

Quoted 13 lines

new file mode 100644
index 0000000..8dc24af

recipes-kernel/linux/linux-ti-staging/baseport_defconfig new file +8 -0
@@ -0,0 +1,8 @@
+##################################################
+# Baseport Config Options
+##################################################
+CONFIG_CRYPTO_HW=y
+CONFIG_CRYPTO_DEV_OMAP_AES=y
+CONFIG_CRYPTO_DEV_OMAP_SHAM=y
+CONFIG_CRYPTO_TEST=m
+CONFIG_CRYPTO_MANAGER_DISABLE_TESTS=n
Quoted 1 line

diff --git

a/recipes-kernel/linux/linux-ti-staging/connectivity_defconfig

Quoted 76 lines
Quoted 76 lines

b/recipes-kernel/linux/linux-ti-staging/connectivity_defconfig

Review

Quoted 20 lines

new file mode 100644
index 0000000..bf18dae

recipes-kernel/linux/linux-ti-staging/connectivity_defconfig new file +14 -0
@@ -0,0 +1,14 @@
+##################################################
+# Connectivity Configs
+##################################################
+CONFIG_MTD_NAND_OMAP_BCH=y
+CONFIG_MTD_TESTS=m
+CONFIG_SPI_SPIDEV=y
+CONFIG_USB_TEST=m
+CONFIG_USB_ACM=y
+CONFIG_USB_SERIAL_PL2303=y
+CONFIG_USB_PRINTER=y
+CONFIG_USB_NET_AX8817X=y
+CONFIG_USB_G_MULTI=m
+CONFIG_USB_G_MULTI_RNDIS=y
+CONFIG_USB_G_MULTI_CDC=y
(quoted diff) +0 -0

b/recipes-kernel/linux/linux-ti-staging/defconfig

Review

Quoted 10 lines

index 926b35a..2a920e8 100644

recipes-kernel/linux/linux-ti-staging/defconfig +4 -0
@@ -1 +1,5 @@
 use-kernel-config=omap2plus_defconfig
+config-fragment=baseport_defconfig
+config-fragment=connectivity_defconfig
+config-fragment=systest_defconfig
+config-fragment=ipc_defconfig
(quoted diff) +0 -0

b/recipes-kernel/linux/linux-ti-staging/ipc_defconfig

Review

Quoted 24 lines

new file mode 100644
index 0000000..645dfdf

recipes-kernel/linux/linux-ti-staging/ipc_defconfig new file +18 -0
@@ -0,0 +1,18 @@
+##################################################
+# IPC config options
+##################################################
+CONFIG_IOMMU_API=y
+CONFIG_IOMMU_SUPPORT=y
+CONFIG_OF_IOMMU=y
+CONFIG_OMAP_IOMMU=y
+CONFIG_OMAP_IOVMM=y
+CONFIG_OMAP_IOMMU_DEBUG=y
+CONFIG_VIRTIO=m
+CONFIG_RPMSG=m
+CONFIG_RPMSG_RPC=m
+CONFIG_REMOTEPROC=m
+CONFIG_OMAP_REMOTEPROC=m
+CONFIG_OMAP_REMOTEPROC_IPU=y
+CONFIG_OMAP_REMOTEPROC_DSP=y
+CONFIG_OMAP_REMOTEPROC_IPU1=y
+CONFIG_OMAP_REMOTEPROC_DSP2=y
(quoted diff) +0 -0

b/recipes-kernel/linux/linux-ti-staging/systest_defconfig

Quoted 18 lines

new file mode 100644
index 0000000..e21602f

recipes-kernel/linux/linux-ti-staging/systest_defconfig new file +13 -0
@@ -0,0 +1,20 @@
+##################################################
+# Systest config options
+##################################################
+CONFIG_DEBUG_SPINLOCK=y
+CONFIG_DEBUG_MUTEXES=y
+CONFIG_DEBUG_KMEMLEAK=y
+CONFIG_DEVKMEM=y
+CONFIG_HAVE_DEBUG_KMEMLEAK=y
+CONFIG_DEBUG_KMEMLEAK_EARLY_LOG_SIZE=400
+CONFIG_DEBUG_KMEMLEAK_TEST=n
+CONFIG_DEBUG_KMEMLEAK_DEFAULT_OFF=n
+CONFIG_DEBUG_LOCK_ALLOC=y
+CONFIG_DEBUG_INFO=y
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
recipes-kernel/linux/linux-ti-staging/systest_defconfig new file +7 -0
+CONFIG_DEBUG_FS=y
+CONFIG_DEBUG_KERNEL=y
+CONFIG_PM_DEBUG=y
+CONFIG_DEBUG_GPIO=y
+CONFIG_USB_DEBUG=y
+CONFIG_SND_DEBUG=y
+CONFIG_RTC_DEBUG=y

diff --git

a/recipes-kernel/linux/linux-ti-staging_3.12.bbb/recipes-kernel/linux/

Quoted 5 lines
Quoted 5 lines

linux-ti-staging_3.12.bb

recipes-kernel/linux/linux-ti-staging_3.12.bb SRCREV =

Quoted 4 lines

index 96be621..704d96b 100644

recipes-kernel/linux/linux-ti-staging_3.12.bb +0 -0
@@ -40,11 +40,15 @@ SRCREV =

"f0d4672333685697320f4907d5b4d3919121c299"

Quoted 10 lines
Quoted 10 lines

recipes-kernel/linux/linux-ti-staging_3.12.bb SRCREV = "f0d4672333685697320f4907d5b4d3919121c299"

Quoted 3 lines
recipes-kernel/linux/linux-ti-staging_3.12.bb +0 -0
 PV = "3.12.17"
 
 # Append to the MACHINE_KERNEL_PR so that a new SRCREV will cause a

rebuild

recipes-kernel/linux/linux-ti-staging_3.12.bb SRCREV = "f0d4672333685697320f4907d5b4d3919121c299"

Quoted 5 lines
recipes-kernel/linux/linux-ti-staging_3.12.bb +1 -1
-MACHINE_KERNEL_PR_append = "a+gitr${SRCPV}"
+MACHINE_KERNEL_PR_append = "b+gitr${SRCPV}"
 PR = "${MACHINE_KERNEL_PR}"
 
 SRC_URI = "git://

git.ti.com/ti-linux-kernel/ti-linux-kernel.git;protocol=git;branch=${BRANCH}\

Quoted 8 lines
Quoted 8 lines

recipes-kernel/linux/linux-ti-staging_3.12.bb SRCREV = "f0d4672333685697320f4907d5b4d3919121c299"

Quoted 8 lines
recipes-kernel/linux/linux-ti-staging_3.12.bb +4 -0
            file://defconfig \
+           file://baseport_defconfig \
+           file://connectivity_defconfig \
+           file://ipc_defconfig \
+           file://systest_defconfig \
           "
 
 # Disable SMP in defconfig on single-core platforms to reduce

overhead

Quoted 15 lines
Quoted 14 lines
Quoted 8 lines

--
1.9.2

--
_______________________________________________
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

#5 lore raw
In reply to Denys Dmytriyenko
Quoted 58 lines

-----Original Message-----
From: [email protected] [mailto:meta-ti- [email protected]] On Behalf Of Denys Dmytriyenko
Sent: Sunday, April 13, 2014 10:50 PM
To: [email protected]
Subject: [meta-ti] [RFC][PATCH 1/2] setup-defconfig.inc: implement config fragments by using in-kernel script

From: Denys Dmytriyenko <[email protected]>

---
recipes-kernel/linux/setup-defconfig.inc | 27 ++++++++++++++++---
--------

1 file changed, 16 insertions(+), 11 deletions(-)
recipes- renamed from recipes-kernel/linux/setup-defconfig.inc +0 -0

kernel/linux/setup-defconfig.inc
index ed3bce2..d6e5557 100644

recipes-kernel/linux/setup-defconfig.inc +0 -0
@@ -5,27 +5,32 @@ KERNEL_LOCALVERSION ?= ""
 # 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

recipes-kernel/linux/setup-defconfig.inc +0 -3
-addtask setup_defconfig before do_configure after do_patch
-do_setup_defconfig() {
-    # Always copy the defconfig file to .config to keep

consistency
- # between the case where there is a real config and the in
kernel

recipes-kernel/linux/setup-defconfig.inc +0 -4
-    # tree config
-    cp ${WORKDIR}/defconfig ${S}/.config
-}
-
# define our own do_configure that will:
#   1. Check the .config file and see if string use-kernel-
config= is present
#   2. If the use-kernel-config string is present parse out the
config to use
recipes-kernel/linux/setup-defconfig.inc +1 -1
-#      and run make ${config}
+#      and run make $config

# 3. else run yes '' | oe_runmake oldconfig like the default
do_configure
# does
do_configure() {
+ # Always copy the defconfig file to .config to keep
consistency
+ # between the case where there is a real config and the in
kernel

recipes-kernel/linux/setup-defconfig.inc +3 -0
+    # tree config
+    cp ${WORKDIR}/defconfig ${S}/.config
+
    echo ${KERNEL_LOCALVERSION} > ${B}/.scmversion
    echo ${KERNEL_LOCALVERSION} > ${S}/.scmversion
    config=`cat ${S}/.config | grep use-kernel-config | cut -d= -

f2`

recipes-kernel/linux/setup-defconfig.inc KERNEL_LOCALVERSION ?= ""

Quoted 7 lines
recipes-kernel/linux/setup-defconfig.inc +3 -3
-    if [ "x${config}" != "x" ]
+    if [ "x$config" != "x" ]
    then
-        oe_runmake ${config}
+        # check for fragments
+        fragments=`cat ${S}/.config | grep config-fragment | cut
-d= -f2`

Implementation question here. Would it be easier to instead list the fragments you want to merge in the recipe? My reasoning is this:

1. You already have a list of all the fragments to pull down in the recipe, so why make it require updating two spots to add a fragment. For example to add a new fragment you would add it to the SRC_URI in the recipe and then have to modify the defconfig to use it.
2. If we keep the list in the recipe we avoid having to store defconfigs based on machine or build type. For example on the AM335x we could use the same defconfig file as the dra7xx but just specify that we want to add a no-SMP config fragment. That way as we add new fragments we are not updating each defconfig.
3. For things like system test builds where they want to enable options that might hurt performance but are good for debug having the recipe control this would make it easier to add these through a bbappend or an environment variable. The current way they would have to overlay the entire defconfig which means keeping them in sync rather than appending the recipe to add another config fragment to the list.

Quoted 20 lines
recipes-kernel/linux/setup-defconfig.inc +5 -0
+        oe_runmake $config
+        if [ "x$fragments" != "x" ]
+        then
+            fragnames=`basename -a $fragments`
+            ( cd ${WORKDIR} &&

${S}/scripts/kconfig/merge_config.sh -m -r -O ${S} ${S}/.config $fragnames 1>&2 )

recipes-kernel/linux/setup-defconfig.inc +2 -1
+            yes '' | oe_runmake oldconfig
+        fi
    else
        yes '' | oe_runmake oldconfig
    fi
--

1.9.2

--
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti

#6 lore raw
Quoted 69 lines · Chase
Quoted 58 lines

-----Original Message-----
From: [email protected] [mailto:meta-ti- [email protected]] On Behalf Of Denys Dmytriyenko
Sent: Sunday, April 13, 2014 10:50 PM
To: [email protected]
Subject: [meta-ti] [RFC][PATCH 1/2] setup-defconfig.inc: implement config fragments by using in-kernel script

From: Denys Dmytriyenko <[email protected]>

---
recipes-kernel/linux/setup-defconfig.inc | 27 ++++++++++++++++---
--------

1 file changed, 16 insertions(+), 11 deletions(-)
recipes- renamed from recipes-kernel/linux/setup-defconfig.inc +0 -0

kernel/linux/setup-defconfig.inc
index ed3bce2..d6e5557 100644

recipes-kernel/linux/setup-defconfig.inc +0 -0
@@ -5,27 +5,32 @@ KERNEL_LOCALVERSION ?= ""
 # 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

recipes-kernel/linux/setup-defconfig.inc +0 -3
-addtask setup_defconfig before do_configure after do_patch
-do_setup_defconfig() {
-    # Always copy the defconfig file to .config to keep

consistency
- # between the case where there is a real config and the in
kernel

recipes-kernel/linux/setup-defconfig.inc +0 -4
-    # tree config
-    cp ${WORKDIR}/defconfig ${S}/.config
-}
-
# define our own do_configure that will:
#   1. Check the .config file and see if string use-kernel-
config= is present
#   2. If the use-kernel-config string is present parse out the
config to use
recipes-kernel/linux/setup-defconfig.inc +1 -1
-#      and run make ${config}
+#      and run make $config

# 3. else run yes '' | oe_runmake oldconfig like the default
do_configure
# does
do_configure() {
+ # Always copy the defconfig file to .config to keep
consistency
+ # between the case where there is a real config and the in
kernel

recipes-kernel/linux/setup-defconfig.inc +3 -0
+    # tree config
+    cp ${WORKDIR}/defconfig ${S}/.config
+
    echo ${KERNEL_LOCALVERSION} > ${B}/.scmversion
    echo ${KERNEL_LOCALVERSION} > ${S}/.scmversion
    config=`cat ${S}/.config | grep use-kernel-config | cut -d= -

f2`

recipes-kernel/linux/setup-defconfig.inc KERNEL_LOCALVERSION ?= ""

Quoted 7 lines
recipes-kernel/linux/setup-defconfig.inc +3 -3
-    if [ "x${config}" != "x" ]
+    if [ "x$config" != "x" ]
    then
-        oe_runmake ${config}
+        # check for fragments
+        fragments=`cat ${S}/.config | grep config-fragment | cut
-d= -f2`

Implementation question here. Would it be easier to instead list the fragments you want to merge in the recipe? My reasoning is this:

Quoted 15 lines

1. You already have a list of all the fragments to pull down in the recipe, so why make it require updating two spots to add a fragment. For example to add a new fragment you would add it to the SRC_URI in the recipe and then have to modify the defconfig to use it.
2. If we keep the list in the recipe we avoid having to store defconfigs based on machine or build type. For example on the AM335x we could use the same defconfig file as the dra7xx but just specify that we want to add a no-SMP config fragment. That way as we add new fragments we are not updating each defconfig.
3. For things like system test builds where they want to enable options that might hurt performance but are good for debug having the recipe control this would make it easier to add these through a bbappend or an environment variable. The current way they would have to overlay the entire defconfig which means keeping them in sync rather than appending the recipe to add another config fragment to the list.

Good questions. My primary goal was to keep the syntax the same with Dan's kernel integration Jenkins job, so it is just a drop-in replacement. Moving the fragment definition from defconfig to the recipe would certainly change the syntax and require one to learn another way of doing things...

Quoted 25 lines
Quoted 20 lines
recipes-kernel/linux/setup-defconfig.inc +5 -0
+        oe_runmake $config
+        if [ "x$fragments" != "x" ]
+        then
+            fragnames=`basename -a $fragments`
+            ( cd ${WORKDIR} &&

${S}/scripts/kconfig/merge_config.sh -m -r -O ${S} ${S}/.config $fragnames 1>&2 )

recipes-kernel/linux/setup-defconfig.inc +2 -1
+            yes '' | oe_runmake oldconfig
+        fi
    else
        yes '' | oe_runmake oldconfig
    fi
--

1.9.2

--
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti

Signature · 4 lines
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti