aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2015-09-25 15:24:03 +0200
committerKarel Kočí <cynerd@email.cz>2015-09-25 15:32:29 +0200
commitf1bd89f141acb53333135c86940d1d1c0549b4bd (patch)
treedb7ffdebebc0a1b0b6226029de2185630a68512a /scripts
parent47669028715fd1319219862e12a4ad5698409a6b (diff)
downloadlinux-conf-perf-f1bd89f141acb53333135c86940d1d1c0549b4bd.tar.gz
linux-conf-perf-f1bd89f141acb53333135c86940d1d1c0549b4bd.tar.bz2
linux-conf-perf-f1bd89f141acb53333135c86940d1d1c0549b4bd.zip
Add bbb target for BeagleBone Black
Buildroot configuration is now generated from base configuration and configuration defined by specified target. And initram is now build automatically for test target and all target.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/initialize.py2
-rw-r--r--scripts/kernel.py4
2 files changed, 4 insertions, 2 deletions
diff --git a/scripts/initialize.py b/scripts/initialize.py
index 8461b34..64f9f2b 100755
--- a/scripts/initialize.py
+++ b/scripts/initialize.py
@@ -44,7 +44,7 @@ def parse_kconfig():
wd = os.getcwd()
os.chdir(sf(conf.linux_sources))
parse_kconfig_cmd = [sf(conf.parse_kconfig)]
- parse_kconfig_cmd += [sf(conf.linux_kconfig_head), sf(conf.build_folder)]
+ parse_kconfig_cmd += ['Kconfig', sf(conf.build_folder)]
parse_kconfig_cmd += ['-v', '-v']
utils.callsubprocess("parse_kconfig", parse_kconfig_cmd,
conf.parse_kconfig_output, env=utils.get_kernel_env())
diff --git a/scripts/kernel.py b/scripts/kernel.py
index 11dce0f..33fcb79 100644
--- a/scripts/kernel.py
+++ b/scripts/kernel.py
@@ -19,6 +19,8 @@ def config(txtconfig):
try:
utils.callsubprocess('write_config', [sf(conf.write_config), infile.name],
conf.kernel_config_output, env=utils.get_kernel_env())
+ os.rename(sf(conf.linux_sources) + '/.config',
+ sf(conf.linux_build_folder) + '/.config')
except exceptions.ProcessFailed:
raise exceptions.ConfigurationError("some configs mismatch")
infile.close()
@@ -39,7 +41,7 @@ def config(txtconfig):
def make(confhash):
wd = os.getcwd()
- os.chdir(sf(conf.linux_sources))
+ os.chdir(sf(conf.linux_build_folder))
if conf.kernel_make_output:
subprocess.call(conf.build_command, env=utils.get_kernel_env())
else: