Check-in [cda986483e]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Added start of powerpc support from stage1
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | add-powerpc
Files: files | file ages | folders
SHA1:cda986483e3edbf8ee286b7de37c66ad10142d98
User & Date: rkeene 2016-11-09 23:40:45
Context
2016-11-09
23:40
Added start of powerpc support from stage1 Leaf check-in: cda986483e user: rkeene tags: add-powerpc
2016-01-27
04:00
Build-CC 0.12 check-in: e451592ac8 user: rkeene tags: trunk, 0.12
Changes

Changes to build-cc.

65
66
67
68
69
70
71

72
73
74
75
76
77
78
### Determine list of platforms
platforms=(
	armel-generic-linux-uclibc
	mipsel-generic-linux-uclibc
	mips-generic-linux-musl
	x86_64-generic-linux-musl
	x86_64-generic-linux-gnu

)

untested_platforms=(
	powerpc-generic-linux-gnu
	powerpc-generic-linux-uclibc
	mips64-ubnt-linux-gnu
)







>







65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
### Determine list of platforms
platforms=(
	armel-generic-linux-uclibc
	mipsel-generic-linux-uclibc
	mips-generic-linux-musl
	x86_64-generic-linux-musl
	x86_64-generic-linux-gnu
	powerpc-generic-linux-gnu
)

untested_platforms=(
	powerpc-generic-linux-gnu
	powerpc-generic-linux-uclibc
	mips64-ubnt-linux-gnu
)

Changes to scripts/common.

60
61
62
63
64
65
66

67
68
69
70
71
72
73
..
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
...
130
131
132
133
134
135
136

137
138
139
140
141
142
143
...
147
148
149
150
151
152
153
154

155
156
157
158
159
160
161
...
177
178
179
180
181
182
183



184
#    CCNAME
#    PREFIX
function multilib () {
	local arch
	local mode
	local archs host libdir cflags
	local addprefix


	mode='cflags'

	if [ "$1" = '--libdir' ]; then
		mode='libdir'

		shift
................................................................................

	# If no architecture is given, return the list of architectures
	if [ -z "${arch}" ]; then
		mode='list'
	else
		cflags=""
		if [ "${arch}" != '_' ]; then
			cflags="${arch}"
		fi
	fi

	case "${mode}" in
		list)
			archs="$(${CC} -print-multi-lib | grep -v '^[^;]*/' | sed 's/^.*;//;s/^@/-/;s@^ *$@_@')"
			if [ -z "${archs}" ]; then
				archs='_'
			fi

			echo "${archs}"

			return 0
................................................................................
			libdir="$(cd "${libdir}" && pwd)" || exit 1

			if [ "${addprefix}" = '0' ]; then
				libdir="$(echo "${libdir}" | sed 's@^'"${PREFIX}"'/@/@')"
			fi

			echo "${libdir}"


			return 0
			;;
		host)
			if [ "${arch}" = '_' ]; then
				echo "${CCNAME}"
				return 0
................................................................................
				-m32)
					host="$(echo "${CCNAME}" | sed 's@^x86_64-@i486-@;s@^sparcv9-@sparc-@')"
					;;
				-m64)
					host="$(echo "${CCNAME}" | sed 's@^i.86-@x86_64-@;s@-x32-@-@;s@^x32-@x86_64-@;s@^sparc-@sparcv9-@')"
					;;
				*)
					host="${CCNAME}.${arch}"

					;;
			esac

			echo "${host}"

			return 0
			;;
................................................................................
		;;
	sparc*)
		arch=sparc
		;;
	i?86)
		arch=i386
		;;



esac







>







 







|





|







 







>







 







|
>







 







>
>
>

60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
..
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
...
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
...
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
...
180
181
182
183
184
185
186
187
188
189
190
#    CCNAME
#    PREFIX
function multilib () {
	local arch
	local mode
	local archs host libdir cflags
	local addprefix
	local hostCode

	mode='cflags'

	if [ "$1" = '--libdir' ]; then
		mode='libdir'

		shift
................................................................................

	# If no architecture is given, return the list of architectures
	if [ -z "${arch}" ]; then
		mode='list'
	else
		cflags=""
		if [ "${arch}" != '_' ]; then
			cflags="$(echo "${arch}" | sed 's@_@ @g')"
		fi
	fi

	case "${mode}" in
		list)
			archs="$(${CC} -print-multi-lib | grep -v '^[^;]*/' | sed 's/^.*;//;s/@/ -/g;s@^ *$@_@;s@^  *@@;s@  *$@@;s@  *@_@g')"
			if [ -z "${archs}" ]; then
				archs='_'
			fi

			echo "${archs}"

			return 0
................................................................................
			libdir="$(cd "${libdir}" && pwd)" || exit 1

			if [ "${addprefix}" = '0' ]; then
				libdir="$(echo "${libdir}" | sed 's@^'"${PREFIX}"'/@/@')"
			fi

			echo "${libdir}"
			echo "${libdir}" >> /tmp/libdir.log 

			return 0
			;;
		host)
			if [ "${arch}" = '_' ]; then
				echo "${CCNAME}"
				return 0
................................................................................
				-m32)
					host="$(echo "${CCNAME}" | sed 's@^x86_64-@i486-@;s@^sparcv9-@sparc-@')"
					;;
				-m64)
					host="$(echo "${CCNAME}" | sed 's@^i.86-@x86_64-@;s@-x32-@-@;s@^x32-@x86_64-@;s@^sparc-@sparcv9-@')"
					;;
				*)
					hostCode="$(echo "${arch}" | openssl dgst -md5 | sed 's@.*= *@@')"
					host="$(echo "${CCNAME}" | sed 's@-generic-@-md5'"${hostCode}"'-@g')"
					;;
			esac

			echo "${host}"

			return 0
			;;
................................................................................
		;;
	sparc*)
		arch=sparc
		;;
	i?86)
		arch=i386
		;;
	powerpc*)
		arch=powerpc
		;;
esac

Changes to scripts/post/02-glibc.

1
2
3
4
5
6
7
8
9
10
11
12
#! /bin/bash

# URLs and versions
if [ -z "${GLIBC_VERS}" ]; then
	GLIBC_VERS='2.22'
fi
GLIBC_URL="http://ftp.gnu.org/gnu/glibc/glibc-${GLIBC_VERS}.tar.gz"
GLIBC_TARBALL="src/glibc-${GLIBC_VERS}.tar.gz"
GLIBC_DIR="glibc-${GLIBC_VERS}"

if [ -z "${GLIBC_PORTS_VERS}" ]; then
	GLIBC_PORTS_VERS='2.16.0'




|







1
2
3
4
5
6
7
8
9
10
11
12
#! /bin/bash

# URLs and versions
if [ -z "${GLIBC_VERS}" ]; then
	GLIBC_VERS='2.23'
fi
GLIBC_URL="http://ftp.gnu.org/gnu/glibc/glibc-${GLIBC_VERS}.tar.gz"
GLIBC_TARBALL="src/glibc-${GLIBC_VERS}.tar.gz"
GLIBC_DIR="glibc-${GLIBC_VERS}"

if [ -z "${GLIBC_PORTS_VERS}" ]; then
	GLIBC_PORTS_VERS='2.16.0'