Convert libinit_foster to blueprint

Change-Id: I5a3438df2559fc2487df4d23bb7c8915d9578465
This commit is contained in:
Aaron Kling committed 2021-03-25 22:35:35 -05:00
1 parent 885be42b20
commit 8f9e83c029
5 files changed
+65 -32

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
//
// Copyright (C) 2020 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.
//
soong_namespace {
imports: ["device/nvidia/tegra-common"]
}
subdirs = [
"init"
]
+3
View File
@@ -54,6 +54,9 @@ $(call inherit-product, vendor/nvidia/foster/foster-vendor.mk)
DEVICE_PACKAGE_OVERLAYS += \
device/nvidia/foster/overlay
# Soong namespaces
PRODUCT_SOONG_NAMESPACES += device/nvidia/foster
# Init related
PRODUCT_PACKAGES += \
fstab.batuu \
+38
View File
@@ -0,0 +1,38 @@
//
// 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.
//
cc_library_static {
name: "libinit_foster",
recovery_available: true,
include_dirs: [
"device/nvidia/tegra-common/init",
],
whole_static_libs: ["libinit_tegra"],
srcs: [
"init_foster.cpp",
],
}
cc_library_static {
name: "libinit_foster_vendor",
vendor: true,
include_dirs: [
"device/nvidia/tegra-common/init",
],
srcs: [
"init_foster.cpp",
],
}
-31
View File
@@ -1,31 +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 := libinit_foster
LOCAL_C_INCLUDES := device/nvidia/tegra-common/init
LOCAL_SRC_FILES := init_foster.cpp
LOCAL_WHOLE_STATIC_LIBRARIES := libinit_tegra
include $(BUILD_STATIC_LIBRARY)
include $(CLEAR_VARS)
LOCAL_MODULE := libinit_foster_vendor
LOCAL_C_INCLUDES := device/nvidia/tegra-common/init
LOCAL_SRC_FILES := init_foster.cpp
LOCAL_VENDOR_MODULE := true
include $(BUILD_STATIC_LIBRARY)
+1 -1
View File
@@ -15,7 +15,7 @@
TARGET_TEGRA_POWER ?= lineage
# Unified device support
TARGET_INIT_VENDOR_LIB := libinit_foster
TARGET_INIT_VENDOR_LIB := //device/nvidia/foster:libinit_foster
PRODUCT_VENDOR_PROPERTY_BLACKLIST := \
ro.product.vendor.device \
ro.product.vendor.model \