• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright 2010 The Android Open Source Project
2
3package {
4    default_applicable_licenses: ["system_extras_ext4_utils_license"],
5}
6
7// Added automatically by a large-scale-change
8// See: http://go/android-license-faq
9license {
10    name: "system_extras_ext4_utils_license",
11    visibility: [":__subpackages__"],
12    license_kinds: [
13        "SPDX-license-identifier-Apache-2.0",
14    ],
15    license_text: [
16        "NOTICE",
17    ],
18}
19
20cc_library {
21    name: "libext4_utils",
22    host_supported: true,
23    ramdisk_available: true,
24    vendor_ramdisk_available: true,
25    recovery_available: true,
26    srcs: [
27        "ext4_utils.cpp",
28        "wipe.cpp",
29        "ext4_sb.cpp",
30    ],
31    // Various instances of dereferencing a type-punned pointer in extent.c
32    cflags: [
33        "-Werror",
34        "-fno-strict-aliasing",
35        "-D_FILE_OFFSET_BITS=64",
36    ],
37    export_include_dirs: ["include"],
38    shared_libs: [
39        "libbase",
40        "libz",
41    ],
42
43    target: {
44        windows: {
45            host_ldlibs: ["-lws2_32"],
46            enabled: true,
47        },
48
49        android: {
50            shared_libs: [
51                "libbase",
52            ],
53
54            shared: {
55                cflags: ["-DREAL_UUID"],
56                shared_libs: [
57                    "libcutils",
58                    "libext2_uuid",
59                ],
60            },
61        },
62    },
63}
64
65python_binary_host {
66    name: "mkuserimg_mke2fs",
67    srcs: [
68        "mkuserimg_mke2fs.py",
69    ],
70
71    data: [
72        "mke2fs.conf",
73    ],
74
75    required: [
76        "mke2fs",
77        "e2fsdroid",
78    ],
79}
80
81prebuilt_etc {
82    name: "mke2fs.conf",
83    src: "mke2fs.conf",
84}
85
86prebuilt_etc {
87    name: "mke2fs.conf.recovery",
88    recovery: true,
89    src: "mke2fs.conf",
90}
91
92// TODO(b/157625953): Can't embedded into the other package because of missing variant
93filegroup {
94    name: "mke2fs_conf",
95    srcs: [
96        "mke2fs.conf",
97    ],
98    visibility: [
99        "//development/build",
100        "//system/apex/apexer",
101    ],
102}
103
104cc_binary_host {
105    name: "blk_alloc_to_base_fs",
106    srcs: ["blk_alloc_to_base_fs.cpp"],
107    shared_libs: ["libcutils"],
108    target: {
109        host: {
110            cflags: ["-DHOST"],
111        },
112    },
113    cflags: [
114        "-Wall",
115        "-Werror",
116    ],
117}
118