diff options
| author | Skrilax_CZ <skrilax@gmail.com> | 2015-01-11 18:38:31 +0100 |
|---|---|---|
| committer | Ethan Chen <intervigil@gmail.com> | 2015-01-11 14:35:31 -0800 |
| commit | c70830327ff32537cee17a82e052a32303af68e5 (patch) | |
| tree | 5433505016298d1bc5ae64ab157749f6dd77bc4a | |
| parent | 0cee6565fc30d5a888d361d0264aba089419ba4d (diff) | |
ghost: Create init.target.rc
* Use init.target.rc to set up thermald config
Change-Id: I220f2b6a141a9ef09346d5bbb92f3111d4d00d1f
| -rw-r--r-- | configs/thermald-ghost.conf (renamed from configs/thermald-msm8960dt.conf) | 0 | ||||
| -rw-r--r-- | device.mk | 6 | ||||
| -rw-r--r-- | rootdir/Android.mk | 11 | ||||
| -rw-r--r-- | rootdir/etc/init.target.rc | 30 |
4 files changed, 46 insertions, 1 deletions
diff --git a/configs/thermald-msm8960dt.conf b/configs/thermald-ghost.conf index 81b36b4..81b36b4 100644 --- a/configs/thermald-msm8960dt.conf +++ b/configs/thermald-ghost.conf @@ -28,9 +28,13 @@ PRODUCT_COPY_FILES += \ PRODUCT_PACKAGES += \ lights.msm8960 +# Ramdisk +PRODUCT_PACKAGES += \ + init.target.rc + # Thermal PRODUCT_COPY_FILES += \ - $(LOCAL_PATH)/configs/thermald-msm8960dt.conf:system/etc/thermald-msm8960dt.conf + $(LOCAL_PATH)/configs/thermald-ghost.conf:system/etc/thermald-ghost.conf # WiFi PRODUCT_PACKAGES += \ diff --git a/rootdir/Android.mk b/rootdir/Android.mk new file mode 100644 index 0000000..53cbc0e --- /dev/null +++ b/rootdir/Android.mk @@ -0,0 +1,11 @@ +LOCAL_PATH:= $(call my-dir) + +# Init scripts + +include $(CLEAR_VARS) +LOCAL_MODULE := init.target.rc +LOCAL_MODULE_TAGS := optional eng +LOCAL_MODULE_CLASS := ETC +LOCAL_SRC_FILES := etc/init.target.rc +LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT) +include $(BUILD_PREBUILT) diff --git a/rootdir/etc/init.target.rc b/rootdir/etc/init.target.rc new file mode 100644 index 0000000..52cc945 --- /dev/null +++ b/rootdir/etc/init.target.rc @@ -0,0 +1,30 @@ +# Copyright (c) 2009-2013, The Linux Foundation. All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# * Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# * Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# * Neither the name of The Linux Foundation nor +# the names of its contributors may be used to endorse or promote +# products derived from this software without specific prior written +# permission. +# +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +# IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +# NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR +# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, +# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# + +on post-fs + # Link thermald + symlink /etc/thermald-ghost.conf /dev/thermald.conf |
