1*6a54128fSAndroid Build Coastguard Worker// Copyright 2017 The Android Open Source Project 2*6a54128fSAndroid Build Coastguard Worker 3*6a54128fSAndroid Build Coastguard Worker//######################## 4*6a54128fSAndroid Build Coastguard Worker// Build the debugfs binary 5*6a54128fSAndroid Build Coastguard Worker 6*6a54128fSAndroid Build Coastguard Workerpackage { 7*6a54128fSAndroid Build Coastguard Worker // See: http://go/android-license-faq 8*6a54128fSAndroid Build Coastguard Worker // A large-scale-change added 'default_applicable_licenses' to import 9*6a54128fSAndroid Build Coastguard Worker // all of the 'license_kinds' from "external_e2fsprogs_license" 10*6a54128fSAndroid Build Coastguard Worker // to get the below license kinds: 11*6a54128fSAndroid Build Coastguard Worker // SPDX-license-identifier-GPL 12*6a54128fSAndroid Build Coastguard Worker // SPDX-license-identifier-GPL-2.0 13*6a54128fSAndroid Build Coastguard Worker default_applicable_licenses: ["external_e2fsprogs_license"], 14*6a54128fSAndroid Build Coastguard Worker} 15*6a54128fSAndroid Build Coastguard Worker 16*6a54128fSAndroid Build Coastguard Workercc_defaults { 17*6a54128fSAndroid Build Coastguard Worker name: "debugfs-defaults", 18*6a54128fSAndroid Build Coastguard Worker defaults: ["e2fsprogs-defaults"], 19*6a54128fSAndroid Build Coastguard Worker srcs: [ 20*6a54128fSAndroid Build Coastguard Worker "debug_cmds.c", 21*6a54128fSAndroid Build Coastguard Worker "debugfs.c", 22*6a54128fSAndroid Build Coastguard Worker "util.c", 23*6a54128fSAndroid Build Coastguard Worker "ncheck.c", 24*6a54128fSAndroid Build Coastguard Worker "icheck.c", 25*6a54128fSAndroid Build Coastguard Worker "ls.c", 26*6a54128fSAndroid Build Coastguard Worker "lsdel.c", 27*6a54128fSAndroid Build Coastguard Worker "dump.c", 28*6a54128fSAndroid Build Coastguard Worker "set_fields.c", 29*6a54128fSAndroid Build Coastguard Worker "logdump.c", 30*6a54128fSAndroid Build Coastguard Worker "htree.c", 31*6a54128fSAndroid Build Coastguard Worker "unused.c", 32*6a54128fSAndroid Build Coastguard Worker "e2freefrag.c", 33*6a54128fSAndroid Build Coastguard Worker "filefrag.c", 34*6a54128fSAndroid Build Coastguard Worker "extent_cmds.c", 35*6a54128fSAndroid Build Coastguard Worker "extent_inode.c", 36*6a54128fSAndroid Build Coastguard Worker "zap.c", 37*6a54128fSAndroid Build Coastguard Worker "quota.c", 38*6a54128fSAndroid Build Coastguard Worker "xattrs.c", 39*6a54128fSAndroid Build Coastguard Worker "journal.c", 40*6a54128fSAndroid Build Coastguard Worker "revoke.c", 41*6a54128fSAndroid Build Coastguard Worker "recovery.c", 42*6a54128fSAndroid Build Coastguard Worker "do_journal.c", 43*6a54128fSAndroid Build Coastguard Worker ], 44*6a54128fSAndroid Build Coastguard Worker cflags: [ 45*6a54128fSAndroid Build Coastguard Worker "-DDEBUGFS", 46*6a54128fSAndroid Build Coastguard Worker ], 47*6a54128fSAndroid Build Coastguard Worker include_dirs: [ 48*6a54128fSAndroid Build Coastguard Worker "external/e2fsprogs/misc", 49*6a54128fSAndroid Build Coastguard Worker "external/e2fsprogs/e2fsck", 50*6a54128fSAndroid Build Coastguard Worker ], 51*6a54128fSAndroid Build Coastguard Worker} 52*6a54128fSAndroid Build Coastguard Worker 53*6a54128fSAndroid Build Coastguard Workerdebugfs_libs = [ 54*6a54128fSAndroid Build Coastguard Worker "libext2_misc", 55*6a54128fSAndroid Build Coastguard Worker "libext2fs", 56*6a54128fSAndroid Build Coastguard Worker "libext2_blkid", 57*6a54128fSAndroid Build Coastguard Worker "libext2_uuid", 58*6a54128fSAndroid Build Coastguard Worker "libext2_ss", 59*6a54128fSAndroid Build Coastguard Worker "libext2_quota", 60*6a54128fSAndroid Build Coastguard Worker "libext2_com_err", 61*6a54128fSAndroid Build Coastguard Worker "libext2_e2p", 62*6a54128fSAndroid Build Coastguard Worker "libext2_support", 63*6a54128fSAndroid Build Coastguard Worker] 64*6a54128fSAndroid Build Coastguard Worker 65*6a54128fSAndroid Build Coastguard Workercc_binary { 66*6a54128fSAndroid Build Coastguard Worker name: "debugfs", 67*6a54128fSAndroid Build Coastguard Worker host_supported: true, 68*6a54128fSAndroid Build Coastguard Worker defaults: ["debugfs-defaults"], 69*6a54128fSAndroid Build Coastguard Worker 70*6a54128fSAndroid Build Coastguard Worker shared_libs: debugfs_libs, 71*6a54128fSAndroid Build Coastguard Worker} 72*6a54128fSAndroid Build Coastguard Worker 73*6a54128fSAndroid Build Coastguard Workercc_binary { 74*6a54128fSAndroid Build Coastguard Worker name: "debugfs_static", 75*6a54128fSAndroid Build Coastguard Worker static_executable: true, 76*6a54128fSAndroid Build Coastguard Worker host_supported: true, 77*6a54128fSAndroid Build Coastguard Worker defaults: ["debugfs-defaults"], 78*6a54128fSAndroid Build Coastguard Worker 79*6a54128fSAndroid Build Coastguard Worker static_libs: debugfs_libs, 80*6a54128fSAndroid Build Coastguard Worker} 81