Skip to content

Commit

Permalink
tinygo u-root#2979 update tinygo build constraints for tinygo 0.33.0
Browse files Browse the repository at this point in the history
Signed-off-by: Roger Standridge <[email protected]>
  • Loading branch information
Roger Standridge authored and rminnich committed Sep 21, 2024
1 parent 8f7ed1d commit 20b8233
Show file tree
Hide file tree
Showing 137 changed files with 349 additions and 198 deletions.
1 change: 1 addition & 0 deletions cmds/boot/boot/boot.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright 2012-2020 the u-root Authors. All rights reserved
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build !tinygo || tinygo.enable

// Command boot allows to handover a system running linuxboot/u-root
// to a legacy preinstalled operating system by replacing the traditional
Expand Down
1 change: 1 addition & 0 deletions cmds/boot/fitboot/main.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright 2017-2019 the u-root Authors. All rights reserved
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build !tinygo || tinygo.enable

package main

Expand Down
1 change: 1 addition & 0 deletions cmds/boot/pxeboot/pxeboot.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright 2017-2018 the u-root Authors. All rights reserved
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build !tinygo || tinygo.enable

// Command pxeboot implements PXE-based booting.
//
Expand Down
1 change: 1 addition & 0 deletions cmds/cluster/nodestats/main.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright 2024 the u-root Authors. All rights reserved
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build !tinygo || tinygo.enable

// nodestats prints out vital statistics about a node as JSON.
// It currently uses the jaypipes/ghw package, as well as
Expand Down
1 change: 1 addition & 0 deletions cmds/cluster/nodestats/main_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright 2024 the u-root Authors. All rights reserved
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build !tinygo || tinygo.enable

package main

Expand Down
2 changes: 1 addition & 1 deletion cmds/core/dhclient/dhclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build !plan9
//go:build (!tinygo || tinygo.enable) && !plan9

// dhclient sets up network config using DHCP.
//
Expand Down
1 change: 1 addition & 0 deletions cmds/core/dhclient/dhclient_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright 2017 the u-root Authors. All rights reserved
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build !tinygo || tinygo.enable

package main

Expand Down
2 changes: 1 addition & 1 deletion cmds/core/gosh/completer.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build !plan9 && !goshsmall && !goshliner
//go:build (!tinygo || tinygo.enable) && !plan9 && !goshsmall && !goshliner

package main

Expand Down
2 changes: 1 addition & 1 deletion cmds/core/gosh/completer_common.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build !plan9 && !goshsmall
//go:build (!tinygo || tinygo.enable) && !plan9 && !goshsmall

package main

Expand Down
2 changes: 1 addition & 1 deletion cmds/core/gosh/completer_liner.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build !plan9 && !goshsmall && goshliner
//go:build (!tinygo || tinygo.enable) && !plan9 && !goshsmall && goshliner

package main

Expand Down
2 changes: 1 addition & 1 deletion cmds/core/gosh/completer_nobuild.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build !plan9 && goshsmall && !goshliner
//go:build (!tinygo || tinygo.enable) && !plan9 && goshsmall && !goshliner

package main

Expand Down
1 change: 1 addition & 0 deletions cmds/core/gosh/completer_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright 2021 the u-root Authors. All rights reserved
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build !tinygo || tinygo.enable

package main

Expand Down
2 changes: 1 addition & 1 deletion cmds/core/gosh/gosh.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//
// Derived work from Daniel Martí <[email protected]>

//go:build !plan9
//go:build (!tinygo || tinygo.enable) && !plan9

package main

Expand Down
1 change: 1 addition & 0 deletions cmds/core/gosh/gosh_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// license that can be found in the LICENSE file.
//
// Derived work from Daniel Martí <[email protected]>
//go:build !tinygo || tinygo.enable

package main

Expand Down
2 changes: 1 addition & 1 deletion cmds/core/io/asmports.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build (linux && amd64) || (linux && 386)
//go:build (!tinygo || tinygo.enable) && ((linux && amd64) || (linux && 386))

package main

Expand Down
2 changes: 1 addition & 1 deletion cmds/core/io/cmos.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build amd64 || 386
//go:build (!tinygo || tinygo.enable) && (amd64 || 386)

package main

Expand Down
1 change: 1 addition & 0 deletions cmds/core/io/io.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright 2010-2020 the u-root Authors. All rights reserved
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build !tinygo || tinygo.enable

// io reads and writes to physical memory and ports.
//
Expand Down
1 change: 1 addition & 0 deletions cmds/core/io/io_linux.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright 2010-2020 the u-root Authors. All rights reserved
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build !tinygo || tinygo.enable

package main

Expand Down
2 changes: 1 addition & 1 deletion cmds/core/io/ports.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build (linux && amd64) || (linux && 386)
//go:build (!tinygo || tinygo.enable) && ((linux && amd64) || (linux && 386))

package main

Expand Down
2 changes: 1 addition & 1 deletion cmds/core/io/smn.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build amd64 && linux
//go:build (!tinygo || tinygo.enable) && amd64 && linux

// The System Management Network (SMN, try to say it fast)
// is a parallel universe address space on newer AMD64 cpus.
Expand Down
1 change: 1 addition & 0 deletions cmds/core/ip/address_linux.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright 2024 the u-root Authors. All rights reserved
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build !tinygo || tinygo.enable

package main

Expand Down
1 change: 1 addition & 0 deletions cmds/core/ip/address_linux_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright 2024 the u-root Authors. All rights reserved
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build !tinygo || tinygo.enable

package main

Expand Down
1 change: 1 addition & 0 deletions cmds/core/ip/ip_linux.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright 2012-2017 the u-root Authors. All rights reserved
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build !tinygo || tinygo.enable

// ip manipulates network addresses, interfaces, routing, and other config.
package main
Expand Down
1 change: 1 addition & 0 deletions cmds/core/ip/ip_linux_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright 2012-2017 the u-root Authors. All rights reserved
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build !tinygo || tinygo.enable

package main

Expand Down
1 change: 1 addition & 0 deletions cmds/core/ip/ip_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright 2012-2017 the u-root Authors. All rights reserved
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build !tinygo || tinygo.enable

package main

Expand Down
1 change: 1 addition & 0 deletions cmds/core/ip/link_linux.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright 2024 the u-root Authors. All rights reserved
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build !tinygo || tinygo.enable

package main

Expand Down
1 change: 1 addition & 0 deletions cmds/core/ip/link_linux_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright 2024 the u-root Authors. All rights reserved
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build !tinygo || tinygo.enable

package main

Expand Down
1 change: 1 addition & 0 deletions cmds/core/ip/monitor_linux.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright 2024 the u-root Authors. All rights reserved
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build !tinygo || tinygo.enable

package main

Expand Down
1 change: 1 addition & 0 deletions cmds/core/ip/monitor_linux_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright 2024 the u-root Authors. All rights reserved
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build !tinygo || tinygo.enable

package main

Expand Down
1 change: 1 addition & 0 deletions cmds/core/ip/neigh_linux.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright 2024 the u-root Authors. All rights reserved
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build !tinygo || tinygo.enable

package main

Expand Down
2 changes: 2 additions & 0 deletions cmds/core/ip/neigh_linux_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// Copyright 2024 the u-root Authors. All rights reserved
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build !tinygo || tinygo.enable

package main

import (
Expand Down
1 change: 1 addition & 0 deletions cmds/core/ip/ops_linux.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright 2012-2017 the u-root Authors. All rights reserved
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build !tinygo || tinygo.enable

package main

Expand Down
2 changes: 2 additions & 0 deletions cmds/core/ip/ops_linux_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// Copyright 2024 the u-root Authors. All rights reserved
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build !tinygo || tinygo.enable

package main

import (
Expand Down
1 change: 1 addition & 0 deletions cmds/core/ip/parsing_linux.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright 2024 the u-root Authors. All rights reserved
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build !tinygo || tinygo.enable

package main

Expand Down
1 change: 1 addition & 0 deletions cmds/core/ip/parsing_linux_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright 2024 the u-root Authors. All rights reserved
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build !tinygo || tinygo.enable

package main

Expand Down
1 change: 1 addition & 0 deletions cmds/core/ip/route_linux.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright 2024 the u-root Authors. All rights reserved
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build !tinygo || tinygo.enable

package main

Expand Down
1 change: 1 addition & 0 deletions cmds/core/ip/route_linux_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright 2024 the u-root Authors. All rights reserved
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build !tinygo || tinygo.enable

package main

Expand Down
1 change: 1 addition & 0 deletions cmds/core/ip/tcp_metrics_linux.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright 2024 the u-root Authors. All rights reserved
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build !tinygo || tinygo.enable

package main

Expand Down
2 changes: 2 additions & 0 deletions cmds/core/ip/tcp_metrics_linux_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// Copyright 2024 the u-root Authors. All rights reserved
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build !tinygo || tinygo.enable

package main

import (
Expand Down
1 change: 1 addition & 0 deletions cmds/core/ip/tunnel_linux.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright 2024 the u-root Authors. All rights reserved
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build !tinygo || tinygo.enable

package main

Expand Down
2 changes: 2 additions & 0 deletions cmds/core/ip/tunnel_linux_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// Copyright 2024 the u-root Authors. All rights reserved
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build !tinygo || tinygo.enable

package main

import (
Expand Down
1 change: 1 addition & 0 deletions cmds/core/ip/tuntap_linux.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright 2024 the u-root Authors. All rights reserved
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build !tinygo || tinygo.enable

package main

Expand Down
1 change: 1 addition & 0 deletions cmds/core/ip/tuntap_linux_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright 2024 the u-root Authors. All rights reserved
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build !tinygo || tinygo.enable

package main

Expand Down
1 change: 1 addition & 0 deletions cmds/core/ip/util_linux.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright 2024 the u-root Authors. All rights reserved
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build !tinygo || tinygo.enable

package main

Expand Down
2 changes: 2 additions & 0 deletions cmds/core/ip/util_linux_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// Copyright 2024 the u-root Authors. All rights reserved
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build !tinygo || tinygo.enable

package main

import (
Expand Down
1 change: 1 addition & 0 deletions cmds/core/ip/vrf_linux.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright 2024 the u-root Authors. All rights reserved
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build !tinygo || tinygo.enable

package main

Expand Down
1 change: 1 addition & 0 deletions cmds/core/ip/vrf_linux_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright 2024 the u-root Authors. All rights reserved
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build !tinygo || tinygo.enable

package main

Expand Down
1 change: 1 addition & 0 deletions cmds/core/ip/xfrm_linux.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright 2024 the u-root Authors. All rights reserved
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build !tinygo || tinygo.enable

package main

Expand Down
Loading

0 comments on commit 20b8233

Please sign in to comment.