Makefile: ensure $BINARIES_DIR exist before post-image scripts
authorBrent Generous <bgenerous@impinj.com>
Sun, 4 Aug 2019 15:07:07 +0000 (17:07 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sun, 4 Aug 2019 15:37:56 +0000 (17:37 +0200)
commitd57e73078a315eb7419173d7e0503ce66c1df238
tree6d5cd93b5536f85488e024fd9b3cd72853894ea9
parentcf65070365ab55664f12ffe85cae548d6b0f63da
Makefile: ensure $BINARIES_DIR exist before post-image scripts

When no filesystem is enabled, the $BINARIES_DIR is not created. Yet,
the post-image scripts are still run. When those want to generate an
image in there, they may fail as the dirctory does not exist (it did
exist before we started applying preparatory changes for top-level
parallel build, so scripts got to rely on that assumption).

Do in target-post-image as we do in the sdk rule: create the directory
before calling the scripts.

Signed-off-by: Brent Generous <bgenerous@impinj.com>
[yann.morin.1998@free.fr:
  - create the directory before calling the scripts
  - don't drop the creation in the sdk rule
]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Makefile