fix order

This commit is contained in:
gameislyf 2023-08-24 23:02:51 +02:00
parent 061d80cae0
commit 98f8de0056

View file

@ -43,6 +43,14 @@ then
make ${DEVICE_ROOT}
fi
# Ensure the DEVICE_ROOT is built before DEVICE
if [ ! -d "build.${DISTRO}-${DEVICE_ROOT}.${ARCH}" ]
then
echo "ERROR: Can't find build root build.${DISTRO}-${DEVICE_ROOT}.${ARCH}"
echo "You need to build ${DEVICE_ROOT} before ${DEVICE}"
exit 1
fi
# Link back to the DEVICE_ROOT so we can re-use the build directory to save space.
if [ ! -L "build.${DISTRO}-${DEVICE}.${ARCH}" ]
then
@ -55,14 +63,6 @@ then
then
ln -sf sources-${DEVICE_ROOT} sources-${DEVICE}
fi
else
# Ensure the DEVICE_ROOT is built before DEVICE
if [ ! -d "build.${DISTRO}-${DEVICE_ROOT}.${ARCH}" ]
then
echo "ERROR: Can't find build root build.${DISTRO}-${DEVICE_ROOT}.${ARCH}"
echo "You need to build ${DEVICE_ROOT} before ${DEVICE}"
exit 1
fi
fi
fi