Go to file
Yann E. MORIN 99a5d51c6e package/go: ensure there is a host-go provider
Commit fa2536ec94 (package/go: make host package a virtual package)
introduced host-go as a host-only virtual package, which had a single
provider, the choice of which is only exposed when a (target or host)
package has selected BR2_PACKAGE_HOST_GO to indicate it needs host-go.

However, this forgot to account for prompt-less, host-only packages,
which have no way of selecting that symbol.

Having prompt-less, host-only packages is a totally unexceptional,
supported case; for example a host package can be depended upon by
another (target or host) package, or by a filesystem, and we do not
require Kconfig symbols to be exposed for those packages.

As a consequence, when not package is enabled, that can select that
symbol, we can't run 'make source' or 'make host-foo-source':

    make[1]: *** No rule to make target 'host-', needed by
    '[...]/build/host-go-1.22.4/.stamp_configured'. Stop.

Fix that by moving the provider symbol out of the if-block, so that
there is always a provider defined.

Now, we only have host-go-src as a provider, but the symbol is still
part of the choice that is conditional (and that _has_ to be
conditional), so the BR2_PACKAGE_HOST_GO_SRC can never be set unless
there is a package that explicitly select BR2_PACKAGE_HOST_GO.

So, drop the conditional on the default, so that there is always a
provider available.

This mirrors other similar situations, like the rust case.

Fixes: fa2536ec94

Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
LGTM: Arnout Vandecappelle (Essensium/Mind) (on IRC) <arnout@mind.be>
2024-06-20 20:33:44 +02:00
.github .github: add a pull request warning that explains the mailing list workflow 2024-04-24 21:50:23 +02:00
arch arch: allow riscv32 noMMU configuration 2024-05-12 12:19:18 +02:00
board package/versal-firmware: remove package 2024-06-15 23:16:54 +02:00
boot package/versal-firmware: remove package 2024-06-15 23:16:54 +02:00
configs configs/versal_vck190_defconfig: migrate to xilinx-prebuilt 2024-06-15 23:15:09 +02:00
docs docs, package/gcc: switch to Gitlab issue tracker 2024-06-15 16:35:26 +02:00
fs fs/tar: use appropriate TAR 2024-06-05 23:31:18 +02:00
linux package/linux-headers: drop 6.8.x option 2024-06-15 18:42:17 +02:00
package package/go: ensure there is a host-go provider 2024-06-20 20:33:44 +02:00
support support/testing: add ntp runtime test 2024-06-19 22:19:14 +02:00
system Add BR2_ROOTFS_{PRE_BUILD|POST_{BUILD|FAKEROOT|IMAGE}}_SCRIPT_ARGS 2024-03-28 21:47:04 +01:00
toolchain {toolchain, linux-headers}: add support for 6.9 headers 2024-06-15 18:42:08 +02:00
utils Merge branch 'next' 2024-06-13 11:16:07 +02:00
.checkpackageignore package/ntp: remove the obsolete patch 2024-06-19 22:31:22 +02:00
.clang-format .clang-format: initial import from Linux 5.15.6 2022-01-01 15:01:13 +01:00
.defconfig arch: remove support for sh64 2016-09-08 22:15:15 +02:00
.editorconfig editorconfig: leave patch files alone wrt trainling spaces 2024-06-11 21:55:21 +02:00
.flake8 Revert ".flake8: fix check for 80/132 columns" 2021-01-02 17:38:20 +01:00
.gitignore update gitignore 2013-05-04 12:41:55 +02:00
.gitlab-ci.yml support/misc/gitlab-ci.yml.in: retry a job only if it failed due to a runner issue 2023-08-27 10:09:37 +02:00
.shellcheckrc utils/check-package: improve shellcheck reproducibility 2022-07-25 23:52:47 +02:00
CHANGES Update for 2024.05 2024-06-12 12:30:36 +02:00
Config.in Config.in: drop --passive-ftp from default wget options 2024-06-03 11:18:08 +02:00
Config.in.legacy package/versal-firmware: remove package 2024-06-15 23:16:54 +02:00
COPYING COPYING: add exception about patch licensing 2016-02-26 19:50:13 +01:00
DEVELOPERS support/testing: add ntp runtime test 2024-06-19 22:19:14 +02:00
Makefile Kickoff 2024.08 cycle 2024-06-12 18:41:29 +02:00
Makefile.legacy Remove BR2_DEPRECATED 2016-10-15 23:14:45 +02:00
README docs: move the IRC channel away from Freenode 2021-05-29 22:16:23 +02:00

Buildroot is a simple, efficient and easy-to-use tool to generate embedded
Linux systems through cross-compilation.

The documentation can be found in docs/manual. You can generate a text
document with 'make manual-text' and read output/docs/manual/manual.text.
Online documentation can be found at http://buildroot.org/docs.html

To build and use the buildroot stuff, do the following:

1) run 'make menuconfig'
2) select the target architecture and the packages you wish to compile
3) run 'make'
4) wait while it compiles
5) find the kernel, bootloader, root filesystem, etc. in output/images

You do not need to be root to build or run buildroot.  Have fun!

Buildroot comes with a basic configuration for a number of boards. Run
'make list-defconfigs' to view the list of provided configurations.

Please feed suggestions, bug reports, insults, and bribes back to the
buildroot mailing list: buildroot@buildroot.org
You can also find us on #buildroot on OFTC IRC.

If you would like to contribute patches, please read
https://buildroot.org/manual.html#submitting-patches