1package { 2 default_applicable_licenses: ["external_selinux_secilc_license"], 3} 4 5// Added automatically by a large-scale-change 6// http://go/android-license-faq 7license { 8 name: "external_selinux_secilc_license", 9 visibility: [":__subpackages__"], 10 license_kinds: [ 11 "SPDX-license-identifier-BSD", 12 ], 13 license_text: [ 14 "COPYING", 15 ], 16} 17 18common_CFLAGS = [ 19 "-Wall", 20 "-Werror", 21 "-Wshadow", 22] 23 24cc_binary { 25 name: "secilc", 26 host_supported: true, 27 cflags: common_CFLAGS, 28 srcs: ["secilc.c"], 29 static_libs: ["libsepol"], 30 stl: "none", 31 // secilc is a program that is executed very early by init. 32 // Since it is before the mount namespaces are setup, /system/bin/linker 33 // and /system/lib/libc.so point to the mount points where nothing 34 // is mounted on yet. Therefore, secilc has to have explicit knowledge about 35 // the paths where the bootstrap Bionic is. bootstrap:true sets DT_INTERP to 36 // /system/bin/bootstrap/linker. 37 bootstrap: true, 38} 39