From f1bd89f141acb53333135c86940d1d1c0549b4bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Fri, 25 Sep 2015 15:24:03 +0200 Subject: 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. --- scripts/initialize.py | 2 +- scripts/kernel.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'scripts') 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: -- cgit v1.2.3