Skip to content

Commit 40e3bdc

Browse files
razvandStefanJum
authored andcommitted
elfloader-*: Add exit / shutdown configuration
Add graceful shutdown configuration to `Config.uk` files for elfloader apps. With this, binary-compatible apps that end their execution will also result in ending the VMM process (QEMU or Firecracker). Signed-off-by: Razvan Deaconescu <[email protected]>
1 parent 3c09374 commit 40e3bdc

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

elfloader-basic/Config.uk

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,8 @@ default y
3030
select LIBUKCPIO
3131
select LIBDEVFS
3232
select LIBDEVFS_AUTOMOUNT
33+
34+
# Add multithreading support to run exit() calls.
35+
select LIBUKBOOT_MAINTHREAD
36+
select LIBUKBOOT_SHUTDOWNREQ_HANDLER
37+
select LIBPOSIX_PROCESS_MULTITHREADING

elfloader-net/Config.uk

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ default y
3131
select LIBDEVFS
3232
select LIBDEVFS_AUTOMOUNT
3333

34+
# Add multithreading support to run exit() calls.
35+
select LIBUKBOOT_MAINTHREAD
36+
select LIBUKBOOT_SHUTDOWNREQ_HANDLER
37+
select LIBPOSIX_PROCESS_MULTITHREADING
38+
3439
# Select LWIP networking stack library.
3540
select LIBLWIP
3641

0 commit comments

Comments
 (0)