File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,6 +17,8 @@ set(CMAKE_C_COMPILER_TARGET ${TRIPLE})
1717
1818message (STATUS "Target triple ${TRIPLE} " )
1919
20+ option (WITH_SOLO5 "Install with solo5 support" ON )
21+
2022set (CMAKE_TOOLCHAIN_FILE ${INCLUDEOS_ROOT} /cmake/${ARCH} -elf-toolchain.cmake)
2123
2224project (includeos C CXX )
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ else(BUNDLE_LOC)
2828
2929endif (BUNDLE_LOC )
3030
31+ if (WITH_SOLO5)
3132ExternalProject_Add (solo5_repo
3233 PREFIX precompiled
3334 BUILD_IN_SOURCE 1
@@ -57,6 +58,13 @@ add_dependencies(ukvm-bin solo5_repo)
5758# Some OS components depend on solo5 (for solo5.h for example)
5859add_dependencies (PrecompiledLibraries solo5 )
5960
61+ # Only x86_64 supported at the moment
62+ if ("${ARCH} " STREQUAL "x86_64" )
63+ install (FILES ${SOLO5_LIB_DIR} /ukvm/solo5.o ${SOLO5_LIB_DIR} /ukvm/ukvm-bin DESTINATION includeos/${ARCH} /lib)
64+ endif ()
65+
66+ endif (WITH_SOLO5 )
67+
6068set (PRECOMPILED_DIR ${CMAKE_CURRENT_BINARY_DIR} /precompiled/src/PrecompiledLibraries/${ARCH} )
6169
6270set (LIBCXX_INCLUDE_DIR ${PRECOMPILED_DIR} /libcxx/include/)
@@ -95,9 +103,4 @@ install(DIRECTORY ${SOLO5_INCLUDE_DIR} DESTINATION includeos/${ARCH}/include/sol
95103
96104install (FILES ${CRTEND} ${CRTBEGIN} DESTINATION includeos/${ARCH} /lib)
97105
98- # Only x86_64 supported at the moment
99- if ("${ARCH} " STREQUAL "x86_64" )
100- install (FILES ${SOLO5_LIB_DIR} /ukvm/solo5.o ${SOLO5_LIB_DIR} /ukvm/ukvm-bin DESTINATION includeos/${ARCH} /lib)
101- endif ()
102-
103106install (FILES ${NEWLIB_LIB_DIR} /libc.a ${NEWLIB_LIB_DIR} /libg.a ${NEWLIB_LIB_DIR} /libm.a ${LIBGCC_LIB_DIR} /libgcc.a ${LIBCXX_LIB_DIR} /libc++.a ${LIBCXX_LIB_DIR} /libc++abi.a DESTINATION includeos/${ARCH} /lib)
Original file line number Diff line number Diff line change @@ -41,4 +41,7 @@ set(CMAKE_FIND_ROOT_PATH ${INCLUDEOS_BIN})
4141
4242# Set nasm compiler to the one symlinked in includeos/bin (to avoid running Mac one)
4343set (CMAKE_ASM_NASM_COMPILER ${INCLUDEOS_BIN} /nasm)
44+
45+ # Disable solo5
46+ set (WITH_SOLO5 OFF CACHE BOOL "Install with solo5 support" FORCE )
4447endif ()
Original file line number Diff line number Diff line change @@ -41,4 +41,7 @@ set(CMAKE_FIND_ROOT_PATH ${INCLUDEOS_BIN})
4141
4242# Set nasm compiler to the one symlinked in includeos/bin (to avoid running Mac one)
4343set (CMAKE_ASM_NASM_COMPILER ${INCLUDEOS_BIN} /nasm)
44+
45+ # Disable solo5
46+ set (WITH_SOLO5 OFF CACHE BOOL "Install with solo5 support" FORCE )
4447endif ()
Original file line number Diff line number Diff line change @@ -76,7 +76,9 @@ add_dependencies(os PrecompiledLibraries botan)
7676add_subdirectory (arch/${ARCH} )
7777add_subdirectory (platform/x86_pc )
7878add_subdirectory (platform/x86_nano )
79+ if (WITH_SOLO5)
7980add_subdirectory (platform/x86_solo5 )
81+ endif (WITH_SOLO5 )
8082add_subdirectory (drivers )
8183add_subdirectory (plugins )
8284
Original file line number Diff line number Diff line change @@ -22,16 +22,18 @@ add_dependencies(silent_start PrecompiledLibraries)
2222add_library (vga_output STATIC vgaout.cpp )
2323add_dependencies (vga_output PrecompiledLibraries )
2424
25- add_library (solo5blk STATIC solo5blk.cpp )
26- add_dependencies (solo5blk PrecompiledLibraries )
27-
28- add_library (solo5net STATIC solo5net.cpp )
29- add_dependencies (solo5net PrecompiledLibraries )
30-
3125install (TARGETS
3226 virtionet virtioblk
33- solo5net solo5blk
3427 vmxnet3
3528 heap_debugging
3629 silent_start vga_output
3730 DESTINATION includeos/${ARCH} /drivers)
31+
32+ if (WITH_SOLO5)
33+ add_library (solo5blk STATIC solo5blk.cpp )
34+ add_dependencies (solo5blk PrecompiledLibraries )
35+
36+ add_library (solo5net STATIC solo5net.cpp )
37+ add_dependencies (solo5net PrecompiledLibraries )
38+ install (TARGETS solo5net solo5blk DESTINATION includeos/${ARCH} /drivers)
39+ endif (WITH_SOLO5 )
You can’t perform that action at this time.
0 commit comments