summaryrefslogtreecommitdiffstats
path: root/meta-xilinx-standalone/recipes-core/meta/gnu-toolchain-canadian.bb
blob: 1af09a5f59f22fc3d0f8e1bdb28895147a142fa0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
inherit cross-canadian

SUMMARY = "Links to the various GNU toolchains for use with the Xilinx multilib toolchain"
PN = "gnu-toolchain-canadian-${TARGET_SYS}"
BPN = "gnu-toolchain-canadian"

LICENSE = "MIT"

EXEEXT:sdkmingw32 = ".exe"

do_install () {
	if [ "${TARGET_SYS_MULTILIB_ORIGINAL}" != "" -a "${TARGET_SYS_MULTILIB_ORIGINAL}" != "${TARGET_SYS}" ]; then
		mkdir -p ${D}${bindir}

		# Create a link for each item references by the environment files
		for each in gcc g++ as ld gdb strip ranlib objcopy objdump readelf ar nm ; do
			ln -s ../${TARGET_SYS_MULTILIB_ORIGINAL}/${TARGET_SYS_MULTILIB_ORIGINAL}-${each}${EXEEXT} ${D}${bindir}/${TARGET_SYS}-${each}${EXEEXT}
		done
	fi
}

INHIBIT_DEFAULT_DEPS = "1"

ALLOW_EMPTY:${PN} = "1"
FILES:${PN} = "${bindir}"

PACKAGES = "${PN}"