diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2016-06-15 14:33:52 +0900 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2016-06-22 09:22:48 +0900 |
commit | f432c33f27898070718dd568feb104fc1870ca15 (patch) | |
tree | 941374780f3ff50d472429af61ab93796851e464 /include/libtizen.h | |
parent | 5cc42a51846cd69596081a9cd9d2bd0495815525 (diff) | |
download | blackbird-obmc-uboot-f432c33f27898070718dd568feb104fc1870ca15.tar.gz blackbird-obmc-uboot-f432c33f27898070718dd568feb104fc1870ca15.zip |
tools: moveconfig: simplify source tree switching
The subprocess.Popen() does not change the child process's working
directory if cwd=None is given. Let's exploit this fact to refactor
the source directory handling.
We no longer have to pass "-C <reference_src_dir>" to the sub-process
because self.current_src_dir tracks the source tree against which we
want to run defconfig/autoconf.
The flag self.use_git_ref is not necessary either because we can know
the current state by checking whether the self.current_src_dir is a
valid string or None.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'include/libtizen.h')
0 files changed, 0 insertions, 0 deletions