Commit 325a7030 authored by Stephen Boyd's avatar Stephen Boyd

skales: Allow per-kernel configuration files

Look for a .skales/config file in the root of the kernel
directory to use as the per-kernel configuration. This will
override whatever is specified in the global config in the skales
root directory.
Signed-off-by: 's avatarStephen Boyd <sboyd@codeaurora.org>
parent cedca0ea
......@@ -58,12 +58,21 @@ A simple workflow:
$ cp config.sh.example config.sh
1.3. Edit the config file to set options like cross-compiler,
defconfig, etc.
defconfig, etc. Note that these options will be global and
can be overriden by modifying the per-kernel options
described in section 2.1.
2. Checkout or clone a kernel
$ git clone git://git.kernel.org/... kernel
2.1. Configure per-kernel options to override the global options
in .skales/config for this kernel source tree.
$ mkdir .skales
$ cp /skales/config.sh.example .skales/config
$ <edit options>
3. Build the kernel
$ cd kernel
......
......@@ -37,6 +37,10 @@ if test -f "$META_ROOT/config.sh"
then
source "$META_ROOT/config.sh"
fi
if test -f .skales/config
then
source .skales/config
fi
die()
{
......
......@@ -44,6 +44,10 @@ if test -f "$META_ROOT/config.sh"
then
source "$META_ROOT/config.sh"
fi
if test -f .skales/config
then
source .skales/config
fi
die() {
printf >&2 "%s\n" "$@"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment