-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
userspace: port more programs/libraries, refine libreadline
- Loading branch information
1 parent
84e22d8
commit f6c40a5
Showing
14 changed files
with
104 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,13 @@ | ||
# SPDX-License-Identifier: GPL-3.0-or-later | ||
|
||
add_library(readline libreadline.c) | ||
target_include_directories(readline PUBLIC SYSTEM ${CMAKE_CURRENT_LIST_DIR}/include) | ||
target_link_libraries(readline PUBLIC mos::stdlib) | ||
add_library(mos::readline ALIAS readline) | ||
add_mos_library( | ||
NAME libreadline | ||
SOURCES | ||
libreadline.c | ||
PUBLIC_INCLUDE_DIRECTORIES | ||
${CMAKE_CURRENT_LIST_DIR}/include | ||
USERSPACE_ONLY | ||
HOSTED_ONLY | ||
) | ||
|
||
add_to_initrd(TARGET libreadline_hosted /lib/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
# SPDX-License-Identifier: GPL-3.0-or-later | ||
|
||
add_executable(kdebug main.c) | ||
target_link_libraries(kdebug PRIVATE mos::readline) | ||
|
||
setup_userspace_program(kdebug /programs "Debug kernel parameters") | ||
target_link_libraries(kdebug PRIVATE mos::include mos::libreadline_hosted) | ||
add_to_initrd(TARGET kdebug /programs) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.