imagebuilder: fix broken image generation with external targets
authorPetr Štetiar <ynezz@true.cz>
Thu, 24 Mar 2022 05:52:37 +0000 (06:52 +0100)
committerPetr Štetiar <ynezz@true.cz>
Tue, 5 Apr 2022 20:06:41 +0000 (22:06 +0200)
commit3008f1f441a41e162311cee1ccadfdaaec1581c1
treed3f2a1ddfdc691fb1b96b44c9f814f99854faf78
parentee62912b2db0018cd370f2c110e1391ee779cc6d
imagebuilder: fix broken image generation with external targets

When using external targets there is a symlink being created for the
target under target/linux which then becomes dangling under Image
Builder. Fix it by dereferencing the possible symlink.

Tested on IB with external target, ipq40xx and mvebu.

Signed-off-by: Petr Štetiar <ynezz@true.cz>
(cherry picked from commit 621f39d1f438bf95dbae667c575926fa16a6d797)
(cherry picked from commit ec9af870f3278f75549836b469baefa260e2ed41)
target/imagebuilder/Makefile