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
8 changes: 4 additions & 4 deletions .github/workflows/presubmit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ jobs:
working-directory: base/cvd
if: '!cancelled()'
run: |
if [[ $(buildozer '//...:__pkg__' format 2>&1) ]]; then
echo "Please format BUILD.bazel files with \"buildozer '//...:__pkg__' format\"";
if [[ $(buildozer '//cuttlefish/...:__pkg__' format 2>&1) ]]; then
echo "Please format BUILD.bazel files with \"buildozer '//cuttlefish/...:__pkg__' format\"";
exit 1;
fi
- name: Validate no cc_binary targets under //cuttlefish
Expand Down Expand Up @@ -64,9 +64,9 @@ jobs:
if: '!cancelled()'
working-directory: base/cvd
run: |
if [[ $(buildozer -stdout=true '//...:__pkg__' 'fix unusedLoads') ]]; then
if [[ $(buildozer -stdout=true '//cuttlefish/...:__pkg__' 'fix unusedLoads') ]]; then
buildozer '//...:__pkg__' 'fix unusedLoads'
echo "Please remove unused 'load' statements with \"buildozer '//...:__pkg__' 'fix unusedLoads'\"";
echo "Please remove unused 'load' statements with \"buildozer '//cuttlefish/...:__pkg__' 'fix unusedLoads'\"";
exit 1;
fi
staticcheck:
Expand Down
2 changes: 2 additions & 0 deletions base/cvd/.bazelrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
common --vendor_dir=vendor_src

build --build_tag_filters=-clang_tidy,-clang-tidy
build --copt=-fdiagnostics-color=always
build --output_filter='^//((?!(external/libarchive|external/libevent|external/rules_flex|external/rules_m4):).)*$'
Expand Down
56 changes: 56 additions & 0 deletions base/cvd/vendor_src/+_repo_rules3+f2fs_tools/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
.*
*~
*.[ao]
*.orig
*.tar.*
*.s
*.lo
*.la
*.so
*.so.dbg
*.mod.c
*.lst
*.orig
*.rej

CVS
!.gitignore
tags
TAGS
GPATH
GRTAGS
GSYMS
GTAGS

#
# Generated files
#
compile
install-sh
missing
depcomp
INSTALL
aclocal.m4
autoconf-[0-9].*
autom4te.cache
build-aux
Makefile
Makefile.in
config.*
configure
configure.scan
ltmain.sh
libtool
stamp-h
stamp-h1

/mkfs/mkfs.f2fs
/fsck/fsck.f2fs
/tools/fibmap.f2fs
/tools/parse.f2fs
/tools/f2fscrypt
/tools/f2fs_io/f2fs_io

# cscope files
cscope.*
ncscope.*
1 change: 1 addition & 0 deletions base/cvd/vendor_src/+_repo_rules3+f2fs_tools/AUTHORS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This package has been developed by Praesto Team at Samsung Electronics Co., Ltd.
122 changes: 122 additions & 0 deletions base/cvd/vendor_src/+_repo_rules3+f2fs_tools/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
package(
default_visibility = ["@//:android_cuttlefish"],
)

cc_binary(
name = "fsck.f2fs",
srcs = [
"fsck/common.h",
"fsck/compress.h",
"fsck/defrag.c",
"fsck/dict.c",
"fsck/dict.h",
"fsck/dir.c",
"fsck/dqblk_v2.h",
"fsck/dump.c",
"fsck/f2fs.h",
"fsck/fsck.c",
"fsck/fsck.h",
"fsck/main.c",
"fsck/mkquota.c",
"fsck/mount.c",
"fsck/node.c",
"fsck/node.h",
"fsck/quotaio.c",
"fsck/quotaio.h",
"fsck/quotaio_tree.c",
"fsck/quotaio_tree.h",
"fsck/quotaio_v2.c",
"fsck/quotaio_v2.h",
"fsck/resize.c",
"fsck/segment.c",
"fsck/xattr.c",
"fsck/xattr.h",
],
local_defines = [
"WITH_RESIZE",
],
deps = [
":libf2fs_format_utils",
],
)

cc_library(
name = "libf2fs",
srcs = [
"lib/libf2fs.c",
"lib/libf2fs_io.c",
"lib/libf2fs_zoned.c",
"lib/nls_utf8.c",
"lib/utf8data.h",
"mkfs/f2fs_format.c",
"mkfs/f2fs_format_utils.h",
],
includes = [
"include",
"lib",
"mkfs",
],
hdrs = glob([
"include/*.h",
]),
strip_include_prefix = "include",
defines = [
"F2FS_MAJOR_VERSION=1",
"F2FS_MINOR_VERSION=16",
"F2FS_TOOLS_DATE=\\\"2023-04-11\\\"",
"F2FS_TOOLS_VERSION=\\\"1.16.0\\\"",
"WITH_ANDROID",
],
deps = [
"@//libbase",
"@//libsparse",
"@e2fsprogs//:libext2_uuid",
],
)

cc_library(
name = "libf2fs_format_utils",
srcs = [
"mkfs/f2fs_format_utils.c",
],
includes = [
"mkfs",
],
hdrs = [
"mkfs/f2fs_format_utils.h",
],
strip_include_prefix = "mkfs",
deps = [
":libf2fs",
],
)

cc_library(
name = "libf2fs_format_utils_blkdiscard",
srcs = [
"mkfs/f2fs_format_utils.c",
],
includes = [
"mkfs",
],
hdrs = [
"mkfs/f2fs_format_utils.h",
],
strip_include_prefix = "mkfs",
local_defines = [
"WITH_BLKDISCARD",
],
deps = [
":libf2fs",
],
)

cc_binary(
name = "make_f2fs",
srcs = [
"mkfs/f2fs_format_main.c",
],
deps = [
":libf2fs_format_utils_blkdiscard",
],
)
Loading
Loading