aboutsummaryrefslogtreecommitdiffstats
path: root/meta-xilinx-standalone/recipes-core/meta/gnu-toolchain-canadian.bb
blob: ca8885b8700a1da367a21b95a45b4e35fea0660f (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
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"

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} ${D}${bindir}/${TARGET_SYS}-$each
		done
	fi
}

INHIBIT_DEFAULT_DEPS = "1"

ALLOW_EMPTY_${PN} = "1"
FILES_${PN} = "${bindir}"

PACKAGES = "${PN}"