Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 1 | # Copyright (c) 2018 Joshua Watt, Garmin International,Inc. |
| 2 | # Released under the MIT license (see COPYING.MIT for the terms) |
| 3 | SUMMARY = "Generates Icecream toolchain for SDK" |
Andrew Geissler | 90fd73c | 2021-03-05 15:25:55 -0600 | [diff] [blame] | 4 | DESCRIPTION = "${SUMMARY}" |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 5 | LICENSE = "MIT" |
| 6 | LIC_FILES_CHKSUM = "file://${WORKDIR}/icecc-env.sh;beginline=2;endline=20;md5=dd6b68c1efed8a9fb04e409b3b287d47" |
| 7 | |
| 8 | INHIBIT_DEFAULT_DEPS = "1" |
| 9 | |
| 10 | SRC_URI = "\ |
| 11 | file://icecc-env.sh \ |
| 12 | file://icecc-setup.sh \ |
| 13 | " |
| 14 | |
| 15 | inherit nativesdk |
| 16 | |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 17 | ENV_NAME="${DISTRO}-${TCLIBC}-${SDK_ARCH}-@TARGET_PREFIX@${DISTRO_VERSION}.tar.gz" |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 18 | |
| 19 | do_compile() { |
| 20 | } |
| 21 | |
| 22 | do_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 Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 28 | -e 's,@TOOLCHAIN_ENV@,${ENV_NAME},g' |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 29 | |
| 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 Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 33 | -e 's,@TOOLCHAIN_ENV@,${ENV_NAME},g' |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 34 | } |
| 35 | |
| 36 | PACKAGES = "${PN}" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame^] | 37 | FILES:${PN} = "${SDKPATHNATIVE}" |
| 38 | RDEPENDS:${PN} += "nativesdk-icecc-create-env" |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 39 | |