There are many tutorials and posts introducing environment setup for the prominent operating system course MIT 6.828. However, most of them do not target at macOS. Even if some of them do, they often choose to directly compile and install the related tools without using any package management technique to keep everything clean.
After searching on the Internet for quite a while, I finally found a promising solution: By creating one’s own Homebrew tap, toolchains for 6.828 could be deployed swiftly & cleanly.
Give a man a fish, and you feed him for a day. Teach a man to fish, and you feed him for a lifetime.
- Link to Wang’s Homebrew tap.
- How to adds more repositories to the list of formulae that brew tracks: Taps (third-party repositories).
- How to create one’s own package: Formula Cookbook.
I mirrored the repository, standardized the directory structure, and updated the versions of
gdb. So the up-to-date versions of the toolchains could be installed with the following command:
$ brew tap zzhou612/jos
It should be noticed that in the
Since we have compiled & installed
GNUmakefile needs to be modified so that
make gdb command could work properly:
Then you could start on the lab projects straight away.
$ make qemu
$ make qemu-nox