Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 218125
Collapse All | Expand All

(-)old/toolchain-funcs.eclass (-11 / +13 lines)
Lines 170-176 ninj() { [[ ${type} == "kern" ]] && echo Link Here
170
		bfin*)		ninj blackfin bfin;;
170
		bfin*)		ninj blackfin bfin;;
171
		cris*)		echo cris;;
171
		cris*)		echo cris;;
172
		hppa*)		ninj parisc hppa;;
172
		hppa*)		ninj parisc hppa;;
173
		i?86*)
173
		x86_64*|k8|athlon64*|opteron*)
174
			# WARN: k8/athlon64* MUST be checked BEFORE k?/athlon* - else athlon64 -> i386/x86 !!!
175
			# Starting with linux-2.6.24, the 'x86_64' and 'i386'
176
			# trees have been unified into 'x86'.
177
			if [[ ${type} == "kern" ]] && [[ $(KV_to_int ${KV}) -ge $(KV_to_int 2.6.24) ]] ; then
178
				echo x86
179
			else
180
				ninj x86_64 amd64
181
			fi
182
			;;
183
		i?86*|k?*|athlon*|pentium*|win*)
184
			# WARN: k8/athlon64* MUST be checked BEFORE k?/athlon* - else athlon64 -> i386/x86 !!!
174
			# Starting with linux-2.6.24, the 'x86_64' and 'i386'
185
			# Starting with linux-2.6.24, the 'x86_64' and 'i386'
175
			# trees have been unified into 'x86'.
186
			# trees have been unified into 'x86'.
176
			if [[ ${type} == "kern" ]] && [[ $(KV_to_int ${KV}) -lt $(KV_to_int 2.6.24) ]] ; then
187
			if [[ ${type} == "kern" ]] && [[ $(KV_to_int ${KV}) -lt $(KV_to_int 2.6.24) ]] ; then
Lines 213-227 ninj() { [[ ${type} == "kern" ]] && echo Link Here
213
						|| echo sparc
224
						|| echo sparc
214
					;;
225
					;;
215
		vax*)		echo vax;;
226
		vax*)		echo vax;;
216
		x86_64*)
217
			# Starting with linux-2.6.24, the 'x86_64' and 'i386'
218
			# trees have been unified into 'x86'.
219
			if [[ ${type} == "kern" ]] && [[ $(KV_to_int ${KV}) -ge $(KV_to_int 2.6.24) ]] ; then
220
				echo x86
221
			else
222
				ninj x86_64 amd64
223
			fi
224
			;;
225
227
226
		# since our usage of tc-arch is largely concerned with
228
		# since our usage of tc-arch is largely concerned with
227
		# normalizing inputs for testing ${CTARGET}, let's filter
229
		# normalizing inputs for testing ${CTARGET}, let's filter
Lines 253-259 tc-endian() { Link Here
253
		arm*)		echo little;;
255
		arm*)		echo little;;
254
		cris*)		echo little;;
256
		cris*)		echo little;;
255
		hppa*)		echo big;;
257
		hppa*)		echo big;;
256
		i?86*)		echo little;;
258
		i?86*|k?*|athlon*|pentium*|win*)	echo little;;
257
		ia64*)		echo little;;
259
		ia64*)		echo little;;
258
		m68*)		echo big;;
260
		m68*)		echo big;;
259
		mips*l*)	echo little;;
261
		mips*l*)	echo little;;

Return to bug 218125