forked from Openwrt/openwrt
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 commit621f39d1f4
) (cherry picked from commitec9af870f3
) (cherry picked from commit3008f1f441
)