Skip to content

Commit

Permalink
Merge pull request #428 from amazonlinux/nyoom
Browse files Browse the repository at this point in the history
Combine first-party Rust builds
  • Loading branch information
iliana authored Oct 17, 2019
2 parents acd0d38 + 2d6d2e3 commit a55a680
Show file tree
Hide file tree
Showing 38 changed files with 133 additions and 331 deletions.
5 changes: 3 additions & 2 deletions macros/cargo
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@

%__cargo %{_bindir}/cargo
%__cargo_common_opts --offline --locked --verbose
%__cargo_cross_opts %{__cargo_common_opts} --target %{_cross_arch}-unknown-linux-%{_cross_libc}
%__cargo_target %{_cross_arch}-unknown-linux-%{_cross_libc}
%__cargo_cross_opts %{__cargo_common_opts} --target %{__cargo_target}
%__cargo_env CARGO_TARGET_DIR="${HOME}/.cache" SKIP_README="true"
%__cargo_cross_env %{__cargo_env} TARGET_CC="%{_cross_target}-gcc" PKG_CONFIG_PATH="%{_cross_pkgconfigdir}" PKG_CONFIG_ALLOW_CROSS=1

Expand All @@ -25,4 +26,4 @@ ar = "%{_bindir}/%{_cross_target}-gcc-ar"\
EOF\
)

%cargo_build %{__cargo_cross_env} %{__cargo} install %{__cargo_cross_opts} --root .%{?cargo_args}
%cargo_build %{__cargo_cross_env} %{__cargo} build %{__cargo_cross_opts} --release %{?cargo_args}
47 changes: 10 additions & 37 deletions packages/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions packages/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
[workspace]
members = [
"api",
"aws-iam-authenticator",
"bash",
"ca-certificates",
Expand All @@ -20,7 +19,6 @@ members = [
"findutils",
"glibc",
"golang",
"growpart",
"grub",
"host-ctr",
"iproute",
Expand Down Expand Up @@ -48,7 +46,6 @@ members = [
"libxcrypt",
"login",
"ncurses",
"preinit",
"procps",
"readline",
"release",
Expand All @@ -59,9 +56,9 @@ members = [
"strace",
"systemd",
"tcpdump",
"updater",
"util-linux",
"wicked",
"workspaces",
]

[profile.dev]
Expand Down
26 changes: 0 additions & 26 deletions packages/growpart/Cargo.toml

This file was deleted.

6 changes: 0 additions & 6 deletions packages/growpart/build.rs

This file was deleted.

32 changes: 0 additions & 32 deletions packages/growpart/growpart.spec

This file was deleted.

1 change: 0 additions & 1 deletion packages/growpart/pkg.rs

This file was deleted.

23 changes: 0 additions & 23 deletions packages/preinit/Cargo.toml

This file was deleted.

6 changes: 0 additions & 6 deletions packages/preinit/build.rs

This file was deleted.

1 change: 0 additions & 1 deletion packages/preinit/pkg.rs

This file was deleted.

32 changes: 0 additions & 32 deletions packages/preinit/preinit.spec

This file was deleted.

23 changes: 0 additions & 23 deletions packages/updater/Cargo.toml

This file was deleted.

6 changes: 0 additions & 6 deletions packages/updater/build.rs

This file was deleted.

1 change: 0 additions & 1 deletion packages/updater/pkg.rs

This file was deleted.

67 changes: 0 additions & 67 deletions packages/updater/updater.spec

This file was deleted.

9 changes: 7 additions & 2 deletions packages/api/Cargo.toml → packages/workspaces/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
[package]
name = "api"
name = "workspaces"
version = "0.1.0"
edition = "2018"
publish = false
build = "build.rs"

[package.metadata.build-package]
source-groups = [ "api" ]
source-groups = [
"api",
"growpart",
"updater",
"webpki-roots-shim",
]

[lib]
path = "pkg.rs"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit a55a680

Please sign in to comment.