fs: prepare temp directory before running PRE_GEN hooks
authorYann E. MORIN <yann.morin.1998@free.fr>
Sat, 2 Dec 2017 11:55:05 +0000 (12:55 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 2 Dec 2017 13:37:53 +0000 (14:37 +0100)
commit423b01ecc24d787ceb84e4d56d7a9558febb25b8
tree5ca838de538d7806af5bf2517670c68c5cc5b574
parenta59e4b0dd86eb8b4051d67b43b0386b4a1c03579
fs: prepare temp directory before running PRE_GEN hooks

Some filesystems have PRE_GEN hooks that create a directory structure
under the temporary directory.

For example, iso9660 will create a sub-directory where it stores the
kernel (in case of initramfs or initrd).

So, we must run the PRE_GEN hooks after we cleanup/create the temporary
directory.

Fixes:
    https://gitlab.com/buildroot.org/buildroot/-/jobs/42835965
    https://gitlab.com/buildroot.org/buildroot/-/jobs/42835967

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
fs/common.mk