diff --git a/cmds/boot/boot/boot.go b/cmds/boot/boot/boot.go index 700ce4fa09..de61d776fd 100644 --- a/cmds/boot/boot/boot.go +++ b/cmds/boot/boot/boot.go @@ -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 diff --git a/cmds/boot/fitboot/main.go b/cmds/boot/fitboot/main.go index 1c95178e80..d1218e7189 100644 --- a/cmds/boot/fitboot/main.go +++ b/cmds/boot/fitboot/main.go @@ -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 diff --git a/cmds/boot/pxeboot/pxeboot.go b/cmds/boot/pxeboot/pxeboot.go index b86383949f..2f39bbc966 100644 --- a/cmds/boot/pxeboot/pxeboot.go +++ b/cmds/boot/pxeboot/pxeboot.go @@ -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. // diff --git a/cmds/cluster/nodestats/main.go b/cmds/cluster/nodestats/main.go index 01efee1d5a..b802ee2b4c 100644 --- a/cmds/cluster/nodestats/main.go +++ b/cmds/cluster/nodestats/main.go @@ -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 diff --git a/cmds/cluster/nodestats/main_test.go b/cmds/cluster/nodestats/main_test.go index 9ef5a7bfda..00d114306c 100644 --- a/cmds/cluster/nodestats/main_test.go +++ b/cmds/cluster/nodestats/main_test.go @@ -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 diff --git a/cmds/core/dhclient/dhclient.go b/cmds/core/dhclient/dhclient.go index 69692bb9be..492f65dbff 100644 --- a/cmds/core/dhclient/dhclient.go +++ b/cmds/core/dhclient/dhclient.go @@ -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. // diff --git a/cmds/core/dhclient/dhclient_test.go b/cmds/core/dhclient/dhclient_test.go index b3eaa3add0..106fabe6db 100644 --- a/cmds/core/dhclient/dhclient_test.go +++ b/cmds/core/dhclient/dhclient_test.go @@ -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 diff --git a/cmds/core/gosh/completer.go b/cmds/core/gosh/completer.go index 9492ee75aa..e55f37c169 100644 --- a/cmds/core/gosh/completer.go +++ b/cmds/core/gosh/completer.go @@ -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 diff --git a/cmds/core/gosh/completer_common.go b/cmds/core/gosh/completer_common.go index 67f74c2316..cee61ace83 100644 --- a/cmds/core/gosh/completer_common.go +++ b/cmds/core/gosh/completer_common.go @@ -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 diff --git a/cmds/core/gosh/completer_liner.go b/cmds/core/gosh/completer_liner.go index c43c7b67f1..671a064c5e 100644 --- a/cmds/core/gosh/completer_liner.go +++ b/cmds/core/gosh/completer_liner.go @@ -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 diff --git a/cmds/core/gosh/completer_nobuild.go b/cmds/core/gosh/completer_nobuild.go index 61fda594c3..e798869c46 100644 --- a/cmds/core/gosh/completer_nobuild.go +++ b/cmds/core/gosh/completer_nobuild.go @@ -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 diff --git a/cmds/core/gosh/completer_test.go b/cmds/core/gosh/completer_test.go index 049c01f22b..a36848fa9a 100644 --- a/cmds/core/gosh/completer_test.go +++ b/cmds/core/gosh/completer_test.go @@ -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 diff --git a/cmds/core/gosh/gosh.go b/cmds/core/gosh/gosh.go index 708ce50e60..2761473b05 100644 --- a/cmds/core/gosh/gosh.go +++ b/cmds/core/gosh/gosh.go @@ -4,7 +4,7 @@ // // Derived work from Daniel Martí -//go:build !plan9 +//go:build (!tinygo || tinygo.enable) && !plan9 package main diff --git a/cmds/core/gosh/gosh_test.go b/cmds/core/gosh/gosh_test.go index 3f5fddd205..f22bfec932 100644 --- a/cmds/core/gosh/gosh_test.go +++ b/cmds/core/gosh/gosh_test.go @@ -3,6 +3,7 @@ // license that can be found in the LICENSE file. // // Derived work from Daniel Martí +//go:build !tinygo || tinygo.enable package main diff --git a/cmds/core/io/asmports.go b/cmds/core/io/asmports.go index 80e3a03f36..961bb82cdd 100644 --- a/cmds/core/io/asmports.go +++ b/cmds/core/io/asmports.go @@ -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 diff --git a/cmds/core/io/cmos.go b/cmds/core/io/cmos.go index 0579d18893..8e4d7a4b6d 100644 --- a/cmds/core/io/cmos.go +++ b/cmds/core/io/cmos.go @@ -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 diff --git a/cmds/core/io/io.go b/cmds/core/io/io.go index e5ce262f38..bcbb0fc01d 100644 --- a/cmds/core/io/io.go +++ b/cmds/core/io/io.go @@ -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. // diff --git a/cmds/core/io/io_linux.go b/cmds/core/io/io_linux.go index da9b3ce58c..105a57e180 100644 --- a/cmds/core/io/io_linux.go +++ b/cmds/core/io/io_linux.go @@ -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 diff --git a/cmds/core/io/ports.go b/cmds/core/io/ports.go index 83c4ce3df7..8ea1945bfa 100644 --- a/cmds/core/io/ports.go +++ b/cmds/core/io/ports.go @@ -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 diff --git a/cmds/core/io/smn.go b/cmds/core/io/smn.go index 0d693249cd..96ef931c4e 100644 --- a/cmds/core/io/smn.go +++ b/cmds/core/io/smn.go @@ -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. diff --git a/cmds/core/ip/address_linux.go b/cmds/core/ip/address_linux.go index 7ca1565b05..5d81f6df77 100644 --- a/cmds/core/ip/address_linux.go +++ b/cmds/core/ip/address_linux.go @@ -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 diff --git a/cmds/core/ip/address_linux_test.go b/cmds/core/ip/address_linux_test.go index a4732fe13f..5e51402ec1 100644 --- a/cmds/core/ip/address_linux_test.go +++ b/cmds/core/ip/address_linux_test.go @@ -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 diff --git a/cmds/core/ip/ip_linux.go b/cmds/core/ip/ip_linux.go index eff4c8050d..a3d47ec43b 100644 --- a/cmds/core/ip/ip_linux.go +++ b/cmds/core/ip/ip_linux.go @@ -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 diff --git a/cmds/core/ip/ip_linux_test.go b/cmds/core/ip/ip_linux_test.go index 82ccd1e5f6..f28e204597 100644 --- a/cmds/core/ip/ip_linux_test.go +++ b/cmds/core/ip/ip_linux_test.go @@ -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 diff --git a/cmds/core/ip/ip_test.go b/cmds/core/ip/ip_test.go index dca6df1ffc..b91154e2f0 100644 --- a/cmds/core/ip/ip_test.go +++ b/cmds/core/ip/ip_test.go @@ -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 diff --git a/cmds/core/ip/link_linux.go b/cmds/core/ip/link_linux.go index d98c173abf..94cb97f970 100644 --- a/cmds/core/ip/link_linux.go +++ b/cmds/core/ip/link_linux.go @@ -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 diff --git a/cmds/core/ip/link_linux_test.go b/cmds/core/ip/link_linux_test.go index 8402e74597..a30c01bf6d 100644 --- a/cmds/core/ip/link_linux_test.go +++ b/cmds/core/ip/link_linux_test.go @@ -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 diff --git a/cmds/core/ip/monitor_linux.go b/cmds/core/ip/monitor_linux.go index 9ae0ffb441..cd4f6cf01e 100644 --- a/cmds/core/ip/monitor_linux.go +++ b/cmds/core/ip/monitor_linux.go @@ -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 diff --git a/cmds/core/ip/monitor_linux_test.go b/cmds/core/ip/monitor_linux_test.go index 4335d2be46..200d5b932f 100644 --- a/cmds/core/ip/monitor_linux_test.go +++ b/cmds/core/ip/monitor_linux_test.go @@ -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 diff --git a/cmds/core/ip/neigh_linux.go b/cmds/core/ip/neigh_linux.go index 92eff6f188..cb095f3c75 100644 --- a/cmds/core/ip/neigh_linux.go +++ b/cmds/core/ip/neigh_linux.go @@ -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 diff --git a/cmds/core/ip/neigh_linux_test.go b/cmds/core/ip/neigh_linux_test.go index e1694871b0..a5d6a3f798 100644 --- a/cmds/core/ip/neigh_linux_test.go +++ b/cmds/core/ip/neigh_linux_test.go @@ -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 ( diff --git a/cmds/core/ip/ops_linux.go b/cmds/core/ip/ops_linux.go index e8def654dd..e23193f231 100644 --- a/cmds/core/ip/ops_linux.go +++ b/cmds/core/ip/ops_linux.go @@ -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 diff --git a/cmds/core/ip/ops_linux_test.go b/cmds/core/ip/ops_linux_test.go index 3dbae84161..dc299c4a0b 100644 --- a/cmds/core/ip/ops_linux_test.go +++ b/cmds/core/ip/ops_linux_test.go @@ -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 ( diff --git a/cmds/core/ip/parsing_linux.go b/cmds/core/ip/parsing_linux.go index 20512723d0..871d720aec 100644 --- a/cmds/core/ip/parsing_linux.go +++ b/cmds/core/ip/parsing_linux.go @@ -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 diff --git a/cmds/core/ip/parsing_linux_test.go b/cmds/core/ip/parsing_linux_test.go index 6aa53d57af..b416cfe6a7 100644 --- a/cmds/core/ip/parsing_linux_test.go +++ b/cmds/core/ip/parsing_linux_test.go @@ -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 diff --git a/cmds/core/ip/route_linux.go b/cmds/core/ip/route_linux.go index da15f1d972..688a80a5de 100644 --- a/cmds/core/ip/route_linux.go +++ b/cmds/core/ip/route_linux.go @@ -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 diff --git a/cmds/core/ip/route_linux_test.go b/cmds/core/ip/route_linux_test.go index e0458d07fe..5d9e7cf205 100644 --- a/cmds/core/ip/route_linux_test.go +++ b/cmds/core/ip/route_linux_test.go @@ -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 diff --git a/cmds/core/ip/tcp_metrics_linux.go b/cmds/core/ip/tcp_metrics_linux.go index 881f3fcaf8..1fff592020 100644 --- a/cmds/core/ip/tcp_metrics_linux.go +++ b/cmds/core/ip/tcp_metrics_linux.go @@ -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 diff --git a/cmds/core/ip/tcp_metrics_linux_test.go b/cmds/core/ip/tcp_metrics_linux_test.go index a4433c52ab..320a73ed07 100644 --- a/cmds/core/ip/tcp_metrics_linux_test.go +++ b/cmds/core/ip/tcp_metrics_linux_test.go @@ -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 ( diff --git a/cmds/core/ip/tunnel_linux.go b/cmds/core/ip/tunnel_linux.go index d700794e1f..ba4cf633a4 100644 --- a/cmds/core/ip/tunnel_linux.go +++ b/cmds/core/ip/tunnel_linux.go @@ -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 diff --git a/cmds/core/ip/tunnel_linux_test.go b/cmds/core/ip/tunnel_linux_test.go index 1eebb00b4a..0df1f79431 100644 --- a/cmds/core/ip/tunnel_linux_test.go +++ b/cmds/core/ip/tunnel_linux_test.go @@ -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 ( diff --git a/cmds/core/ip/tuntap_linux.go b/cmds/core/ip/tuntap_linux.go index 9db2a259b5..9e23eb2bc0 100644 --- a/cmds/core/ip/tuntap_linux.go +++ b/cmds/core/ip/tuntap_linux.go @@ -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 diff --git a/cmds/core/ip/tuntap_linux_test.go b/cmds/core/ip/tuntap_linux_test.go index 9805dce777..676b9877a3 100644 --- a/cmds/core/ip/tuntap_linux_test.go +++ b/cmds/core/ip/tuntap_linux_test.go @@ -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 diff --git a/cmds/core/ip/util_linux.go b/cmds/core/ip/util_linux.go index 1b417dab54..79e7cbe6a2 100644 --- a/cmds/core/ip/util_linux.go +++ b/cmds/core/ip/util_linux.go @@ -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 diff --git a/cmds/core/ip/util_linux_test.go b/cmds/core/ip/util_linux_test.go index 6469a949f1..d321b146ad 100644 --- a/cmds/core/ip/util_linux_test.go +++ b/cmds/core/ip/util_linux_test.go @@ -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 ( diff --git a/cmds/core/ip/vrf_linux.go b/cmds/core/ip/vrf_linux.go index 059361005a..d662243607 100644 --- a/cmds/core/ip/vrf_linux.go +++ b/cmds/core/ip/vrf_linux.go @@ -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 diff --git a/cmds/core/ip/vrf_linux_test.go b/cmds/core/ip/vrf_linux_test.go index 1f87e3350b..e625438619 100644 --- a/cmds/core/ip/vrf_linux_test.go +++ b/cmds/core/ip/vrf_linux_test.go @@ -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 diff --git a/cmds/core/ip/xfrm_linux.go b/cmds/core/ip/xfrm_linux.go index dccae13882..ba59a3cb67 100644 --- a/cmds/core/ip/xfrm_linux.go +++ b/cmds/core/ip/xfrm_linux.go @@ -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 diff --git a/cmds/core/ip/xfrm_linux_test.go b/cmds/core/ip/xfrm_linux_test.go index 77359bd7d2..d64efa09a1 100644 --- a/cmds/core/ip/xfrm_linux_test.go +++ b/cmds/core/ip/xfrm_linux_test.go @@ -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 diff --git a/cmds/core/ip/xfrm_policy_linux.go b/cmds/core/ip/xfrm_policy_linux.go index 3cd7ffc867..6397ed256d 100644 --- a/cmds/core/ip/xfrm_policy_linux.go +++ b/cmds/core/ip/xfrm_policy_linux.go @@ -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 diff --git a/cmds/core/ip/xfrm_policy_linux_test.go b/cmds/core/ip/xfrm_policy_linux_test.go index d219af26b8..482e99215d 100644 --- a/cmds/core/ip/xfrm_policy_linux_test.go +++ b/cmds/core/ip/xfrm_policy_linux_test.go @@ -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 diff --git a/cmds/core/ip/xfrm_state_linux.go b/cmds/core/ip/xfrm_state_linux.go index 46ee287c3a..0d8f194e58 100644 --- a/cmds/core/ip/xfrm_state_linux.go +++ b/cmds/core/ip/xfrm_state_linux.go @@ -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 diff --git a/cmds/core/ip/xfrm_state_linux_test.go b/cmds/core/ip/xfrm_state_linux_test.go index 266a35415c..2cce1c843b 100644 --- a/cmds/core/ip/xfrm_state_linux_test.go +++ b/cmds/core/ip/xfrm_state_linux_test.go @@ -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 diff --git a/cmds/core/kexec/kexec_linux.go b/cmds/core/kexec/kexec_linux.go index 180a6bc98a..351c98d1ae 100644 --- a/cmds/core/kexec/kexec_linux.go +++ b/cmds/core/kexec/kexec_linux.go @@ -1,6 +1,7 @@ // Copyright 2015-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 // kexec executes a new kernel over the running kernel (u-root). // diff --git a/cmds/core/kexec/kexec_test.go b/cmds/core/kexec/kexec_test.go index 65ffa8100b..fc403d0b4b 100644 --- a/cmds/core/kexec/kexec_test.go +++ b/cmds/core/kexec/kexec_test.go @@ -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 diff --git a/cmds/core/lockmsrs/lockmsrs_linux.go b/cmds/core/lockmsrs/lockmsrs_linux.go index fbc0b9b6af..eeeee57630 100644 --- a/cmds/core/lockmsrs/lockmsrs_linux.go +++ b/cmds/core/lockmsrs/lockmsrs_linux.go @@ -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 // lockmsrs locks important intel MSRs. // diff --git a/cmds/core/msr/doc_linux.go b/cmds/core/msr/doc_linux.go index 539c124a34..3d5c643ab8 100644 --- a/cmds/core/msr/doc_linux.go +++ b/cmds/core/msr/doc_linux.go @@ -1,6 +1,7 @@ // Copyright 2018-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 // msr -- read and write MSRs with regular command or Forth // diff --git a/cmds/core/msr/msr_linux.go b/cmds/core/msr/msr_linux.go index ab931a27d8..7b04a445db 100644 --- a/cmds/core/msr/msr_linux.go +++ b/cmds/core/msr/msr_linux.go @@ -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 // msr reads and writes msrs using a Forth interpreter on argv // diff --git a/cmds/core/netcat/connect.go b/cmds/core/netcat/connect.go index cc2df506c9..17008763e1 100644 --- a/cmds/core/netcat/connect.go +++ b/cmds/core/netcat/connect.go @@ -1,6 +1,7 @@ // Copyright 2012-2023 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 diff --git a/cmds/core/netcat/connect_others.go b/cmds/core/netcat/connect_others.go index 0fc58862b0..57f3c7cd86 100644 --- a/cmds/core/netcat/connect_others.go +++ b/cmds/core/netcat/connect_others.go @@ -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 || windows +//go:build (!tinygo || tinygo.enable) && (linux || windows) package main diff --git a/cmds/core/netcat/connect_plan9.go b/cmds/core/netcat/connect_plan9.go index 96e9549258..89cdbb017f 100644 --- a/cmds/core/netcat/connect_plan9.go +++ b/cmds/core/netcat/connect_plan9.go @@ -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 diff --git a/cmds/core/netcat/connect_test.go b/cmds/core/netcat/connect_test.go index 377d2f3add..8b598f3bd3 100644 --- a/cmds/core/netcat/connect_test.go +++ b/cmds/core/netcat/connect_test.go @@ -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 ( diff --git a/cmds/core/netcat/listen.go b/cmds/core/netcat/listen.go index e293440061..bfc406b7c1 100644 --- a/cmds/core/netcat/listen.go +++ b/cmds/core/netcat/listen.go @@ -1,6 +1,8 @@ // Copyright 2012-2023 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 ( diff --git a/cmds/core/netcat/listen_others.go b/cmds/core/netcat/listen_others.go index 85589e7ffd..aa4e7e3268 100644 --- a/cmds/core/netcat/listen_others.go +++ b/cmds/core/netcat/listen_others.go @@ -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 || windows +//go:build (!tinygo || tinygo.enable) && (linux || windows) package main diff --git a/cmds/core/netcat/listen_plan9.go b/cmds/core/netcat/listen_plan9.go index 935fb31d46..4dfdcbc403 100644 --- a/cmds/core/netcat/listen_plan9.go +++ b/cmds/core/netcat/listen_plan9.go @@ -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 ( diff --git a/cmds/core/netcat/listen_test.go b/cmds/core/netcat/listen_test.go index 4d5817cead..a4520f532e 100644 --- a/cmds/core/netcat/listen_test.go +++ b/cmds/core/netcat/listen_test.go @@ -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 ( diff --git a/cmds/core/netcat/netcat.go b/cmds/core/netcat/netcat.go index 30bb8444e0..8aff8c4d15 100644 --- a/cmds/core/netcat/netcat.go +++ b/cmds/core/netcat/netcat.go @@ -1,6 +1,7 @@ // Copyright 2012-2023 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 // netcat creates arbitrary TCP and UDP connections and listens and sends arbitrary data. package main diff --git a/cmds/core/netcat/netcat_test.go b/cmds/core/netcat/netcat_test.go index 85922511bf..4afb29fb0a 100644 --- a/cmds/core/netcat/netcat_test.go +++ b/cmds/core/netcat/netcat_test.go @@ -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 diff --git a/cmds/core/netstat/netstat_linux.go b/cmds/core/netstat/netstat_linux.go index a0f5596a4f..6148919def 100644 --- a/cmds/core/netstat/netstat_linux.go +++ b/cmds/core/netstat/netstat_linux.go @@ -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 diff --git a/cmds/core/netstat/netstat_test.go b/cmds/core/netstat/netstat_test.go index 956ecd3c30..1ff18ae252 100644 --- a/cmds/core/netstat/netstat_test.go +++ b/cmds/core/netstat/netstat_test.go @@ -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 diff --git a/cmds/core/nohup/nohup.go b/cmds/core/nohup/nohup.go index 286ee1c8e3..77aa2e6dc9 100644 --- a/cmds/core/nohup/nohup.go +++ b/cmds/core/nohup/nohup.go @@ -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 // nohup – invoke a utility immune to hangups. // diff --git a/cmds/core/nohup/nohup_test.go b/cmds/core/nohup/nohup_test.go index 1e7c6c07cd..215155f12a 100644 --- a/cmds/core/nohup/nohup_test.go +++ b/cmds/core/nohup/nohup_test.go @@ -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 diff --git a/cmds/core/ntpdate/ntpdate.go b/cmds/core/ntpdate/ntpdate.go index 91b3d774cc..b3b214a519 100644 --- a/cmds/core/ntpdate/ntpdate.go +++ b/cmds/core/ntpdate/ntpdate.go @@ -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 // ntpdate uses NTP to adjust the system clock. // diff --git a/cmds/core/ping/ping.go b/cmds/core/ping/ping.go index 1ed5e14a7f..090cc202fc 100644 --- a/cmds/core/ping/ping.go +++ b/cmds/core/ping/ping.go @@ -1,6 +1,7 @@ // Copyright 2009 The Go 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 // Send icmp packets to a server to test network connectivity. // diff --git a/cmds/core/ping/ping_test.go b/cmds/core/ping/ping_test.go index d2ea83c606..a64c5d8b22 100644 --- a/cmds/core/ping/ping_test.go +++ b/cmds/core/ping/ping_test.go @@ -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 diff --git a/cmds/core/sluinit/uinit_linux.go b/cmds/core/sluinit/uinit_linux.go index 410e140498..9ad44c3740 100644 --- a/cmds/core/sluinit/uinit_linux.go +++ b/cmds/core/sluinit/uinit_linux.go @@ -1,6 +1,7 @@ // Copyright 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 diff --git a/cmds/core/sshd/const_plan9.go b/cmds/core/sshd/const_plan9.go index cac012c172..4bf65fd4b9 100644 --- a/cmds/core/sshd/const_plan9.go +++ b/cmds/core/sshd/const_plan9.go @@ -1,6 +1,7 @@ // Copyright 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 diff --git a/cmds/core/sshd/const_unix.go b/cmds/core/sshd/const_unix.go index 544b3b1fca..b6fda2bfe3 100644 --- a/cmds/core/sshd/const_unix.go +++ b/cmds/core/sshd/const_unix.go @@ -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 package main diff --git a/cmds/core/sshd/sshd.go b/cmds/core/sshd/sshd.go index 0cfe702c6c..f717868724 100644 --- a/cmds/core/sshd/sshd.go +++ b/cmds/core/sshd/sshd.go @@ -1,6 +1,7 @@ // Copyright 2018-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 diff --git a/cmds/core/sshd/sshd_test.go b/cmds/core/sshd/sshd_test.go index d3f6a5161e..c6ee339608 100644 --- a/cmds/core/sshd/sshd_test.go +++ b/cmds/core/sshd/sshd_test.go @@ -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 diff --git a/cmds/core/strace/strace_linux.go b/cmds/core/strace/strace_linux.go index 48efbe0aed..ea51fdf1a3 100644 --- a/cmds/core/strace/strace_linux.go +++ b/cmds/core/strace/strace_linux.go @@ -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 || riscv64 || arm64) +//go:build (!tinygo || tinygo.enable) && linux && (amd64 || riscv64 || arm64) // strace is a simple multi-process syscall & signal tracer. // diff --git a/cmds/core/strace/strace_linux_test.go b/cmds/core/strace/strace_linux_test.go index 12d05d75f0..d7bdef5164 100644 --- a/cmds/core/strace/strace_linux_test.go +++ b/cmds/core/strace/strace_linux_test.go @@ -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 || riscv64 || arm64) +//go:build (!tinygo || tinygo.enable) && linux && (amd64 || riscv64 || arm64) package main diff --git a/cmds/core/tee/tee.go b/cmds/core/tee/tee.go index 1e431f71a6..bbb5961532 100644 --- a/cmds/core/tee/tee.go +++ b/cmds/core/tee/tee.go @@ -1,6 +1,7 @@ // Copyright 2013-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 // Tee transcribes the standard input to the standard output and makes copies // in the files. diff --git a/cmds/core/tee/tee_test.go b/cmds/core/tee/tee_test.go index 841b7470d4..5f31968d00 100644 --- a/cmds/core/tee/tee_test.go +++ b/cmds/core/tee/tee_test.go @@ -1,6 +1,7 @@ // Copyright 2022 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 diff --git a/cmds/core/watchdogd/watchdogd_linux.go b/cmds/core/watchdogd/watchdogd_linux.go index c18fd697bc..527db50bf6 100644 --- a/cmds/core/watchdogd/watchdogd_linux.go +++ b/cmds/core/watchdogd/watchdogd_linux.go @@ -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 // watchdogd is a background daemon for petting the watchdog. // diff --git a/cmds/core/wget/wget.go b/cmds/core/wget/wget.go index 103e4b01e9..5a9c733583 100644 --- a/cmds/core/wget/wget.go +++ b/cmds/core/wget/wget.go @@ -1,6 +1,7 @@ // Copyright 2012-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 // Wget reads one file from a url and writes to stdout. // diff --git a/cmds/core/wget/wget_test.go b/cmds/core/wget/wget_test.go index ffb83c549e..fae73f384b 100644 --- a/cmds/core/wget/wget_test.go +++ b/cmds/core/wget/wget_test.go @@ -1,6 +1,7 @@ // Copyright 2017-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 // A parity test can be run: // diff --git a/cmds/exp/efivarfs/efivarfs.go b/cmds/exp/efivarfs/efivarfs.go index cf297d9848..4728278be7 100644 --- a/cmds/exp/efivarfs/efivarfs.go +++ b/cmds/exp/efivarfs/efivarfs.go @@ -1,6 +1,7 @@ // Copyright 2014-2022 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 diff --git a/cmds/exp/efivarfs/efivarfs_test.go b/cmds/exp/efivarfs/efivarfs_test.go index 6ff39e3038..1ae63b717b 100644 --- a/cmds/exp/efivarfs/efivarfs_test.go +++ b/cmds/exp/efivarfs/efivarfs_test.go @@ -1,6 +1,7 @@ // Copyright 2014-2022 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 diff --git a/cmds/exp/esxiboot/esxiboot.go b/cmds/exp/esxiboot/esxiboot.go index 29e0f9e8e3..c51f6fbc4f 100644 --- a/cmds/exp/esxiboot/esxiboot.go +++ b/cmds/exp/esxiboot/esxiboot.go @@ -1,6 +1,7 @@ // Copyright 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 // esxiboot executes ESXi kernel over the running kernel. // diff --git a/cmds/exp/esxiboot/esxiboot_test.go b/cmds/exp/esxiboot/esxiboot_test.go index b979f344b1..47ed437eb1 100644 --- a/cmds/exp/esxiboot/esxiboot_test.go +++ b/cmds/exp/esxiboot/esxiboot_test.go @@ -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 diff --git a/cmds/exp/fbnetboot/main.go b/cmds/exp/fbnetboot/main.go index 30fecb51de..4b7dee567b 100644 --- a/cmds/exp/fbnetboot/main.go +++ b/cmds/exp/fbnetboot/main.go @@ -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 diff --git a/cmds/exp/localboot/grub.go b/cmds/exp/localboot/grub.go index b60ae67715..a8957b3b04 100644 --- a/cmds/exp/localboot/grub.go +++ b/cmds/exp/localboot/grub.go @@ -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 diff --git a/cmds/exp/localboot/grub_test.go b/cmds/exp/localboot/grub_test.go index fb49c4d881..890df7108d 100644 --- a/cmds/exp/localboot/grub_test.go +++ b/cmds/exp/localboot/grub_test.go @@ -1,6 +1,7 @@ // Copyright 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 diff --git a/cmds/exp/localboot/main.go b/cmds/exp/localboot/main.go index 03f3986121..3868b5f7ca 100644 --- a/cmds/exp/localboot/main.go +++ b/cmds/exp/localboot/main.go @@ -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 diff --git a/cmds/exp/netbootxyz/netbootxyz.go b/cmds/exp/netbootxyz/netbootxyz.go index a2ee42142c..593a815c66 100644 --- a/cmds/exp/netbootxyz/netbootxyz.go +++ b/cmds/exp/netbootxyz/netbootxyz.go @@ -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 diff --git a/cmds/exp/netbootxyz/network.go b/cmds/exp/netbootxyz/network.go index 178a51748a..9f5ef6e1fd 100644 --- a/cmds/exp/netbootxyz/network.go +++ b/cmds/exp/netbootxyz/network.go @@ -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 diff --git a/cmds/exp/newsshd/newsshd.go b/cmds/exp/newsshd/newsshd.go index 18e6851f0f..0615c9afae 100644 --- a/cmds/exp/newsshd/newsshd.go +++ b/cmds/exp/newsshd/newsshd.go @@ -1,6 +1,7 @@ // Copyright 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 package main diff --git a/cmds/exp/newsshd/newsshd_test.go b/cmds/exp/newsshd/newsshd_test.go index 49af502862..7cb285f690 100644 --- a/cmds/exp/newsshd/newsshd_test.go +++ b/cmds/exp/newsshd/newsshd_test.go @@ -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 diff --git a/cmds/exp/pxeserver/main.go b/cmds/exp/pxeserver/main.go index f987898b87..7747c8b1d3 100644 --- a/cmds/exp/pxeserver/main.go +++ b/cmds/exp/pxeserver/main.go @@ -1,6 +1,7 @@ // Copyright 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 // pxeserver is a test & lab PXE server that supports TFTP, HTTP, and DHCPv4. // diff --git a/cmds/exp/srvfiles/srvfiles.go b/cmds/exp/srvfiles/srvfiles.go index 6b7b62ce6e..574d8980c1 100644 --- a/cmds/exp/srvfiles/srvfiles.go +++ b/cmds/exp/srvfiles/srvfiles.go @@ -1,6 +1,7 @@ // Copyright 2014-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 // Serve files on the network. // diff --git a/cmds/exp/srvfiles/srvfiles_test.go b/cmds/exp/srvfiles/srvfiles_test.go index 95fc7deef8..9378af27d7 100644 --- a/cmds/exp/srvfiles/srvfiles_test.go +++ b/cmds/exp/srvfiles/srvfiles_test.go @@ -1,6 +1,8 @@ // Copyright 2023 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 ( diff --git a/cmds/exp/ssh/main.go b/cmds/exp/ssh/main.go index a3654e8bdd..06dc0cc99b 100644 --- a/cmds/exp/ssh/main.go +++ b/cmds/exp/ssh/main.go @@ -1,6 +1,7 @@ // Copyright 2022 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 // SSH client. // diff --git a/cmds/exp/ssh/ssh_test.go b/cmds/exp/ssh/ssh_test.go index d4e6a54830..9e9e351c7a 100644 --- a/cmds/exp/ssh/ssh_test.go +++ b/cmds/exp/ssh/ssh_test.go @@ -1,6 +1,7 @@ // Copyright 2022 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 diff --git a/cmds/exp/ssh/utils_plan9.go b/cmds/exp/ssh/utils_plan9.go index 98df079326..10ada1d9fa 100644 --- a/cmds/exp/ssh/utils_plan9.go +++ b/cmds/exp/ssh/utils_plan9.go @@ -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 package main diff --git a/cmds/exp/ssh/utils_unix.go b/cmds/exp/ssh/utils_unix.go index e58a2c2ea2..4909e7b000 100644 --- a/cmds/exp/ssh/utils_unix.go +++ b/cmds/exp/ssh/utils_unix.go @@ -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 || !windows +//go:build (!tinygo || tinygo.enable) && (!plan9 || !windows) package main diff --git a/cmds/exp/syscallfilter/main_linux.go b/cmds/exp/syscallfilter/main_linux.go index 1d27c3527d..e283f99c01 100644 --- a/cmds/exp/syscallfilter/main_linux.go +++ b/cmds/exp/syscallfilter/main_linux.go @@ -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 && arm64) || (linux && amd64) || (linux && riscv64) +//go:build (!tinygo || tinygo.enable) && ((linux && arm64) || (linux && amd64) || (linux && riscv64)) // syscallfilter runs a command with a possibly empty set of filters: // diff --git a/cmds/exp/systemboot/main.go b/cmds/exp/systemboot/main.go index bd5763989f..0c5d3c9928 100644 --- a/cmds/exp/systemboot/main.go +++ b/cmds/exp/systemboot/main.go @@ -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 diff --git a/cmds/exp/systemboot/systemboot_linux.go b/cmds/exp/systemboot/systemboot_linux.go index 0409a0bf18..dabf6876ad 100644 --- a/cmds/exp/systemboot/systemboot_linux.go +++ b/cmds/exp/systemboot/systemboot_linux.go @@ -1,6 +1,7 @@ // Copyright 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 diff --git a/cmds/exp/tc/main.go b/cmds/exp/tc/main.go index a784005575..a75d89e81d 100644 --- a/cmds/exp/tc/main.go +++ b/cmds/exp/tc/main.go @@ -1,6 +1,7 @@ // Copyright 2012-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 diff --git a/cmds/exp/tc/tc_test.go b/cmds/exp/tc/tc_test.go index 4a35bee80c..93bfe124f7 100644 --- a/cmds/exp/tc/tc_test.go +++ b/cmds/exp/tc/tc_test.go @@ -1,6 +1,7 @@ // Copyright 2012-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 diff --git a/cmds/exp/tcpdump/domain.go b/cmds/exp/tcpdump/domain.go index 701869a54e..a904ce5bb7 100644 --- a/cmds/exp/tcpdump/domain.go +++ b/cmds/exp/tcpdump/domain.go @@ -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 diff --git a/cmds/exp/tcpdump/domain_test.go b/cmds/exp/tcpdump/domain_test.go index 90dd5b727f..5f90850b39 100644 --- a/cmds/exp/tcpdump/domain_test.go +++ b/cmds/exp/tcpdump/domain_test.go @@ -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 diff --git a/cmds/exp/tcpdump/ethernet.go b/cmds/exp/tcpdump/ethernet.go index fdd2384eee..728a507799 100644 --- a/cmds/exp/tcpdump/ethernet.go +++ b/cmds/exp/tcpdump/ethernet.go @@ -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 ( diff --git a/cmds/exp/tcpdump/ethernet_test.go b/cmds/exp/tcpdump/ethernet_test.go index 25baeaecee..c0ebcd77a3 100644 --- a/cmds/exp/tcpdump/ethernet_test.go +++ b/cmds/exp/tcpdump/ethernet_test.go @@ -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 diff --git a/cmds/exp/tcpdump/gen.go b/cmds/exp/tcpdump/gen.go index be79d8b726..a1875e91fd 100644 --- a/cmds/exp/tcpdump/gen.go +++ b/cmds/exp/tcpdump/gen.go @@ -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 ignore +//go:build (!tinygo || tinygo.enable) && ignore package main diff --git a/cmds/exp/tcpdump/icmp.go b/cmds/exp/tcpdump/icmp.go index c1fadef06c..a230353d1e 100644 --- a/cmds/exp/tcpdump/icmp.go +++ b/cmds/exp/tcpdump/icmp.go @@ -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 diff --git a/cmds/exp/tcpdump/icmp_test.go b/cmds/exp/tcpdump/icmp_test.go index 8afaa98c89..53929ac0bc 100644 --- a/cmds/exp/tcpdump/icmp_test.go +++ b/cmds/exp/tcpdump/icmp_test.go @@ -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 diff --git a/cmds/exp/tcpdump/main.go b/cmds/exp/tcpdump/main.go index c97be9997d..3bed10a9a9 100644 --- a/cmds/exp/tcpdump/main.go +++ b/cmds/exp/tcpdump/main.go @@ -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 ( diff --git a/cmds/exp/tcpdump/main_test.go b/cmds/exp/tcpdump/main_test.go index 3fc2e95099..b55809b4ae 100644 --- a/cmds/exp/tcpdump/main_test.go +++ b/cmds/exp/tcpdump/main_test.go @@ -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 ( diff --git a/cmds/exp/tcpdump/tcp.go b/cmds/exp/tcpdump/tcp.go index 92e48480a2..4a0a4df4b8 100644 --- a/cmds/exp/tcpdump/tcp.go +++ b/cmds/exp/tcpdump/tcp.go @@ -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 diff --git a/cmds/exp/tcpdump/tcp_test.go b/cmds/exp/tcpdump/tcp_test.go index 40a7191916..204c192c01 100644 --- a/cmds/exp/tcpdump/tcp_test.go +++ b/cmds/exp/tcpdump/tcp_test.go @@ -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 diff --git a/cmds/exp/tcpdump/util.go b/cmds/exp/tcpdump/util.go index bd80f360b7..62325b03f6 100644 --- a/cmds/exp/tcpdump/util.go +++ b/cmds/exp/tcpdump/util.go @@ -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 diff --git a/cmds/exp/tcpdump/util_test.go b/cmds/exp/tcpdump/util_test.go index 7d37b839be..c6b227fb8a 100644 --- a/cmds/exp/tcpdump/util_test.go +++ b/cmds/exp/tcpdump/util_test.go @@ -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 diff --git a/cmds/exp/tcpdump/well_known_ports.go b/cmds/exp/tcpdump/well_known_ports.go index e8c18f3d34..9618275492 100644 --- a/cmds/exp/tcpdump/well_known_ports.go +++ b/cmds/exp/tcpdump/well_known_ports.go @@ -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 diff --git a/cmds/exp/tcz/tcz.go b/cmds/exp/tcz/tcz.go index 5eac928bbd..262764f9cb 100644 --- a/cmds/exp/tcz/tcz.go +++ b/cmds/exp/tcz/tcz.go @@ -1,6 +1,7 @@ // Copyright 2012 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 diff --git a/cmds/exp/tftp/main.go b/cmds/exp/tftp/main.go index c24a349595..cac794c209 100644 --- a/cmds/exp/tftp/main.go +++ b/cmds/exp/tftp/main.go @@ -1,6 +1,7 @@ // Copyright 2012-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 // tftp gets and puts files from and to a tftp server // diff --git a/cmds/exp/tftp/tftp_test.go b/cmds/exp/tftp/tftp_test.go index e8d03b6deb..b99fc31579 100644 --- a/cmds/exp/tftp/tftp_test.go +++ b/cmds/exp/tftp/tftp_test.go @@ -1,6 +1,7 @@ // Copyright 2012-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 diff --git a/cmds/exp/traceroute/main.go b/cmds/exp/traceroute/main.go index be9a013c59..367678d2d5 100644 --- a/cmds/exp/traceroute/main.go +++ b/cmds/exp/traceroute/main.go @@ -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 diff --git a/cmds/exp/traceroute/traceroute_test.go b/cmds/exp/traceroute/traceroute_test.go index 9e581c664a..50a847e7c5 100644 --- a/cmds/exp/traceroute/traceroute_test.go +++ b/cmds/exp/traceroute/traceroute_test.go @@ -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 diff --git a/cmds/exp/uefiboot/main.go b/cmds/exp/uefiboot/main.go index fbd38dc6fd..b39c3de3cd 100644 --- a/cmds/exp/uefiboot/main.go +++ b/cmds/exp/uefiboot/main.go @@ -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 // uefiboot loads the firmware generated by EDK2's UefiPayLoadPkg to boot a UEFI based OS // diff --git a/cmds/exp/vboot/vboot.go b/cmds/exp/vboot/vboot.go index f3c029b4ef..6e69c9b91f 100644 --- a/cmds/exp/vboot/vboot.go +++ b/cmds/exp/vboot/vboot.go @@ -1,6 +1,7 @@ // Copyright 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 package main diff --git a/cmds/exp/vmboot/vmboot_amd64.go b/cmds/exp/vmboot/vmboot_amd64.go index d18e6006d0..eae6263bb4 100644 --- a/cmds/exp/vmboot/vmboot_amd64.go +++ b/cmds/exp/vmboot/vmboot_amd64.go @@ -1,6 +1,7 @@ // Copyright 2023 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 diff --git a/cmds/fwtools/flash/dummy_linux.go b/cmds/fwtools/flash/dummy_linux.go index d6cb366825..c4fdbbb51d 100644 --- a/cmds/fwtools/flash/dummy_linux.go +++ b/cmds/fwtools/flash/dummy_linux.go @@ -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 diff --git a/cmds/fwtools/flash/flash_linux.go b/cmds/fwtools/flash/flash_linux.go index 50f04becc3..935f8ee2cc 100644 --- a/cmds/fwtools/flash/flash_linux.go +++ b/cmds/fwtools/flash/flash_linux.go @@ -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 // flash reads and writes to a flash chip. // diff --git a/cmds/fwtools/flash/spi_linux.go b/cmds/fwtools/flash/spi_linux.go index 3ab5935540..0a33d4cdfc 100644 --- a/cmds/fwtools/flash/spi_linux.go +++ b/cmds/fwtools/flash/spi_linux.go @@ -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 diff --git a/tools/tinygobb/README.md b/tools/tinygobb/README.md index 7a3b82638d..c2bc9b41bc 100644 --- a/tools/tinygobb/README.md +++ b/tools/tinygobb/README.md @@ -1,185 +1,208 @@ -# Status of tinygo in u-root +# Status of u-root + tinygo +This document aims to track the progress of building all u-root commands +with tinygo. It will be updated as more commands can be built. -Currently, many of the busybox commands fail to build using tinygo. -This document aims to cover the current process of enabling all subcommands to be built using tinygo. -While enabling more and more commands the list of working commands in this document will be updated. +Commands that cannot be built with tinygo have a \"(!tinygo || tinygo.enable)\" +build constraint. Specify the "tinygo.enable" build tag to (attempt to) build +them. -## building -Since currently the tinygo support is lacking, many commands got the `!tinygo` build tag. -This prohibits building, so anyone recreating the build steps should be aware that this has to be removed for each command. -The list below is the result of building each subcommand individually for x86_64 linux. + tinygo build -tags tinygo.enable cmds/core/ls -The neccessary additions to tinygo will be tracked in the according issue that this document is based on [#2979](https://github.com/u-root/u-root/issues/2979). +Some commands require additional tags to be built. The required tags are listed +below, e.g. `cmds/core/init` and others require `-tags noasm`. -## command list -### core -40 tinygo build errors found. +The list below is the result of building each command for Linux, x86_64 with +tinygo version 0.33.0. - - [ ] `bind` - - [ ] `dhclient` - - [ ] `dmesg` - - [ ] `fusermount` - - [ ] `gosh` - - [ ] `gpgv` - - [ ] `gzip` - - [ ] `hostname` - - [ ] `hwclock` - - [ ] `init` - - [ ] `insmod` - - [ ] `ip` - - [ ] `kexec` - - [ ] `lockmsrs` - - [ ] `losetup` - - [ ] `mkfifo` - - [ ] `mknod` - - [ ] `mount` - - [ ] `msr` - - [ ] `netcat` - - [ ] `ntpdate` - - [ ] `ping` - - [ ] `poweroff` - - [ ] `rmmod` - - [ ] `shutdown` - - [ ] `sluinit` - - [ ] `sshd` - - [ ] `strace` - - [ ] `stty` - - [ ] `switch_root` - - [ ] `tee` - - [ ] `truncate` - - [ ] `umount` - - [ ] `uname` - - [ ] `watchdog` - - [ ] `watchdogd` - - [ ] `wget` - - [ ] `which` - - [ ] `nohup` +The necessary additions to tinygo will be tracked in +[#2979](https://github.com/u-root/u-root/issues/2979). -65 cmds build successful -- [x] `backoff` -- [x] `base64` -- [x] `basename` -- [x] `blkid` -- [x] `cat` -- [x] `chmod` -- [x] `chroot` -- [x] `cmp` -- [x] `comm` -- [x] `cp` -- [x] `cpio` -- [x] `date` -- [x] `dd` -- [x] `df` -- [x] `dirname` -- [x] `echo` -- [x] `false` -- [x] `find` -- [x] `free` -- [x] `gpt` -- [x] `grep` -- [x] `hexdump` -- [x] `id` -- [x] `io` -- [x] `kill` -- [x] `lddfiles` -- [x] `ln` -- [x] `ls` -- [x] `lsdrivers` -- [x] `lsmod` -- [x] `man` -- [x] `md5sum` -- [x] `mkdir` -- [x] `mktemp` -- [x] `more` -- [x] `mv` -- [x] `pci` -- [x] `printenv` -- [x] `ps` -- [x] `pwd` -- [x] `readlink` -- [x] `rm` -- [x] `rsdp` -- [x] `scp` -- [x] `seq` -- [x] `shasum` -- [x] `sleep` -- [x] `sort` -- [x] `strings` -- [x] `sync` -- [x] `tail` -- [x] `tar` -- [x] `time` -- [x] `timeout` -- [x] `touch` -- [x] `tr` -- [x] `true` -- [x] `ts` -- [x] `uniq` -- [x] `unmount` -- [x] `unshare` -- [x] `uptime` -- [x] `wc` -- [x] `xargs` -- [x] `yes` +--- -### exp -30 tinygo build errors found. - - [ ] `bootvars` - - [ ] `bzimage` - - [ ] `console` - - [ ] `disk_unlock` - - [ ] `efivarfs` - - [ ] `esxiboot` - - [ ] `getty` - - [ ] `hdparm` - - [ ] `ipmidump` - - [ ] `kconf` - - [ ] `modprobe` - - [ ] `netbootxyz` - - [ ] `newsshd` - - [ ] `nvme_unlock` - - [ ] `page` - - [ ] `partprobe` - - [ ] `pflask` - - [ ] `pox` - - [ ] `pxeserver` - - [ ] `run` - - [ ] `smbios_transfer` - - [ ] `ssh` - - [ ] `syscallfilter` - - [ ] `uefiboot` - - [ ] `vboot` - - [ ] `vmboot` - - [ ] `dumpmemmap` - - [ ] `fbnetboot` - - [ ] `localboot` - - [ ] `systemboot` +## Commands Build Status -27 cmds build successful -- [x] `acpicat` -- [x] `acpigrep` -- [x] `ansi` -- [x] `cbmem` -- [x] `crc` -- [x] `dmidecode` -- [x] `dumpebda` -- [x] `ectool` -- [x] `ed` -- [x] `fbsplash` -- [x] `fdtdump` -- [x] `field` -- [x] `fixrsdp` -- [x] `forth` -- [x] `freq` -- [x] `lsfabric` -- [x] `madeye` -- [x] `readelf` -- [x] `readpe` -- [x] `rush` -- [x] `smn` -- [x] `srvfiles` -- [x] `tac` -- [x] `tcz` -- [x] `watch` -- [x] `zbi` -- [x] `zimage` +### EXCLUDED (1 commands) + - [cmds/core/bind](../../cmds/core/bind) + +### FAILING (43 commands) + - [cmds/boot/boot](../../cmds/boot/boot) + - [cmds/boot/fitboot](../../cmds/boot/fitboot) + - [cmds/boot/pxeboot](../../cmds/boot/pxeboot) + - [cmds/cluster/nodestats](../../cmds/cluster/nodestats) + - [cmds/core/dhclient](../../cmds/core/dhclient) + - [cmds/core/gosh](../../cmds/core/gosh) + - [cmds/core/io](../../cmds/core/io) + - [cmds/core/ip](../../cmds/core/ip) + - [cmds/core/kexec](../../cmds/core/kexec) + - [cmds/core/lockmsrs](../../cmds/core/lockmsrs) + - [cmds/core/msr](../../cmds/core/msr) + - [cmds/core/netcat](../../cmds/core/netcat) + - [cmds/core/netstat](../../cmds/core/netstat) + - [cmds/core/nohup](../../cmds/core/nohup) + - [cmds/core/ntpdate](../../cmds/core/ntpdate) + - [cmds/core/ping](../../cmds/core/ping) + - [cmds/core/sluinit](../../cmds/core/sluinit) + - [cmds/core/sshd](../../cmds/core/sshd) + - [cmds/core/strace](../../cmds/core/strace) + - [cmds/core/tee](../../cmds/core/tee) + - [cmds/core/watchdogd](../../cmds/core/watchdogd) + - [cmds/core/wget](../../cmds/core/wget) + - [cmds/exp/efivarfs](../../cmds/exp/efivarfs) + - [cmds/exp/esxiboot](../../cmds/exp/esxiboot) + - [cmds/exp/fbnetboot](../../cmds/exp/fbnetboot) + - [cmds/exp/localboot](../../cmds/exp/localboot) + - [cmds/exp/netbootxyz](../../cmds/exp/netbootxyz) + - [cmds/exp/newsshd](../../cmds/exp/newsshd) + - [cmds/exp/pxeserver](../../cmds/exp/pxeserver) + - [cmds/exp/srvfiles](../../cmds/exp/srvfiles) + - [cmds/exp/ssh](../../cmds/exp/ssh) + - [cmds/exp/syscallfilter](../../cmds/exp/syscallfilter) + - [cmds/exp/systemboot](../../cmds/exp/systemboot) + - [cmds/exp/tc](../../cmds/exp/tc) + - [cmds/exp/tcpdump](../../cmds/exp/tcpdump) + - [cmds/exp/tcz](../../cmds/exp/tcz) + - [cmds/exp/tftp](../../cmds/exp/tftp) + - [cmds/exp/traceroute](../../cmds/exp/traceroute) + - [cmds/exp/tsort](../../cmds/exp/tsort) + - [cmds/exp/uefiboot](../../cmds/exp/uefiboot) + - [cmds/exp/vboot](../../cmds/exp/vboot) + - [cmds/exp/vmboot](../../cmds/exp/vmboot) + - [cmds/fwtools/flash](../../cmds/fwtools/flash) + +### PASSING (136 commands) + - [cmds/contrib/fbptcat](../../cmds/contrib/fbptcat) + - [cmds/core/backoff](../../cmds/core/backoff) + - [cmds/core/base64](../../cmds/core/base64) + - [cmds/core/basename](../../cmds/core/basename) + - [cmds/core/blkid](../../cmds/core/blkid) + - [cmds/core/brctl](../../cmds/core/brctl) + - [cmds/core/cat](../../cmds/core/cat) + - [cmds/core/chmod](../../cmds/core/chmod) + - [cmds/core/chroot](../../cmds/core/chroot) + - [cmds/core/cmp](../../cmds/core/cmp) + - [cmds/core/comm](../../cmds/core/comm) + - [cmds/core/cp](../../cmds/core/cp) + - [cmds/core/cpio](../../cmds/core/cpio) + - [cmds/core/date](../../cmds/core/date) + - [cmds/core/dd](../../cmds/core/dd) + - [cmds/core/df](../../cmds/core/df) + - [cmds/core/dirname](../../cmds/core/dirname) + - [cmds/core/dmesg](../../cmds/core/dmesg) + - [cmds/core/du](../../cmds/core/du) + - [cmds/core/echo](../../cmds/core/echo) + - [cmds/core/false](../../cmds/core/false) + - [cmds/core/find](../../cmds/core/find) + - [cmds/core/free](../../cmds/core/free) + - [cmds/core/fusermount](../../cmds/core/fusermount) + - [cmds/core/gpgv](../../cmds/core/gpgv) + - [cmds/core/gpt](../../cmds/core/gpt) + - [cmds/core/grep](../../cmds/core/grep) + - [cmds/core/gzip](../../cmds/core/gzip) tags: noasm + - [cmds/core/head](../../cmds/core/head) + - [cmds/core/hexdump](../../cmds/core/hexdump) + - [cmds/core/hostname](../../cmds/core/hostname) + - [cmds/core/hwclock](../../cmds/core/hwclock) + - [cmds/core/id](../../cmds/core/id) + - [cmds/core/init](../../cmds/core/init) tags: noasm + - [cmds/core/insmod](../../cmds/core/insmod) tags: noasm + - [cmds/core/kill](../../cmds/core/kill) + - [cmds/core/lddfiles](../../cmds/core/lddfiles) + - [cmds/core/ln](../../cmds/core/ln) + - [cmds/core/losetup](../../cmds/core/losetup) + - [cmds/core/ls](../../cmds/core/ls) + - [cmds/core/lsdrivers](../../cmds/core/lsdrivers) + - [cmds/core/lsmod](../../cmds/core/lsmod) + - [cmds/core/man](../../cmds/core/man) + - [cmds/core/md5sum](../../cmds/core/md5sum) + - [cmds/core/mkdir](../../cmds/core/mkdir) + - [cmds/core/mkfifo](../../cmds/core/mkfifo) + - [cmds/core/mknod](../../cmds/core/mknod) + - [cmds/core/mktemp](../../cmds/core/mktemp) + - [cmds/core/more](../../cmds/core/more) + - [cmds/core/mount](../../cmds/core/mount) + - [cmds/core/mv](../../cmds/core/mv) + - [cmds/core/pci](../../cmds/core/pci) + - [cmds/core/poweroff](../../cmds/core/poweroff) + - [cmds/core/printenv](../../cmds/core/printenv) + - [cmds/core/ps](../../cmds/core/ps) + - [cmds/core/pwd](../../cmds/core/pwd) + - [cmds/core/readlink](../../cmds/core/readlink) + - [cmds/core/realpath](../../cmds/core/realpath) + - [cmds/core/rm](../../cmds/core/rm) + - [cmds/core/rmmod](../../cmds/core/rmmod) tags: noasm + - [cmds/core/rsdp](../../cmds/core/rsdp) + - [cmds/core/scp](../../cmds/core/scp) + - [cmds/core/seq](../../cmds/core/seq) + - [cmds/core/shasum](../../cmds/core/shasum) + - [cmds/core/shutdown](../../cmds/core/shutdown) + - [cmds/core/sleep](../../cmds/core/sleep) + - [cmds/core/sort](../../cmds/core/sort) + - [cmds/core/strings](../../cmds/core/strings) + - [cmds/core/stty](../../cmds/core/stty) + - [cmds/core/switch_root](../../cmds/core/switch_root) + - [cmds/core/sync](../../cmds/core/sync) + - [cmds/core/tail](../../cmds/core/tail) + - [cmds/core/tar](../../cmds/core/tar) + - [cmds/core/time](../../cmds/core/time) + - [cmds/core/timeout](../../cmds/core/timeout) + - [cmds/core/touch](../../cmds/core/touch) + - [cmds/core/tr](../../cmds/core/tr) + - [cmds/core/true](../../cmds/core/true) + - [cmds/core/truncate](../../cmds/core/truncate) + - [cmds/core/ts](../../cmds/core/ts) + - [cmds/core/tty](../../cmds/core/tty) + - [cmds/core/umount](../../cmds/core/umount) + - [cmds/core/uname](../../cmds/core/uname) + - [cmds/core/uniq](../../cmds/core/uniq) + - [cmds/core/unmount](../../cmds/core/unmount) + - [cmds/core/unshare](../../cmds/core/unshare) + - [cmds/core/uptime](../../cmds/core/uptime) + - [cmds/core/watchdog](../../cmds/core/watchdog) + - [cmds/core/wc](../../cmds/core/wc) + - [cmds/core/which](../../cmds/core/which) + - [cmds/core/xargs](../../cmds/core/xargs) + - [cmds/core/yes](../../cmds/core/yes) + - [cmds/exp/acpicat](../../cmds/exp/acpicat) + - [cmds/exp/acpigrep](../../cmds/exp/acpigrep) + - [cmds/exp/ansi](../../cmds/exp/ansi) + - [cmds/exp/bootvars](../../cmds/exp/bootvars) + - [cmds/exp/bzimage](../../cmds/exp/bzimage) tags: noasm + - [cmds/exp/cbmem](../../cmds/exp/cbmem) + - [cmds/exp/console](../../cmds/exp/console) tags: noasm + - [cmds/exp/crc](../../cmds/exp/crc) + - [cmds/exp/disk_unlock](../../cmds/exp/disk_unlock) + - [cmds/exp/dmidecode](../../cmds/exp/dmidecode) + - [cmds/exp/dumpebda](../../cmds/exp/dumpebda) + - [cmds/exp/dumpmemmap](../../cmds/exp/dumpmemmap) + - [cmds/exp/ectool](../../cmds/exp/ectool) + - [cmds/exp/ed](../../cmds/exp/ed) + - [cmds/exp/fbsplash](../../cmds/exp/fbsplash) + - [cmds/exp/fdtdump](../../cmds/exp/fdtdump) + - [cmds/exp/field](../../cmds/exp/field) + - [cmds/exp/fixrsdp](../../cmds/exp/fixrsdp) + - [cmds/exp/forth](../../cmds/exp/forth) + - [cmds/exp/freq](../../cmds/exp/freq) + - [cmds/exp/getty](../../cmds/exp/getty) + - [cmds/exp/hdparm](../../cmds/exp/hdparm) + - [cmds/exp/ipmidump](../../cmds/exp/ipmidump) + - [cmds/exp/kconf](../../cmds/exp/kconf) tags: noasm + - [cmds/exp/lsfabric](../../cmds/exp/lsfabric) + - [cmds/exp/madeye](../../cmds/exp/madeye) + - [cmds/exp/modprobe](../../cmds/exp/modprobe) tags: noasm + - [cmds/exp/nvme_unlock](../../cmds/exp/nvme_unlock) + - [cmds/exp/page](../../cmds/exp/page) + - [cmds/exp/partprobe](../../cmds/exp/partprobe) + - [cmds/exp/pflask](../../cmds/exp/pflask) + - [cmds/exp/pox](../../cmds/exp/pox) + - [cmds/exp/readelf](../../cmds/exp/readelf) + - [cmds/exp/readpe](../../cmds/exp/readpe) + - [cmds/exp/run](../../cmds/exp/run) + - [cmds/exp/rush](../../cmds/exp/rush) + - [cmds/exp/smbios_transfer](../../cmds/exp/smbios_transfer) + - [cmds/exp/smn](../../cmds/exp/smn) + - [cmds/exp/tac](../../cmds/exp/tac) + - [cmds/exp/watch](../../cmds/exp/watch) + - [cmds/exp/zbi](../../cmds/exp/zbi) + - [cmds/exp/zimage](../../cmds/exp/zimage) + - [cmds/extra/tsort](../../cmds/extra/tsort) + - [cmds/fwtools/spidev](../../cmds/fwtools/spidev)