From ec06aa6f95fe35214366616fd02f00491da5a73d Mon Sep 17 00:00:00 2001 From: Emil Kosz Date: Sun, 13 Sep 2026 12:11:29 +0200 Subject: [PATCH] init: create init no-op lib --- BoardConfig.mk | 2 ++ init/Android.mk | 30 ++++++++++++++++++++++++++++++ init/init_rubenslte.cpp | 34 ++++++++++++++++++++++++++++++++++ 3 files changed, 66 insertions(+) create mode 100644 init/Android.mk create mode 100644 init/init_rubenslte.cpp diff --git a/BoardConfig.mk b/BoardConfig.mk index 502c712..0265485 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -1,5 +1,7 @@ -include device/samsung/msm8226-common/BoardConfigCommon.mk +TARGET_INIT_VENDOR_LIB := libinit_rubenslte + TARGET_OTA_ASSERT_DEVICE := rubenslte,rubensltexx DEVICE_PATH := device/samsung/rubenslte diff --git a/init/Android.mk b/init/Android.mk new file mode 100644 index 0000000..063d77c --- /dev/null +++ b/init/Android.mk @@ -0,0 +1,30 @@ +# Copyright (C) 2026 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) + +LOCAL_MODULE_TAGS := optional + +LOCAL_C_INCLUDES := \ + system/core/base/include \ + system/core/init + +LOCAL_CFLAGS := -Wall +LOCAL_CLANG := true + +LOCAL_SRC_FILES := init_rubenslte.cpp + +LOCAL_MODULE := libinit_rubenslte + +include $(BUILD_STATIC_LIBRARY) diff --git a/init/init_rubenslte.cpp b/init/init_rubenslte.cpp new file mode 100644 index 0000000..989a37d --- /dev/null +++ b/init/init_rubenslte.cpp @@ -0,0 +1,34 @@ +/* + * Copyright (c) 2026, The LineageOS Project. 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 LineageOS Project 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 "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. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS 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. + */ + +#include + +void vendor_load_properties() { +}