<div dir="ltr"><div>Is the LIC_FILES_CHKSUM correct? Doesn't match here:</div><div><br></div><div><br></div><div>nativesdk-icecc-toolchain/0.1-r0/icecc-env.sh;beginline=2;en</div><div>dline=20;md5=aafdb7bc2aa7ac5d039fda0c8733983c</div><div>nativesdk-icecc-toolchain: The new md5 checksum is dd6b68c1efed8a9fb04e409b3b287d47</div><div>nativesdk-icecc-toolchain: Here is the selected license text:</div><div>vvvvvvvvvvvvvvvvvvvvvvvvvvvv beginline=2 vvvvvvvvvvvvvvvvvvvvvvvvvvvvv</div><div># Copyright (c) 2018 Joshua Watt, Garmin International,Inc.</div><div>#</div><div># Permission is hereby granted, free of charge, to any person obtaining a copy</div><div># of this software and associated documentation files (the "Software"), to deal</div><div># in the Software without restriction, including without limitation the rights</div><div># to use, copy, modify, merge, publish, distribute, sublicense, and/or sell</div><div># copies of the Software, and to permit persons to whom the Software is</div><div># furnished to do so, subject to the following conditions:</div><div>#</div><div># The above copyright notice and this permission notice shall be included in</div><div># all copies or substantial portions of the Software.</div><div>#</div><div># THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR</div><div># IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,</div><div># FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE</div><div># AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER</div><div># LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,</div><div># OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE</div><div># SOFTWARE.</div><div>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ endline=20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 6, 2018 at 11:01 PM, Joshua Watt <span dir="ltr"><<a href="mailto:jpewhacker@gmail.com" target="_blank">jpewhacker@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">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 <<a href="mailto:JPEWhacker@gmail.com">JPEWhacker@gmail.com</a>><br>
---<br>
.../icecc-toolchain/icecc-<wbr>toolchain/icecc-env.sh | 37 +++++++++++++++++++<br>
.../icecc-toolchain/icecc-<wbr>toolchain/icecc-setup.sh | 43 ++++++++++++++++++++++<br>
.../<a href="http://nativesdk-icecc-toolchain_0.1.bb" rel="noreferrer" target="_blank">nativesdk-icecc-toolchain_<wbr>0.1.bb</a> | 38 +++++++++++++++++++<br>
3 files changed, 118 insertions(+)<br>
create mode 100644 meta/recipes-devtools/icecc-<wbr>toolchain/icecc-toolchain/<wbr>icecc-env.sh<br>
create mode 100644 meta/recipes-devtools/icecc-<wbr>toolchain/icecc-toolchain/<wbr>icecc-setup.sh<br>
create mode 100644 meta/recipes-devtools/icecc-<wbr>toolchain/<a href="http://nativesdk-icecc-toolchain_0.1.bb" rel="noreferrer" target="_blank">nativesdk-icecc-<wbr>toolchain_0.1.bb</a><br>
<br>
diff --git a/meta/recipes-devtools/icecc-<wbr>toolchain/icecc-toolchain/<wbr>icecc-env.sh b/meta/recipes-devtools/icecc-<wbr>toolchain/icecc-toolchain/<wbr>icecc-env.sh<br>
new file mode 100644<br>
index 00000000000..4c34edbbc5d<br>
--- /dev/null<br>
+++ b/meta/recipes-devtools/icecc-<wbr>toolchain/icecc-toolchain/<wbr>icecc-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 "Software"), 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 "AS IS", 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 "$ICECC_PATH" ]; then<br>
+ ICECC_PATH=$(which icecc 2> /dev/null)<br>
+fi<br>
+<br>
+if [ -n "$ICECC_PATH" ]; then<br>
+ export ICECC_PATH<br>
+ export ICECC_VERSION="$OECORE_NATIVE_<wbr>SYSROOT/usr/share/icecream/@<wbr>TOOLCHAIN_ENV@"<br>
+ export ICECC="$(which ${CROSS_COMPILE}gcc)"<br>
+ export ICECXX="$(which ${CROSS_COMPILE}g++)"<br>
+ export ICEAS="$(which ${CROSS_COMPILE}as)"<br>
+ export PATH="$OECORE_NATIVE_SYSROOT/<wbr>usr/share/icecream/bin:$PATH"<br>
+else<br>
+ echo "Icecc not found. Disabling distributed compiling"<br>
+fi<br>
+<br>
diff --git a/meta/recipes-devtools/icecc-<wbr>toolchain/icecc-toolchain/<wbr>icecc-setup.sh b/meta/recipes-devtools/icecc-<wbr>toolchain/icecc-toolchain/<wbr>icecc-setup.sh<br>
new file mode 100644<br>
index 00000000000..a433e55b029<br>
--- /dev/null<br>
+++ b/meta/recipes-devtools/icecc-<wbr>toolchain/icecc-toolchain/<wbr>icecc-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 "Software"), 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 "AS IS", 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 "$ICECC_PATH" ]; then<br>
+ exit 0<br>
+fi<br>
+<br>
+echo "Setting up IceCream distributed compiling..."<br>
+<br>
+# Create the environment<br>
+mkdir -p "`dirname $ICECC_VERSION`"<br>
+icecc-create-env $ICECC $ICECXX $ICEAS $ICECC_VERSION || exit $?<br>
+<br>
+# Create symbolic links<br>
+d="$OECORE_NATIVE_SYSROOT/<wbr>usr/share/icecream/bin"<br>
+mkdir -p "$d"<br>
+ln -s "$ICECC_PATH" "$d/${CROSS_COMPILE}gcc"<br>
+ln -s "$ICECC_PATH" "$d/${CROSS_COMPILE}g++"<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-<wbr>toolchain_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-<wbr>toolchain_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-<wbr>toolchain_0.1.bb</a><br>
@@ -0,0 +1,38 @@<br>
+# Copyright (C) 2018 Joshua Watt <<a href="mailto:JPEWhacker@gmail.com">JPEWhacker@gmail.com</a>><br>
+# Released under the MIT license (see COPYING.MIT for the terms)<br>
+DESCRIPTION = "Generates IceCream toolchains for SDKs"<br>
+LICENSE = "MIT"<br>
+LIC_FILES_CHKSUM = "file://${WORKDIR}/icecc-env.<wbr>sh;beginline=2;endline=20;md5=<wbr>aafdb7bc2aa7ac5d039fda0c873398<wbr>3c"<br>
+<br>
+INHIBIT_DEFAULT_DEPS = "1"<br>
+<br>
+SRC_URI = "\<br>
+ file://icecc-env.sh \<br>
+ file://icecc-setup.sh \<br>
+ "<br>
+<br>
+inherit nativesdk<br>
+<br>
+ENV_NAME="${DISTRO}-${TCLIBC}<wbr>-${SDK_ARCH}-${TUNE_PKGARCH}-$<wbr>{DISTRO_VERSION}.tar.gz"<br>
+<br>
+do_compile() {<br>
+}<br>
+<br>
+do_install() {<br>
+ install -d ${D}${SDKPATHNATIVE}${datadir}<wbr>/icecream/bin<br>
+<br>
+ install -d ${D}${SDKPATHNATIVE}/<wbr>environment-setup.d/<br>
+ install -m 0644 ${WORKDIR}/icecc-env.sh ${D}${SDKPATHNATIVE}/<wbr>environment-setup.d/<br>
+ sed -i ${D}${SDKPATHNATIVE}/<wbr>environment-setup.d/icecc-env.<wbr>sh \<br>
+ -e "s,@TOOLCHAIN_ENV@,${ENV_NAME}<wbr>,g"<br>
+<br>
+ install -d ${D}${SDKPATHNATIVE}/post-<wbr>relocate-setup.d/<br>
+ install -m 0755 ${WORKDIR}/icecc-setup.sh ${D}${SDKPATHNATIVE}/post-<wbr>relocate-setup.d/<br>
+ sed -i ${D}${SDKPATHNATIVE}/post-<wbr>relocate-setup.d/icecc-setup.<wbr>sh \<br>
+ -e "s,@TOOLCHAIN_ENV@,${ENV_NAME}<wbr>,g"<br>
+}<br>
+<br>
+PACKAGES = "${PN}"<br>
+FILES_${PN} = "${SDKPATHNATIVE}"<br>
+RDEPENDS_${PN} += "nativesdk-icecc-create-env"<br>
+<br>
<span class="HOEnZb"><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">Openembedded-core@lists.<wbr>openembedded.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></blockquote></div><br></div>