diff options
author | Rhyland Klein <rklein@nvidia.com> | 2012-05-21 12:39:38 -0400 |
---|---|---|
committer | Rohan Somvanshi <rsomvanshi@nvidia.com> | 2012-05-25 02:56:37 -0700 |
commit | 8be5b34f5420304183d0ebba8dd757b6b4b9476e (patch) | |
tree | 151b88e23ae5d39a2fcdbc1d9530d23c81831e7c /chromeos/scripts/allconfigs | |
parent | 0d88e1dc78fd422c07b8ef385871223bf7dbc9da (diff) |
CHROMEOS: add chrome kernel infrastructure
The ChromeOS build environment expects to build the kernel using a splitconfig.
This change adds the scripts and configs required to satisfy this requirement.
Right now the chromeos-tegra3 config is the only supported configuration using
the splitconfigs.
Signed-off-by: Rhyland Klein <rklein@nvidia.com>
Change-Id: I21ac515261a03bdbe1c79bbd6cd02a6e34c82ef9
Reviewed-on: http://git-master/r/103683
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>
Reviewed-by: Allen Martin <amartin@nvidia.com>
Diffstat (limited to 'chromeos/scripts/allconfigs')
-rwxr-xr-x | chromeos/scripts/allconfigs | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/chromeos/scripts/allconfigs b/chromeos/scripts/allconfigs new file mode 100755 index 000000000000..16431991d4da --- /dev/null +++ b/chromeos/scripts/allconfigs @@ -0,0 +1,28 @@ +#!/bin/bash + +bindir="`pwd`/chromeos/scripts" +confdir="`pwd`/chromeos/config" + +get_flavourconfigs() { + for file in `find $confdir`; do + if echo $file | egrep -q "config\.flavour\..*[^~]$"; then + basename $file | awk -F . '{ print $3 }' + fi + done +} + +get_arch() { + if find . -name config.flavour.$1 | grep -q i386; then + echo i386 + else + echo arm + fi +} + +for flavour in $(get_flavourconfigs); do + echo $flavour $(get_arch $flavour) + $bindir/prepareconfig $flavour + yes "" | make ARCH=$(get_arch $flavour) oldconfig + cp .config .config-$flavour +done + |