[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Markus-E:
Thank you for updating the build instructions.

Thank you both for your replies. They helped to figure out my problem: After creating ".repo/local_manifests/tama.xml" it is necessary to run "repo sync" again.

After syncing again, now "lunch lineage_xz2c-userdebug" works but "mka bacon" fails with:

15:23:23 Build sandboxing disabled due to nsjail error.
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=10
LINEAGE_VERSION=17.1-20200531-UNOFFICIAL-xz2c
TARGET_PRODUCT=lineage_xz2c
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=generic
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv8-a
TARGET_2ND_CPU_VARIANT=generic
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.19.0-9-amd64-x86_64-Debian-GNU/Linux-10-(buster)
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=QQ2A.200501.001.B2
OUT_DIR=out
PRODUCT_SOONG_NAMESPACES=vendor/sony/xz2c vendor/sony/tama-common device/sony/tama-common hardware/qcom-caf/sdm845
============================================
device/sony/tama-common/BoardConfigCommon.mk was modified, regenerating...
device/sony/tama-common/BoardConfigCommon.mk was modified, regenerating...
[ 99% 519/520] finishing build rules ...
platform_testing/build/tasks/tests/platform_test_list.mk: warning: platform_tests: Unknown installed file for module 'CalendarTests'
[100% 520/520] writing build rules ...
build/make/core/Makefile:28: warning: overriding commands for target `out/target/product/xz2c/vendor/bin/hw/android.hardware.nfc@1.2-service'
build/make/core/base_rules.mk:480: warning: ignoring old commands for target `out/target/product/xz2c/vendor/bin/hw/android.hardware.nfc@1.2-service'
build/make/core/Makefile:28: warning: overriding commands for target `out/target/product/xz2c/vendor/etc/init/android.hardware.nfc@1.2-service.rc'
build/make/core/base_rules.mk:495: warning: ignoring old commands for target `out/target/product/xz2c/vendor/etc/init/android.hardware.nfc@1.2-service.rc'
build/make/core/Makefile:28: warning: overriding commands for target `out/target/product/xz2c/vendor/lib/ese_spi_nxp.so'
build/make/core/base_rules.mk:480: warning: ignoring old commands for target `out/target/product/xz2c/vendor/lib/ese_spi_nxp.so'
build/make/core/Makefile:28: warning: overriding commands for target `out/target/product/xz2c/vendor/lib/nfc_nci_nxp.so'
build/make/core/base_rules.mk:480: warning: ignoring old commands for target `out/target/product/xz2c/vendor/lib/nfc_nci_nxp.so'
build/make/core/Makefile:28: warning: overriding commands for target `out/target/product/xz2c/vendor/lib/vendor.nxp.nxpese@1.0.so'
build/make/core/base_rules.mk:480: warning: ignoring old commands for target `out/target/product/xz2c/vendor/lib/vendor.nxp.nxpese@1.0.so'
build/make/core/Makefile:28: warning: overriding commands for target `out/target/product/xz2c/vendor/lib/vendor.nxp.nxpnfc@1.0.so'
build/make/core/base_rules.mk:480: warning: ignoring old commands for target `out/target/product/xz2c/vendor/lib/vendor.nxp.nxpnfc@1.0.so'
build/make/core/Makefile:28: warning: overriding commands for target `out/target/product/xz2c/vendor/lib64/ese_spi_nxp.so'
build/make/core/base_rules.mk:480: warning: ignoring old commands for target `out/target/product/xz2c/vendor/lib64/ese_spi_nxp.so'
build/make/core/Makefile:28: warning: overriding commands for target `out/target/product/xz2c/vendor/lib64/nfc_nci_nxp.so'
build/make/core/base_rules.mk:480: warning: ignoring old commands for target `out/target/product/xz2c/vendor/lib64/nfc_nci_nxp.so'
build/make/core/Makefile:28: warning: overriding commands for target `out/target/product/xz2c/vendor/lib64/vendor.nxp.nxpese@1.0.so'
build/make/core/base_rules.mk:480: warning: ignoring old commands for target `out/target/product/xz2c/vendor/lib64/vendor.nxp.nxpese@1.0.so'
build/make/core/Makefile:28: warning: overriding commands for target `out/target/product/xz2c/vendor/lib64/vendor.nxp.nxpnfc@1.0.so'
build/make/core/base_rules.mk:480: warning: ignoring old commands for target `out/target/product/xz2c/vendor/lib64/vendor.nxp.nxpnfc@1.0.so'
[ 0% 526/77060] build out/target/product/xz2c/obj/ETC/sepolicy_neverallows_intermediates/sepolicy_neverallows
FAILED: out/target/product/xz2c/obj/ETC/sepolicy_neverallows_intermediates/sepolicy_neverallows
/bin/bash -c "(ASAN_OPTIONS=detect_leaks=0 out/host/linux-x86/bin/checkpolicy -M -c	30 -o out/target/product/xz2c/obj/ETC/sepolicy_neverallows_intermediates/sepolicy_neverallows.tmp out/target/product/xz2c/obj/ETC/sepolicy_neverallows_intermediates/policy.conf ) && (out/host/linux-x86/bin/sepolicy-analyze out/target/product/xz2c/obj/ETC/sepolicy_neverallows_intermediates/sepolicy_neverallows.tmp neverallow -w -f out/target/product/xz2c/obj/ETC/sepolicy_neverallows_intermediates/policy_2.conf ||	( echo \"\" 1>&2;	echo \"sepolicy-analyze failed. This is most likely due to the use\" 1>&2;	echo \"of an expanded attribute in a neverallow assertion. Please fix\" 1>&2;	echo \"the policy.\" 1>&2;	exit 1 ) ) && (touch out/target/product/xz2c/obj/ETC/sepolicy_neverallows_intermediates/sepolicy_neverallows.tmp ) && (mv out/target/product/xz2c/obj/ETC/sepolicy_neverallows_intermediates/sepolicy_neverallows.tmp out/target/product/xz2c/obj/ETC/sepolicy_neverallows_intermediates/sepolicy_neverallows )"
device/sony/tama-common/sepolicy/vendor/hal_nfc_default.te:9:ERROR 'unknown type hal_nxpese_hwservice' at token ';' on line 86431:
# Allow hal_nfc_default to add and find hal_nxpese_hwservice
allow hal_nfc_default hal_nxpese_hwservice:hwservice_manager { find add };
checkpolicy: error(s) encountered while parsing configuration
[ 0% 527/77060] build out/target/product/xz2c/obj/ETC/sepolicy.recovery_intermediates/sepolicy
FAILED: out/target/product/xz2c/obj/ETC/sepolicy.recovery_intermediates/sepolicy
/bin/bash -c "(ASAN_OPTIONS=detect_leaks=0 out/host/linux-x86/bin/checkpolicy -M -c	30 -o out/target/product/xz2c/obj/ETC/sepolicy.recovery_intermediates/sepolicy.tmp out/target/product/xz2c/obj/ETC/sepolicy.recovery_intermediates/sepolicy.recovery.conf ) && (out/host/linux-x86/bin/sepolicy-analyze out/target/product/xz2c/obj/ETC/sepolicy.recovery_intermediates/sepolicy.tmp permissive > out/target/product/xz2c/obj/ETC/sepolicy.recovery_intermediates/sepolicy.permissivedomains ) && (if [ \"userdebug\" = \"user\" -a -s out/target/product/xz2c/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 out/target/product/xz2c/obj/ETC/sepolicy.recovery_intermediates/sepolicy.permissivedomains 1>&2;	exit 1;	fi ) && (mv out/target/product/xz2c/obj/ETC/sepolicy.recovery_intermediates/sepolicy.tmp out/target/product/xz2c/obj/ETC/sepolicy.recovery_intermediates/sepolicy )"
device/sony/tama-common/sepolicy/vendor/hal_nfc_default.te:9:ERROR 'unknown type hal_nxpese_hwservice' at token ';' on line 94476:
# Allow hal_nfc_default to add and find hal_nxpese_hwservice
allow hal_nfc_default hal_nxpese_hwservice:hwservice_manager { find add };
checkpolicy: error(s) encountered while parsing configuration
[ 0% 539/77060] Building Kernel Config
make: Entering directory '/srv/lineageOS/kernel/sony/sdm845'
make[1]: Entering directory '/srv/lineageOS/out/target/product/xz2c/obj/KERNEL_OBJ'
GEN ./Makefile
drivers/usb/gadget/Kconfig:627:warning: defaults for choice values not supported
#
# configuration written to .config
#
make[1]: Leaving directory '/srv/lineageOS/out/target/product/xz2c/obj/KERNEL_OBJ'
make: Leaving directory '/srv/lineageOS/kernel/sony/sdm845'
make: Entering directory '/srv/lineageOS/kernel/sony/sdm845'
make[1]: Entering directory '/srv/lineageOS/out/target/product/xz2c/obj/KERNEL_OBJ'
GEN ./Makefile
scripts/kconfig/conf --savedefconfig=defconfig Kconfig
drivers/usb/gadget/Kconfig:627:warning: defaults for choice values not supported
make[1]: Leaving directory '/srv/lineageOS/out/target/product/xz2c/obj/KERNEL_OBJ'
make: Leaving directory '/srv/lineageOS/kernel/sony/sdm845'
15:23:58 ninja failed with: exit status 1

#### failed to build some targets (35 seconds) ####

I noticed that "hal_nxpese_hwservice" was added in the most recent commit to the github android_device_sony_tama-common repository. Is is possible that the current revision can not be compiled?