From ef6813dfe448f1bde2052a592d650b0a3b7c0ee8 Mon Sep 17 00:00:00 2001 From: Stefan Lankes Date: Wed, 13 Mar 2024 07:40:11 +0100 Subject: [PATCH] add option to start a simple shell as async task Currently, the shell is only able to print the number of received tasks. Type `h` to show the supported commands. --- examples/tls/Cargo.toml | 3 ++- hermit/Cargo.toml | 1 + hermit/build.rs | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/tls/Cargo.toml b/examples/tls/Cargo.toml index 4061ef2b2..07ab93d6d 100644 --- a/examples/tls/Cargo.toml +++ b/examples/tls/Cargo.toml @@ -27,7 +27,7 @@ path = "../../hermit" default-features = false [features] -default = ["fsgsbase", "dhcpv4", "pci", "pci-ids", "acpi", "tcp"] +default = ["fsgsbase", "dhcpv4", "pci", "pci-ids", "acpi", "tcp", "shell"] vga = ["hermit/vga"] dhcpv4 = ["hermit/dhcpv4"] pci = ["hermit/pci"] @@ -40,3 +40,4 @@ instrument = ["hermit/instrument"] trace = ["hermit/trace"] rtl8139 = ["hermit/rtl8139"] ci = [] +shell = ["hermit/shell"] \ No newline at end of file diff --git a/hermit/Cargo.toml b/hermit/Cargo.toml index 65c7fff6c..09b062ca8 100644 --- a/hermit/Cargo.toml +++ b/hermit/Cargo.toml @@ -48,6 +48,7 @@ tcp = [] udp = [] trace = [] vga = [] +shell = [] [build-dependencies] flate2 = "1" diff --git a/hermit/build.rs b/hermit/build.rs index abb5c8786..67771cf14 100644 --- a/hermit/build.rs +++ b/hermit/build.rs @@ -96,7 +96,7 @@ impl KernelSrc { &mut cargo, [ "acpi", "dhcpv4", "fsgsbase", "pci", "pci-ids", "smp", "tcp", "udp", "trace", - "vga", "rtl8139", "fs", + "vga", "rtl8139", "fs", "shell", ] .into_iter(), );