我正在尝试在 Ubuntu 18.04 LTS 上为 Samsung Note 8.0 N5110 构建 Lineage OS,但我遇到了一些错误,提示找不到目录。我认为它在那里,但我不确定。我尝试使用的最后一个命令是:
它在早午餐后抛出错误。
Running kati to generate build-lineage_n5110.ninja...
/home/nyarlko/android/lineage/out/build-lineage_n5110.ninja is missing, regenerating...
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.2
LINEAGE_VERSION=14.1-20210503-UNOFFICIAL-n5110
TARGET_PRODUCT=lineage_n5110
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a9
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-5.4.0-72-generic-x86_64-with-Ubuntu-18.04-bionic
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=NJH47F
OUT_DIR=/home/nyarlko/android/lineage/out
============================================
Checking build tools versions...
find: ‘/home/nyarlko/android/lineage/out/target/common/obj/SHARED_LIBRARIES/libwifi-hal-mock_intermediates’: Böyle bir dosya ya da dizin yok
hardware/samsung/exynos4x12.mk:19: /Android.mk: No such file or directory
build/core/ninja.mk:166: recipe for target '/home/nyarlko/android/lineage/out/build-lineage_n5110.ninja' failed
make: *** [/home/nyarlko/android/lineage/out/build-lineage_n5110.ninja] Error 1
make: Leaving directory '/home/nyarlko/android/lineage'
#### make failed to build some targets (02:03 (mm:ss)) ####
Exynos4x12.mk:
# Copyright (C) 2012 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.
ifeq ($(TARGET_BOARD_PLATFORM),exynos4)
ifeq ($(TARGET_SOC),exynos4x12)
ifeq ($(TARGET_SLSI_VARIANT),)
include $(TARGET_HAL_PATH)/Android.mk
include $(SAM_ROOT)/exynos/multimedia/Android.mk
endif
include $(SAM_ROOT)/exynos4/nfc/Android.mk
endif
endif
我认为目录有 Android.mk。我看不出问题。
Android.mk:
# Copyright (C) 2012 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.
SAM_ROOT := $(call my-dir)
# Exynos 4
ifeq ($(TARGET_BOARD_PLATFORM),exynos4)
ifeq ($(TARGET_SOC),exynos4210)
include $(SAM_ROOT)/exynos4210.mk
endif
ifeq ($(TARGET_SOC),exynos4x12)
include $(SAM_ROOT)/exynos4x12.mk
endif
endif
# Exynos 3
ifeq ($(TARGET_BOARD_PLATFORM),s5pc110)
include $(SAM_ROOT)/s5pc110.mk
endif
# Wifi
ifeq ($(BOARD_HAVE_SAMSUNG_WIFI),true)
include $(SAM_ROOT)/macloader/Android.mk
include $(SAM_ROOT)/wifiloader/Android.mk
endif
ifeq ($(BOARD_VENDOR),samsung)
include $(SAM_ROOT)/AdvancedDisplay/Android.mk
include $(SAM_ROOT)/audio/Android.mk
include $(SAM_ROOT)/consumerir/Android.mk
include $(SAM_ROOT)/dtbhtool/Android.mk
include $(SAM_ROOT)/fingerprint/Android.mk
include $(SAM_ROOT)/liblights/Android.mk
include $(SAM_ROOT)/modemloader/Android.mk
include $(SAM_ROOT)/power/Android.mk
include $(SAM_ROOT)/ril/Android.mk
endif
这是我的 roomservice.xml 文件:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="LineageOS/android_device_samsung_n5110" path="device/samsung/n5110" remote="github" />
<project name="LineageOS/android_device_samsung_smdk4412-common" path="device/samsung/smdk4412-common" remote="github" />
<project name="ny4rlk0/android_device_samsung_kona-common" path="device/samsung/kona-common" remote="github" />
<project name="LineageOS/android_device_samsung_kona-common" path="vendor/samsung/kona-common" remote="github" />
<project name="LineageOS/android_kernel_samsung_smdk4412" path="kernel/samsung/smdk4412" remote="github" />
<project name="LineageOS/android_packages_apps_SamsungServiceMode" path="packages/apps/SamsungServiceMode" remote="github" />
<project name="LineageOS/android_hardware_samsung" path="hardware/samsung" remote="github" />
<project name="LineageOS/android_external_stlport" path="external/stlport" remote="github" />
<project name="DonkeyCoyote/proprietary_vendor_samsung" path="vendor/samsung" remote="github" />
<project name="TheMuppets/proprietary_vendor_qcom_binaries" path="vendor/qcom/binaries" remote="github" revision="cm-14.1" />
</manifest>