Skip to contentSkip to conversation

docs/manual: fix Config.in option that cargo packages must depend on

PATCH New Thomas Petazzoni 2 participants 3 messages Oct 5, 2019 – Oct 28, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 docs/manual: fix Config.in option that cargo packages must depend on

Back in commit 025b863e6facb7b219b82ee6ee7a7916c2c3c47e, the option BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS was introduced, to separate the option that host packages needing Rust should depend on (BR2_PACKAGE_HOST_RUSTC_ARCH_SUPPORTS) from the option that target packages needing Rust should depend on (BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS).

Since the example in the manual is showing a target package, we must use BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS.

---
 docs/manual/adding-packages-cargo.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
docs/manual/adding-packages-cargo.txt +1 -1
index b7fc09acfe..b6029e1eed 100644
@@ -17,7 +17,7 @@ The +Config.in+ file of Cargo-based package 'foo' should contain:
 ---------------------------
 01: config BR2_PACKAGE_FOO
 02: 	bool "foo"
-03: 	depends on BR2_PACKAGE_HOST_RUSTC_ARCH_SUPPORTS
+03: 	depends on BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS
 04: 	select BR2_PACKAGE_HOST_CARGO
 05: 	help
 06: 	  This is a comment that explains what foo is.
Signature · 1 line
2.21.0
author Applied
#1 lore raw

PATCH 1/1 docs/manual: fix Config.in option that cargo packages must depend on

Quoted 10 lines · On Sat, 5 Oct 2019 23:45:10 +0200 Thomas Petazzoni…

Back in commit 025b863e6facb7b219b82ee6ee7a7916c2c3c47e, the option BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS was introduced, to separate the option that host packages needing Rust should depend on (BR2_PACKAGE_HOST_RUSTC_ARCH_SUPPORTS) from the option that target packages needing Rust should depend on (BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS).

Since the example in the manual is showing a target package, we must use BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS.

Quoted 6 lines
---
 docs/manual/adding-packages-cargo.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied to master.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#2 lore raw

PATCH 1/1 docs/manual: fix Config.in option that cargo packages must depend on

In reply to Thomas Petazzoni
Quoted 9 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Thomas" == Thomas Petazzoni <[email protected]> writes:

Back in commit 025b863e6facb7b219b82ee6ee7a7916c2c3c47e, the option BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS was introduced, to separate the option that host packages needing Rust should depend on (BR2_PACKAGE_HOST_RUSTC_ARCH_SUPPORTS) from the option that target packages needing Rust should depend on (BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS).

Quoted 6 lines

Since the example in the manual is showing a target package, we must use BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS.

Committed to 2019.02.x and 2019.08.x, thanks.

Signature · 1 line
Bye, Peter Korsgaard