yoe-distro icon indicating copy to clipboard operation
yoe-distro copied to clipboard

can no longer run bitbake, devtool, etc in dkr shell

Open cbrake opened this issue 5 years ago • 1 comments

The following has changed from old versions of Yoe -- can't remember all the reasons so need to dig through git history. One thing that is handy is to be able to run dkr, and then devtool, and other OE utils.

diff --git a/envsetup.sh b/envsetup.sh
index 748400b..2025927 100644
--- a/envsetup.sh
+++ b/envsetup.sh
@@ -515,7 +515,7 @@ dkr() {
     -w ${OE_BASE} \
     --user $(id -u):$(id -g) \
     $VNC_PORT \
-     ${DOCKER_REPO} /bin/bash -c "cd $(pwd) && . envsetup.sh && $CMD $2 $3 $4 $5 $6 $7 $8"
+    ${DOCKER_REPO} /bin/bash -c "$CMD $@"
 }

cbrake avatar Aug 21 '20 02:08 cbrake

@cbrake this is the change 371214650cb052f4b2e032b59ea63863f43d2541

kraj avatar Aug 22 '20 02:08 kraj

most of this has been fixed by wrappers -- closing

cbrake avatar Nov 17 '23 00:11 cbrake