]> code.ossystems Code Review - openembedded-core.git/commit
baremetal-image: Fix post process command rootfs_update_timestamp
authorAlejandro Hernandez Samaniego <alejandro@enedino.org>
Wed, 19 May 2021 15:59:53 +0000 (09:59 -0600)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 21 May 2021 14:15:15 +0000 (15:15 +0100)
commit04791272e0cc104450cae6ab89b9d8e866457a0b
treea9bd06660d52d672da4a4f6eeff9d184673dd01c
parent64b89f3c8fc31842256c482a3039d90d3f12c1cc
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

Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandro@enedino.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/baremetal-image.bbclass