<div dir="ltr"><div class="gmail_msg" style="color:rgb(33,33,33);font-size:13px">I am running Ubuntu 16.04 and poky (?) v2.2. I am working my way through eSDK setup. When I use oe-publish-sdk I get this error. My default shell is dash.</div><div class="gmail_msg" style="color:rgb(33,33,33);font-size:13px"><br class="gmail_msg"></div><div class="gmail_msg" style="color:rgb(33,33,33);font-size:13px"><div class="gmail_msg">ubuntu@myhost:fsl-community-bsp/build$ oe-publish-sdk tmp/deploy/sdk/<a href="http://poky-glibc-x86_64-core-image-minimal-cortexa7hf-neon-toolchain-ext-2.2.sh/" class="gmail_msg" target="_blank">poky-glibc-x86_64-core-image-minimal-cortexa7hf-neon-toolchain-ext-2.2.sh</a>${ESDK_HOST}:/sdkdata/</div><div class="gmail_msg">INFO: Copying the SDK to destination</div><div class="gmail_msg"><a href="http://poky-glibc-x86_64-core-image-minimal-cortexa7hf-neon-toolchain-ext-2.2.sh/" class="gmail_msg" target="_blank">poky-glibc-x86_64-core-image-minimal-cortexa7hf-neon-toolchain-ext-2.2.sh</a><span class="inbox-inbox-Apple-converted-space"> </span>                                         100%  305MB 152.4MB/s  00:02   </div><div class="gmail_msg">INFO: Unpacking SDK</div><div class="gmail_msg">Poky (Yocto Project Reference Distro) Extensible SDK installer version 2.2</div><div class="gmail_msg">==========================================================================</div><div class="gmail_msg">The directory "/sdkdata" already contains a SDK for this architecture.</div><div class="gmail_msg">If you continue, existing files will be overwritten! Proceed[y/N]? Y</div><div class="gmail_msg">Extracting SDK.................done</div><div class="gmail_msg">Setting it up...</div><div class="gmail_msg">Extracting buildtools...</div><div class="gmail_msg">done</div><div class="gmail_msg">SDK has been successfully set up and is ready to be used.</div><div class="gmail_msg">Each time you wish to use the SDK in a new shell session, you need to source the environment setup script e.g.</div><div class="gmail_msg"> $ . /sdkdata/environment-setup-cortexa7hf-neon-poky-linux-gnueabi</div><div class="gmail_msg">INFO: Successfully unpacked /sdkdata/<a href="http://poky-glibc-x86_64-core-image-minimal-cortexa7hf-neon-toolchain-ext-2.2.sh/" class="gmail_msg" target="_blank">poky-glibc-x86_64-core-image-minimal-cortexa7hf-neon-toolchain-ext-2.2.sh</a><span class="inbox-inbox-Apple-converted-space"> </span>to /sdkdata/</div><div class="gmail_msg">bash: -c: line 1: syntax error: unexpected end of file</div><div class="gmail_msg">/bin/sh: 2: *.pyo > .gitignore; fi; git add -A .; git config user.email oe@oe.oe && git config<span class="inbox-inbox-Apple-converted-space"> </span><a href="http://user.name/" class="gmail_msg" target="_blank">user.name</a><span class="inbox-inbox-Apple-converted-space"> </span>OE && git commit -q -m "init repo" || true; git update-server-info: not found</div><div class="gmail_msg">ERROR: Failed to set up layer git repo</div></div><div class="gmail_msg" style="color:rgb(33,33,33);font-size:13px"><br class="gmail_msg"></div><div class="gmail_msg" style="color:rgb(33,33,33);font-size:13px">This diff is my correction. I modified "pyc\n" to "pyc\\\n".</div><div class="gmail_msg" style="color:rgb(33,33,33);font-size:13px"><br class="gmail_msg"></div><div class="gmail_msg" style="color:rgb(33,33,33);font-size:13px">diff --git a/scripts/oe-publish-sdk b/scripts/oe-publish-sdk<br class="gmail_msg"></div><div class="gmail_msg" style="color:rgb(33,33,33);font-size:13px">index 4fe8974..c6b83be 100755</div><div class="gmail_msg" style="color:rgb(33,33,33);font-size:13px">--- a/scripts/oe-publish-sdk</div><div class="gmail_msg" style="color:rgb(33,33,33);font-size:13px">+++ b/scripts/oe-publish-sdk</div><div class="gmail_msg" style="color:rgb(33,33,33);font-size:13px">@@ -116,7 +116,7 @@ def publish(args):</div><div class="gmail_msg" style="color:rgb(33,33,33);font-size:13px">   if not is_remote:</div><div class="gmail_msg" style="color:rgb(33,33,33);font-size:13px">     cmd = 'set -e; mkdir -p %s/layers; cd %s/layers; if [ ! -e .git ]; then git init .; mv .git/hooks/post-update.sample .git/hooks/post-update; echo "*.pyc\n*.pyo" > .gitignore; fi; git add -A .; git config user.email "oe@oe.oe" && git config<span class="inbox-inbox-Apple-converted-space"> </span><a href="http://user.name/" class="gmail_msg" target="_blank">user.name</a><span class="inbox-inbox-Apple-converted-space"> </span>"OE" && git commit -q -m "init repo" || true; git update-server-info' % (destination, destination)</div><div class="gmail_msg" style="color:rgb(33,33,33);font-size:13px">   else:</div><div class="gmail_msg" style="color:rgb(33,33,33);font-size:13px">-     cmd = "ssh %s 'set -e; mkdir -p %s/layers; cd %s/layers; if [ ! -e .git ]; then git init .; mv .git/hooks/post-update.sample .git/hooks/post-update; echo '*.pyc\n*.pyo' > .gitignore; fi; git add -A .; git config user.email 'oe@oe.oe' && git config<span class="inbox-inbox-Apple-converted-space"> </span><a href="http://user.name/" class="gmail_msg" target="_blank">user.name</a><span class="inbox-inbox-Apple-converted-space"> </span>'OE' && git commit -q -m \"init repo\" || true; git update-server-info'" % (host, destdir, destdir)</div><div class="gmail_msg" style="color:rgb(33,33,33);font-size:13px">+     cmd = "ssh %s 'set -e; mkdir -p %s/layers; cd %s/layers; if [ ! -e .git ]; then git init .; mv .git/hooks/post-update.sample .git/hooks/post-update; echo '*.pyc\\\n*.pyo' > .gitignore; fi; git add -A .; git config user.email 'oe@oe.oe' && git config<span class="inbox-inbox-Apple-converted-space"> </span><a href="http://user.name/" class="gmail_msg" target="_blank">user.name</a><span class="inbox-inbox-Apple-converted-space"> </span>'OE' && git commit -q -m \"init repo\" || true; git update-server-info'" % (host, destdir, destdir)</div><div class="gmail_msg" style="color:rgb(33,33,33);font-size:13px">   ret = subprocess.call(cmd, shell=True)</div><div class="gmail_msg" style="color:rgb(33,33,33);font-size:13px">   if ret == 0:</div><div class="gmail_msg" style="color:rgb(33,33,33);font-size:13px">     <a href="http://logger.info/" class="gmail_msg" target="_blank">logger.info</a>('SDK published successfully')</div><div class="gmail_msg" style="color:rgb(33,33,33);font-size:13px"><br class="gmail_msg"></div><div class="gmail_msg" style="color:rgb(33,33,33);font-size:13px"><div class="gmail_msg">I am happy to correct my environment if I am using the tool wrong or to submit the change according to the documentation. (In that case, should I submit to openembedded-devel? Should I create a bug first?)</div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">Thanks!</div><div class="gmail_msg">Jeremy</div></div></div><div dir="ltr">-- <br></div><div data-smartmail="gmail_signature"><div dir="ltr">Jeremy Thien<div>Adtec Digital</div><div><a href="http://adtecdigital.com">adtecdigital.com</a></div><div><a href="mailto:jeremy.thien@adtecdigital.net">jeremy.thien@adtecdigital.net</a></div></div></div>