fix order
This commit is contained in:
parent
061d80cae0
commit
98f8de0056
1 changed files with 8 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue