]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
baremetal-helloworld: Fix race condition
authorAlejandro Hernandez Samaniego <alejandro@enedino.org>
Fri, 23 Jun 2023 23:31:22 +0000 (17:31 -0600)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 27 Jun 2023 15:23:34 +0000 (16:23 +0100)
commit9a999af292c7b3dd3bb7c0722cc31624c425f432
tree30bc6fa1448ba9b57855ac024c714e8e26fe88ef
parent48b8945fa570edcdf1e19ed4a4ca81c4416f1a6a
baremetal-helloworld: Fix race condition

There was a race condition during the Makefile execution in
between the assemble and compile targets, only the assemble
target had a dependency on creating the build directory.
If the compile target was executed first, an error was thrown
by bitbake since the build directory did not exist yet:

| Assembler messages:
| Fatal error: can't create build/hello_baremetal_aarch64.o:
  No such file or directory

Update the SRCREV to reflect the latest changes serializing
the makefile targets to avoid such race condition from happening.

[YOCTO #15146]

Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandro@enedino.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-extended/baremetal-example/baremetal-helloworld_git.bb