diff options
author | Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com> | 2016-04-27 17:43:44 -0700 |
---|---|---|
committer | Nathan Rossi <nathan@nathanrossi.com> | 2016-05-03 02:25:48 +1000 |
commit | 397108ce8b60f2beb0967c255500abbfa82b0eff (patch) | |
tree | 998a88e5e7ab40aca254d5e93fd3fa7fee3037ea /recipes-core | |
parent | ca731fb52eaa75d9417190f458e88b3842ae99ff (diff) | |
download | meta-xilinx-397108ce8b60f2beb0967c255500abbfa82b0eff.tar.gz |
external-xilinx-toolchain: Remove toolchain support
This patch removes the Xilinx SDK toolchain support in meta-xilinx BSP layer.
A new distro layer called meta-petalinux will be available as of May 9th 2016.
The recipes to support the Xilinx SDK toolchain will added to this distro
layer.
Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Diffstat (limited to 'recipes-core')
-rw-r--r-- | recipes-core/meta/external-xilinx-toolchain.bb | 173 | ||||
-rw-r--r-- | recipes-core/meta/external-xilinx-toolchain/SUPPORTED | 0 |
2 files changed, 0 insertions, 173 deletions
diff --git a/recipes-core/meta/external-xilinx-toolchain.bb b/recipes-core/meta/external-xilinx-toolchain.bb deleted file mode 100644 index 2274eea2..00000000 --- a/recipes-core/meta/external-xilinx-toolchain.bb +++ /dev/null | |||
@@ -1,173 +0,0 @@ | |||
1 | require recipes-core/glibc/glibc-package.inc | ||
2 | |||
3 | INHIBIT_DEFAULT_DEPS = "1" | ||
4 | |||
5 | # License applies to this recipe code, not the toolchain itself | ||
6 | SUMMARY = "External Xilinx toolchain" | ||
7 | LICENSE = "MIT" | ||
8 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" | ||
9 | |||
10 | DEPENDS += "${@base_conditional('PREFERRED_PROVIDER_linux-libc-headers', PN, '', 'linux-libc-headers', d)}" | ||
11 | PROVIDES += "\ | ||
12 | linux-libc-headers \ | ||
13 | virtual/${TARGET_PREFIX}gcc \ | ||
14 | virtual/${TARGET_PREFIX}g++ \ | ||
15 | virtual/${TARGET_PREFIX}gcc-initial \ | ||
16 | virtual/${TARGET_PREFIX}gcc-intermediate \ | ||
17 | virtual/${TARGET_PREFIX}binutils \ | ||
18 | virtual/${TARGET_PREFIX}libc-for-gcc \ | ||
19 | virtual/${TARGET_PREFIX}libc-initial \ | ||
20 | virtual/${TARGET_PREFIX}compilerlibs \ | ||
21 | virtual/libc \ | ||
22 | virtual/libintl \ | ||
23 | virtual/libiconv \ | ||
24 | virtual/linux-libc-headers \ | ||
25 | glibc-thread-db \ | ||
26 | libgcc \ | ||
27 | glibc \ | ||
28 | " | ||
29 | |||
30 | PV = "${CSL_VER_MAIN}" | ||
31 | PR = "r1" | ||
32 | |||
33 | SRC_URI = "file://SUPPORTED" | ||
34 | |||
35 | do_install() { | ||
36 | # Use optimized files if available | ||
37 | sysroot="${EXTERNAL_TOOLCHAIN_SYSROOT}" | ||
38 | dbgroot="${EXTERNAL_TOOLCHAIN_DBGROOT}" | ||
39 | |||
40 | cp -a $sysroot${base_libdir}/. ${D}${base_libdir} | ||
41 | cp -a $sysroot/sbin/. ${D}${base_sbindir} | ||
42 | |||
43 | install -d ${D}/usr | ||
44 | for usr_element in bin libexec sbin share ${base_libdir}; do | ||
45 | # Copy files from both the sysroot and the debugroot if they exist | ||
46 | if [ ! -z "$sysroot" -a -e $sysroot/usr/$usr_element ]; then | ||
47 | cp -a $sysroot/usr/$usr_element ${D}/usr/ | ||
48 | fi | ||
49 | if [ ! -z "$dbgroot" -a -e $dbgroot/usr/$usr_element ]; then | ||
50 | cp -a $dbgroot/usr/$usr_element ${D}/usr/ | ||
51 | fi | ||
52 | done | ||
53 | |||
54 | # Copy Include files | ||
55 | cp -a $sysroot/usr/include/. ${D}${includedir} | ||
56 | |||
57 | # strip out any multi-lib files (they are not supported) | ||
58 | for element in bs m ldscripts; do | ||
59 | if [ -e ${D}${libdir}/$element ]; then | ||
60 | rm -rf ${D}${libdir}/$element | ||
61 | fi | ||
62 | if [ -e ${D}${base_libdir}/$element ]; then | ||
63 | rm -rf ${D}${base_libdir}/$element | ||
64 | fi | ||
65 | done | ||
66 | |||
67 | # Clean up the image (remove files and directories that are not packaged) | ||
68 | ## ${D}${sysconfdir} | ||
69 | for i in ${D}/usr/share/zoneinfo ${D}/usr/lib/bin ${D}/usr/libexec ; do | ||
70 | if [ -e $i ]; then | ||
71 | rm -rf $i | ||
72 | fi | ||
73 | done | ||
74 | |||
75 | # Move some of the libs in /lib to /usr/lib | ||
76 | for i in libstdc++ libssp libatomic; do | ||
77 | if [ -e ${D}${base_libdir}/$i.so ]; then | ||
78 | mv ${D}${base_libdir}/$i.* ${D}${libdir}/ | ||
79 | fi | ||
80 | done | ||
81 | |||
82 | sed -i -e 's/__packed/__attribute__ ((packed))/' ${D}${includedir}/mtd/ubi-user.h | ||
83 | sed -i -e "s# ${base_libdir}# ../..${base_libdir}#g" -e "s# ${libdir}# .#g" ${D}${libdir}/libc.so | ||
84 | sed -i -e "s# ${base_libdir}# ../..${base_libdir}#g" -e "s# ${libdir}# .#g" ${D}${libdir}/libpthread.so | ||
85 | } | ||
86 | |||
87 | PACKAGES =+ " \ | ||
88 | libgcc libgcc-dev \ | ||
89 | libssp libssp-dev libssp-staticdev \ | ||
90 | libatomic libatomic-dev libatomic-staticdev \ | ||
91 | libstdc++ libstdc++-dev libstdc++-staticdev \ | ||
92 | linux-libc-headers linux-libc-headers-dev \ | ||
93 | gdbserver gdbserver-dbg \ | ||
94 | " | ||
95 | |||
96 | RDEPENDS_ldd += "bash" | ||
97 | RDEPENDS_tzcode += "bash" | ||
98 | |||
99 | # This test should be fixed to ignore .a files in .debug dirs | ||
100 | INSANE_SKIP_${PN}-dbg = "staticdev" | ||
101 | |||
102 | # We don't care about GNU_HASH in prebuilt binaries | ||
103 | INSANE_SKIP_${PN}-utils += "ldflags" | ||
104 | INSANE_SKIP_${PN}-dev += "ldflags" | ||
105 | INSANE_SKIP_libstdc++ += "ldflags" | ||
106 | INSANE_SKIP_libgcc += "ldflags" | ||
107 | INSANE_SKIP_libssp += "ldflags" | ||
108 | INSANE_SKIP_libatomic += "ldflags" | ||
109 | INSANE_SKIP_gdbserver += "ldflags" | ||
110 | |||
111 | PKG_${PN} = "glibc" | ||
112 | PKG_${PN}-dev = "glibc-dev" | ||
113 | PKG_${PN}-staticdev = "glibc-staticdev" | ||
114 | PKG_${PN}-doc = "glibc-doc" | ||
115 | PKG_${PN}-dbg = "glibc-dbg" | ||
116 | PKG_${PN}-pic = "glibc-pic" | ||
117 | PKG_${PN}-utils = "glibc-utils" | ||
118 | PKG_${PN}-gconv = "glibc-gconv" | ||
119 | PKG_${PN}-extra-nss = "glibc-extra-nss" | ||
120 | PKG_${PN}-thread-db = "glibc-thread-db" | ||
121 | PKG_${PN}-pcprofile = "glibc-pcprofile" | ||
122 | |||
123 | PKGV = "${CSL_VER_LIBC}" | ||
124 | PKGV_libssp = "${CSL_VER_GCC}" | ||
125 | PKGV_libssp-dev = "${CSL_VER_GCC}" | ||
126 | PKGV_libssp-staticdev = "${CSL_VER_GCC}" | ||
127 | PKGV_libatomic = "${CSL_VER_GCC}" | ||
128 | PKGV_libatomic-dev = "${CSL_VER_GCC}" | ||
129 | PKGV_libatomic-staticdev = "${CSL_VER_GCC}" | ||
130 | PKGV_libgcc = "${CSL_VER_GCC}" | ||
131 | PKGV_libgcc-dev = "${CSL_VER_GCC}" | ||
132 | PKGV_libstdc++ = "${CSL_VER_GCC}" | ||
133 | PKGV_libstdc++-dev = "${CSL_VER_GCC}" | ||
134 | PKGV_libstdc++-staticdev = "${CSL_VER_GCC}" | ||
135 | PKGV_linux-libc-headers = "${CSL_VER_KERNEL}" | ||
136 | PKGV_linux-libc-headers-dev = "${CSL_VER_KERNEL}" | ||
137 | PKGV_gdbserver = "${CSL_VER_GDB}" | ||
138 | PKGV_gdbserver-dbg = "${CSL_VER_GDB}" | ||
139 | |||
140 | FILES_libssp = "${libdir}/libssp.so.*" | ||
141 | FILES_libssp-dev = "${libdir}/libssp.so ${libdir}/libssp_nonshared.a ${libdir}/libssp_nonshared.la" | ||
142 | FILES_libssp-staticdev = "${libdir}/libssp.a ${libdir}/libssp.la" | ||
143 | FILES_libatomic = "${libdir}/libatomic.so.*" | ||
144 | FILES_libatomic-dev = "${libdir}/libatomic.so" | ||
145 | FILES_libatomic-staticdev = "${libdir}/libatomic.a ${libdir}/libatomic.la" | ||
146 | FILES_libgcc = "${base_libdir}/libgcc_s.so.1" | ||
147 | FILES_libgcc-dev = "${base_libdir}/libgcc_s.so" | ||
148 | FILES_libstdc++ = "${libdir}/libstdc++.so.*" | ||
149 | FILES_libstdc++-dev = " \ | ||
150 | ${includedir}/c++/${PV} \ | ||
151 | ${libdir}/libstdc++.so \ | ||
152 | ${libdir}/libstdc++.la \ | ||
153 | ${libdir}/libsupc++.la \ | ||
154 | " | ||
155 | FILES_libstdc++-staticdev = "${libdir}/libstdc++.a ${libdir}/libsupc++.a" | ||
156 | FILES_linux-libc-headers = " \ | ||
157 | ${includedir}/asm* \ | ||
158 | ${includedir}/linux \ | ||
159 | ${includedir}/mtd \ | ||
160 | ${includedir}/rdma \ | ||
161 | ${includedir}/scsi \ | ||
162 | ${includedir}/sound \ | ||
163 | ${includedir}/video \ | ||
164 | " | ||
165 | FILES_gdbserver = "${bindir}/gdbserver" | ||
166 | FILES_gdbserver-dbg = "${bindir}/.debug/gdbserver" | ||
167 | |||
168 | CSL_VER_MAIN ??= "" | ||
169 | |||
170 | python () { | ||
171 | if not d.getVar("CSL_VER_MAIN", True): | ||
172 | raise bb.parse.SkipPackage("External toolchain not configured (CSL_VER_MAIN not set).") | ||
173 | } | ||
diff --git a/recipes-core/meta/external-xilinx-toolchain/SUPPORTED b/recipes-core/meta/external-xilinx-toolchain/SUPPORTED deleted file mode 100644 index e69de29b..00000000 --- a/recipes-core/meta/external-xilinx-toolchain/SUPPORTED +++ /dev/null | |||