xref: /aosp_15_r20/system/security/fsverity_init/Android.bp (revision e1997b9af69e3155ead6e072d106a0077849ffba)
1*e1997b9aSAndroid Build Coastguard Workerpackage {
2*e1997b9aSAndroid Build Coastguard Worker    // See: http://go/android-license-faq
3*e1997b9aSAndroid Build Coastguard Worker    // A large-scale-change added 'default_applicable_licenses' to import
4*e1997b9aSAndroid Build Coastguard Worker    // all of the 'license_kinds' from "system_security_license"
5*e1997b9aSAndroid Build Coastguard Worker    // to get the below license kinds:
6*e1997b9aSAndroid Build Coastguard Worker    //   SPDX-license-identifier-Apache-2.0
7*e1997b9aSAndroid Build Coastguard Worker    default_applicable_licenses: ["system_security_license"],
8*e1997b9aSAndroid Build Coastguard Worker}
9*e1997b9aSAndroid Build Coastguard Worker
10*e1997b9aSAndroid Build Coastguard Workercc_binary {
11*e1997b9aSAndroid Build Coastguard Worker    name: "fsverity_init",
12*e1997b9aSAndroid Build Coastguard Worker    srcs: [
13*e1997b9aSAndroid Build Coastguard Worker        "fsverity_init.cpp",
14*e1997b9aSAndroid Build Coastguard Worker    ],
15*e1997b9aSAndroid Build Coastguard Worker    static_libs: [
16*e1997b9aSAndroid Build Coastguard Worker        "aconfig_fsverity_init_c_lib",
17*e1997b9aSAndroid Build Coastguard Worker        "libmini_keyctl_static",
18*e1997b9aSAndroid Build Coastguard Worker    ],
19*e1997b9aSAndroid Build Coastguard Worker    shared_libs: [
20*e1997b9aSAndroid Build Coastguard Worker        "libbase",
21*e1997b9aSAndroid Build Coastguard Worker        "libkeyutils",
22*e1997b9aSAndroid Build Coastguard Worker        "liblog",
23*e1997b9aSAndroid Build Coastguard Worker    ],
24*e1997b9aSAndroid Build Coastguard Worker    cflags: [
25*e1997b9aSAndroid Build Coastguard Worker        "-Werror",
26*e1997b9aSAndroid Build Coastguard Worker        "-Wall",
27*e1997b9aSAndroid Build Coastguard Worker        "-Wextra",
28*e1997b9aSAndroid Build Coastguard Worker    ],
29*e1997b9aSAndroid Build Coastguard Worker}
30*e1997b9aSAndroid Build Coastguard Worker
31*e1997b9aSAndroid Build Coastguard Workeraconfig_declarations {
32*e1997b9aSAndroid Build Coastguard Worker    name: "aconfig_fsverity_init",
33*e1997b9aSAndroid Build Coastguard Worker    package: "android.security.flag",
34*e1997b9aSAndroid Build Coastguard Worker    container: "system",
35*e1997b9aSAndroid Build Coastguard Worker    srcs: ["flags.aconfig"],
36*e1997b9aSAndroid Build Coastguard Worker}
37*e1997b9aSAndroid Build Coastguard Worker
38*e1997b9aSAndroid Build Coastguard Workercc_aconfig_library {
39*e1997b9aSAndroid Build Coastguard Worker    name: "aconfig_fsverity_init_c_lib",
40*e1997b9aSAndroid Build Coastguard Worker    aconfig_declarations: "aconfig_fsverity_init",
41*e1997b9aSAndroid Build Coastguard Worker}
42