package/rustc: install cargo config as toolchain post-install hook
authorArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Fri, 7 Feb 2020 18:08:20 +0000 (19:08 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Mon, 27 Jul 2020 11:30:59 +0000 (13:30 +0200)
commit16d3d70590ee35e8fd574ceda305fff5f35aabee
tree6366a37114b5d64295f1941102006d4dc51452b6
parent00b7abf7ebb929f32c4e3b7ec64c6f6b14fa3fcd
package/rustc: install cargo config as toolchain post-install hook

The cargo config file is much like the cmake and meson configuration
files, something that tells the cargo build system how the
cross-toolchain is configured.

It is currently installed by the cargo package, but this package is
about to be removed as cargo is now built as part of rust
itself. Therefore, install the cargo config file as a toolchain
post-install hook, just like we do for cmake and meson.

However, we don't have a pkg-cargo infrastructure (yet) so we can't
put it there. Therefore, put it in the rustc package - any cargo
package will need rustc.

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Tested-by: David Pierret <david.pierret@smile.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/cargo/cargo.mk
package/cargo/config.in [deleted file]
package/rustc/cargo-config.in [new file with mode: 0644]
package/rustc/rustc.mk