From 465f1162bd1021c4709f3193cccc9bd02351550d Mon Sep 17 00:00:00 2001 From: liuwenxin Date: Fri, 25 Aug 2023 15:33:58 +0800 Subject: [PATCH] =?UTF-8?q?fix:toybox=E4=B8=AD=E5=8F=AA=E8=AE=A9linux?= =?UTF-8?q?=E4=BE=9D=E8=B5=96selinux?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: liuwenxin Change-Id: Ifaef1d7eac52dc607e6dea181c662c48c6806709 --- BUILD.gn | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/BUILD.gn b/BUILD.gn index f93cdf2..6cc199a 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -701,12 +701,6 @@ if (defined(ohos_lite)) { deps = [] - if (build_selinux) { - sources += [ "toys/other/chcon.c" ] - include_dirs += [ "//third_party/selinux/libselinux/include" ] - deps += [ "//third_party/selinux:libselinux" ] - } - defines = [ "_DEFAULT_SOURCE" ] cflags_c = [ @@ -743,16 +737,6 @@ if (defined(ohos_lite)) { "-lcrypt", ] - if (build_selinux) { - cflags_c += [ - "-D_GUN_SOURCE", - "-DUSE_PCRE2", - "-w", - "-DWITH_SELINUX", - "-DCUSTOM_GET_CONTEXT", - ] - } - symlink_target_name = [ "base64", "basename", @@ -965,9 +949,6 @@ if (defined(ohos_lite)) { "yes", "zcat", ] - if (build_selinux) { - symlink_target_name -= [ "restorecon" ] - } part_name = "toybox" install_images = [ "system", -- Gitee