xref: /aosp_15_r20/external/fsck_msdos/Android.bp (revision 9558e6ac2e10ab0fef46fdd14187b840555f86f4)
1*9558e6acSTreehugger Robotpackage {
2*9558e6acSTreehugger Robot    default_applicable_licenses: ["external_fsck_msdos_license"],
3*9558e6acSTreehugger Robot}
4*9558e6acSTreehugger Robot
5*9558e6acSTreehugger Robot// Added automatically by a large-scale-change
6*9558e6acSTreehugger Robot// See: http://go/android-license-faq
7*9558e6acSTreehugger Robotlicense {
8*9558e6acSTreehugger Robot    name: "external_fsck_msdos_license",
9*9558e6acSTreehugger Robot    visibility: [":__subpackages__"],
10*9558e6acSTreehugger Robot    license_kinds: [
11*9558e6acSTreehugger Robot        "SPDX-license-identifier-BSD",
12*9558e6acSTreehugger Robot    ],
13*9558e6acSTreehugger Robot    license_text: [
14*9558e6acSTreehugger Robot        "NOTICE",
15*9558e6acSTreehugger Robot    ],
16*9558e6acSTreehugger Robot}
17*9558e6acSTreehugger Robot
18*9558e6acSTreehugger Robotcc_binary {
19*9558e6acSTreehugger Robot    name: "fsck_msdos",
20*9558e6acSTreehugger Robot    srcs: [
21*9558e6acSTreehugger Robot        "boot.c",
22*9558e6acSTreehugger Robot        "check.c",
23*9558e6acSTreehugger Robot        "dir.c",
24*9558e6acSTreehugger Robot        "fat.c",
25*9558e6acSTreehugger Robot        "fsutil.c",
26*9558e6acSTreehugger Robot        "main.c",
27*9558e6acSTreehugger Robot    ],
28*9558e6acSTreehugger Robot    include_dirs: ["external/fsck_msdos/"],
29*9558e6acSTreehugger Robot    cflags: [
30*9558e6acSTreehugger Robot        "-O2",
31*9558e6acSTreehugger Robot        "-g",
32*9558e6acSTreehugger Robot        "-Wall",
33*9558e6acSTreehugger Robot        "-Werror",
34*9558e6acSTreehugger Robot        "-D_BSD_SOURCE",
35*9558e6acSTreehugger Robot        "-D_LARGEFILE_SOURCE",
36*9558e6acSTreehugger Robot        "-D_FILE_OFFSET_BITS=64",
37*9558e6acSTreehugger Robot        "-Wno-unused-variable",
38*9558e6acSTreehugger Robot        "-Wno-unused-const-variable",
39*9558e6acSTreehugger Robot        "-Wno-format",
40*9558e6acSTreehugger Robot        "-Wno-sign-compare",
41*9558e6acSTreehugger Robot        "-include freebsd-compat.h",
42*9558e6acSTreehugger Robot    ],
43*9558e6acSTreehugger Robot}
44