Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

Commit

Permalink
vboot: compile vboot tools statically and add them to the image
Browse files Browse the repository at this point in the history
For now, these are extremely useful to have around until we write
them in Go. Also, build them statically, so we don't have to deal
with stupid shared library problems.

I've tested this and it's really nice to have them there.

Signed-off-by: Ronald G. Minnich <[email protected]>
  • Loading branch information
rminnich committed Jun 27, 2018
1 parent f62e101 commit 65a4177
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions usb/usb.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ func goBuildStatic() error {

func goBuildDynamic() error {
args := []string{"run", "u-root.go", "-o", filepath.Join(workingDir, initramfs)}
for _, v := range []string{"usr", "lib", "tcz", "etc", "upspin", ".ssh"} {
for _, v := range []string{"usr", "lib", "tcz", "etc", "upspin", "vboot_reference", ".ssh"} {
if _, err := os.Stat(v); err != nil {
continue
}
Expand Down Expand Up @@ -303,7 +303,7 @@ func buildVbutil() error {
fmt.Printf("couldn't checkout the right branch")
return err
}
cmd = exec.Command("make", "-j"+strconv.Itoa(threads))
cmd = exec.Command("make", "STATIC=1", "-j"+strconv.Itoa(threads))
cmd.Stdout, cmd.Stderr = os.Stdout, os.Stderr
cmd.Dir = "vboot_reference"
if err := cmd.Run(); err != nil {
Expand Down

0 comments on commit 65a4177

Please sign in to comment.