build: kernel2minor: work around path length limit
authorFrançois Chavant <francois@chavant.info>
Fri, 7 May 2021 15:58:11 +0000 (17:58 +0200)
committerPaul Spooren <mail@aparcar.org>
Wed, 12 May 2021 11:39:29 +0000 (13:39 +0200)
commit5a9608102b3c444d0c963255f9d016a1d5469d5d
tree4c6908367e3411276e86a3c44ce9e0192e63c2b9
parent3a359398f04f3f4c4a42d1ca274bb1a0f0303e05
build: kernel2minor: work around path length limit

When building for MikroTik devices the kernel2minor tool will sometimes
fail with:

  Can't get lstat from kernel file!: No such file or directory.

This is because kernel2minor expects paths no longer than 250 chars.
To work around this the include/image-commands.mk has been modified
to copy the kernel to a temporary file (/tmp/tmp.XXXXXXXXXX) before
calling kernel2minor.

Signed-off-by: François Chavant <francois@chavant.info>
include/image-commands.mk