use new fs
This commit is contained in:
parent
7d093a9ae0
commit
c3af220677
@ -27,24 +27,12 @@ block()
|
||||
set(fs_file ${CMAKE_CURRENT_BINARY_DIR}/fs.bin)
|
||||
set(disk_file ${CMAKE_CURRENT_BINARY_DIR}/disk.bin)
|
||||
|
||||
# add_custom_command(
|
||||
# OUTPUT ${fs_file}
|
||||
# COMMAND fstool ${fs_file} mkfile /kernel.bin
|
||||
# COMMAND fstool ${fs_file} import ${kernel_file} /kernel.bin
|
||||
# COMMAND fstool ${fs_file} mkdir /docs
|
||||
# COMMAND fstool ${fs_file} mkfile /docs/readme.txt
|
||||
# COMMAND fstool ${fs_file} importb ${CMAKE_CURRENT_SOURCE_DIR}/readme.txt /docs/readme.txt
|
||||
# DEPENDS fstool ${kernel_file}
|
||||
# VERBATIM
|
||||
# USES_TERMINAL
|
||||
# )
|
||||
|
||||
add_custom_command(
|
||||
OUTPUT ${fs_file}
|
||||
COMMAND fs2 -d ${fs_file} -c importw2w ${kernel_file} /kernel.bin
|
||||
COMMAND fs2 -d ${fs_file} -c mkdir /docs
|
||||
COMMAND fs2 -d ${fs_file} -c importb2w ${CMAKE_CURRENT_SOURCE_DIR}/readme.txt /docs/readme.txt
|
||||
DEPENDS fs2 ${kernel_file}
|
||||
COMMAND fs -d ${fs_file} -c importw2w ${kernel_file} /kernel.bin
|
||||
COMMAND fs -d ${fs_file} -c mkdir /docs
|
||||
COMMAND fs -d ${fs_file} -c importb2w ${CMAKE_CURRENT_SOURCE_DIR}/readme.txt /docs/readme.txt
|
||||
DEPENDS fs ${kernel_file}
|
||||
VERBATIM
|
||||
USES_TERMINAL
|
||||
)
|
||||
|
||||
@ -39,18 +39,9 @@ endif()
|
||||
add_executable(asm asm.c)
|
||||
target_link_libraries(asm PRIVATE opts isa)
|
||||
|
||||
add_library(fs STATIC fs.c)
|
||||
add_executable(fs fs.c)
|
||||
target_link_libraries(fs PRIVATE opts)
|
||||
|
||||
add_executable(fscli fscli.c)
|
||||
target_link_libraries(fscli PRIVATE opts fs)
|
||||
|
||||
add_executable(fstool fstool.c)
|
||||
target_link_libraries(fstool PRIVATE opts fs)
|
||||
|
||||
add_executable(fs2 fs2.c)
|
||||
target_link_libraries(fs2 PRIVATE opts)
|
||||
|
||||
add_executable(mkdisk mkdisk.c)
|
||||
target_link_libraries(mkdisk PRIVATE opts)
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
#include "fs2.h"
|
||||
#include "fs.h"
|
||||
#include <assert.h>
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
Loading…
x
Reference in New Issue
Block a user