Gentoo Archives: gentoo-commits

From: "Jorge Manuel B. S. Vicetto" <jmbsvicetto@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/catalyst:master commit in: targets/support/
Date: Thu, 23 Aug 2012 05:56:32
Message-Id: 1345511038.75a250a1bef09901640dc579fdc7cb6be341f078.jmbsvicetto@gentoo
1 commit: 75a250a1bef09901640dc579fdc7cb6be341f078
2 Author: Jorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto <AT> gentoo <DOT> org>
3 AuthorDate: Tue Aug 21 01:03:58 2012 +0000
4 Commit: Jorge Manuel B. S. Vicetto <jmbsvicetto <AT> gentoo <DOT> org>
5 CommitDate: Tue Aug 21 01:03:58 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/catalyst.git;a=commit;h=75a250a1
7
8 Whitespace.
9
10 ---
11 targets/support/bootloader-setup.sh | 22 +++++++++++-----------
12 targets/support/chroot-functions.sh | 9 ++++-----
13 targets/support/create-iso.sh | 4 ++--
14 targets/support/functions.sh | 18 +++++++++---------
15 targets/support/kill-chroot-pids.sh | 10 +++++-----
16 targets/support/kmerge.sh | 18 +++++++++---------
17 targets/support/livecdfs-update.sh | 2 +-
18 targets/support/mips-arcload_conf.sh | 2 +-
19 targets/support/rc-update.sh | 1 -
20 9 files changed, 42 insertions(+), 44 deletions(-)
21
22 diff --git a/targets/support/bootloader-setup.sh b/targets/support/bootloader-setup.sh
23 index 59f1abe..2fa44e0 100644
24 --- a/targets/support/bootloader-setup.sh
25 +++ b/targets/support/bootloader-setup.sh
26 @@ -64,27 +64,27 @@ case ${clst_hostarch} in
27 echo "fgcolor=white" >> ${icfg}
28 echo "bgcolor=black" >> ${icfg}
29 echo "message=/boot/boot.msg" >> ${icfg}
30 -
31 +
32 # Here is where I fix up the boot.msg file.
33 sed -e 's/ARCH/PowerPC/' \
34 -e 's/HARDWARE/Apple and IBM hardware/' \
35 -i $kmsg
36
37 - # Setup the IBM yaboot.conf
38 + # Setup the IBM yaboot.conf
39 etc_icfg=$1/etc/yaboot.conf
40 - mkdir -p $1/etc
41 + mkdir -p $1/etc
42 IBM_YABOOT="FALSE"
43 echo "root=/dev/ram" >> ${etc_icfg}
44 echo "fgcolor=white" >> ${etc_icfg}
45 echo "bgcolor=black" >> ${etc_icfg}
46 echo "message=/boot/boot.msg" >> ${etc_icfg}
47 -
48 +
49 for x in ${clst_boot_kernel}
50 - do
51 + do
52 eval "clst_kernel_console=\$clst_boot_kernel_${x}_console"
53 eval "clst_kernel_machine_type=\$clst_boot_kernel_${x}_machine_type"
54 eval custom_kopts=\$${x}_kernelopts
55 -
56 +
57 echo "APPENDING CUSTOM KERNEL ARGS: ${custom_kopts}"
58 if [ "${clst_kernel_machine_type}" == "ibm" ]
59 then
60 @@ -147,7 +147,7 @@ case ${clst_hostarch} in
61 echo "label=${x}" >> ${icfg}
62 echo "read-write" >> ${icfg}
63 echo "append=\"${default_append_line}\"" >> ${icfg}
64 -
65 +
66 for y in ${clst_kernel_console}
67 do
68 echo >> ${icfg}
69 @@ -179,7 +179,7 @@ case ${clst_hostarch} in
70 done
71
72 if [ "${IBM_YABOOT}" == "FALSE" ]
73 - then
74 + then
75 rm ${etc_kmsg}
76 rmdir $1/etc
77 if [ -d $1/ppc ]
78 @@ -280,7 +280,7 @@ case ${clst_hostarch} in
79 eval custom_kopts=\$${x}_kernelopts
80 echo "APPENDING CUSTOM KERNEL ARGS: ${custom_kopts}"
81 echo >> ${icfg}
82 -
83 +
84 eval "clst_kernel_softlevel=\$clst_boot_kernel_${x}_softlevel"
85
86 if [ -n "${clst_kernel_softlevel}" ]
87 @@ -375,9 +375,9 @@ case ${clst_hostarch} in
88 eval custom_kopts=\$${x}_kernelopts
89 echo "APPENDING CUSTOM KERNEL ARGS: ${custom_kopts}"
90 echo >> ${icfg}
91 -
92 +
93 eval "clst_kernel_softlevel=\$clst_boot_kernel_${x}_softlevel"
94 -
95 +
96 if [ -n "${clst_kernel_softlevel}" ]
97 then
98 for y in ${clst_kernel_softlevel}
99
100 diff --git a/targets/support/chroot-functions.sh b/targets/support/chroot-functions.sh
101 index 78db5ec..12597a3 100644
102 --- a/targets/support/chroot-functions.sh
103 +++ b/targets/support/chroot-functions.sh
104 @@ -251,8 +251,8 @@ run_merge() {
105 # Sets up the ROOT= parameter
106 # with no options ROOT=/
107 make_destpath ${clst_root_path}
108 -
109 - export EMERGE_WARNING_DELAY=0
110 +
111 + export EMERGE_WARNING_DELAY=0
112 export CLEAN_DELAY=0
113 export EBEEP_IGNORE=0
114 export EPAUSE_IGNORE=0
115 @@ -349,7 +349,7 @@ function copy_symlink() {
116 STACK=${2}
117 [ "${STACK}" = "" ] && STACK=16 || STACK=$((${STACK} - 1 ))
118
119 - if [ ${STACK} -le 0 ]
120 + if [ ${STACK} -le 0 ]
121 then
122 echo "WARNING : ${TARGET} : too many levels of symbolic links !"
123 return
124 @@ -359,7 +359,7 @@ function copy_symlink() {
125 mkdir -p ${clst_root_path}/`dirname ${1}`
126 [ ! -e ${clst_root_path}/${1} ] && \
127 cp -vfdp ${1} ${clst_root_path}/${1}
128 -
129 +
130 if [[ -n $(type -p realpath) ]]; then
131 TARGET=`realpath ${1}`
132 else
133 @@ -412,4 +412,3 @@ Icon=text-editor" > /usr/share/applications/gentoo-handbook.desktop
134
135 # We do this everywhere, so why not put it in this script
136 run_default_funcs
137 -
138
139 diff --git a/targets/support/create-iso.sh b/targets/support/create-iso.sh
140 index c525a39..06a1a75 100644
141 --- a/targets/support/create-iso.sh
142 +++ b/targets/support/create-iso.sh
143 @@ -284,8 +284,8 @@ case ${clst_hostarch} in
144 then
145 echo 'Creating ISO using EFI bootloader'
146 echo "mkisofs -J -R -l ${mkisofs_zisofs_opts} -V \"${clst_iso_volume_id}\" -o ${1} -b gentoo.efimg -c boot.cat -no-emul-boot ${clst_target_path}"
147 - mkisofs -J -R -l ${mkisofs_zisofs_opts} -V "${clst_iso_volume_id}" -o ${1} -b gentoo.efimg -c boot.cat -no-emul-boot ${clst_target_path} || die "Cannot make ISO image"
148 - else
149 + mkisofs -J -R -l ${mkisofs_zisofs_opts} -V "${clst_iso_volume_id}" -o ${1} -b gentoo.efimg -c boot.cat -no-emul-boot ${clst_target_path} || die "Cannot make ISO image"
150 + else
151 echo "mkisofs -J -R -l ${mkisofs_zisofs_opts} -V \"${clst_iso_volume_id}\" -o ${1} ${clst_target_path}"
152 mkisofs -J -R -l ${mkisofs_zisofs_opts} -V "${clst_iso_volume_id}" -o ${1} ${clst_target_path} || die "Cannot make ISO image"
153 fi
154
155 diff --git a/targets/support/functions.sh b/targets/support/functions.sh
156 index 429485b..0bc5d69 100644
157 --- a/targets/support/functions.sh
158 +++ b/targets/support/functions.sh
159 @@ -37,14 +37,14 @@ exec_in_chroot(){
160 chroot_path=${clst_chroot_path}${subdir}
161 copy_to_chroot ${clst_sharedir}/targets/support/chroot-functions.sh \
162 ${subdir}/tmp/
163 - echo "Running ${file_name} in chroot ${chroot_path}"
164 + echo "Running ${file_name} in chroot ${chroot_path}"
165 ${clst_CHROOT} ${chroot_path} /tmp/${file_name} || exit 1
166 else
167 copy_to_chroot ${1} tmp/
168 chroot_path=${clst_chroot_path}
169 copy_to_chroot ${clst_sharedir}/targets/support/chroot-functions.sh \
170 tmp/
171 - echo "Running ${file_name} in chroot ${chroot_path}"
172 + echo "Running ${file_name} in chroot ${chroot_path}"
173 ${clst_CHROOT} ${chroot_path}/ /tmp/${file_name} || exit 1
174 fi
175
176 @@ -97,12 +97,12 @@ extract_kernels() {
177
178 [ ! -e "${kbinary}" ] && die "Can't find kernel tarball at ${kbinary}"
179 mkdir -p ${1}/
180 - tar xjf ${kbinary} -C ${1}/
181 + tar xjf ${kbinary} -C ${1}/
182
183 # change config name from "config-*" to "gentoo", for example
184 #mv ${1}/config-* ${1}/${x}-config
185 - rm ${1}/config-*
186 -
187 + rm ${1}/config-*
188 +
189 # change kernel name from "kernel" to "gentoo", for example
190 if [ -e ${1}/kernel-* ]
191 then
192 @@ -117,12 +117,12 @@ extract_kernels() {
193
194 # change initrd name from "initrd" to "gentoo.igz", for example
195 if [ -e ${1}/initrd-* ]
196 - then
197 + then
198 mv ${1}/initrd-* ${1}/${x}.igz
199 fi
200
201 if [ -e ${1}/initramfs-* ]
202 - then
203 + then
204 mv ${1}/initramfs-* ${1}/${x}.igz
205 fi
206
207 @@ -135,7 +135,7 @@ extract_kernels() {
208
209 extract_modules() {
210 # $1 = Destination
211 - # $2 = kname
212 + # $2 = kname
213 kmodules="${clst_chroot_path}/tmp/kerncache/${2}-modules-${clst_version_stamp}.tar.bz2"
214
215 if [ -f "${kmodules}" ]
216 @@ -208,7 +208,7 @@ check_filesystem_type(){
217 cmdline_opts="${cmdline_opts} looptype=cramfs loop=/image.cramfs"
218 ;;
219 esac
220 -}
221 +}
222
223 run_crossdev() {
224 crossdev ${clst_CHOST}
225
226 diff --git a/targets/support/kill-chroot-pids.sh b/targets/support/kill-chroot-pids.sh
227 index 9e8bf01..ea8ee40 100644
228 --- a/targets/support/kill-chroot-pids.sh
229 +++ b/targets/support/kill-chroot-pids.sh
230 @@ -41,17 +41,17 @@ then
231 echo
232 echo "Killing process(es)"
233 echo "pid: process name"
234 - for pid in ${pids[@]}
235 - do
236 + for pid in ${pids[@]}
237 + do
238 P_NAME=$(ls -la --color=never /proc/${pid} 2>&1 |grep exe|grep ${clst_chroot_path}|awk '{print $11}')
239 echo ${pid}: ${P_NAME}
240 done
241 - echo
242 + echo
243 echo "Press Ctrl-C within 10 seconds to abort"
244 -
245 +
246 sleep 10
247
248 - for pid in ${pids[@]}
249 + for pid in ${pids[@]}
250 do
251 kill -9 ${pid}
252 done
253
254 diff --git a/targets/support/kmerge.sh b/targets/support/kmerge.sh
255 index f57508f..b731373 100644
256 --- a/targets/support/kmerge.sh
257 +++ b/targets/support/kmerge.sh
258 @@ -49,7 +49,7 @@ setup_gk_args() {
259 then
260 GK_ARGS="${GK_ARGS} --kernel-cc=/usr/lib/ccache/bin/gcc --utils-cc=/usr/lib/ccache/bin/gcc"
261 fi
262 -
263 +
264 if [ -n "${clst_linuxrc}" ]
265 then
266 GK_ARGS="${GK_ARGS} --linuxrc=/tmp/linuxrc"
267 @@ -77,7 +77,7 @@ genkernel_compile(){
268
269 setup_gk_args
270 #echo "The GK_ARGS are"
271 - #echo ${GK_ARGS}
272 + #echo ${GK_ARGS}
273 export clst_kernel_merge
274 export clst_initramfs_overlay
275 # Build our list of kernel packages
276 @@ -141,15 +141,15 @@ fi
277 # USE variables (and thus different patches enabled/disabled.) Also, there's no
278 # real benefit in using the pkgcache for kernel source ebuilds.
279
280 -USE_MATCH=0
281 +USE_MATCH=0
282 if [ -e /tmp/kerncache/${clst_kname}/${clst_kname}-${clst_version_stamp}.USE ]
283 then
284 STR1=$(for i in `cat /tmp/kerncache/${clst_kname}/${clst_kname}-${clst_version_stamp}.USE`; do echo $i; done|sort)
285 STR2=$(for i in ${clst_kernel_use}; do echo $i; done|sort)
286 if [ "${STR1}" = "${STR2}" ]
287 - then
288 + then
289 #echo "USE Flags match"
290 - USE_MATCH=1
291 + USE_MATCH=1
292 else
293 if [ -n "${clst_KERNCACHE}" ]
294 then
295 @@ -167,7 +167,7 @@ then
296 STR1=`cat /tmp/kerncache/${clst_kname}/${clst_kname}-${clst_version_stamp}.EXTRAVERSION`
297 STR2=${clst_kextraversion}
298 if [ "${STR1}" = "${STR2}" ]
299 - then
300 + then
301 if [ -n "${clst_KERNCACHE}" ]
302 then
303 #echo "EXTRAVERSION match"
304 @@ -182,7 +182,7 @@ then
305 STR1=`cat /tmp/kerncache/${clst_kname}/${clst_kname}-${clst_version_stamp}.CONFIG`
306 STR2=`md5sum /var/tmp/${clst_kname}.config|awk '{print $1}'`
307 if [ "${STR1}" = "${STR2}" ]
308 - then
309 + then
310 if [ -n "${clst_KERNCACHE}" ]
311 then
312 #echo "CONFIG match"
313 @@ -204,7 +204,7 @@ then
314 mkdir -p /etc/portage/profile
315 echo "${KERNELVERSION}" > /etc/portage/profile/package.provided
316 else
317 - if ( ! grep -q "^${KERNELVERSION}\$" /etc/portage/profile/package.provided )
318 + if ( ! grep -q "^${KERNELVERSION}\$" /etc/portage/profile/package.provided )
319 then
320 echo "${KERNELVERSION}" >> /etc/portage/profile/package.provided
321 fi
322 @@ -226,7 +226,7 @@ then
323 echo "Setting extraversion to ${clst_kextraversion}"
324 sed -i -e "s:EXTRAVERSION \(=.*\):EXTRAVERSION \1-${clst_kextraversion}:" /usr/src/linux/Makefile
325 echo ${clst_kextraversion} > /tmp/kerncache/${clst_kname}/${clst_kname}-${clst_version_stamp}.EXTRAVERSION
326 - else
327 + else
328 touch /tmp/kerncache/${clst_kname}/${clst_kname}-${clst_version_stamp}.EXTRAVERSION
329 fi
330 fi
331
332 diff --git a/targets/support/livecdfs-update.sh b/targets/support/livecdfs-update.sh
333 index a7aad5f..2b41bf6 100644
334 --- a/targets/support/livecdfs-update.sh
335 +++ b/targets/support/livecdfs-update.sh
336 @@ -178,7 +178,7 @@ fi
337 # touch /etc/asound.state
338 touch /etc/asound.state
339
340 -# Tweak the MOTD for Gentoo releases
341 +# Tweak the MOTD for Gentoo releases
342 case ${clst_livecd_type} in
343 gentoo-release-universal)
344 cat /etc/generic.motd.txt /etc/universal.motd.txt \
345
346 diff --git a/targets/support/mips-arcload_conf.sh b/targets/support/mips-arcload_conf.sh
347 index 29692b4..cecddd9 100644
348 --- a/targets/support/mips-arcload_conf.sh
349 +++ b/targets/support/mips-arcload_conf.sh
350 @@ -37,7 +37,7 @@ serial="serial {\n\
351 dbg="debug {\n\
352 \tdescription\t\"Debug Shell\";\n\
353 \timage\t\t\"\";\n\
354 -\tappend\t\t\"real_root=shell\" \"nox\";\n}\n\n"
355 +\tappend\t\t\"real_root=shell\" \"nox\";\n}\n\n"
356
357 cmt1="comment\t\t\"\\\n\\\n\";\n\
358 comment\t\t\"Bootable Images & Options:\\\n\\\r\\\n\\\r\";\n"
359
360 diff --git a/targets/support/rc-update.sh b/targets/support/rc-update.sh
361 index 50c1da2..c3e8ed9 100644
362 --- a/targets/support/rc-update.sh
363 +++ b/targets/support/rc-update.sh
364 @@ -66,4 +66,3 @@ then
365 done
366 fi
367 fi
368 -