* [PATCH 0/1] oe-init-build-env: create a symlink in BUILDDIR
@ 2017-02-16 8:53 Robert Yang
2017-02-16 8:53 ` [PATCH 1/1] " Robert Yang
0 siblings, 1 reply; 2+ messages in thread
From: Robert Yang @ 2017-02-16 8:53 UTC (permalink / raw)
To: openembedded-core
The following changes since commit 9f225ef5620f2e47e762b2fd16fa5f8d6f1f60fd:
wic: direct: move creation of PartitionedImage to __init__ (2017-02-15 20:06:35 -0800)
are available in the git repository at:
git://git.openembedded.org/openembedded-core-contrib rbt/symlink
http://cgit.openembedded.org/openembedded-core-contrib/log/?h=rbt/symlink
Robert Yang (1):
oe-init-build-env: create a symlink in BUILDDIR
oe-init-build-env | 6 +++++-
oe-init-build-env-memres | 6 +++++-
2 files changed, 10 insertions(+), 2 deletions(-)
--
2.10.2
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH 1/1] oe-init-build-env: create a symlink in BUILDDIR
2017-02-16 8:53 [PATCH 0/1] oe-init-build-env: create a symlink in BUILDDIR Robert Yang
@ 2017-02-16 8:53 ` Robert Yang
0 siblings, 0 replies; 2+ messages in thread
From: Robert Yang @ 2017-02-16 8:53 UTC (permalink / raw)
To: openembedded-core
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>
---
oe-init-build-env | 6 +++++-
oe-init-build-env-memres | 6 +++++-
2 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/oe-init-build-env b/oe-init-build-env
index 5fe68d1..5a41bb2 100755
--- a/oe-init-build-env
+++ b/oe-init-build-env
@@ -41,9 +41,9 @@ if [ -z "$ZSH_NAME" ] && [ "$0" = "$THIS_SCRIPT" ]; then
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
@@ -53,6 +53,10 @@ export OEROOT
unset OEROOT
return 1
}
+
+# Create a symlink
+ln -sf $OEROOT/oe-init-build-env $BUILDDIR
+
unset OEROOT
[ -z "$BUILDDIR" ] || cd "$BUILDDIR"
diff --git a/oe-init-build-env-memres b/oe-init-build-env-memres
index 9e1425e..71a4857 100755
--- a/oe-init-build-env-memres
+++ b/oe-init-build-env-memres
@@ -49,9 +49,9 @@ if [ -z "$ZSH_NAME" ] && [ "$0" = "$THIS_SCRIPT" ]; then
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
@@ -61,6 +61,10 @@ export OEROOT
unset OEROOT
return 1
}
+
+# Create a symlink
+ln -sf $OEROOT/oe-init-build-env-memres $BUILDDIR
+
unset OEROOT
[ -z "$BUILDDIR" ] || cd "$BUILDDIR"
--
2.10.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-02-16 8:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-16 8:53 [PATCH 0/1] oe-init-build-env: create a symlink in BUILDDIR Robert Yang
2017-02-16 8:53 ` [PATCH 1/1] " Robert Yang
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.