- Install go 1.18 or later
go install github.com/afq984/sof-packager/cmd/...@latest
- The
sof-packager
executable is installed to$(go env GOPATH)/bin
(which defaults to~/go/bin
)
-
Write a build config. See
examples/
directory for examples. -
sof-packager <path-to-config>
.For example:
~/go/bin/sof-packager examples/mt8195-main.textproto
-
sof-packager
outputs:- a tarball containing the built artifacts
- a config textproto with pinned versions to reproduce the build
- a ebuild manifest file
unordered commands of frequent use:
go build -o bin/ ./cmd/
tools/gen-pb.bash