-
Notifications
You must be signed in to change notification settings - Fork 25
freebsd: Document how to build UEFI app on FreeBSD #52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -123,6 +123,8 @@ cargo build -p framework_tool | |
| ls -l target/debug/framework_tool | ||
|
|
||
| # Build the UEFI application | ||
| # Needs mtools installed via your OS package manager | ||
| # See in FreeBSD section for building on FreeBSD | ||
| # Can't be built with cargo! That's why we need to exclude it in the other commands. | ||
| make -C framework_uefi | ||
| ls -l framework_uefi/build/x86_64-unknown-uefi/boot.efi | ||
|
|
@@ -311,3 +313,14 @@ cargo build --no-default-features --features freebsd | |
| # Running the tool | ||
| cargo run --no-default-features --features freebsd | ||
| ``` | ||
|
|
||
| Build UEFI tool | ||
|
|
||
| ``` | ||
| # Build just tool | ||
| gmake -C framework_uefi build/x86_64-unknown-uefi/boot.efi | ||
|
|
||
| # Build QEMU image | ||
| # TODO: Does not work yet, need a replacement for GNU parted | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @aokblast is there a scripted way to format a disk image on FreeBSD?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hello, we have
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh, you are talking about image. We have mkimg which can be used as following pattern (stolen from my previous commit :) )
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. oh! That's cool. That looks super easy!
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Haven't tried, but might be as simple as this: But how can I use different make rules on FreeBSD 🤔
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What is the make rules you mentioned? Could you give me some detailed example?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oops, I forget some code segment. You have to create a partition image by mkfs than put file into it by directory. After that, you can use mkimg to create a full disk image. Here is a patch use this feature. You can take a release/amd64/make-memstick.sh as example. Hope I answered your question.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done! Now we just need to make sure it uses different commands on linux vs bsd |
||
| gmake -C framework_uefi MKFS=newfs_msdos | ||
| ``` | ||