Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
cmake_minimum_required(VERSION 3.15..3.20)

set(CPU_ARCH i386)
set(CROSS_ARCH i386-elf)
set(CROSS_GCC_VERSION 12.2.0)
set(CROSS_PREFIX "$ENV{HOME}/.local/opt/cross")
Expand Down
2 changes: 1 addition & 1 deletion src/cpu/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
set(TARGET cpu)

add_subdirectory(${CROSS_ARCH}) # defined in root CMakeLists.txt
add_subdirectory(${CPU_ARCH}) # defined in root CMakeLists.txt
target_link_libraries(${TARGET} libc util kernel)
target_include_directories(${TARGET} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions tests/src/cpu/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
unit_test(
TARGET test_mmu
TEST_FILES test_mmu.cpp
TARGET_FILES cpu/i386-elf/src/mmu.c
TARGET_FILES cpu/i386/src/mmu.c
)

unit_test(
TARGET test_gdt
TEST_FILES test_gdt.cpp
TARGET_FILES cpu/i386-elf/src/gdt.c
TARGET_FILES cpu/i386/src/gdt.c
)