]>
Commit | Line | Data |
---|---|---|
a95c632b AD |
1 | // Copyright 2017 The Android Open Source Project |
2 | ||
3 | //######################## | |
4 | // Build the e2fsck binary | |
5 | ||
9c897f01 BB |
6 | package { |
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 | ||
a95c632b AD |
17 | cc_defaults { |
18 | name: "e2fsck-defaults", | |
c19b18f8 | 19 | defaults: ["e2fsprogs-defaults"], |
a95c632b AD |
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", | |
2ba05753 | 48 | "encrypted_files.c", |
a95c632b | 49 | ], |
a95c632b AD |
50 | } |
51 | ||
52 | e2fsck_libs = [ | |
53 | "libext2fs", | |
54 | "libext2_blkid", | |
5f6614f3 | 55 | "libext2_com_err", |
a95c632b AD |
56 | "libext2_uuid", |
57 | "libext2_quota", | |
a95c632b AD |
58 | "libext2_e2p", |
59 | ] | |
60 | ||
61 | cc_binary { | |
62 | name: "e2fsck", | |
63 | host_supported: true, | |
643ee340 | 64 | vendor_ramdisk_available: true, |
a95c632b AD |
65 | defaults: ["e2fsck-defaults"], |
66 | ||
67 | shared_libs: e2fsck_libs, | |
0ea0a9e7 | 68 | required: ["badblocks"], |
a95c632b AD |
69 | } |
70 | ||
71 | cc_binary { | |
72 | name: "e2fsck_static", | |
73 | static_executable: true, | |
74 | defaults: ["e2fsck-defaults"], | |
75 | ||
33b80078 | 76 | static_libs: e2fsck_libs, |
a95c632b | 77 | } |
a431f19f YH |
78 | |
79 | cc_binary { | |
80 | name: "e2fsck_ramdisk", | |
81 | stem: "e2fsck", | |
82 | static_executable: true, | |
83 | ramdisk: true, | |
84 | defaults: ["e2fsck-defaults"], | |
a431f19f YH |
85 | static_libs: e2fsck_libs, |
86 | } |