diff options
author | Alejandro Hernandez Samaniego <alejandro@enedino.org> | 2021-05-19 09:59:53 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-05-21 15:18:23 +0100 |
commit | 9f0cbdf2c145ff8f45a4ae5dd8f82c553980b9ef (patch) | |
tree | d3072fa1e7d14550de345b55a674991cc83f5959 /meta | |
parent | 95bca793e4b9e49451567ff9c18ce41c1c68f9f2 (diff) | |
download | poky-9f0cbdf2c145ff8f45a4ae5dd8f82c553980b9ef.tar.gz |
baremetal-image: Fix post process command rootfs_update_timestamp
When running:
execute_pre_post_process(d, d.getVar(ROOTFS_POSTPROCESS_COMMAND))
rootfs_update_timestamp is run, which assumes that rootfs/${sysconfdir}
is already created (usually done through the do_rootfs task on linux).
This causes the build to fail if ${sysconfdir} does not exist.
This may be overlooked if debug-tweaks is enabled since some other
commands are added, one of which creates the required path
(see postinst_enable_logging).
See [1] for more info:
[1] https://github.com/aehs29/meta-freertos/issues/4
(From OE-Core rev: 04791272e0cc104450cae6ab89b9d8e866457a0b)
Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandro@enedino.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/baremetal-image.bbclass | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/classes/baremetal-image.bbclass b/meta/classes/baremetal-image.bbclass index 319b61c7cd..8708a54301 100644 --- a/meta/classes/baremetal-image.bbclass +++ b/meta/classes/baremetal-image.bbclass | |||
@@ -50,6 +50,10 @@ python do_rootfs(){ | |||
50 | if os.path.lexists(manifest_link): | 50 | if os.path.lexists(manifest_link): |
51 | os.remove(manifest_link) | 51 | os.remove(manifest_link) |
52 | os.symlink(os.path.basename(manifest_name), manifest_link) | 52 | os.symlink(os.path.basename(manifest_name), manifest_link) |
53 | # A lot of postprocess commands assume the existence of rootfs/etc | ||
54 | sysconfdir = d.getVar("IMAGE_ROOTFS") + d.getVar('sysconfdir') | ||
55 | bb.utils.mkdirhier(sysconfdir) | ||
56 | |||
53 | execute_pre_post_process(d, d.getVar('ROOTFS_POSTPROCESS_COMMAND')) | 57 | execute_pre_post_process(d, d.getVar('ROOTFS_POSTPROCESS_COMMAND')) |
54 | } | 58 | } |
55 | 59 | ||