• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright 2017 The Android Open Source Project
2
3//########################
4// Build the e2fsck binary
5
6package {
7    // See: http://go/android-license-faq
8    // A large-scale-change added 'default_applicable_licenses' to import
9    // all of the 'license_kinds' from "external_e2fsprogs_license"
10    // to get the below license kinds:
11    //   SPDX-license-identifier-GPL
12    //   SPDX-license-identifier-GPL-2.0
13    //   SPDX-license-identifier-LGPL
14    default_applicable_licenses: ["external_e2fsprogs_license"],
15}
16
17cc_defaults {
18    name: "e2fsck-defaults",
19    defaults: ["e2fsprogs-defaults"],
20    srcs: [
21        "e2fsck.c",
22        "super.c",
23        "pass1.c",
24        "pass1b.c",
25        "pass2.c",
26        "pass3.c",
27        "pass4.c",
28        "pass5.c",
29        "logfile.c",
30        "journal.c",
31        "recovery.c",
32        "revoke.c",
33        "badblocks.c",
34        "util.c",
35        "unix.c",
36        "dirinfo.c",
37        "dx_dirinfo.c",
38        "ehandler.c",
39        "problem.c",
40        "message.c",
41        "ea_refcount.c",
42        "quota.c",
43        "rehash.c",
44        "region.c",
45        "sigcatcher.c",
46        "readahead.c",
47        "extents.c",
48        "encrypted_files.c",
49    ],
50}
51
52e2fsck_libs = [
53    "libext2fs",
54    "libext2_blkid",
55    "libext2_com_err",
56    "libext2_uuid",
57    "libext2_quota",
58    "libext2_e2p",
59]
60
61cc_binary {
62    name: "e2fsck",
63    host_supported: true,
64    vendor_ramdisk_available: true,
65    defaults: ["e2fsck-defaults"],
66
67    shared_libs: e2fsck_libs,
68    required: ["badblocks"],
69    bootstrap: true,
70}
71
72cc_binary {
73    name: "e2fsck.microdroid",
74    defaults: ["e2fsck-defaults"],
75    target: {
76        android: {
77            required: ["badblocks"],
78            shared_libs: e2fsck_libs,
79        },
80    },
81    no_full_install: true,
82    stem: "e2fsck",
83    visibility: ["//packages/modules/Virtualization/build/microdroid"],
84}
85
86cc_binary {
87    name: "e2fsck_static",
88    static_executable: true,
89    defaults: ["e2fsck-defaults"],
90
91    static_libs: e2fsck_libs,
92}
93
94cc_binary {
95    name: "e2fsck_ramdisk",
96    stem: "e2fsck",
97    static_executable: true,
98    ramdisk: true,
99    defaults: ["e2fsck-defaults"],
100    static_libs: e2fsck_libs,
101}
102