Files
kernel-tenderloin-3.0/chromeos/scripts/prepareconfig
Bryan Huntsman 3f2bc4d6eb Initial Contribution
msm-2.6.38: tag AU_LINUX_ANDROID_GINGERBREAD.02.03.04.00.142

Signed-off-by: Bryan Huntsman <bryanh@codeaurora.org>
2011-10-03 09:57:10 -07:00

22 lines
702 B
Bash
Executable File

#!/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