CHROMEOS: add chrome kernel infrastructure
[linux-2.6.git] / chromeos / scripts / prepareconfig
1 #!/bin/bash
2
3 family=chromeos
4
5 flavourconf=$(find ${family} -name config.flavour.$1)
6 if [ ! -f "${flavourconf}" ]; then
7     echo "Found no flavour configuration for '$1'." 1>&2
8     exit 1
9 fi
10
11 outputfile="${2:-.config}"
12
13 archconfdir=$(dirname ${flavourconf})
14
15 # Generate .config
16 cat ${family}/config/config.common.${family} \
17     ${archconfdir}/config.common.* \
18     "${flavourconf}" > "${outputfile}"