[oe-commits] Ulf Samuelsson : Allow linux to use make <board> _defconfig instead of copying a file to .config

git version control git at git.openembedded.org
Tue Aug 11 17:25:08 UTC 2009


Module: openembedded.git
Branch: ulf/linux-2.6.30.2
Commit: 269961f9652e19ea9b74cad89b6ff597e32594b2
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=269961f9652e19ea9b74cad89b6ff597e32594b2

Author: Ulf Samuelsson <ulf.samuelsson at atmel.com>
Date:   Tue Aug 11 19:24:35 2009 +0200

Allow linux to use make <board>_defconfig instead of copying a file to .config

---

 recipes/linux/linux.inc |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/recipes/linux/linux.inc b/recipes/linux/linux.inc
index 3dbb1ec..aad1ac2 100644
--- a/recipes/linux/linux.inc
+++ b/recipes/linux/linux.inc
@@ -54,6 +54,19 @@ python __anonymous () {
 }
 
 do_configure_prepend() {
+	# If linux source knows about a machine, we can use that config by
+	# 	make <MACHINE>_defconfig
+	#
+        if [ test -n "${LINUX26_DEFCONFIG}" ] ; then
+            oe_runmake	${LINUX26_DEFCONFIG}
+	    cp ${WORKDIR}/.config ${WORKDIR}/defconfig
+        fi
+
+	# Override default config, if we provide an update not named "defconfig"
+        if [ test -n "${LINUX26_MACHINE}" ] ; then
+            cp ${WORKDIR}/${LINUX26_MACHINE} ${WORKDIR}/defconfig 
+        fi
+
         echo "" > ${S}/.config
 
         #
@@ -80,6 +93,7 @@ do_configure_prepend() {
                 echo "# CONFIG_OABI_COMPAT is not set"  >> ${S}/.config
         fi
 
+
         # When enabling thumb for userspace we also need thumb support in the kernel
         if [ "${ARM_INSTRUCTION_SET}" = "thumb" ] ; then
             sed -i -e /CONFIG_ARM_THUMB/d ${WORKDIR}/defconfig 





More information about the Openembedded-commits mailing list