Page MenuHomeFreeBSD

Implement UEFI set environment variable, as well as exporting the EFI version. This is also scriptable.
AbandonedPublic

Authored by imp on Dec 11 2015, 5:55 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Nov 18, 8:53 AM
Unknown Object (File)
Sat, Nov 16, 5:05 AM
Unknown Object (File)
Tue, Nov 5, 12:11 PM
Unknown Object (File)
Sep 19 2024, 5:51 AM
Unknown Object (File)
Sep 18 2024, 9:25 PM
Unknown Object (File)
Sep 18 2024, 9:49 AM
Unknown Object (File)
Sep 18 2024, 9:30 AM
Unknown Object (File)
Sep 17 2024, 6:03 AM

Details

Reviewers
emaste
Summary

Tested this in qemu ages ago. Was waiting for the userland version
to be complete before submitting, but thought it's better to have
half a loaf than none...

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 1565
Build 1571: arc lint + arc unit

Event Timeline

imp retitled this revision from to Implement UEFI set environment variable, as well as exporting the EFI version. This is also scriptable..
imp updated this object.
imp edited the test plan for this revision. (Show Details)
imp added a reviewer: emaste.
sys/boot/efi/libefi/env.c
2

18000 years too far in the future :)

sys/boot/efi/libefi/env.c
37–55

how are these used?

sys/boot/efi/loader/main.c
67

Interesting that this was here, unused.

126

Missing a format specifier?

sys/boot/ficl/efi.c
30

what's with the spacing here?

A number of style issues

sys/boot/efi/libefi/env.c
2

Date typo

sys/boot/ficl/efi.c
50

Comment style could be better e.g.

/*
 * FreeBSD's loader works and extras
...
 */
70

Spacing after cast type unneeded more below

76

Should be != NULL as its not a boolean more instances below

91

Shouldn't have a final return for void functions more below

119

space after if

146

Should be != NULL as its not a boolean

164

no space needed

166

Alignment

Looks like there's a missing hunk stuck in my patch queue, I'll merge it and
update the style nits for the next round.

sys/boot/efi/libefi/env.c
2

Doh! Will fix.

37–55

These are used to implement the different commands. I thought I'd included that as well in this review, but it appears to be missing. Will track down.

sys/boot/efi/loader/main.c
126

Doh! Yes.

sys/boot/ficl/efi.c
30

Other files did this too.

50

I'm sure I copied this from elsewhere in the loader code, but thanks.

166

These I'm pretty sure are aligned, but I'll do the style sweep.

Makes me wish the boot language was anything other than Forth. :)

sys/boot/ficl/efi.c
61–64

Weird spacing here, too (and below) (style).

allanjude added inline comments.
sys/boot/ficl/efi.c
166

Phabricator has a "special" relationship with tabs

emaste requested changes to this revision.Dec 22 2015, 3:55 AM
emaste edited edge metadata.

Waiting on fresh upload

This revision now requires changes to proceed.Dec 22 2015, 3:55 AM

This kinda was committed, but kinda doesn't work. Will post new review when it's working.