Check-in [650e8c59b1]

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

Overview
Comment:Initial entry of script meant to cook iMac Since my iMac is overheating, write a script that will surely cause it to overheat whilst in the Apple Store.
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:650e8c59b18527c4e431e57e8b5878d85e93d304
User & Date: cfuhrman 2016-06-02 05:34:54
Context
2016-06-03
20:30
Bump up number of times userland is rebuild Build userland 100 times instead of 1 time, all but guaranteeing that this will cook my iMac. check-in: e1b8554859 user: cfuhrman tags: trunk
2016-06-02
05:34
Initial entry of script meant to cook iMac Since my iMac is overheating, write a script that will surely cause it to overheat whilst in the Apple Store. check-in: 650e8c59b1 user: cfuhrman tags: trunk
2015-12-24
15:23
Import stable-15.12.24.10 of svn backup scripts Import stable-15.12.24.10 of svn backup scripts from ansible repository. Use constants for trace levels when logging. This makes the code significantly more legible. While here, do some whitespace cleanup. check-in: 977dfa7ac1 user: cfuhrman tags: trunk
Changes

Added util/cook-imac.sh.







































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#!/bin/bash
# ====================================================================
#
# cook-imac.sh
#
#  Copyright (c) 2016 Christopher M. Fuhrman
#  All rights reserved
#
#  This program is free software; you can redistribute it and/or
#  modify it under terms of the Simplified BSD License (also
#  known as the "2-Clause License" or "FreeBSD License".)
#
#  Created Wed Jun  1 19:44:17 2016 PDT
#
# ====================================================================

#
# Attempts to get iMac to overheat by repeatedly compiling NetBSD
#

# Variables
CVSROOT=anoncvs@anoncvs.netbsd.org/cvsroot
MODULE=src
BRANCH=netbsd-7-0
MACHINE_ARCH=amd64
OBJDIR=$HOME/tmp/obj
MAKE_JOBS=4
DESTDIR=$HOME/tmp/dest.${MACHINE_ARCH}
RELEASEDIR=$HOME/tmp/releasesrc.${MACHINE_ARCH}
USERCOUNTER=0
USETOOLS=yes
USERLAND_COUNT=1

echo "==> Welcome to cook-imac.sh"

mkdir -p ~/dev/
mkdir -p $HOME/tmp/
cd ~/dev/

# Check out NetBSD source
if [ ! -d ~/dev/src ]; then
	echo "-> Downloading NetBSD src source tree"
	cvs -d $CVSROOT co -r${BRANCH} ${MODULE}
fi

echo "-> Starting compilation of toolchain"
cd src
sh ./build.sh -O ${OBJDIR} -j ${MAKE_JOBS} -m ${MACHINE_ARCH} -U tools

# Do we build kernel?
if [ ! -e ${OBJDIR}/sys/arch/${MACHINE_ARCH}/compile/GENERIC/netbsd ]; then
	echo "-> Building NetBSD kernel for ${MACHINE_ARCH}"
	sh build.sh -O ${OBJDIR} -j ${MAKE_JOBS} -m ${MACHINE_ARCH} -U -u kernel=GENERIC
else
	echo "-> Kernel has already been built"
fi

# Loop building userland
echo "==> Starting ${USERLAND_COUNT}x NetBSD userland build"
for i in `seq 1 ${USERLAND_COUNT}`; do
	echo "-> [$i] Building NetBSD userland"
	sh build.sh -O ${OBJDIR} -j ${MAKE_JOBS} -m ${MACHINE_ARCH} -U release
done

echo "==> Exiting after ${i} userland builds"

# Ende