aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--arch/x86_64/support/grub.cfg.in2
-rw-r--r--cmake/Modules/GenerateBootableIso.cmake9
2 files changed, 1 insertions, 10 deletions
diff --git a/arch/x86_64/support/grub.cfg.in b/arch/x86_64/support/grub.cfg.in
index b29fc36..09d2ace 100644
--- a/arch/x86_64/support/grub.cfg.in
+++ b/arch/x86_64/support/grub.cfg.in
@@ -3,6 +3,6 @@ default=0
menuentry "TeachOS" {
multiboot2 /$<TARGET_FILE_NAME:kernel>
- module2 isofs/modules/test.img
+ module2 /modules/test.img
boot
} \ No newline at end of file
diff --git a/cmake/Modules/GenerateBootableIso.cmake b/cmake/Modules/GenerateBootableIso.cmake
index abdc907..b798787 100644
--- a/cmake/Modules/GenerateBootableIso.cmake
+++ b/cmake/Modules/GenerateBootableIso.cmake
@@ -3,13 +3,6 @@ include_guard(GLOBAL)
function(target_generate_bootable_iso TARGET)
find_package("grub-mkrescue")
- # set(MODULE_SRC
- # "${PROJECT_SOURCE_DIR}/arch/${CMAKE_SYSTEM_PROCESSOR}/support/test.img"
- # )
- # set(MODULE_DST
- # "$<TARGET_FILE_DIR:${TARGET}>/isofs/test.img"
- # )
-
file(GENERATE
OUTPUT "$<TARGET_FILE_DIR:${TARGET}>/isofs/boot/grub/grub.cfg"
INPUT "${PROJECT_SOURCE_DIR}/arch/${CMAKE_SYSTEM_PROCESSOR}/support/grub.cfg.in"
@@ -17,8 +10,6 @@ function(target_generate_bootable_iso TARGET)
add_custom_command(TARGET "${TARGET}"
POST_BUILD
- # COMMAND "${CMAKE_COMMAND}" -E make_directory "$<TARGET_FILE_DIR:${TARGET}>/isofs"
- # COMMAND "${CMAKE_COMMAND}" -E copy_if_different "${MODULE_SRC}" "${MODULE_DST}"
COMMAND "${CMAKE_COMMAND}" -E make_directory "$<TARGET_FILE_DIR:${TARGET}>/isofs"
COMMAND "${CMAKE_COMMAND}" -E copy_directory "${PROJECT_SOURCE_DIR}/arch/${CMAKE_SYSTEM_PROCESSOR}/support/modules" "$<TARGET_FILE_DIR:${TARGET}>/isofs/modules"
COMMAND "${GRUB_MKRESCUE_EXE}"