This reverts commit 4dbfe48bd20b036a11c30538e3ce5cdfb5bb1715:
- remove call to crossystem
- support for payloads that include kernels
- lots of refactoring/cleanups
The support for kernel payloads broke updates on systems that did not
already have the newer /boot/coreos/vmlinuz-{a,b} kernels.
Rolling back does restore the call to /usr/bin/crossystem but that call
failing shouldn't have any adverse behavior, just it will just add yet
another useless error message to our logs.
We currenly use ${GOPATH}/bin as the path for the compiler generated executable,
but this usage does not allow ebuilds to add additional local paths to GOPATH. To
allow for this usage, change the invocation of the compiler to use ${GOBIN}.
Signed-off-by: Geoff Levand <geoff@infradead.org>
A temporary ebuild that builds the go compiler from the latest git
checkout to get support for arm64 builds. Once go-1.5 is availilable
upstream and merged to portage-stable this ebuild can be removed.
Signed-off-by: Geoff Levand <geoff@infradead.org>
When FEATURES=splitdebug is set files from both dev-lang/go and
dev-lang/go-bootstrap have the same debug info build-id which causes a
file collision in /usr/lib/debug/.build-id.
Fix an indentation error.
Also, change the keyword ~amd64 to amd64.
This is a temporary fix until an upstream fix is available.
Signed-off-by: Geoff Levand <geoff@infradead.org>
go-bootstrap is needed to build go-1.5. Since we need a local fix, import it
to coreos-overlays. Once the fix is upstream this package can be moved to
portage-stable.
Signed-off-by: Geoff Levand <geoff@infradead.org>
To support golang cross builds add a new function go_get_arch() for ebuilds
to use as needed. Also update coreos-go_src_prepare() to set the go compiler
environment variable GOARCH to the result of go_get_arch(). The setting of
GOARCH will cause the compiler to generate the correct binary type for the
board.
Signed-off-by: Geoff Levand <geoff@infradead.org>
Symlinks out of /etc to /usr should generally be relative, that way they
work regardless of whether you are based at / or dealing with a new
chroot you haven't entered yet, or a build root like /build/amd64-usr
Namely the absolute links break cros_sdk which copies skel into home.
Also switch to /usr/share/skel since other packages may need install
things to that directory in the future.
In the process clean up moving units from /etc to /usr, the current goo
was sloppy and sometimes missed when systemd added new things to /etc.
For example we didn't move systemd-networkd.socket, added in 219.