[Q] Help to compile the Mi A3 kernel? - Upgrading, Modifying and Unlocking

Hi, I'm wanting to compile the mi-a3 kernel to use with GrapheneOs(as it needs to be compiled before the rom compilation).
I'm trying to compile it with this script:
Code:
#!/bin/bash
set -o errexit -o pipefail
[[ $# -eq 1 ]] || exit 1
DEVICE=$1
if [[ $DEVICE != laurel_sprout && $DEVICE != blueline && $DEVICE != crosshatch && $DEVICE != bonito ]]; then
echo invalid device codename
exit 1
fi
ROOT_DIR=$(realpath ../../..)
export KBUILD_BUILD_VERSION=1
export KBUILD_BUILD_USER=grapheneos
export KBUILD_BUILD_HOST=grapheneos
export KBUILD_BUILD_TIMESTAMP="$(date -d "@$(git --no-pager show -s --format=%ct)")"
PATH="$ROOT_DIR/prebuilts/build-tools/linux-x86/bin:$PATH"
PATH="$ROOT_DIR/prebuilts/build-tools/path/linux-x86:$PATH"
PATH="$ROOT_DIR/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin:$PATH"
PATH="$ROOT_DIR/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin:$PATH"
PATH="$ROOT_DIR/prebuilts/clang/host/linux-x86/clang-r383902/bin:$PATH"
PATH="$ROOT_DIR/prebuilts/misc/linux-x86/lz4:$PATH"
PATH="$ROOT_DIR/prebuilts/misc/linux-x86/dtc:$PATH"
PATH="$ROOT_DIR/prebuilts/misc/linux-x86/libufdt:$PATH"
export LD_LIBRARY_PATH="$ROOT_DIR/prebuilts/clang/host/linux-x86/clang-r383902/lib64:$LD_LIBRARY_PATH"
chrt -bp 0 $$
make \
O=out \
ARCH=arm64 \
CC=clang \
HOSTCC=clang \
HOSTCXX=clang++ \
CLANG_TRIPLE=aarch64-linux-gnu- \
CROSS_COMPILE=aarch64-linux-android- \
CROSS_COMPILE_ARM32=arm-linux-androideabi- \
vendor/laurel_sprout-perf_defconfig
make -j$(nproc) \
O=out \
ARCH=arm64 \
CC=clang \
HOSTCC=clang \
HOSTCXX=clang++ \
CLANG_TRIPLE=aarch64-linux-gnu- \
CROSS_COMPILE=aarch64-linux-android- \
CROSS_COMPILE_ARM32=arm-linux-androideabi-
mkdir -p "$ROOT_DIR/device/xiaomi/$DEVICE-kernel"
cp out/arch/arm64/boot/{dtbo.img,Image.lz4} "$ROOT_DIR/device/xiaomi/$DEVICE-kernel"
which I modified from the one at kernel/google/crosshatch/build.sh on the grapheneOs android 10 repo.
But when I run the script I get an make error, this is the last few lines from the script when it throws the error out:
Code:
../drivers/usb/phy/phy-msm-qusb.c:1086:4: warning: misleading indentation; statement is not part of the previous 'if' [-Wmisleading-indentation]
dev_err(dev, "couldn't get iface_clk(%d)\n", ret);
^
../drivers/usb/phy/phy-msm-qusb.c:1084:3: note: previous statement is here
if (ret == -EPROBE_DEFER)
^
CC drivers/usb/storage/transport.o
1 warning generated.
CC drivers/usb/storage/usb.o
CC drivers/usb/storage/initializers.o
AR drivers/usb/phy/built-in.o
CC drivers/usb/storage/sierra_ms.o
CC drivers/usb/storage/option_ms.o
CC drivers/usb/storage/usual-tables.o
AR drivers/usb/storage/usb-storage.o
AR drivers/usb/storage/built-in.o
AR drivers/usb/built-in.o
AR drivers/built-in.o
make[1]: Saindo do diretório '/run/media/cota/47053fcc-4636-4d26-8e40-bb11fa4e2e05/Android/grapheneos-RP1A.201105.002.2020.11.03.03/kernel/xiaomi/laurel_sprout/out'
make: *** [Makefile:146: sub-make] Erro 2
I think the problem with this is the defconfig I used, which was located at arch/arm64/configs/vendor/laurel_sprout-perf_defconfig as I don't know which one I should use but can anyone help me into compiling the kernel?
kernel link
thanks.

Related

[Guide] Step by step instructions for building AOKP 6.0 for the T-Mobile Galaxy S4!

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Step by step instructions for building AOKP 6.0 for the T-Mobile variant of the Samsung Galaxy S4
I have noticed that the build instructions on the AOKP website are a bit outdated. They date back to JellyBean. I would like to encourage other users to build more custom roms, and I thought that it would help if I show how to build one of the roms wich compiled successfully for me (Praise God!). It is my hope that these instructions are clear and easy to follow. Hey, if I can do it, anybody can do it!
<<<<< Step 1: Setup your system. >>>>>​
To be honest, this can be the most daunting part, because if you do not set this up properly, it just will not work. I use Ubuntu 14.04 on a HP Compaq 6715b laptop. I know, not a very ideal compiler, but it is what I've got. Here are the suggested packages, just open a terminal and paste this in:
Code:
$ sudo apt-get install bison build-essential bzip2 curl dpkg-dev flex g++-multilib git git-review gnupg gperf lib32ncurses5-dev lib32readline-gplv2-dev lib32z1-dev openjdk-7-jdk libbz2-1.0 libbz2-dev libc6-dev libghc-bzlib-dev libgl1-mesa-dev libgl1-mesa-glx:i386 libncurses5-dev libreadline6-dev libreadline6-dev:i386 libx11-dev:i386 libxml2-utils lzop maven pngcrush pngquant python-markdown schedtool squashfs-tools tofrodos x11proto-core-dev xsltproc zip zlib1g-dev zlib1g-dev:i386
This will take a while. Once it is done, do this:
Code:
$ mkdir ~/bin && curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo && chmod a+x ~/bin/repo
$ gedit ~/.bashrc
Now you should see gedit open up your .bashrc file, to which you should add this at the very end, and save it:
Code:
export PATH=~/bin:$PATH
Now you need to close your terminal and open a new one to get the PATH variables to stick. Actually, it wouldn't hurt to reboot your system after installing all of those programs we just installed. Your computer should now be primed and ready to go.
<<<<< Step 2: Download the source. >>>>>​
Here is a very short project for you that takes the computer a long time to complete. Open a terminal and start typing:
Code:
$ cd ~
$ mkdir aokp6
$ cd aokp6
$ repo init -u https://github.com/AOKP/platform_manifest.git -b mm
$ repo sync
You can now go outside, play with the kids, phone a friend, and then go to bed. When you awake the next morning, this might be done, depending on your internet connection!
<<<<< Step 3: Adding the device, kernel, and vendor trees. >>>>>​
In some cases, you can simply type the command
Code:
$ breakfast
and just choose your device, but at this time, the AOKP repository did not include a current device tree for the JFLTETMO phone, so we need to download one. I chose to test out the Dirty Unicorn JFLTETMO devices trees, by going here and choosing to download the zips. Later, perhaps we can learn about adding them as dependencies, but here are the links, be sure to choose the 6.0 branches and click the download button to download the zips:
https://github.com/DirtyUnicorns/android_device_samsung_jfltetmo
https://github.com/DirtyUnicorns/android_kernel_samsung_jf
https://github.com/DirtyUnicorns/android_device_samsung_jf-common
https://github.com/DirtyUnicorns/android_device_samsung_jflte
https://github.com/DirtyUnicorns/android_device_samsung_msm8960-common
https://github.com/DirtyUnicorns/android_device_samsung_qcom-common
https://github.com/TheMuppets/proprietary_vendor_samsung/tree/cm-13.0
Once you have downloaded them, unzip each one and rename them:
android_device_samsung_jfltetmo - jfltetmo
android_device_samsung_jf-common - jf-common
android_device_samsung_jflte - jflte
android_device_samsung_msm8960-common - msm8960-common
android_device_samsung_qcom-common - qcom-common
Go to you aokp6/device folder and create a folder called "samsung". Now put the above folders into it.
Then unzip the kernel_samsung_jf folder and rename it "jf". Go to the aokp6 folder and create a folder called "kernel", go into the kernel folder and make a new folder called "samsung", enter that folder, and put your "jf" folder here. Don't worry, we are almost done.
Now go to your aokp6/vendor folder. Create a new folder called "samsung". Enter the samsung folder and copy the contents of your unzipped proprietary_vendor_samsung folder. This should be a bunch of folders like jf-gsm-common, jf-common, etc. You actually don't need all of these folders right now, but it will not hurt to have them, and there are two folders in there that you need.
Now you should probably take a break before going on to the next step!
<<<<< Step 4: Editing the device, kernel, and vendor trees. >>>>>​
Now, go to the device/samsung/jfltetmo folder and rename du.mk to aokp.mk and edit it as follows:
Code:
$(call inherit-product, device/samsung/jfltetmo/full_jfltetmo.mk)
# Enhanced NFC
$(call inherit-product, vendor/aokp/configs/nfc_enhanced.mk)
# Inherit some common DU stuff.
$(call inherit-product, vendor/aokp/configs/common_full_phone.mk)
PRODUCT_BUILD_PROP_OVERRIDES += \
PRODUCT_NAME=jfltetmo \
TARGET_DEVICE=jfltetmo \
BUILD_FINGERPRINT="samsung/jfltetmo/jfltetmo:4.4.4/KTU84P/M919UVUFNK2:user/release-keys" \
PRIVATE_BUILD_DESC="jfltetmo-user 4.4.4 KTU84P M919UVUFNK2 release-keys"
PRODUCT_NAME := aokp_jfltetmo
PRODUCT_DEVICE := jfltetmo
NOTE: the original file said "vendor/du/config/*" you must change it to "configs" or there will be an error!
Then, in the jfltetmo folder, delete the cm.dependencies file. Do the same deletion in all of the device/samsung/* directories. You don't want to download CM dependencies, because you already have them here.
Note: Because repositories are constantly updated, I can only garuntee that this will work based on the files as they were the day of this writing. However, with all of this in place, if you follow this guide, it should work realatively the same as what happened for me.
You can actually just run the compiler right now, however, you will have several stop errors that we plan to address here before you do that. All of these edits are due to errors that cropped up when running the compiler.
The first error was relating to libhealthd. Android and AOKP source already has a built in libhealthd for the qcom motherboards, and it is a duplication of efforts (which causes an error) to have both the device tree libhealthd and the source libhealthd. So here is how we fix it. Now, go to the device/samsung/qcom-common/libhealthd folder, and make the following changes to the Android.mk file:
Code:
# WJH LOCAL_PATH := $(call my-dir)
# WJH include $(CLEAR_VARS)
# WJH LOCAL_SRC_FILES := healthd_board_default.cpp
# WJH LOCAL_MODULE := libhealthd.qcom
# WJH LOCAL_C_INCLUDES := system/core/healthd bootable/recovery
# WJH include $(BUILD_STATIC_LIBRARY)
Another error that will crop up if you run the compiler now, is that your multi-media video will have a problem setting the picture order, and the compiler will get confused and stop with an error. So we can fix that here before we begin. We need to edit one of the hardware files. Go to hardware/qcom/media-caf/msm8960/mm-video/vidc/venc/src, and edit the video_encoder_device.cpp file as follows (this is the last few lines of the file):
Code:
bool venc_dev::venc_set_picture_order_count_type(OMX_U32 type)
{
// WJH venc_poctype temp;
// WJH venc_ioctl_msg ioctl_msg = {&temp, NULL};
// WJH temp.poc_type = type;
// WJH DEBUG_PRINT_HIGH("Setting poc type: %d", type);
// WJH if(ioctl(m_nDriver_fd, VEN_IOCTL_SET_PIC_ORDER_CNT_TYPE, (void *)&ioctl_msg) < 0)
// WJH {
// WJH DEBUG_PRINT_ERROR("Request for setting poc type failed");
// WJH return false;
// WJH }
return true;
}
And finaly, there is an error that will pop up and stop your compiler because of a conflict over the "ambientIsAvailable" portion of this file: packages/apps/InCallUI/src/com/android/incallui/ModButtonPresenter.java at line 404. So we will just go ahead and edit it here before we begin.
Code:
final boolean showNote = isProvisioned &&
// WJH DeepLinkIntegrationManager.getInstance().ambientIsAvailable(getUi().getContext()) &&
mNoteDeepLink != null;
Now that all of the hard work is done, it is time to actually build something!
<<<<< Step 5: Start your build! >>>>>​
Phew! You have invested a lot of hours into this project, now it is time to actually put those files and time to use! Open up a terminal in your aokp6 folder and start typing:
Code:
aokp6$ . build/envsetup.sh
Which will output something like this:
Code:
including vendor/aokp/vendorsetup.sh
including sdk/bash_completion/adb.bash
including vendor/aokp/bash_completion/git.bash
including vendor/aokp/bash_completion/repo.bash
Now type:
Code:
aokp6$ brunch jfltetmo
Which will start the long build process, it will output this:
Code:
including vendor/aokp/vendorsetup.sh
Got local manifest
Got local manifest
Checked dependency tree over :
NO_DEPS: device/*/jfltetmo
============================================
PLATFORM_VERSION_CODENAME = REL
PLATFORM_VERSION = 6.0.1
AOKP_VERSION = aokp_jfltetmo_mm_unofficial_2016-06-20_1015
TARGET_PRODUCT = aokp_jfltetmo
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_OS = linux
HOST_OS_EXTRA = Linux-3.16.0-73-generic-x86_64-with-Ubuntu-14.04-trusty
HOST_BUILD_TYPE = release
BUILD_ID = MOB30J
OUT_DIR = /home/alaskalinuxuser/Documents/projects/phones/compile/aokp6/out
============================================
And this:
Code:
.....edited for space.....
Import includes file: /home/alaskalinuxuser/Documents/projects/phones/compile/aokp6/out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/import_includes
host C: libhost <= build/libs/host/CopyFile.c
build/libs/host/CopyFile.c:86:43: warning: unused parameter 'pSrcStat' [-Wunused-parameter]
static bool isSameFile(const struct stat* pSrcStat, const struct stat* pDstStat)
^
build/libs/host/CopyFile.c:86:72: warning: unused parameter 'pDstStat' [-Wunused-parameter]
static bool isSameFile(const struct stat* pSrcStat, const struct stat* pDstStat)
^
build/libs/host/CopyFile.c:104:42: warning: unused parameter 'src' [-Wunused-parameter]
static void printNotNewerMsg(const char* src, const char* dst, unsigned int options)
^
build/libs/host/CopyFile.c:531:69: warning: unused parameter 'isCmdLine' [-Wunused-parameter]
static int copyFileRecursive(const char* src, const char* dst, bool isCmdLine, unsigned int options)
.....edited for space..... Stuff like this will scroll by .....
Copy: /home/alaskalinuxuser/Documents/projects/phones/compile/aokp6/out/target/product/jfltetmo/obj/STATIC_LIBRARIES/libext4_intermediates/libipt_LOG.c
Copy: /home/alaskalinuxuser/Documents/projects/phones/compile/aokp6/out/target/product/jfltetmo/obj/STATIC_LIBRARIES/libext4_intermediates/libipt_MASQUERADE.c
Copy: /home/alaskalinuxuser/Documents/projects/phones/compile/aokp6/out/target/product/jfltetmo/obj/STATIC_LIBRARIES/libext4_intermediates/libipt_MIRROR.c
Copy: /home/alaskalinuxuser/Documents/projects/phones/compile/aokp6/out/target/product/jfltetmo/obj/STATIC_LIBRARIES/libext4_intermediates/libipt_NETMAP.c
target StaticLib: libip4tc (/home/alaskalinuxuser/Documents/projects/phones/compile/aokp6/out/target/product/jfltetmo/obj/STATIC_LIBRARIES/libip4tc_intermediates/libip4tc.a)
target thumb C++: keystore <= system/security/keystore/keystore.cpp
target thumb C++: keystore <= system/security/keystore/keyblob_utils.cpp
target thumb C++: keystore <= system/security/keystore/operation.cpp
.....edited for space.....
Notice that there were some "warning" flags in there. Warnings are not all bad, but they can be. In this case it works out okay. Hopefully, after many hours, you should see this:
Code:
______ _____ __ __ _____
/\ _ \/\ __`\/\ \/\ \ /\ _ `\
\ \ \L\ \ \ \/\ \ \ \/'/'\ \ \L\ \
\ \ __ \ \ \ \ \ \ , < \ \ ,__/
\ \ \/\ \ \ \_\ \ \ \\`\ \ \ \/
\ \_\ \_\ \_____\ \_\ \_\\ \_\
\/_/\/_/\/_____/\/_/\/_/ \/_/
===========-Package complete-===========
zip: /home/alaskalinuxuser/Documents/projects/phones/compile/aokp6/out/target/product/jfltetmo/aokp_jfltetmo_mm_unofficial_2016-06-19_0149.zip
md5: 46bc18249c61988e75aba813464692a3
size: 320M
========================================
Success! Praise God! Now you can put this on your phone and test it out! Hopefully everything will be working! For future use, now you can start making changes or edits, from backgrounds to kernels! Have fun and make lots of backups. Remember, sometimes it is really hard to undo a change that you make.
Hopefully we learned how to set up our system, get the source, add devices and kernels that are not in the source, make proper edits, and run the compiler. Like I said, this works on my machine, as of this writing. You may notice, that if you make this build, it will not be identical to the one that I have posted on XDA. That is because I have made a few edits, additions, and/or subtractions here and there. That is the great thing about Android and open source! It is now up to you to make it better, to make it unique, or to make it you. Good luck with those builds, and be sure to share and help the next guy or gal with their projects too!
Linux - keep it simple.

### make failed to build some targets ###

I was wondering if someone in the Samsung Tab S developers could help me out on this error I am having. I recieve this everytime I start the ./build.sh
Not sure what I'm doing wrong. Not sure if I have something in the ./build.sh that needs to be corrected. I'm a noob at all this developing and trying to learn as much as I can when I can. (("So take it easy on me "))
I'm running BBQLinux as my build environment OS
#### make failed to build some targets (07:46 (mm:ss)) ####
grep: out/target/product/chagallwifi/system/build.prop: No such file or directory
mv: cannot stat 'out/target/product/chagallwifi/aosp_chagallwifi-ota-eng.ubuntu.zip': No such file or directory
md5sum: out/target/product/chagallwifi/aosp-.zip: No such file or directory
./build.sh 1187.08s user 117.71s system 276% cpu 7:51.76 total
Copy of the ./build.sh
#!/bin/bash
DEBUG="debug"
#DEBUG=""
GCC_PATH=`pwd`/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin
export PATH=$GCC_PATH:$PATH
export USE_CCACHE=1
export CCACHE_DIR=`pwd`/.ccache
prebuilts/misc/linux-x86/ccache/ccache -M 120G
if [ "x$1" == "x" ]; then
products="chagallwifi"
else
products=$1
fi
if [ "x$2" == "xnoclean" ]; then
noclean=1
else
noclean=0
fi
# Fix build dependency
mkdir -p prebuilts/qemu-kernel/arm
touch prebuilts/qemu-kernel/arm/LINUX_KERNEL_COPYING
source build/envsetup.sh
if [ "x$noclean" == "x0" ]; then
make clean
fi
for product in $products
do
echo "lunch aosp_${product}-user$DEBUG"
lunch aosp_${product}-user$DEBUG
make -j 16 otapackage 2>&1 | tee build.log
ROM_ORG="aosp_${product}-ota-eng.ubuntu.zip"
ROM="aosp-`grep "ro.build.version.incremental" out/target/product/${product}/system/build.prop | sed "s/ro.build.version.incremental=//g"`.zip"
mv out/target/product/${product}/${ROM_ORG} out/target/product/${product}/${ROM}
md5sum out/target/product/${product}/${ROM} > out/target/product/${product}/${ROM}.md5sum
done
I was able to fix the problem I was having.
Thanks,
Falcon204

LineageOS source compilation fails

I'm trying to build Lineage 14.1 for serranoltexx (for 5 days now).
When I started the compilation using "breakfast serranoltexx" an error appears after the 7 percent mark (~2minutes).
I followed this guide: wiki.lineageos. org/devices/serranoltexx/build
with a fresh Ubuntu 17.04 VM Box installation two times but that error always appears.
The only thing I still could mention is that pulled the proprietary blobs using my phone as stated in the instructions not with the stock Rom but Lineage 14.1 already installed.
Full console output:
(error at line #321) pastebin. com/vC06fV36
Error:
Code:
make: Leaving directory '/home/mrglue/android/lineage/kernel/samsung/msm8930-common'
[ 7% 2535/34256] Building Kernel
FAILED: /bin/bash -c "(make -j4 CFLAGS_MODULE=\"-fno-pic\" -C kernel/samsung/msm8930-common O=/home/mrglue/android/lineage/out/target/product/serranoltexx/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=\"/home/mrglue/android/lineage/prebuilts/misc/linux-x86/ccache/ccache arm-linux-androidkernel-\" zImage ) && (if grep -q 'CONFIG_OF=y' /home/mrglue/android/lineage/out/target/product/serranoltexx/obj/KERNEL_OBJ/.config ; then echo \"Building DTBs\" ; make -j4 CFLAGS_MODULE=\"-fno-pic\" -C kernel/samsung/msm8930-common O=/home/mrglue/android/lineage/out/target/product/serranoltexx/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=\"/home/mrglue/android/lineage/prebuilts/misc/linux-x86/ccache/ccache arm-linux-androidkernel-\" dtbs ; else echo \"DTBs not enabled\" ; fi ) && (if grep -q 'CONFIG_MODULES=y' /home/mrglue/android/lineage/out/target/product/serranoltexx/obj/KERNEL_OBJ/.config ; then echo \"Building Kernel Modules\" ; make -j4 CFLAGS_MODULE=\"-fno-pic\" -C kernel/samsung/msm8930-common O=/home/mrglue/android/lineage/out/target/product/serranoltexx/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=\"/home/mrglue/android/lineage/prebuilts/misc/linux-x86/ccache/ccache arm-linux-androidkernel-\" modules && make -j4 CFLAGS_MODULE=\"-fno-pic\" -C kernel/samsung/msm8930-common O=/home/mrglue/android/lineage/out/target/product/serranoltexx/obj/KERNEL_OBJ INSTALL_MOD_PATH=../../system ARCH=arm CROSS_COMPILE=\"/home/mrglue/android/lineage/prebuilts/misc/linux-x86/ccache/ccache arm-linux-androidkernel-\" modules_install && mdpath=\`find /home/mrglue/android/lineage/out/target/product/serranoltexx/system/lib/modules -type f -name modules.order\`; if [ \"\$mdpath\" != \"\" ];then mpath=\`dirname \$mdpath\`; ko=\`find \$mpath/kernel -type f -name *.ko\`; for i in \$ko; do arm-linux-androidkernel-strip --strip-unneeded \$i; mv \$i /home/mrglue/android/lineage/out/target/product/serranoltexx/system/lib/modules/; done; fi && mdpath=\`find /home/mrglue/android/lineage/out/target/product/serranoltexx/system/lib/modules -type f -name modules.order\`; if [ \"\$mdpath\" != \"\" ];then mpath=\`dirname \$mdpath\`; rm -rf \$mpath; fi ; else echo \"Kernel Modules not enabled\" ; fi )"

[LineageOs 15.1] Problem building to create zip

Hi there,could someone tell me what is wrong when I build lineageos?
Code:
[100% 1/1] build bacon
FAILED: bacon
/ bin / bash -c "(ln -f /root/Lineageos/out/target/product/a400cg/lineage-.zip) && (md5sum /root/Lineageos/out/target/product/a400cg/lineage-.zip | sed \ "s \ / root / Lineageos / out / target / product / a400cg / || \"> /root/Lineageos/out/target/product/a400cg/lineage-.zip.md5sum) && (echo \ "Package Complete : /root/Lineageos/out/target/product/a400cg/lineage-.zip \ "> & 2)"
ln: could not access '/root/Lineageos/out/target/product/a400cg/lineage-.zip': No such file or directory exists
ninja: build stopped: subcommand failed.
11:28:28 ninja failed with: exit status 1
bacon refers to one plus 3..device or so...I hope you are building for a one plus 3 device, otherwise you have to change bacon to your device specific call name.
Did you find a solution? I have the same error when attempting to build for Lilac.
Thanks!

Help! Try to Build Lineage OS

Hello I'm "the new"
I was trying to build Lineage OS for a Gigaset GX290 following this Instructions: https://gist.github.com/schoeller/904611a4baa1bae4107a4e3748e4746e
(in this case I try the recipe for 19.1, but with the legacy 17.1 I get the same error)
But it didn't work and brake up by 53% with the following output:
Code:
done
/bin/sh: 8: /home/macbook/android/lineage/kernel/gigaset/gx290/tools/dct/DrvGen.py: not found
make[1]: *** [/home/macbook/android/lineage/kernel/gigaset/gx290/scripts/drvgen/drvgen.mk:63: arch/arm64/boot/dts/k63v2_64_bsp/cust.dtsi] Fehler 127
make[1]: *** Auf noch nicht beendete Prozesse wird gewartet …
HOSTCC scripts/basic/bin2c
make[1]: Verzeichnis „/home/macbook/android/lineage/out/target/product/GX290/obj/DTB_OBJ“ wird verlassen
make: *** [Makefile:152: sub-make] Fehler 2
make: Verzeichnis „/home/macbook/android/lineage/kernel/gigaset/gx290“ wird verlassen
17:45:01 ninja failed with: exit status 1
#### failed to build some targets (03:47:06 (hh:mm:ss)) ####
I try to Build on a fresh System with following specs:
Kubuntu
Macbook Pro mid2012, i5, 16Gb Ram, 400Gb Space
ccache with compression and max 25Gb cache file
I hope anyone has an idea about that..
PS. Here ist the full output since I found the first "FAILED" in it:
Spoiler: Full Code
Code:
[ 53% 73182/137674] Building Kernel Image (Image.gz-dtb)
FAILED: out/target/product/GX290/obj/KERNEL_OBJ/arch/arm64/boot/Image.gz-dtb
/bin/bash -c "(PATH=/home/macbook/android/lineage/out/host/linux-x86/bin:\$PATH PATH=/home/macbook/android/lineage/prebuilts/clang/host/linux-x86/clang-r416183b1/bin:\$PATH LD_LIBRARY_PATH=/home/macbook/android/lineage/prebuilts/clang/host/linux-x86/clang-r416183b1/lib64:\$LD_LIBRARY_PATH PATH=/home/macbook/android/lineage/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin:\$PATH LD_LIBRARY_PATH=/home/macbook/android/lineage/prebuilts/tools-lineage/linux-x86/lib:\$LD_LIBRARY_PATH PERL5LIB=/home/macbook/android/lineage/prebuilts/tools-lineage/common/perl-base PATH=/home/macbook/android/lineage/prebuilts/tools-lineage/linux-x86/bin:/home/macbook/android/lineage/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin:\$PATH BISON_PKGDATADIR=/home/macbook/android/lineage/prebuilts/build-tools/common/bison /home/macbook/android/lineage/prebuilts/build-tools/linux-x86/bin/make -j4 CFLAGS_MODULE=\"-fno-pic\" CPATH=\"/usr/include:/usr/include/x86_64-linux-gnu\" HOSTCFLAGS=\"-fuse-ld=lld\" HOSTLDFLAGS=\"-L/usr/lib/x86_64-linux-gnu -L/usr/lib64 -fuse-ld=lld\" DTC=/home/macbook/android/lineage/prebuilts/misc/linux-x86/dtc/dtc MKDTIMG=/home/macbook/android/lineage/prebuilts/misc/linux-x86/libufdt/mkdtimg HOSTCC=/home/macbook/android/lineage/prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang HOSTCXX=/home/macbook/android/lineage/prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang++ LEX=/home/macbook/android/lineage/prebuilts/build-tools/linux-x86/bin/flex YACC=/home/macbook/android/lineage/prebuilts/build-tools/linux-x86/bin/bison M4=/home/macbook/android/lineage/prebuilts/build-tools/linux-x86/bin/m4 -C kernel/gigaset/gx290 O=/home/macbook/android/lineage/out/target/product/GX290/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE=\"/home/macbook/android/lineage/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-\" CROSS_COMPILE_ARM32=\"/home/macbook/android/lineage/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androidkernel-\" CROSS_COMPILE_COMPAT=\"/home/macbook/android/lineage/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androidkernel-\" CLANG_TRIPLE=aarch64-linux-gnu- CC=\" clang\" Image.gz-dtb ) && (if grep -q '^CONFIG_OF=y' out/target/product/GX290/obj/KERNEL_OBJ/.config; then echo \"Building DTBs\"; PATH=/home/macbook/android/lineage/out/host/linux-x86/bin:\$PATH PATH=/home/macbook/android/lineage/prebuilts/clang/host/linux-x86/clang-r416183b1/bin:\$PATH LD_LIBRARY_PATH=/home/macbook/android/lineage/prebuilts/clang/host/linux-x86/clang-r416183b1/lib64:\$LD_LIBRARY_PATH PATH=/home/macbook/android/lineage/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin:\$PATH LD_LIBRARY_PATH=/home/macbook/android/lineage/prebuilts/tools-lineage/linux-x86/lib:\$LD_LIBRARY_PATH PERL5LIB=/home/macbook/android/lineage/prebuilts/tools-lineage/common/perl-base PATH=/home/macbook/android/lineage/prebuilts/tools-lineage/linux-x86/bin:/home/macbook/android/lineage/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin:\$PATH BISON_PKGDATADIR=/home/macbook/android/lineage/prebuilts/build-tools/common/bison /home/macbook/android/lineage/prebuilts/build-tools/linux-x86/bin/make -j4 CFLAGS_MODULE=\"-fno-pic\" CPATH=\"/usr/include:/usr/include/x86_64-linux-gnu\" HOSTCFLAGS=\"-fuse-ld=lld\" HOSTLDFLAGS=\"-L/usr/lib/x86_64-linux-gnu -L/usr/lib64 -fuse-ld=lld\" DTC=/home/macbook/android/lineage/prebuilts/misc/linux-x86/dtc/dtc MKDTIMG=/home/macbook/android/lineage/prebuilts/misc/linux-x86/libufdt/mkdtimg HOSTCC=/home/macbook/android/lineage/prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang HOSTCXX=/home/macbook/android/lineage/prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang++ LEX=/home/macbook/android/lineage/prebuilts/build-tools/linux-x86/bin/flex YACC=/home/macbook/android/lineage/prebuilts/build-tools/linux-x86/bin/bison M4=/home/macbook/android/lineage/prebuilts/build-tools/linux-x86/bin/m4 -C kernel/gigaset/gx290 O=/home/macbook/android/lineage/out/target/product/GX290/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE=\"/home/macbook/android/lineage/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-\" CROSS_COMPILE_ARM32=\"/home/macbook/android/lineage/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androidkernel-\" CROSS_COMPILE_COMPAT=\"/home/macbook/android/lineage/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androidkernel-\" CLANG_TRIPLE=aarch64-linux-gnu- CC=\" clang\" dtbs; fi ) && (if grep -q '=m' out/target/product/GX290/obj/KERNEL_OBJ/.config; then echo \"Building Kernel Modules\"; PATH=/home/macbook/android/lineage/out/host/linux-x86/bin:\$PATH PATH=/home/macbook/android/lineage/prebuilts/clang/host/linux-x86/clang-r416183b1/bin:\$PATH LD_LIBRARY_PATH=/home/macbook/android/lineage/prebuilts/clang/host/linux-x86/clang-r416183b1/lib64:\$LD_LIBRARY_PATH PATH=/home/macbook/android/lineage/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin:\$PATH LD_LIBRARY_PATH=/home/macbook/android/lineage/prebuilts/tools-lineage/linux-x86/lib:\$LD_LIBRARY_PATH PERL5LIB=/home/macbook/android/lineage/prebuilts/tools-lineage/common/perl-base PATH=/home/macbook/android/lineage/prebuilts/tools-lineage/linux-x86/bin:/home/macbook/android/lineage/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin:\$PATH BISON_PKGDATADIR=/home/macbook/android/lineage/prebuilts/build-tools/common/bison /home/macbook/android/lineage/prebuilts/build-tools/linux-x86/bin/make -j4 CFLAGS_MODULE=\"-fno-pic\" CPATH=\"/usr/include:/usr/include/x86_64-linux-gnu\" HOSTCFLAGS=\"-fuse-ld=lld\" HOSTLDFLAGS=\"-L/usr/lib/x86_64-linux-gnu -L/usr/lib64 -fuse-ld=lld\" DTC=/home/macbook/android/lineage/prebuilts/misc/linux-x86/dtc/dtc MKDTIMG=/home/macbook/android/lineage/prebuilts/misc/linux-x86/libufdt/mkdtimg HOSTCC=/home/macbook/android/lineage/prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang HOSTCXX=/home/macbook/android/lineage/prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang++ LEX=/home/macbook/android/lineage/prebuilts/build-tools/linux-x86/bin/flex YACC=/home/macbook/android/lineage/prebuilts/build-tools/linux-x86/bin/bison M4=/home/macbook/android/lineage/prebuilts/build-tools/linux-x86/bin/m4 -C kernel/gigaset/gx290 O=/home/macbook/android/lineage/out/target/product/GX290/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE=\"/home/macbook/android/lineage/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-\" CROSS_COMPILE_ARM32=\"/home/macbook/android/lineage/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androidkernel-\" CROSS_COMPILE_COMPAT=\"/home/macbook/android/lineage/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androidkernel-\" CLANG_TRIPLE=aarch64-linux-gnu- CC=\" clang\" modules || exit \"\$?\"; echo \"Installing Kernel Modules\"; PATH=/home/macbook/android/lineage/out/host/linux-x86/bin:\$PATH PATH=/home/macbook/android/lineage/prebuilts/clang/host/linux-x86/clang-r416183b1/bin:\$PATH LD_LIBRARY_PATH=/home/macbook/android/lineage/prebuilts/clang/host/linux-x86/clang-r416183b1/lib64:\$LD_LIBRARY_PATH PATH=/home/macbook/android/lineage/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin:\$PATH LD_LIBRARY_PATH=/home/macbook/android/lineage/prebuilts/tools-lineage/linux-x86/lib:\$LD_LIBRARY_PATH PERL5LIB=/home/macbook/android/lineage/prebuilts/tools-lineage/common/perl-base PATH=/home/macbook/android/lineage/prebuilts/tools-lineage/linux-x86/bin:/home/macbook/android/lineage/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin:\$PATH BISON_PKGDATADIR=/home/macbook/android/lineage/prebuilts/build-tools/common/bison /home/macbook/android/lineage/prebuilts/build-tools/linux-x86/bin/make -j4 CFLAGS_MODULE=\"-fno-pic\" CPATH=\"/usr/include:/usr/include/x86_64-linux-gnu\" HOSTCFLAGS=\"-fuse-ld=lld\" HOSTLDFLAGS=\"-L/usr/lib/x86_64-linux-gnu -L/usr/lib64 -fuse-ld=lld\" DTC=/home/macbook/android/lineage/prebuilts/misc/linux-x86/dtc/dtc MKDTIMG=/home/macbook/android/lineage/prebuilts/misc/linux-x86/libufdt/mkdtimg HOSTCC=/home/macbook/android/lineage/prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang HOSTCXX=/home/macbook/android/lineage/prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang++ LEX=/home/macbook/android/lineage/prebuilts/build-tools/linux-x86/bin/flex YACC=/home/macbook/android/lineage/prebuilts/build-tools/linux-x86/bin/bison M4=/home/macbook/android/lineage/prebuilts/build-tools/linux-x86/bin/m4 -C kernel/gigaset/gx290 O=/home/macbook/android/lineage/out/target/product/GX290/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE=\"/home/macbook/android/lineage/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-\" CROSS_COMPILE_ARM32=\"/home/macbook/android/lineage/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androidkernel-\" CROSS_COMPILE_COMPAT=\"/home/macbook/android/lineage/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androidkernel-\" CLANG_TRIPLE=aarch64-linux-gnu- CC=\" clang\" INSTALL_MOD_PATH=/home/macbook/android/lineage/out/target/product/GX290/obj/PACKAGING/kernel_modules_intermediates INSTALL_MOD_STRIP=1 modules_install; kernel_release=\$(cat out/target/product/GX290/obj/KERNEL_OBJ/include/config/kernel.release) kernel_modules_dir=/home/macbook/android/lineage/out/target/product/GX290/obj/PACKAGING/kernel_modules_intermediates/lib/modules/\$kernel_release ; modules=\$(find \$kernel_modules_dir -type f -name '*.ko'); ( mkdir -p out/target/product/GX290/vendor/lib/modules ) && (cp \$modules out/target/product/GX290/vendor/lib/modules/ ) && (rm -rf /home/macbook/android/lineage/out/target/product/GX290/obj/PACKAGING/depmod_vendor_intermediates ) && (mkdir -p /home/macbook/android/lineage/out/target/product/GX290/obj/PACKAGING/depmod_vendor_intermediates/lib/modules/0.0/vendor/lib/modules ) && (cp \$modules /home/macbook/android/lineage/out/target/product/GX290/obj/PACKAGING/depmod_vendor_intermediates/lib/modules/0.0/vendor/lib/modules ) && (out/host/linux-x86/bin/depmod -b /home/macbook/android/lineage/out/target/product/GX290/obj/PACKAGING/depmod_vendor_intermediates 0.0 ) && (sed -e 's/\\(.*modules.*\\):/\\/\\1:/g' -e 's/ \\([^ ]*modules[^ ]*\\)/ \\/\\1/g' /home/macbook/android/lineage/out/target/product/GX290/obj/PACKAGING/depmod_vendor_intermediates/lib/modules/0.0/modules.dep > out/target/product/GX290/vendor/lib/modules/modules.dep ) && (cp /home/macbook/android/lineage/out/target/product/GX290/obj/PACKAGING/depmod_vendor_intermediates/lib/modules/0.0/modules.softdep out/target/product/GX290/vendor/lib/modules ) && (cp /home/macbook/android/lineage/out/target/product/GX290/obj/PACKAGING/depmod_vendor_intermediates/lib/modules/0.0/modules.alias out/target/product/GX290/vendor/lib/modules ) && (rm -f out/target/product/GX290/vendor/lib/modules/modules.load ) && (for MODULE in ; do basename \$MODULE >> out/target/product/GX290/vendor/lib/modules/modules.load; done); fi )"
make: Verzeichnis „/home/macbook/android/lineage/kernel/gigaset/gx290“ wird betreten
make[1]: Verzeichnis „/home/macbook/android/lineage/out/target/product/GX290/obj/KERNEL_OBJ“ wird betreten
GEN ./Makefile
scripts/kconfig/conf --silentoldconfig Kconfig
drivers/input/touchscreen/mediatek/hxchipset_spi/Kconfig:95:warning: ignoring type redefinition of 'TOUCHSCREEN_HIMAX_DEBUG' from 'tristate' to 'boolean'
drivers/input/touchscreen/mediatek/hxchipset_spi/Kconfig:112:warning: ignoring type redefinition of 'HMX_DB' from 'tristate' to 'boolean'
CHK include/config/kernel.release
GEN ./Makefile
WRAP arch/arm64/include/generated/asm/bugs.h
WRAP arch/arm64/include/generated/asm/clkdev.h
WRAP arch/arm64/include/generated/asm/cputime.h
WRAP arch/arm64/include/generated/asm/delay.h
WRAP arch/arm64/include/generated/asm/div64.h
WRAP arch/arm64/include/generated/asm/dma.h
WRAP arch/arm64/include/generated/asm/dma-contiguous.h
WRAP arch/arm64/include/generated/asm/early_ioremap.h
WRAP arch/arm64/include/generated/asm/emergency-restart.h
WRAP arch/arm64/include/generated/asm/errno.h
WRAP arch/arm64/include/generated/asm/hw_irq.h
WRAP arch/arm64/include/generated/asm/ioctl.h
WRAP arch/arm64/include/generated/asm/ioctls.h
WRAP arch/arm64/include/generated/asm/ipcbuf.h
CHK include/generated/uapi/linux/version.h
WRAP arch/arm64/include/generated/asm/irq_regs.h
WRAP arch/arm64/include/generated/asm/kdebug.h
UPD include/generated/uapi/linux/version.h
WRAP arch/arm64/include/generated/asm/kmap_types.h
WRAP arch/arm64/include/generated/asm/kvm_para.h
WRAP arch/arm64/include/generated/asm/local.h
WRAP arch/arm64/include/generated/asm/local64.h
WRAP arch/arm64/include/generated/asm/mcs_spinlock.h
WRAP arch/arm64/include/generated/asm/mm-arch-hooks.h
for i in /home/macbook/android/lineage/kernel/gigaset/gx290/arch/arm64/boot/dts/mediatek/k63v2_64_bsp.dts; do \
base_prj=`grep -m 1 '#include [<\"].*\/cust\.dtsi[>\"]' $i | sed 's/#include [<"]//g'\
| sed 's/\/cust\.dtsi[>"]//g' | sed 's/\/\*//g' | sed 's/\*\///g' | sed 's/ //g'`\
prj_path=./arch/arm64/boot/dts/$base_prj ;\
dws_path=/home/macbook/android/lineage/kernel/gigaset/gx290/drivers/misc/mediatek/dws/mt6763/$base_prj.dws ;\
if [ -f $dws_path ] ; then \
mkdir -p $prj_path ;\
/home/macbook/android/lineage/kernel/gigaset/gx290/tools/dct/DrvGen.py $dws_path $prj_path $prj_path cust_dtsi;\
fi \
done
WRAP arch/arm64/include/generated/asm/mman.h
UPD include/config/kernel.release
WRAP arch/arm64/include/generated/asm/msgbuf.h
HOSTCC scripts/basic/fixdep
WRAP arch/arm64/include/generated/asm/msi.h
WRAP arch/arm64/include/generated/asm/mutex.h
WRAP arch/arm64/include/generated/asm/poll.h
WRAP arch/arm64/include/generated/asm/preempt.h
WRAP arch/arm64/include/generated/asm/resource.h
WRAP arch/arm64/include/generated/asm/rwsem.h
for i in /home/macbook/android/lineage/kernel/gigaset/gx290/arch/arm64/boot/dts/mediatek/k63v2_64_bsp.dts; do \
base_prj=`grep -m 1 '#include [<\"].*\/cust\.dtsi[>\"]' $i | sed 's/#include [<"]//g'\
| sed 's/\/cust\.dtsi[>"]//g' | sed 's/\/\*//g' | sed 's/\*\///g' | sed 's/ //g'`\
prj_path=./arch/arm64/boot/dts/$base_prj ;\
dws_path=/home/macbook/android/lineage/kernel/gigaset/gx290/drivers/misc/mediatek/dws/mt6763/$base_prj.dws ;\
if [ -f $dws_path ] ; then \
mkdir -p $prj_path ;\
/home/macbook/android/lineage/kernel/gigaset/gx290/tools/dct/DrvGen.py $dws_path $prj_path $prj_path cust_dtsi;\
fi \
done
WRAP arch/arm64/include/generated/asm/segment.h
WRAP arch/arm64/include/generated/asm/sembuf.h
WRAP arch/arm64/include/generated/asm/serial.h
WRAP arch/arm64/include/generated/asm/shmbuf.h
WRAP arch/arm64/include/generated/asm/simd.h
WRAP arch/arm64/include/generated/asm/sizes.h
/bin/sh: 8: /home/macbook/android/lineage/kernel/gigaset/gx290/tools/dct/DrvGen.py: not found
WRAP arch/arm64/include/generated/asm/socket.h
make[1]: *** [/home/macbook/android/lineage/kernel/gigaset/gx290/scripts/drvgen/drvgen.mk:63: arch/arm64/boot/dts/k63v2_64_bsp/cust.dtsi] Fehler 127
make[1]: *** Auf noch nicht beendete Prozesse wird gewartet …
WRAP arch/arm64/include/generated/asm/sockios.h
WRAP arch/arm64/include/generated/asm/swab.h
WRAP arch/arm64/include/generated/asm/switch_to.h
WRAP arch/arm64/include/generated/asm/termbits.h
WRAP arch/arm64/include/generated/asm/termios.h
WRAP arch/arm64/include/generated/asm/trace_clock.h
WRAP arch/arm64/include/generated/asm/types.h
WRAP arch/arm64/include/generated/asm/unaligned.h
WRAP arch/arm64/include/generated/asm/user.h
WRAP arch/arm64/include/generated/asm/vga.h
WRAP arch/arm64/include/generated/asm/xor.h
WRAP arch/arm64/include/generated/uapi/asm/kvm_para.h
HOSTCC scripts/basic/bin2c
make[1]: Verzeichnis „/home/macbook/android/lineage/out/target/product/GX290/obj/KERNEL_OBJ“ wird verlassen
make: *** [Makefile:152: sub-make] Fehler 2
make: Verzeichnis „/home/macbook/android/lineage/kernel/gigaset/gx290“ wird verlassen
[ 53% 73185/137674] Building dtb.img
FAILED: out/target/product/GX290/dtb.img
/bin/bash -c "(PATH=/home/macbook/android/lineage/out/host/linux-x86/bin:\$PATH PATH=/home/macbook/android/lineage/prebuilts/clang/host/linux-x86/clang-r416183b1/bin:\$PATH LD_LIBRARY_PATH=/home/macbook/android/lineage/prebuilts/clang/host/linux-x86/clang-r416183b1/lib64:\$LD_LIBRARY_PATH PATH=/home/macbook/android/lineage/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin:\$PATH LD_LIBRARY_PATH=/home/macbook/android/lineage/prebuilts/tools-lineage/linux-x86/lib:\$LD_LIBRARY_PATH PERL5LIB=/home/macbook/android/lineage/prebuilts/tools-lineage/common/perl-base PATH=/home/macbook/android/lineage/prebuilts/tools-lineage/linux-x86/bin:/home/macbook/android/lineage/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin:\$PATH BISON_PKGDATADIR=/home/macbook/android/lineage/prebuilts/build-tools/common/bison /home/macbook/android/lineage/prebuilts/build-tools/linux-x86/bin/make -j4 CFLAGS_MODULE=\"-fno-pic\" CPATH=\"/usr/include:/usr/include/x86_64-linux-gnu\" HOSTCFLAGS=\"-fuse-ld=lld\" HOSTLDFLAGS=\"-L/usr/lib/x86_64-linux-gnu -L/usr/lib64 -fuse-ld=lld\" DTC=/home/macbook/android/lineage/prebuilts/misc/linux-x86/dtc/dtc MKDTIMG=/home/macbook/android/lineage/prebuilts/misc/linux-x86/libufdt/mkdtimg HOSTCC=/home/macbook/android/lineage/prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang HOSTCXX=/home/macbook/android/lineage/prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang++ LEX=/home/macbook/android/lineage/prebuilts/build-tools/linux-x86/bin/flex YACC=/home/macbook/android/lineage/prebuilts/build-tools/linux-x86/bin/bison M4=/home/macbook/android/lineage/prebuilts/build-tools/linux-x86/bin/m4 -C kernel/gigaset/gx290 O=/home/macbook/android/lineage/out/target/product/GX290/obj/DTB_OBJ ARCH=arm64 CROSS_COMPILE=\"/home/macbook/android/lineage/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-\" CROSS_COMPILE_ARM32=\"/home/macbook/android/lineage/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androidkernel-\" CROSS_COMPILE_COMPAT=\"/home/macbook/android/lineage/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androidkernel-\" CLANG_TRIPLE=aarch64-linux-gnu- CC=\" clang\" gx290_defconfig ) && (PATH=/home/macbook/android/lineage/out/host/linux-x86/bin:\$PATH PATH=/home/macbook/android/lineage/prebuilts/clang/host/linux-x86/clang-r416183b1/bin:\$PATH LD_LIBRARY_PATH=/home/macbook/android/lineage/prebuilts/clang/host/linux-x86/clang-r416183b1/lib64:\$LD_LIBRARY_PATH PATH=/home/macbook/android/lineage/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin:\$PATH LD_LIBRARY_PATH=/home/macbook/android/lineage/prebuilts/tools-lineage/linux-x86/lib:\$LD_LIBRARY_PATH PERL5LIB=/home/macbook/android/lineage/prebuilts/tools-lineage/common/perl-base PATH=/home/macbook/android/lineage/prebuilts/tools-lineage/linux-x86/bin:/home/macbook/android/lineage/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin:\$PATH BISON_PKGDATADIR=/home/macbook/android/lineage/prebuilts/build-tools/common/bison /home/macbook/android/lineage/prebuilts/build-tools/linux-x86/bin/make -j4 CFLAGS_MODULE=\"-fno-pic\" CPATH=\"/usr/include:/usr/include/x86_64-linux-gnu\" HOSTCFLAGS=\"-fuse-ld=lld\" HOSTLDFLAGS=\"-L/usr/lib/x86_64-linux-gnu -L/usr/lib64 -fuse-ld=lld\" DTC=/home/macbook/android/lineage/prebuilts/misc/linux-x86/dtc/dtc MKDTIMG=/home/macbook/android/lineage/prebuilts/misc/linux-x86/libufdt/mkdtimg HOSTCC=/home/macbook/android/lineage/prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang HOSTCXX=/home/macbook/android/lineage/prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang++ LEX=/home/macbook/android/lineage/prebuilts/build-tools/linux-x86/bin/flex YACC=/home/macbook/android/lineage/prebuilts/build-tools/linux-x86/bin/bison M4=/home/macbook/android/lineage/prebuilts/build-tools/linux-x86/bin/m4 -C kernel/gigaset/gx290 O=/home/macbook/android/lineage/out/target/product/GX290/obj/DTB_OBJ ARCH=arm64 CROSS_COMPILE=\"/home/macbook/android/lineage/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-\" CROSS_COMPILE_ARM32=\"/home/macbook/android/lineage/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androidkernel-\" CROSS_COMPILE_COMPAT=\"/home/macbook/android/lineage/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androidkernel-\" CLANG_TRIPLE=aarch64-linux-gnu- CC=\" clang\" dtbs ) && (cat \$(find out/target/product/GX290/obj/DTB_OBJ/arch/arm64/boot/dts -type f -name \"*.dtb\" | sort) > out/target/product/GX290/dtb.img )"
make: Verzeichnis „/home/macbook/android/lineage/kernel/gigaset/gx290“ wird betreten
make[1]: Verzeichnis „/home/macbook/android/lineage/out/target/product/GX290/obj/DTB_OBJ“ wird betreten
HOSTCC scripts/basic/fixdep
GEN ./Makefile
HOSTCC scripts/kconfig/conf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/zconf.lex.c
SHIPPED scripts/kconfig/zconf.hash.c
clang-12: warning: argument unused during compilation: '-fuse-ld=lld' [-Wunused-command-line-argument]
HOSTCC scripts/kconfig/zconf.tab.o
clang-12: warning: argument unused during compilation: '-fuse-ld=lld' [-Wunused-command-line-argument]
HOSTLD scripts/kconfig/conf
drivers/input/touchscreen/mediatek/hxchipset_spi/Kconfig:95:warning: ignoring type redefinition of 'TOUCHSCREEN_HIMAX_DEBUG' from 'tristate' to 'boolean'
drivers/input/touchscreen/mediatek/hxchipset_spi/Kconfig:112:warning: ignoring type redefinition of 'HMX_DB' from 'tristate' to 'boolean'
arch/arm64/configs/gx290_defconfig:419:warning: override: reassigning to symbol LCM_HEIGHT
arch/arm64/configs/gx290_defconfig:420:warning: override: reassigning to symbol LCM_WIDTH
arch/arm64/configs/gx290_defconfig:471:warning: unexpected data: CFG_SUPPORT_ROAMING_ENC=y
arch/arm64/configs/gx290_defconfig:472:warning: unexpected data: CFG_SUPPORT_DYNAMOC_ROAM=y
#
# configuration written to .config
#
make[1]: Verzeichnis „/home/macbook/android/lineage/out/target/product/GX290/obj/DTB_OBJ“ wird verlassen
make: Verzeichnis „/home/macbook/android/lineage/kernel/gigaset/gx290“ wird verlassen
make: Verzeichnis „/home/macbook/android/lineage/kernel/gigaset/gx290“ wird betreten
make[1]: Verzeichnis „/home/macbook/android/lineage/out/target/product/GX290/obj/DTB_OBJ“ wird betreten
GEN ./Makefile
scripts/kconfig/conf --silentoldconfig Kconfig
drivers/input/touchscreen/mediatek/hxchipset_spi/Kconfig:95:warning: ignoring type redefinition of 'TOUCHSCREEN_HIMAX_DEBUG' from 'tristate' to 'boolean'
drivers/input/touchscreen/mediatek/hxchipset_spi/Kconfig:112:warning: ignoring type redefinition of 'HMX_DB' from 'tristate' to 'boolean'
CHK include/config/kernel.release
GEN ./Makefile
UPD include/config/kernel.release
WRAP arch/arm64/include/generated/asm/bugs.h
WRAP arch/arm64/include/generated/asm/clkdev.h
WRAP arch/arm64/include/generated/asm/cputime.h
WRAP arch/arm64/include/generated/asm/delay.h
WRAP arch/arm64/include/generated/asm/div64.h
WRAP arch/arm64/include/generated/asm/dma.h
WRAP arch/arm64/include/generated/asm/dma-contiguous.h
WRAP arch/arm64/include/generated/asm/early_ioremap.h
WRAP arch/arm64/include/generated/asm/emergency-restart.h
WRAP arch/arm64/include/generated/asm/errno.h
WRAP arch/arm64/include/generated/asm/hw_irq.h
WRAP arch/arm64/include/generated/asm/ioctl.h
WRAP arch/arm64/include/generated/asm/ioctls.h
WRAP arch/arm64/include/generated/asm/ipcbuf.h
WRAP arch/arm64/include/generated/asm/irq_regs.h
WRAP arch/arm64/include/generated/asm/kdebug.h
CHK include/generated/uapi/linux/version.h
WRAP arch/arm64/include/generated/asm/kmap_types.h
UPD include/generated/uapi/linux/version.h
WRAP arch/arm64/include/generated/asm/kvm_para.h
WRAP arch/arm64/include/generated/asm/local.h
WRAP arch/arm64/include/generated/asm/local64.h
WRAP arch/arm64/include/generated/asm/mcs_spinlock.h
WRAP arch/arm64/include/generated/asm/mm-arch-hooks.h
WRAP arch/arm64/include/generated/asm/mman.h
WRAP arch/arm64/include/generated/asm/msgbuf.h
WRAP arch/arm64/include/generated/asm/msi.h
WRAP arch/arm64/include/generated/asm/mutex.h
WRAP arch/arm64/include/generated/asm/poll.h
WRAP arch/arm64/include/generated/asm/preempt.h
WRAP arch/arm64/include/generated/asm/resource.h
WRAP arch/arm64/include/generated/asm/rwsem.h
WRAP arch/arm64/include/generated/asm/segment.h
WRAP arch/arm64/include/generated/asm/sembuf.h
WRAP arch/arm64/include/generated/asm/serial.h
WRAP arch/arm64/include/generated/asm/shmbuf.h
WRAP arch/arm64/include/generated/asm/simd.h
WRAP arch/arm64/include/generated/asm/sizes.h
WRAP arch/arm64/include/generated/asm/socket.h
WRAP arch/arm64/include/generated/asm/sockios.h
WRAP arch/arm64/include/generated/asm/swab.h
WRAP arch/arm64/include/generated/asm/switch_to.h
WRAP arch/arm64/include/generated/asm/termbits.h
WRAP arch/arm64/include/generated/asm/termios.h
WRAP arch/arm64/include/generated/asm/trace_clock.h
CHK include/generated/utsrelease.h
WRAP arch/arm64/include/generated/asm/types.h
WRAP arch/arm64/include/generated/asm/unaligned.h
WRAP arch/arm64/include/generated/asm/user.h
WRAP arch/arm64/include/generated/asm/vga.h
WRAP arch/arm64/include/generated/asm/xor.h
UPD include/generated/utsrelease.h
WRAP arch/arm64/include/generated/uapi/asm/kvm_para.h
for i in /home/macbook/android/lineage/kernel/gigaset/gx290/arch/arm64/boot/dts/mediatek/k63v2_64_bsp.dts; do \
base_prj=`grep -m 1 '#include [<\"].*\/cust\.dtsi[>\"]' $i | sed 's/#include [<"]//g'\
| sed 's/\/cust\.dtsi[>"]//g' | sed 's/\/\*//g' | sed 's/\*\///g' | sed 's/ //g'`\
prj_path=./arch/arm64/boot/dts/$base_prj ;\
dws_path=/home/macbook/android/lineage/kernel/gigaset/gx290/drivers/misc/mediatek/dws/mt6763/$base_prj.dws ;\
if [ -f $dws_path ] ; then \
mkdir -p $prj_path ;\
/home/macbook/android/lineage/kernel/gigaset/gx290/tools/dct/DrvGen.py $dws_path $prj_path $prj_path cust_dtsi;\
fi \
done
HOSTCC scripts/basic/fixdep
for i in /home/macbook/android/lineage/kernel/gigaset/gx290/arch/arm64/boot/dts/mediatek/k63v2_64_bsp.dts; do \
base_prj=`grep -m 1 '#include [<\"].*\/cust\.dtsi[>\"]' $i | sed 's/#include [<"]//g'\
| sed 's/\/cust\.dtsi[>"]//g' | sed 's/\/\*//g' | sed 's/\*\///g' | sed 's/ //g'`\
prj_path=./arch/arm64/boot/dts/$base_prj ;\
dws_path=/home/macbook/android/lineage/kernel/gigaset/gx290/drivers/misc/mediatek/dws/mt6763/$base_prj.dws ;\
if [ -f $dws_path ] ; then \
mkdir -p $prj_path ;\
/home/macbook/android/lineage/kernel/gigaset/gx290/tools/dct/DrvGen.py $dws_path $prj_path $prj_path cust_dtsi;\
fi \
done
/bin/sh: 8: /home/macbook/android/lineage/kernel/gigaset/gx290/tools/dct/DrvGen.py: not found
make[1]: *** [/home/macbook/android/lineage/kernel/gigaset/gx290/scripts/drvgen/drvgen.mk:63: arch/arm64/boot/dts/k63v2_64_bsp/cust.dtsi] Fehler 127
make[1]: *** Auf noch nicht beendete Prozesse wird gewartet …
HOSTCC scripts/basic/bin2c
make[1]: Verzeichnis „/home/macbook/android/lineage/out/target/product/GX290/obj/DTB_OBJ“ wird verlassen
make: *** [Makefile:152: sub-make] Fehler 2
make: Verzeichnis „/home/macbook/android/lineage/kernel/gigaset/gx290“ wird verlassen
17:45:01 ninja failed with: exit status 1
#### failed to build some targets (03:47:06 (hh:mm:ss)) ####
Fixed it, see here: https://github.com/MiCode/Xiaomi_Kernel_OpenSource/issues/2371

Categories

Resources