-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CMake: Add make_f2fs tool for fastboot
make_f2fs tool is reqired by fastboot. If the make_f2fs executable is not present the following error is shown. $ fastboot format:f2fs userdata /usr/bin/make_f2fs failed with status 1 fastboot: error: Cannot generate image for userdata This commit also splits libext2_uuid static library from libext2fs
- Loading branch information
Showing
4 changed files
with
53 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# CMakeLists.f2fstools.txt: CMake file for f2fs-tools directory | ||
|
||
add_library(libf2fs STATIC | ||
f2fs-tools/lib/libf2fs.c | ||
f2fs-tools/mkfs/f2fs_format.c | ||
f2fs-tools/mkfs/f2fs_format_utils.c | ||
f2fs-tools/lib/libf2fs_zoned.c | ||
f2fs-tools/lib/nls_utf8.c) | ||
|
||
target_compile_definitions(libf2fs PUBLIC | ||
-DF2FS_MAJOR_VERSION=1 | ||
-DF2FS_MINOR_VERSION=16 | ||
-DF2FS_TOOLS_VERSION="1.16.0" | ||
-DF2FS_TOOLS_DATE="2023-04-11" | ||
-DWITH_ANDROID | ||
-DWITH_BLKDISCARD) | ||
|
||
target_include_directories(libf2fs PUBLIC | ||
core/libsparse/include | ||
f2fs-tools/include) | ||
|
||
target_link_libraries(libf2fs PUBLIC | ||
libext2_uuid) | ||
|
||
add_executable(make_f2fs | ||
f2fs-tools/lib/libf2fs_io.c | ||
f2fs-tools/mkfs/f2fs_format_main.c) | ||
|
||
target_link_libraries(make_f2fs PRIVATE | ||
libf2fs libsparse z) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters