Harvey-OS / harvey

A distributed operating system
https://harvey-os.org/
MIT License
1.44k stars 105 forks source link

cherry-pick efi commits from 9front #1209

Closed rminnich closed 2 years ago

rminnich commented 2 years ago

This brings in 26 commits from 9front related to efi support.

There are a few changes; we DO bring in their pc kernel, we DO NOT remove the pccpuf and others.

I'd like to get us in the habit of proper git hygiene on imports. I.e., rather than just copying a bunch of files, it's better if we can cherry-pick the commits.

how I got this:

git checkout 9front/front cd sys/src/boot/efi git log --pretty=oneline . take a look at them, then build a script that looks like git cherry-pick the-commit ; echo "fix me up"; bash

look at the commit, undo any individual file changes you don't want, amend/fix as needed, continue.

This is how git repos are managed in the real world, when there are multiple remotes, and we should adopt that practice as opposed to the standard Plan 9 approach of "bring in a bunch of unrelated files absent any history as one comnit" which is common in the Plan 9 community today. For one thing, using proper cherry-picking makes bisection and hence fault isolation much easier. For another, it makes continued tracking of other repos easier too.

Builds. untested. I'd like to get rid of nboot as well, I'm not sure why it's there. Help wanted.