diff options
author | Guillaume Tucker <guillaume.tucker@collabora.com> | 2019-05-07 18:55:29 +0100 |
---|---|---|
committer | Guillaume Tucker <guillaume.tucker@collabora.com> | 2019-05-07 19:00:33 +0100 |
commit | 581b34f70009ded350e94fa9fbc7485d8bc88184 (patch) | |
tree | 52a12f0037a0673226c540f3b51ccdfa66f4f0ca /kernelci | |
parent | b7654a00fd5787ed807ef21c31cfd75e897348f7 (diff) |
kernelci.build: look for dts directory before calling make dtbs
Some architectures such as RISC-V do have CONFIG_OF enabled in their
defconfig but do not have any dts files, so dtbs should not be made in
this case. Checking for the presence of the dts directory is also
what the kernel Makefile does, so this is a reliable check.
Signed-off-by: Guillaume Tucker <guillaume.tucker@collabora.com>
Diffstat (limited to 'kernelci')
-rw-r--r-- | kernelci/build.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/kernelci/build.py b/kernelci/build.py index e330ecd..768102c 100644 --- a/kernelci/build.py +++ b/kernelci/build.py @@ -419,7 +419,9 @@ def build_kernel(build_env, kdir, arch, defconfig=None, jopt=None, if result and mods: result = _run_make(jopt=jopt, target='modules', **kwargs) if result and _kernel_config_enabled(dot_config, 'OF_FLATTREE'): - result = _run_make(target='dtbs', **kwargs) + dts_tree = os.path.join(kdir, 'arch/{}/boot/dts'.format(arch)) + if os.path.exists(dts_tree): + result = _run_make(target='dtbs', **kwargs) build_time = time.time() - start_time if result and mods and mod_path: |