Initial Contribution
msm-2.6.38: tag AU_LINUX_ANDROID_GINGERBREAD.02.03.04.00.142
Signed-off-by: Bryan Huntsman <bryanh@codeaurora.org>
diff --git a/chromeos/scripts/prepareconfig b/chromeos/scripts/prepareconfig
new file mode 100755
index 0000000..b841366
--- /dev/null
+++ b/chromeos/scripts/prepareconfig
@@ -0,0 +1,21 @@
+#!/bin/bash
+
+family=chromeos
+
+# The source package name will be the first token in the changelog
+changelog="${family}/changelog"
+package=$(sed -n '1s/\([^ ]*\).*/\1/p' ${changelog})
+
+# Get some version info
+release=$(sed -n "1s/^${package} (\([^-]*\)-.*/\1/p" ${changelog})
+revision=$(sed -n "1s/^${package} (${release}-\([^)]*\).*/\1/p" ${changelog})
+
+flavourconf=$(find ${family} -name config.flavour.$1)
+archconfdir=$(dirname ${flavourconf})
+version="Ubuntu ${release}-${revision}-$1"
+re="s/.*\(CONFIG_VERSION_SIGNATURE\).*/\1=""\"${version}\"""/"
+
+# Generarte .config
+cat ${family}/config/config.common.${family} \
+ ${archconfdir}/config.common.* \
+ ${flavourconf} | sed -e "${re}" > .config