All of lore.kernel.org
 help / color / mirror / Atom feed
* Chase Maupin : setup-defconfig: move from meta-arago to meta-ti
@ 2013-03-11 21:36 Arago Project git
  0 siblings, 0 replies; 2+ messages in thread
From: Arago Project git @ 2013-03-11 21:36 UTC (permalink / raw)
  To: meta-ti

Module: meta-ti
Branch: danny
Commit: 24111d70d662ceacf32e054c56aec30ddfb4e4fe
URL:    http://arago-project.org/git/meta-ti.git?a=commit;h=24111d70d662ceacf32e054c56aec30ddfb4e4fe

Author: Chase Maupin <Chase.Maupin@ti.com>
Date:   Mon Mar 11 15:03:31 2013 -0500

setup-defconfig: move from meta-arago to meta-ti

* Moved the setup-defconfig.inc file from meta-arago to meta-ti.
  This functionality is used by the SDKs to allow the option for
  using an in-tree configuration file for the kernel build.
* This option was chosen to make it easy for other layers to
  override the config with their own using the normal OE method
  of specifying a defconfig file in their layer rather than having
  to use some custom variable setting.

Signed-off-by: Chase Maupin <Chase.Maupin@ti.com>
Signed-off-by: Denys Dmytriyenko <denys@ti.com>

---

 recipes-kernel/linux/setup-defconfig.inc |   26 ++++++++++++++++++++++++++
 1 files changed, 26 insertions(+), 0 deletions(-)

diff --git a/recipes-kernel/linux/setup-defconfig.inc b/recipes-kernel/linux/setup-defconfig.inc
new file mode 100644
index 0000000..fc5e18e
--- /dev/null
+++ b/recipes-kernel/linux/setup-defconfig.inc
@@ -0,0 +1,26 @@
+# 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}
+#   3. else run yes '' | oe_runmake oldconfig like the default do_configure
+#      does
+do_configure() {
+    config=`cat ${S}/.config | grep use-kernel-config | cut -d= -f2`
+    if [ "x${config}" != "x" ]
+    then
+        oe_runmake ${config}
+    else
+        yes '' | oe_runmake oldconfig
+    fi
+}



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Chase Maupin : setup-defconfig: move from meta-arago to meta-ti
@ 2013-03-11 21:36 Arago Project git
  0 siblings, 0 replies; 2+ messages in thread
From: Arago Project git @ 2013-03-11 21:36 UTC (permalink / raw)
  To: meta-ti

Module: meta-ti
Branch: master
Commit: b2946775880fd6c6d7c5c9ce61b1d4b47ebe59e9
URL:    http://arago-project.org/git/meta-ti.git?a=commit;h=b2946775880fd6c6d7c5c9ce61b1d4b47ebe59e9

Author: Chase Maupin <Chase.Maupin@ti.com>
Date:   Mon Mar 11 15:03:31 2013 -0500

setup-defconfig: move from meta-arago to meta-ti

* Moved the setup-defconfig.inc file from meta-arago to meta-ti.
  This functionality is used by the SDKs to allow the option for
  using an in-tree configuration file for the kernel build.
* This option was chosen to make it easy for other layers to
  override the config with their own using the normal OE method
  of specifying a defconfig file in their layer rather than having
  to use some custom variable setting.

Signed-off-by: Chase Maupin <Chase.Maupin@ti.com>
Signed-off-by: Denys Dmytriyenko <denys@ti.com>

---

 recipes-kernel/linux/setup-defconfig.inc |   26 ++++++++++++++++++++++++++
 1 files changed, 26 insertions(+), 0 deletions(-)

diff --git a/recipes-kernel/linux/setup-defconfig.inc b/recipes-kernel/linux/setup-defconfig.inc
new file mode 100644
index 0000000..fc5e18e
--- /dev/null
+++ b/recipes-kernel/linux/setup-defconfig.inc
@@ -0,0 +1,26 @@
+# 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}
+#   3. else run yes '' | oe_runmake oldconfig like the default do_configure
+#      does
+do_configure() {
+    config=`cat ${S}/.config | grep use-kernel-config | cut -d= -f2`
+    if [ "x${config}" != "x" ]
+    then
+        oe_runmake ${config}
+    else
+        yes '' | oe_runmake oldconfig
+    fi
+}



^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-03-11 21:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-11 21:36 Chase Maupin : setup-defconfig: move from meta-arago to meta-ti Arago Project git
  -- strict thread matches above, loose matches on Subject: below --
2013-03-11 21:36 Arago Project git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.