Skip to content

Commit

Permalink
add feature rtl8139
Browse files Browse the repository at this point in the history
This feature is required for hermit-os/kernel#810. Without
this feature, the CI isn't able to test the RTL8139 interface.
  • Loading branch information
stlankes committed Jul 31, 2023
1 parent 89053d1 commit 8dbfc17
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions benches/netbench/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ fsgsbase = ["hermit-sys/fsgsbase"]
smp = ["hermit-sys/smp"]
tcp = ["hermit-sys/tcp"]
instrument = ["hermit-sys/instrument"]
rtl8139 = ["hermit-sys/rtl8139"]

[[bin]]
name = "server-bw"
Expand Down
1 change: 1 addition & 0 deletions examples/httpd/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,5 @@ smp = ["hermit-sys/smp"]
tcp = ["hermit-sys/tcp"]
instrument = ["hermit-sys/instrument"]
trace = ["hermit-sys/trace"]
rtl8139 = ["hermit-sys/rtl8139"]
ci = []
3 changes: 3 additions & 0 deletions hermit-sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ tcp = []
trace = []
vga = []

# if this feature isn't set, the Virtio interface will be used
rtl8139 = ["tcp", "pci"]

[build-dependencies]
flate2 = "1"
ureq = "2.4"
Expand Down
1 change: 1 addition & 0 deletions hermit-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ impl KernelSrc {
&mut cmd,
[
"acpi", "dhcpv4", "fsgsbase", "pci", "pci-ids", "smp", "tcp", "trace", "vga",
"rtl8139",
]
.into_iter(),
);
Expand Down

0 comments on commit 8dbfc17

Please sign in to comment.