Move rootdir/*.json to libprocessgroup
They are installed to /system/etc, not /. Hence, move out of rootdir/ and move into the code that parse these files (i.e. libprocessgroup). Also, Android.mk->bp. Test: builds Change-Id: I1763c26f81ae51ee159552e39d252fd643c35b94
This commit is contained in:
parent
cb13a7766e
commit
98a61dd583
5 changed files with 30 additions and 32 deletions
30
libprocessgroup/profiles/Android.bp
Normal file
30
libprocessgroup/profiles/Android.bp
Normal file
|
|
@ -0,0 +1,30 @@
|
||||||
|
// Copyright (C) 2019 The Android Open Source Project
|
||||||
|
//
|
||||||
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
// you may not use this file except in compliance with the License.
|
||||||
|
// You may obtain a copy of the License at
|
||||||
|
//
|
||||||
|
// http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
//
|
||||||
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
// See the License for the specific language governing permissions and
|
||||||
|
// limitations under the License.
|
||||||
|
|
||||||
|
prebuilt_etc {
|
||||||
|
name: "cgroups.json",
|
||||||
|
src: "cgroups.json",
|
||||||
|
}
|
||||||
|
|
||||||
|
prebuilt_etc {
|
||||||
|
name: "cgroups.recovery.json",
|
||||||
|
filename: "cgroups.json",
|
||||||
|
recovery: true,
|
||||||
|
src: "cgroups.recovery.json",
|
||||||
|
}
|
||||||
|
|
||||||
|
prebuilt_etc {
|
||||||
|
name: "task_profiles.json",
|
||||||
|
src: "task_profiles.json",
|
||||||
|
}
|
||||||
|
|
@ -63,38 +63,6 @@ $(foreach b,$(ART_BINARIES), \
|
||||||
|
|
||||||
include $(BUILD_PREBUILT)
|
include $(BUILD_PREBUILT)
|
||||||
|
|
||||||
#######################################
|
|
||||||
# cgroups.json
|
|
||||||
include $(CLEAR_VARS)
|
|
||||||
|
|
||||||
LOCAL_MODULE := cgroups.json
|
|
||||||
LOCAL_SRC_FILES := $(LOCAL_MODULE)
|
|
||||||
LOCAL_MODULE_CLASS := ETC
|
|
||||||
LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)
|
|
||||||
|
|
||||||
include $(BUILD_PREBUILT)
|
|
||||||
|
|
||||||
#######################################
|
|
||||||
# cgroups.json for recovery
|
|
||||||
include $(CLEAR_VARS)
|
|
||||||
LOCAL_MODULE := cgroups.recovery.json
|
|
||||||
LOCAL_SRC_FILES := $(LOCAL_MODULE)
|
|
||||||
LOCAL_MODULE_CLASS := ETC
|
|
||||||
LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/system/etc
|
|
||||||
LOCAL_MODULE_STEM := cgroups.json
|
|
||||||
include $(BUILD_PREBUILT)
|
|
||||||
|
|
||||||
#######################################
|
|
||||||
# task_profiles.json
|
|
||||||
include $(CLEAR_VARS)
|
|
||||||
|
|
||||||
LOCAL_MODULE := task_profiles.json
|
|
||||||
LOCAL_SRC_FILES := $(LOCAL_MODULE)
|
|
||||||
LOCAL_MODULE_CLASS := ETC
|
|
||||||
LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)
|
|
||||||
|
|
||||||
include $(BUILD_PREBUILT)
|
|
||||||
|
|
||||||
#######################################
|
#######################################
|
||||||
# asan.options
|
# asan.options
|
||||||
ifneq ($(filter address,$(SANITIZE_TARGET)),)
|
ifneq ($(filter address,$(SANITIZE_TARGET)),)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue