[RFC][PATCH] Intelligible build process v0.02

Rob Landley (landley@trommello.org)
Sun, 13 Jan 2002 09:27:56 -0500


--------------Boundary-00=_K6SVAZQXPCYEDFPFPDJ5
Content-Type: text/plain;
charset="iso-8859-15"
Content-Transfer-Encoding: 8bit

Here's v0.02 for those intrepid testers who want to see what their build is
actually doing rather than watching a wall of mostly uninteresting text
scroll by really fast.

With this script, you can actually spot the warnings.

The previous version got really confused by what "make dep" did in response
to kernel module versions being switched on (but only after a fresh untar, or
after running make mrproper). I've now taught it more about the evils of
make dep, so it's less confused, but I wouldn't call the cleaned up version
of the output pretty... (I'm not too worried: Kieth Owens' new build makes
make dep go away completely. I now know a lot more about why this is a good
thing.)

Just throw the attached file in the scripts directory. The script to test
this still goes:

### Start of script

# "Entering directory" messages are just clutter in make dep

make dep | scripts/blueberry.py e

# This is short enough we don't need to see progress

echo "Cleaning out old temporary files."
echo " "
make clean > /dev/null

# Okay, build.

make bzImage | scripts/blueberry.py
make modules | scripts/blueberry.py

# make install/modules install require root access, not handling this yet.

### End of script

And it still requires python 2, but you cml2 testers should have no trouble
with this. :)

I'm working on the curses frontend to replace the above script. (The
frontend is about half the point of the exercise, cleaning up text mode is
just a nice way to test it), but I've got paying work standing between me and
that for a bit, so it'll be a few more days... :)

Rob
--------------Boundary-00=_K6SVAZQXPCYEDFPFPDJ5
Content-Type: application/x-python;
name="blueberry.py"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="blueberry.py"

IyEvdXNyL2Jpbi9weXRob24yCgojIEtlcm5lbCBidWlsZCBjbGVhbmVyIHZlcnNpb24gMC4wMDAw
MDAwMDAwMSwgb3IgbGVzcy4KIyBDb3B5cmlnaHQgMjAwMiBSb2IgTGFuZGxleQojIFJlbGVhc2Vk
IHVuZGVyIHRoZSBHTlUgR2VuZXJhbCBQdWJsaWMgTGljZW5zZSB2ZXJzaW9uIDIgb3IgaGlnaGVy
LAojICh0aGUgR1BMIGlzIGF2YWlsYWJsZSBmcm9tIHd3dy5nb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F0pXQogICAgICBlbHNlOiB0ZW1wPVsiUnVubmluZyAlcyIg
JSB3b3Jkc1swXV0KICAgICAgdGVtcC5leHRlbmQod29yZHNbMTpdKQogICAgICByZXN1bHQ9IiAi
LmpvaW4odGVtcCkKCiAgICAjIFRoYXQncyBhbGwgd2UgdW5kZXJzdGFuZC4gIE5vdyBkbyBzb21l
dGhpbmcgd2l0aCBpdC4KCiAgICBpZiBub3QgcmVzdWx0OgogICAgICBvdXRwdXQud3JpdGUoIlVu
a25vd24gbGluZTogJXNcbiIgJSBsaW5lKQogICAgZWxzZToKICAgICAgb3V0cHV0LndyaXRlKHJl
c3VsdCkKICAgICAgaWYgbm90IHNodXR1cDogb3V0cHV0LndyaXRlKCJcbiIpCgplbmRvZmxpbmU9
IlxyIgppZiBsZW4oc3lzLmFyZ3YpPjE6CiAgaWYgc3lzLmFyZ3ZbMV0uZmluZCgibiIpIT0tMTog
ZW5kb2ZsaW5lPSJcbiIKICBpZiBzeXMuYXJndlsxXS5maW5kKCJjIikhPS0xOiBzaG93Y291bnQ9
MQogIGVsc2U6IHNob3djb3VudD0wCiAgaWYgc3lzLmFyZ3ZbMV0uZmluZCgiZSIpIT0tMTogbm9l
bnRlcj0xCgptYW5nbGUoc3lzLnN0ZGluLCBzeXMuc3Rkb3V0KQpwcmludAoKCg==

--------------Boundary-00=_K6SVAZQXPCYEDFPFPDJ5--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/