Skip to content

Commit

Permalink
FEXRootFSFetcher: Adds a new tool to help set up a new RootFS
Browse files Browse the repository at this point in the history
This tool supports both a zenity and tty interface.
TTY will be presented if available while Zenity will be used otherwise.

This tool pulls a rootfs list from https://rootfs.fex-emu.org/
It then allows you to select a rootfs from the list, download it, place
it in to the correct working folder, extract it if desired, and set it
as the current default RootFS.

This requires curl and potentially zenity installed to use.
Maybe also unsquashfs if the user chooses to extract the image.

This is an all in one tool to quickly get a new user up and running.

Additionally if you pass in a file path in to the tool, it will generate
an xxhash of the file and exit out. This is the hash used to ensure the
files are valid.
  • Loading branch information
Sonicadvance1 committed Dec 24, 2021
1 parent 09a5f8c commit 2c31080
Show file tree
Hide file tree
Showing 5 changed files with 967 additions and 0 deletions.
1 change: 1 addition & 0 deletions Source/Tools/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ add_subdirectory(FEXConfig/)
add_subdirectory(FEXGetConfig/)
add_subdirectory(FEXMountDaemon/)
add_subdirectory(FEXLogServer/)
add_subdirectory(FEXRootFSFetcher/)

set(NAME Opt)
set(SRCS Opt.cpp)
Expand Down
24 changes: 24 additions & 0 deletions Source/Tools/FEXRootFSFetcher/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
set(NAME FEXRootFSFetcher)
set(SRCS Main.cpp
XXFileHash.cpp)

add_executable(${NAME} ${SRCS})
list(APPEND LIBS FEXCore Common CommonCore)

target_include_directories(${NAME} PRIVATE ${CMAKE_SOURCE_DIR}/Source/)

if (CMAKE_BUILD_TYPE MATCHES "RELEASE")
target_link_options(${NAME}
PRIVATE
"LINKER:--gc-sections"
"LINKER:--strip-all"
"LINKER:--as-needed"
)
endif()

install(TARGETS ${NAME}
RUNTIME
DESTINATION bin
COMPONENT runtime)

target_link_libraries(${NAME} PRIVATE ${LIBS} ${STATIC_PIE_OPTIONS} ${PTHREAD_LIB})
Loading

0 comments on commit 2c31080

Please sign in to comment.