Skip to content

Instantly share code, notes, and snippets.

@subashz
Created July 10, 2020 18:22
Show Gist options
  • Save subashz/bd540dd676767b5f06149b068b1348cb to your computer and use it in GitHub Desktop.
Save subashz/bd540dd676767b5f06149b068b1348cb to your computer and use it in GitHub Desktop.
destroy_build_var_cache:unset:5: var_cache_ ANDROID_BUILD_PATHS OUT_DIR print report_config TARGET_ARCH TARGET_BUILD_VARIANT TARGET_DEVICE TARGET_GCC_VERSION
TARGET_PLATFORM_VERSION TARGET_PRODUCT TARGET_2ND_ARCH 2ND_TARGET_GCC_VERSION : invalid parameter name
: ZSH seems to be causing the problem, switch to bash
@subashz
Copy link
Author

subashz commented Jul 10, 2020

If you had cloned the device tree and
brunch device shows
if device not found error then, check the device tree version, it may be the issues
eg device tree for lineage-16 may not work for lineage-15

net/Kconfig:80: can't open file "net/wireguard/Kconfig"
These type of error failed can occured if the scripts/{fetch_wireguard} exit with error, so you need to update that script And search for that latest script to download wireguard in other's device kernel file.

Sometimes you may get error like print << something >> files.py
That may be due to invalid python version, use python2 as your environment

vendor/cm/build/tasks/kernel.mk:160: * Using prebuilt kernel binary instead of source *
vendor/cm/build/tasks/kernel.mk:161: * THIS IS DEPRECATED, AND WILL BE DISCONTINUED *
vendor/cm/build/tasks/kernel.mk:162: * Please configure your device to download the kernel *
vendor/cm/build/tasks/kernel.mk:163: * source repository to kernel/generic/android_x86 *
vendor/cm/build/tasks/kernel.mk:164: * for more information. *

Basically, download the kernel source to something like kernel// and add two Makefile variables into BoardConfig:
TARGET_KERNEL_SOURCE := TARGET_KERNEL_CONFIG := <name of defconfig from /arch//configs>

@subashz
Copy link
Author

subashz commented Jul 11, 2020

/bin/bash -c "(ASAN_OPTIONS=detect_leaks=0 /home/subash/dev/os/docker-lineageos/android/out/host/linux-x86/bin/checkpolicy -M -c 30 -o /home/subash/dev/os/docker-lineageos/android/out/target/product/on7xelte/obj/ETC/sepolicy.recovery_intermediates/sepolicy.tmp /home/subash/dev/os/docker-lineageos/android/out/target/product/on7xelte/obj/ETC/sepolicy.recovery_intermediates/sepolicy.recovery.conf ) && (/home/subash/dev/os/docker-lineageos/android/out/host/linux-x86/bin/sepolicy-analyze /home/subash/dev/os/docker-lineageos/android/out/target/product/on7xelte/obj/ETC/sepolicy.recovery_intermediates/sepolicy.tmp permissive > /home/subash/dev/os/docker-lineageos/android/out/target/product/on7xelte/obj/ETC/sepolicy.recovery_intermediates/sepolicy.permissivedomains ) && (if [ "userdebug" = "user" -a -s /home/subash/dev/os/docker-lineageos/android/out/target/product/on7xelte/obj/ETC/sepolicy.recovery_intermediates/sepolicy.permissivedomains ]; then echo "==========" 1>&2; echo "ERROR: permissive domains not allowed in user builds" 1>&2; echo "List of invalid domains:" 1>&2; cat /home/subash/dev/os/docker-lineageos/android/out/target/product/on7xelte/obj/ETC/sepolicy.recovery_intermediates/sepolicy.permissivedomains 1>&2; exit 1; fi ) && (mv /home/subash/dev/os/docker-lineageos/android/out/target/product/on7xelte/obj/ETC/sepolicy.recovery_intermediates/sepolicy.tmp /home/subash/dev/os/docker-lineageos/android/out/target/product/on7xelte/obj/ETC/sepolicy.recovery_intermediates/sepolicy )"
device/samsung/on7xelte/sepolicy/installd.te:5:ERROR 'Duplicate declaration of type' at token ';' on line 45923:

device/samsung/on7xelte/sepolicy/property.te:7:ERROR 'Duplicate declaration of type' at token ';' on line 45235:

This happens because, I also have those defination in common tree.
So, remove that declaration from one of them. either from main device tree or from the common-tree.

@subashz
Copy link
Author

subashz commented Jul 11, 2020

firmware/gnss_firmware.bin.gen.S:5: Error: file not found: firmware/gnss_firmware.bin
make[2]: *** [/home/subash/dev/os/docker-lineageos/android/kernel/samsung/exynos7870/scripts/Makefile.build:293: firmware/gnss_firmware.bin.gen.o] Error 1

Chomod -R 777 * for the whole kernel folder.

Also seems like my .repo folder was owned my other local user in my laptop .
So, I need to Chomod -R 777 * .repo folder and
also the entier lineage source code.
//

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment