Home | History | Annotate | Download | only in android
      1 // Copyright 2017 The Android Open Source Project
      2 
      3 //##########################################################################
      4 // Build e2fsdroid
      5 
      6 cc_binary {
      7     name: "e2fsdroid",
      8     host_supported: true,
      9     recovery_available: true,
     10     defaults: ["e2fsprogs-defaults"],
     11 
     12     srcs: [
     13         "e2fsdroid.c",
     14         "block_range.c",
     15         "fsmap.c",
     16         "block_list.c",
     17         "base_fs.c",
     18         "perms.c",
     19         "basefs_allocator.c",
     20     ],
     21     target: {
     22         host: {
     23             static_libs: [
     24                 "libext2_com_err",
     25                 "libext2_misc",
     26                 "libext2fs",
     27                 "libsparse",
     28                 "libz",
     29                 "libcutils",
     30                 "libbase",
     31                 "libselinux",
     32                 "libcrypto",
     33                 "liblog",
     34             ],
     35             sanitize: {
     36                 address: false,  // http://b/68387795 - heap overflow in e2fsdroid
     37             },
     38         },
     39         android: {
     40             shared_libs: [
     41                 "libext2fs",
     42                 "libext2_com_err",
     43                 "libext2_misc",
     44                 "libcutils",
     45                 "libbase",
     46                 "libselinux",
     47                 "libcrypto",
     48             ],
     49         },
     50     },
     51     stl: "libc++_static",
     52 }
     53 
     54 //##########################################################################
     55 // Build ext2simg
     56 
     57 cc_binary {
     58     name: "ext2simg",
     59     host_supported: true,
     60     defaults: ["e2fsprogs-defaults"],
     61 
     62     srcs: ["ext2simg.c"],
     63     shared_libs: [
     64         "libext2fs",
     65         "libext2_com_err",
     66         "libsparse",
     67         "libz",
     68     ],
     69 }
     70