<div dir="auto"><div><br><div class="gmail_extra"><br><div class="gmail_quote">On Feb 16, 2018 17:44, &quot;Martin Jansa&quot; &lt;<a href="mailto:martin.jansa@gmail.com">martin.jansa@gmail.com</a>&gt; wrote:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Is the LIC_FILES_CHKSUM correct? Doesn&#39;t match here:</div></div></blockquote></div></div></div><div dir="auto"><br></div><div dir="auto">No I must have updated the copyright and missed the checksum</div><div dir="auto"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><br></div><div><br></div><div>nativesdk-icecc-toolchain/0.1-<wbr>r0/icecc-env.sh;beginline=2;en</div><div>dline=20;md5=<wbr>aafdb7bc2aa7ac5d039fda0c873398<wbr>3c</div><div>nativesdk-icecc-toolchain: The new md5 checksum is dd6b68c1efed8a9fb04e409b3b287d<wbr>47</div><div>nativesdk-icecc-toolchain: Here is the selected license text:</div><div>vvvvvvvvvvvvvvvvvvvvvvvvvvvv beginline=2 vvvvvvvvvvvvvvvvvvvvvvvvvvvvv</div><div class="quoted-text"><div># Copyright (c) 2018 Joshua Watt, Garmin International,Inc.</div></div><div>#</div><div class="quoted-text"><div># Permission is hereby granted, free of charge, to any person obtaining a copy</div></div><div class="quoted-text"><div># of this software and associated documentation files (the &quot;Software&quot;), to deal</div></div><div class="quoted-text"><div># in the Software without restriction, including without limitation the rights</div></div><div class="quoted-text"><div># to use, copy, modify, merge, publish, distribute, sublicense, and/or sell</div></div><div class="quoted-text"><div># copies of the Software, and to permit persons to whom the Software is</div></div><div class="quoted-text"><div># furnished to do so, subject to the following conditions:</div></div><div>#</div><div class="quoted-text"><div># The above copyright notice and this permission notice shall be included in</div></div><div class="quoted-text"><div># all copies or substantial portions of the Software.</div></div><div>#</div><div class="quoted-text"><div># THE SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR</div></div><div class="quoted-text"><div># IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,</div></div><div class="quoted-text"><div># FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE</div></div><div class="quoted-text"><div># AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER</div></div><div class="quoted-text"><div># LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,</div></div><div class="quoted-text"><div># OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE</div></div><div># SOFTWARE.</div><div>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ endline=20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div class="elided-text">On Tue, Feb 6, 2018 at 11:01 PM, Joshua Watt <span dir="ltr">&lt;<a href="mailto:jpewhacker@gmail.com" target="_blank">jpewhacker@gmail.com</a>&gt;</span> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="elided-text">IceCream can now be optionally included in the generated SDK by<br>
including nativesdk-icecc-toolchain to TOOLCHAIN_HOST_TASK. When the SDK<br>
is installed, it will check if icecc exists, and if so will generate the<br>
toolchain environment.<br>
<br>
Signed-off-by: Joshua Watt &lt;<a href="mailto:JPEWhacker@gmail.com" target="_blank">JPEWhacker@gmail.com</a>&gt;<br>
---<br>
 .../icecc-toolchain/icecc-too<wbr>lchain/icecc-env.sh   | 37 +++++++++++++++++++<br>
 .../icecc-toolchain/icecc-too<wbr>lchain/icecc-setup.sh | 43 ++++++++++++++++++++++<br>
 .../<a href="http://nativesdk-icecc-toolchain_0.1.bb" rel="noreferrer" target="_blank">nativesdk-icecc-<wbr>toolchain_0.1.bb</a>               | 38 +++++++++++++++++++<br>
 3 files changed, 118 insertions(+)<br>
 create mode 100644 meta/recipes-devtools/icecc-to<wbr>olchain/icecc-toolchain/icecc-<wbr>env.sh<br>
 create mode 100644 meta/recipes-devtools/icecc-to<wbr>olchain/icecc-toolchain/icecc-<wbr>setup.sh<br>
 create mode 100644 meta/recipes-devtools/icecc-to<wbr>olchain/<a href="http://nativesdk-icecc-toolchain_0.1.bb" rel="noreferrer" target="_blank">nativesdk-icecc-toolch<wbr>ain_0.1.bb</a><br>
<br>
diff --git a/meta/recipes-devtools/icecc-<wbr>toolchain/icecc-toolchain/icec<wbr>c-env.sh b/meta/recipes-devtools/icecc-<wbr>toolchain/icecc-toolchain/icec<wbr>c-env.sh<br>
new file mode 100644<br>
index 00000000000..4c34edbbc5d<br>
--- /dev/null<br>
+++ b/meta/recipes-devtools/icecc-<wbr>toolchain/icecc-toolchain/icec<wbr>c-env.sh<br>
@@ -0,0 +1,37 @@<br>
+#! /bin/sh<br>
+# Copyright 2018 Garmin Ltd. or its subsidiaries<br>
+#<br>
+# Permission is hereby granted, free of charge, to any person obtaining a copy<br>
+# of this software and associated documentation files (the &quot;Software&quot;), to deal<br>
+# in the Software without restriction, including without limitation the rights<br>
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell<br>
+# copies of the Software, and to permit persons to whom the Software is<br>
+# furnished to do so, subject to the following conditions:<br>
+#<br>
+# The above copyright notice and this permission notice shall be included in<br>
+# all copies or substantial portions of the Software.<br>
+#<br>
+# THE SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR<br>
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,<br>
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE<br>
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER<br>
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,<br>
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE<br>
+# SOFTWARE.<br>
+#<br>
+<br>
+if [ -z &quot;$ICECC_PATH&quot; ]; then<br>
+    ICECC_PATH=$(which icecc 2&gt; /dev/null)<br>
+fi<br>
+<br>
+if [ -n &quot;$ICECC_PATH&quot; ]; then<br>
+    export ICECC_PATH<br>
+    export ICECC_VERSION=&quot;$OECORE_NATIVE_<wbr>SYSROOT/usr/share/icecream/@TO<wbr>OLCHAIN_ENV@&quot;<br>
+    export ICECC=&quot;$(which ${CROSS_COMPILE}gcc)&quot;<br>
+    export ICECXX=&quot;$(which ${CROSS_COMPILE}g++)&quot;<br>
+    export ICEAS=&quot;$(which ${CROSS_COMPILE}as)&quot;<br>
+    export PATH=&quot;$OECORE_NATIVE_SYSROOT/u<wbr>sr/share/icecream/bin:$PATH&quot;<br>
+else<br>
+    echo &quot;Icecc not found. Disabling distributed compiling&quot;<br>
+fi<br>
+<br>
diff --git a/meta/recipes-devtools/icecc-<wbr>toolchain/icecc-toolchain/icec<wbr>c-setup.sh b/meta/recipes-devtools/icecc-<wbr>toolchain/icecc-toolchain/icec<wbr>c-setup.sh<br>
new file mode 100644<br>
index 00000000000..a433e55b029<br>
--- /dev/null<br>
+++ b/meta/recipes-devtools/icecc-<wbr>toolchain/icecc-toolchain/icec<wbr>c-setup.sh<br>
@@ -0,0 +1,43 @@<br>
+#! /bin/sh<br>
+# Copyright 2018 Garmin Ltd. or its subsidiaries<br>
+#<br>
+# Permission is hereby granted, free of charge, to any person obtaining a copy<br>
+# of this software and associated documentation files (the &quot;Software&quot;), to deal<br>
+# in the Software without restriction, including without limitation the rights<br>
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell<br>
+# copies of the Software, and to permit persons to whom the Software is<br>
+# furnished to do so, subject to the following conditions:<br>
+#<br>
+# The above copyright notice and this permission notice shall be included in<br>
+# all copies or substantial portions of the Software.<br>
+#<br>
+# THE SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR<br>
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,<br>
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE<br>
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER<br>
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,<br>
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE<br>
+# SOFTWARE.<br>
+#<br>
+<br>
+# Setup environment<br>
+for env_setup_script in `ls $1/environment-setup-*`; do<br>
+       . $env_setup_script<br>
+done<br>
+<br>
+# ICECC_PATH will have been found icecc-env.sh<br>
+if [ -z &quot;$ICECC_PATH&quot; ]; then<br>
+    exit 0<br>
+fi<br>
+<br>
+echo &quot;Setting up IceCream distributed compiling...&quot;<br>
+<br>
+# Create the environment<br>
+mkdir -p &quot;`dirname $ICECC_VERSION`&quot;<br>
+icecc-create-env $ICECC $ICECXX $ICEAS $ICECC_VERSION || exit $?<br>
+<br>
+# Create symbolic links<br>
+d=&quot;$OECORE_NATIVE_SYSROOT/usr<wbr>/share/icecream/bin&quot;<br>
+mkdir -p &quot;$d&quot;<br>
+ln -s &quot;$ICECC_PATH&quot; &quot;$d/${CROSS_COMPILE}gcc&quot;<br>
+ln -s &quot;$ICECC_PATH&quot; &quot;$d/${CROSS_COMPILE}g++&quot;<br>
diff --git a/meta/recipes-devtools/icecc-<wbr>toolchain/<a href="http://nativesdk-icecc-toolchain_0.1.bb" rel="noreferrer" target="_blank">nativesdk-icecc-tool<wbr>chain_0.1.bb</a> b/meta/recipes-devtools/icecc-<wbr>toolchain/<a href="http://nativesdk-icecc-toolchain_0.1.bb" rel="noreferrer" target="_blank">nativesdk-icecc-tool<wbr>chain_0.1.bb</a><br>
new file mode 100644<br>
index 00000000000..28b2924ebfb<br>
--- /dev/null<br>
+++ b/meta/recipes-devtools/icecc-<wbr>toolchain/<a href="http://nativesdk-icecc-toolchain_0.1.bb" rel="noreferrer" target="_blank">nativesdk-icecc-tool<wbr>chain_0.1.bb</a><br>
@@ -0,0 +1,38 @@<br>
+# Copyright (C) 2018 Joshua Watt &lt;<a href="mailto:JPEWhacker@gmail.com" target="_blank">JPEWhacker@gmail.com</a>&gt;<br>
+# Released under the MIT license (see COPYING.MIT for the terms)<br>
+DESCRIPTION = &quot;Generates IceCream toolchains for SDKs&quot;<br>
+LICENSE = &quot;MIT&quot;<br>
+LIC_FILES_CHKSUM = &quot;file://${WORKDIR}/icecc-env.s<wbr>h;beginline=2;endline=20;md5=a<wbr>afdb7bc2aa7ac5d039fda0c8733983<wbr>c&quot;<br>
+<br>
+INHIBIT_DEFAULT_DEPS = &quot;1&quot;<br>
+<br>
+SRC_URI = &quot;\<br>
+    file://icecc-env.sh \<br>
+    file://icecc-setup.sh \<br>
+    &quot;<br>
+<br>
+inherit nativesdk<br>
+<br>
+ENV_NAME=&quot;${DISTRO}-${TCLIBC}<wbr>-${SDK_ARCH}-${TUNE_PKGARCH}-$<wbr>{DISTRO_VERSION}.tar.gz&quot;<br>
+<br>
+do_compile() {<br>
+}<br>
+<br>
+do_install() {<br>
+    install -d ${D}${SDKPATHNATIVE}${datadir}<wbr>/icecream/bin<br>
+<br>
+    install -d ${D}${SDKPATHNATIVE}/environme<wbr>nt-setup.d/<br>
+    install -m 0644 ${WORKDIR}/icecc-env.sh ${D}${SDKPATHNATIVE}/environme<wbr>nt-setup.d/<br>
+    sed -i ${D}${SDKPATHNATIVE}/environme<wbr>nt-setup.d/icecc-env.sh \<br>
+        -e &quot;s,@TOOLCHAIN_ENV@,${ENV_NAME}<wbr>,g&quot;<br>
+<br>
+    install -d ${D}${SDKPATHNATIVE}/post-relo<wbr>cate-setup.d/<br>
+    install -m 0755 ${WORKDIR}/icecc-setup.sh ${D}${SDKPATHNATIVE}/post-relo<wbr>cate-setup.d/<br>
+    sed -i ${D}${SDKPATHNATIVE}/post-relo<wbr>cate-setup.d/icecc-setup.sh \<br>
+        -e &quot;s,@TOOLCHAIN_ENV@,${ENV_NAME}<wbr>,g&quot;<br>
+}<br>
+<br>
+PACKAGES = &quot;${PN}&quot;<br>
+FILES_${PN} = &quot;${SDKPATHNATIVE}&quot;<br>
+RDEPENDS_${PN} += &quot;nativesdk-icecc-create-env&quot;<br>
+<br>
</div><font color="#888888"><span class="m_5310166592166374601HOEnZb"><font color="#888888">--<br>
2.14.3<br>
<br>
--<br>
______________________________<wbr>_________________<br>
Openembedded-core mailing list<br>
<a href="mailto:Openembedded-core@lists.openembedded.org" target="_blank">Openembedded-core@lists.openem<wbr>bedded.org</a><br>
<a href="http://lists.openembedded.org/mailman/listinfo/openembedded-core" rel="noreferrer" target="_blank">http://lists.openembedded.org/<wbr>mailman/listinfo/openembedded-<wbr>core</a><br>
</font></span></font></blockquote></div><br></div>
</blockquote></div><br></div></div></div>