[LineageOS Questions & Answers] Jexome:
Hey guys,

I'm kind of familiar with flashing Custom ROM's (I know how to read Guides) but this is the first time im trying to build one myself, since I want to use "swap" and my current kernel does not support it.

I'm using Windows 10 and have set up VirtualBox with the latest LTS Ubuntu and this is the Guide I'm following:

wiki.lineageos.org/devices/m8/build

I did everything as the Guide told me up to the step where I have to run "brunch m8" which results in an Error, see below for more details.

josha@josha-VirtualBox:~/android/lineage$ brunch m8

including vendor/cm/vendorsetup.sh

Looking for dependencies in device/htc/m8

Looking for dependencies in device/htc/m8-common

Looking for dependencies in device/htc/msm8974-common

Looking for dependencies in device/qcom/common

Dependencies file not found, bailing out.

============================================

PLATFORM_VERSION_CODENAME=REL

PLATFORM_VERSION=7.1.2

LINEAGE_VERSION=14.1-20190516-UNOFFICIAL-m8

TARGET_PRODUCT=lineage_m8

TARGET_BUILD_VARIANT=userdebug

TARGET_BUILD_TYPE=release

TARGET_BUILD_APPS=

TARGET_ARCH=arm

TARGET_ARCH_VARIANT=armv7-a-neon

TARGET_CPU_VARIANT=krait

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-4.18.0-20-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/josha/android/lineage/out

============================================

make: Verzeichnis „/home/josha/android/lineage“ wird betreten

============================================

PLATFORM_VERSION_CODENAME=REL

PLATFORM_VERSION=7.1.2

LINEAGE_VERSION=14.1-20190516-UNOFFICIAL-m8

TARGET_PRODUCT=lineage_m8

TARGET_BUILD_VARIANT=userdebug

TARGET_BUILD_TYPE=release

TARGET_BUILD_APPS=

TARGET_ARCH=arm

TARGET_ARCH_VARIANT=armv7-a-neon

TARGET_CPU_VARIANT=krait

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-4.18.0-20-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/josha/android/lineage/out

============================================

Running kati to generate build-lineage_m8.ninja...

vendor/htc/m8/BoardConfigVendor.mk was modified, regenerating...

============================================

PLATFORM_VERSION_CODENAME=REL

PLATFORM_VERSION=7.1.2

LINEAGE_VERSION=14.1-20190516-UNOFFICIAL-m8

TARGET_PRODUCT=lineage_m8

TARGET_BUILD_VARIANT=userdebug

TARGET_BUILD_TYPE=release

TARGET_BUILD_APPS=

TARGET_ARCH=arm

TARGET_ARCH_VARIANT=armv7-a-neon

TARGET_CPU_VARIANT=krait

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-4.18.0-20-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/josha/android/lineage/out

============================================

frameworks/av/camera/cameraserver/Android.mk:18: Target has integrated cameraserver into mediaserver. This is weakening security measures introduced in 7.0

find: ‘/home/josha/android/lineage/out/target/common/obj/SHARED_LIBRARIES/libwifi-hal-mock_intermediates’: Datei oder Verzeichnis nicht gefunden

build/core/Makefile:34: warning: overriding commands for target `/home/josha/android/lineage/out/target/product/m8/system/lib/hw/consumerir.default.so'

build/core/base_rules.mk:320: warning: ignoring old commands for target `/home/josha/android/lineage/out/target/product/m8/system/lib/hw/consumerir.default.so'

Starting build with ninja

ninja: Entering directory `.'

ninja: error: 'vendor/htc/m8-common/proprietary/bin/cir_fw_update', needed by '/home/josha/android/lineage/out/target/product/m8/system/bin/cir_fw_update', missing and no known rule to make it

build/core/ninja.mk:151: recipe for target 'ninja_wrapper' failed

make: *** [ninja_wrapper] Error 1

make: Verzeichnis „/home/josha/android/lineage“ wird verlassen

#### make failed to build some targets (02:58 (mm:ss)) ####

I have no Idea what I did wrong and after googling for hours I'm hoping to find some help here.

Also I'd like to ask a general Question about ROM's and Kernels: Can I use any Kernel (for the specific device ofc) in combination with let's say LineageOS or does the Kernel need to be made explicitly for the ROM?

Thank you very much!

UPDATE:

I rechecked everything twice and noticed I didn't set an e-mail and name when i ran "repo init -u github.com/LineageOS/android.git -b cm-14.1",

also this time I extracted the proprietary blobs from installable zip instead of my phone.

And (ofc) i ran into another Error when running "brunch m8" but "LC_ALL=C brunch m8" seemed to fix it.

It's compiling now and I'll let you know tomorrow if it worked!

UPDATE 2:

Allright it looks like I did it!

I just flashed the modified kernel and everything seems to work as intended! But time will tell.

Since I'm not allowed to post links I can't share it with you here but PM me if you want and I'll give you a download link.

All I modified was setting "CONFIG_SWAP" to true.

Greetings,

Jexome