nx: migrate most prebuilts to blueprint

Change-Id: Iaa62c84a09613f986e48b51a748f4b498ab905c8
This commit is contained in:
tmakin authored and Nolen Johnson committed 2024-10-31 15:34:54 -04:00
1 parent c8516fac3f
commit 43ac071958
11 files changed
+226 -269

No files matched your search

+1
View File
@@ -62,6 +62,7 @@ PRODUCT_SOONG_NAMESPACES += device/nintendo/nx
# Init related
PRODUCT_PACKAGES += \
fstab.nx \
fstab.nx.ramdisk \
init.fric.rc \
init.loki_foster_e_common.rc \
init.nx.rc \
+99
View File
@@ -0,0 +1,99 @@
/*
* Copyright (C) 2024 The LineageOS 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: "fstab.nx",
src: "fstab.nx",
vendor: true,
ramdisk_available: true,
}
prebuilt_etc {
name: "init.nx.rc",
src: "init.nx.rc",
vendor: true,
sub_dir: "init/hw",
}
prebuilt_etc {
name: "init.vali.rc",
src: "init.vali.rc",
vendor: true,
sub_dir: "init/hw",
}
prebuilt_etc {
name: "init.fric.rc",
src: "init.fric.rc",
vendor: true,
sub_dir: "init/hw",
}
prebuilt_etc {
name: "init.sensors.nx.rc",
src: "init.sensors.nx.rc",
vendor: true,
sub_dir: "init/hw",
}
prebuilt_etc {
name: "init.loki_foster_e_common.rc",
src: "init.loki_foster_e_common.rc",
vendor: true,
sub_dir: "init/hw",
}
prebuilt_etc {
name: "init.recovery.nx.rc",
src: "init.recovery.nx.rc",
sub_dir: "init",
recovery: true,
}
prebuilt_etc {
name: "nx_cec.rc",
src: "nx_cec.rc",
vendor: true,
sub_dir: "init",
}
prebuilt_etc {
name: "cec_disable.xml",
src: "cec_disable.xml",
vendor: true,
sub_dir: "staging",
}
prebuilt_etc {
name: "power.nx.rc",
src: "power.nx.rc",
device_specific: true, // odm
}
cc_prebuilt_binary {
name: "lkm_loader_target",
srcs: ["lkm_loader_target.sh"],
stem: "lkm_loader_target.sh",
vendor: true,
}
cc_prebuilt_binary {
name: "jc_setup",
srcs: ["jc_setup.sh"],
stem: "jc_setup.sh",
vendor: true,
init_rc: ["nx_jc.rc"],
}
-118
View File
@@ -1,118 +0,0 @@
# Copyright (C) 2022 The LineageOS 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.
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := fstab.nx
LOCAL_MODULE_CLASS := ETC
LOCAL_SRC_FILES := fstab.nx
LOCAL_VENDOR_MODULE := true
LOCAL_REQUIRED_MODULES := fstab.nx_ramdisk
include $(BUILD_PREBUILT)
include $(CLEAR_VARS)
LOCAL_MODULE := fstab.nx_ramdisk
LOCAL_MODULE_STEM := fstab.nx
LOCAL_MODULE_CLASS := ETC
LOCAL_SRC_FILES := fstab.nx
LOCAL_MODULE_PATH := $(TARGET_RAMDISK_OUT)
include $(BUILD_PREBUILT)
include $(CLEAR_VARS)
LOCAL_MODULE := init.nx.rc
LOCAL_MODULE_CLASS := ETC
LOCAL_SRC_FILES := init.nx.rc
LOCAL_VENDOR_MODULE := true
LOCAL_MODULE_RELATIVE_PATH := init/hw
include $(BUILD_PREBUILT)
include $(CLEAR_VARS)
LOCAL_MODULE := init.vali.rc
LOCAL_MODULE_CLASS := ETC
LOCAL_SRC_FILES := init.vali.rc
LOCAL_VENDOR_MODULE := true
LOCAL_MODULE_RELATIVE_PATH := init/hw
include $(BUILD_PREBUILT)
include $(CLEAR_VARS)
LOCAL_MODULE := init.fric.rc
LOCAL_MODULE_CLASS := ETC
LOCAL_SRC_FILES := init.fric.rc
LOCAL_VENDOR_MODULE := true
LOCAL_MODULE_RELATIVE_PATH := init/hw
include $(BUILD_PREBUILT)
include $(CLEAR_VARS)
LOCAL_MODULE := init.recovery.nx.rc
LOCAL_MODULE_CLASS := ETC
LOCAL_SRC_FILES := init.recovery.nx.rc
LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
include $(BUILD_PREBUILT)
include $(CLEAR_VARS)
LOCAL_MODULE := power.nx.rc
LOCAL_MODULE_CLASS := ETC
LOCAL_ODM_MODULE := true
LOCAL_SRC_FILES := power.nx.rc
include $(BUILD_PREBUILT)
include $(CLEAR_VARS)
LOCAL_MODULE := init.sensors.nx.rc
LOCAL_MODULE_CLASS := ETC
LOCAL_SRC_FILES := init.sensors.nx.rc
LOCAL_VENDOR_MODULE := true
LOCAL_MODULE_RELATIVE_PATH := init/hw
include $(BUILD_PREBUILT)
include $(CLEAR_VARS)
LOCAL_MODULE := lkm_loader_target
LOCAL_SRC_FILES := lkm_loader_target.sh
LOCAL_MODULE_SUFFIX := .sh
LOCAL_MODULE_CLASS := EXECUTABLES
LOCAL_VENDOR_MODULE := true
include $(BUILD_PREBUILT)
include $(CLEAR_VARS)
LOCAL_MODULE := init.loki_foster_e_common.rc
LOCAL_MODULE_CLASS := ETC
LOCAL_SRC_FILES := init.loki_foster_e_common.rc
LOCAL_VENDOR_MODULE := true
LOCAL_MODULE_RELATIVE_PATH := init/hw
include $(BUILD_PREBUILT)
include $(CLEAR_VARS)
LOCAL_MODULE := jc_setup
LOCAL_SRC_FILES := jc_setup.sh
LOCAL_MODULE_SUFFIX := .sh
LOCAL_INIT_RC := nx_jc.rc
LOCAL_MODULE_CLASS := EXECUTABLES
LOCAL_VENDOR_MODULE := true
include $(BUILD_PREBUILT)
include $(CLEAR_VARS)
LOCAL_MODULE := nx_cec.rc
LOCAL_MODULE_CLASS := ETC
LOCAL_SRC_FILES := nx_cec.rc
LOCAL_VENDOR_MODULE := true
LOCAL_MODULE_RELATIVE_PATH := init
include $(BUILD_PREBUILT)
include $(CLEAR_VARS)
LOCAL_MODULE := cec_disable.xml
LOCAL_MODULE_CLASS := ETC
LOCAL_SRC_FILES := cec_disable.xml
LOCAL_VENDOR_MODULE := true
LOCAL_MODULE_RELATIVE_PATH := staging
include $(BUILD_PREBUILT)
+27
View File
@@ -0,0 +1,27 @@
/*
* Copyright (C) 2024 The LineageOS 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: "excluded-input-devices.xml",
src: "excluded-input-devices.xml",
vendor: true,
}
prebuilt_usr_keylayout {
name: "gpio-keys.kl",
src: "gpio-keys.kl",
vendor: true,
}
-33
View File
@@ -1,33 +0,0 @@
# Copyright (C) 2021-2024 The LineageOS 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.
LOCAL_PATH := $(call my-dir)
# Excluded input devices
include $(CLEAR_VARS)
LOCAL_MODULE := excluded-input-devices.xml
LOCAL_SRC_FILES := excluded-input-devices.xml
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := ETC
LOCAL_VENDOR_MODULE := true
include $(BUILD_PREBUILT)
include $(CLEAR_VARS)
LOCAL_MODULE := gpio-keys.kl
LOCAL_SRC_FILES := gpio-keys.kl
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := ETC
LOCAL_VENDOR_MODULE := true
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/usr/keylayout
include $(BUILD_PREBUILT)
+57
View File
@@ -0,0 +1,57 @@
/*
* Copyright (C) 2024 The LineageOS 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: "audio_effects.xml",
src: "audio_effects.xml",
vendor: true,
}
prebuilt_etc {
name: "audio_policy_configuration.xml",
src: "audio_policy_configuration.xml",
vendor: true,
}
prebuilt_etc {
name: "nvaudio_conf.xml",
src: "nvaudio_conf.xml",
vendor: true,
}
prebuilt_etc {
name: "media_codecs.xml",
src: "media_codecs.xml",
device_specific: true, // odm
}
prebuilt_etc {
name: "media_codecs_performance.xml",
src: "media_codecs_performance.xml",
device_specific: true, // odm
}
prebuilt_etc {
name: "media_profiles_V1_0.xml",
src: "media_profiles_V1_0.xml",
vendor: true,
}
prebuilt_etc {
name: "enctune.conf",
src: "enctune.conf",
vendor: true,
}
-71
View File
@@ -1,71 +0,0 @@
# Copyright (C) 2018 The LineageOS 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.
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := audio_effects.xml
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := ETC
LOCAL_SRC_FILES := audio_effects.xml
LOCAL_VENDOR_MODULE := true
include $(BUILD_PREBUILT)
include $(CLEAR_VARS)
LOCAL_MODULE := audio_policy_configuration.xml
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := ETC
LOCAL_SRC_FILES := audio_policy_configuration.xml
LOCAL_VENDOR_MODULE := true
include $(BUILD_PREBUILT)
include $(CLEAR_VARS)
LOCAL_MODULE := nvaudio_conf.xml
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := ETC
LOCAL_SRC_FILES := nvaudio_conf.xml
LOCAL_VENDOR_MODULE := true
include $(BUILD_PREBUILT)
include $(CLEAR_VARS)
LOCAL_MODULE := media_codecs.xml
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := ETC
LOCAL_SRC_FILES := media_codecs.xml
LOCAL_ODM_MODULE := true
include $(BUILD_PREBUILT)
include $(CLEAR_VARS)
LOCAL_MODULE := media_codecs_performance.xml
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := ETC
LOCAL_SRC_FILES := media_codecs_performance.xml
LOCAL_ODM_MODULE := true
include $(BUILD_PREBUILT)
include $(CLEAR_VARS)
LOCAL_MODULE := media_profiles_V1_0.xml
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := ETC
LOCAL_SRC_FILES := media_profiles_V1_0.xml
LOCAL_VENDOR_MODULE := true
include $(BUILD_PREBUILT)
include $(CLEAR_VARS)
LOCAL_MODULE := enctune.conf
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := ETC
LOCAL_SRC_FILES := enctune.conf
LOCAL_VENDOR_MODULE := true
include $(BUILD_PREBUILT)
+21
View File
@@ -0,0 +1,21 @@
/*
* Copyright (C) 2024 The LineageOS 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: "nvphsd.conf",
src: "nvphsd.nx.conf",
device_specific: true, // odm
}
-24
View File
@@ -1,24 +0,0 @@
#
# Copyright (C) 2019 The LineageOS 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.
#
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := nvphsd.conf
LOCAL_MODULE_CLASS := ETC
LOCAL_SRC_FILES := nvphsd.nx.conf
LOCAL_ODM_MODULE := true
include $(BUILD_PREBUILT)
+21
View File
@@ -0,0 +1,21 @@
/*
* Copyright (C) 2024 The LineageOS 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: "thermalhal.nx.xml",
src: "thermalhal.nx.xml",
vendor: true,
}
-23
View File
@@ -1,23 +0,0 @@
# Copyright (C) 2018 The LineageOS 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.
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := thermalhal.nx.xml
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := ETC
LOCAL_SRC_FILES := thermalhal.nx.xml
LOCAL_VENDOR_MODULE := true
include $(BUILD_PREBUILT)