When there are multiple oe-core repos (for example, poky-master,
poky-morty and poky-krogoth) and multiple builddirs for them, it's not
easy to reinit builddir in such a case, and very easy to make mistakes.
Create a symlink in builddir will make it easy, for example:
e.g.:
$ . poky-morty/oe-init-build-env test_m
$ ls -l oe-init-build-env
oe-init-build-env -> /buildarea/lyang1/poky-morty/oe-init-build-env
When we want to reinit the builddir test_m:
$ . oe-init-build-env .
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
exit 1
fi
+THIS_SCRIPT=$(readlink -f $THIS_SCRIPT)
if [ -z "$OEROOT" ]; then
OEROOT=$(dirname "$THIS_SCRIPT")
- OEROOT=$(readlink -f "$OEROOT")
fi
unset THIS_SCRIPT
unset OEROOT
return 1
}
+
+# Create a symlink
+ln -sf $OEROOT/oe-init-build-env $BUILDDIR
+
unset OEROOT
[ -z "$BUILDDIR" ] || cd "$BUILDDIR"
exit 1
fi
+THIS_SCRIPT=$(readlink -f $THIS_SCRIPT)
if [ -z "$OEROOT" ]; then
OEROOT=$(dirname "$THIS_SCRIPT")
- OEROOT=$(readlink -f "$OEROOT")
fi
unset THIS_SCRIPT
unset OEROOT
return 1
}
+
+# Create a symlink
+ln -sf $OEROOT/oe-init-build-env-memres $BUILDDIR
+
unset OEROOT
[ -z "$BUILDDIR" ] || cd "$BUILDDIR"