blob: ce4d73caf6272a676eddace85c33a11a816f6163 [file] [log] [blame]
Brad Bishop316dfdd2018-06-25 12:45:53 -04001# Copyright (c) 2018 Joshua Watt, Garmin International,Inc.
2# Released under the MIT license (see COPYING.MIT for the terms)
3SUMMARY = "Generates Icecream toolchain for SDK"
Andrew Geissler90fd73c2021-03-05 15:25:55 -06004DESCRIPTION = "${SUMMARY}"
Brad Bishop316dfdd2018-06-25 12:45:53 -04005LICENSE = "MIT"
6LIC_FILES_CHKSUM = "file://${WORKDIR}/icecc-env.sh;beginline=2;endline=20;md5=dd6b68c1efed8a9fb04e409b3b287d47"
7
8INHIBIT_DEFAULT_DEPS = "1"
9
10SRC_URI = "\
11 file://icecc-env.sh \
12 file://icecc-setup.sh \
13 "
14
15inherit nativesdk
16
Brad Bishop19323692019-04-05 15:28:33 -040017ENV_NAME="${DISTRO}-${TCLIBC}-${SDK_ARCH}-@TARGET_PREFIX@${DISTRO_VERSION}.tar.gz"
Brad Bishop316dfdd2018-06-25 12:45:53 -040018
19do_compile() {
20}
21
22do_install() {
23 install -d ${D}${SDKPATHNATIVE}${datadir}/icecream/bin
24
25 install -d ${D}${SDKPATHNATIVE}/environment-setup.d/
26 install -m 0644 ${WORKDIR}/icecc-env.sh ${D}${SDKPATHNATIVE}/environment-setup.d/
27 sed -i ${D}${SDKPATHNATIVE}/environment-setup.d/icecc-env.sh \
Brad Bishop19323692019-04-05 15:28:33 -040028 -e 's,@TOOLCHAIN_ENV@,${ENV_NAME},g'
Brad Bishop316dfdd2018-06-25 12:45:53 -040029
30 install -d ${D}${SDKPATHNATIVE}/post-relocate-setup.d/
31 install -m 0755 ${WORKDIR}/icecc-setup.sh ${D}${SDKPATHNATIVE}/post-relocate-setup.d/
32 sed -i ${D}${SDKPATHNATIVE}/post-relocate-setup.d/icecc-setup.sh \
Brad Bishop19323692019-04-05 15:28:33 -040033 -e 's,@TOOLCHAIN_ENV@,${ENV_NAME},g'
Brad Bishop316dfdd2018-06-25 12:45:53 -040034}
35
36PACKAGES = "${PN}"
37FILES_${PN} = "${SDKPATHNATIVE}"
38RDEPENDS_${PN} += "nativesdk-icecc-create-env"
39