[Android] Netzheimer:
Okay thanks for this quick help. After trying first solution the second worked.

Unfortunately I got the next error:

andi@andi-ubuntu:~/android/system$ time brunch n8013
including vendor/cm/vendorsetup.sh
Trying dependencies-only mode on a non-existing device tree?

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.2
LINEAGE_VERSION=14.1-20180219-UNOFFICIAL-n8013
TARGET_PRODUCT=lineage_n8013
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-4.13.0-32-generic-x86_64-with-Ubuntu-17.10-artful
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=NJH47F
OUT_DIR=/home/andi/android/system/out
WITH_SU=true
============================================
make: Entering directory '/home/andi/android/system'
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.2
LINEAGE_VERSION=14.1-20180219-UNOFFICIAL-n8013
TARGET_PRODUCT=lineage_n8013
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-4.13.0-32-generic-x86_64-with-Ubuntu-17.10-artful
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=NJH47F
OUT_DIR=/home/andi/android/system/out
WITH_SU=true
============================================
Running kati to generate build-lineage_n8013.ninja...
/home/andi/android/system/out/build-lineage_n8013.ninja is missing, regenerating...
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.2
LINEAGE_VERSION=14.1-20180219-UNOFFICIAL-n8013
TARGET_PRODUCT=lineage_n8013
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-4.13.0-32-generic-x86_64-with-Ubuntu-17.10-artful
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=NJH47F
OUT_DIR=/home/andi/android/system/out
WITH_SU=true
============================================
find: ‘/home/andi/android/system/out/target/common/obj/SHARED_LIBRARIES/libwifi-hal-mock_intermediates’: No such file or directory
*** Overlay change detected, clean shared intermediate files...
*** rm -rf /home/andi/android/system/out/target/common/obj/APPS/DocumentsUI_intermediates /home/andi/android/system/out/target/common/obj/APPS/SystemUITests_intermediates /home/andi/android/system/out/target/common/obj/APPS/TelephonyProvider_intermediates /home/andi/android/system/out/target/common/obj/APPS/Settings_intermediates /home/andi/android/system/out/target/common/obj/APPS/framework-res_intermediates /home/andi/android/system/out/target/common/obj/APPS/Camera2_intermediates /home/andi/android/system/out/target/common/obj/APPS/Trebuchet_intermediates /home/andi/android/system/out/target/common/obj/APPS/CMParts_intermediates /home/andi/android/system/out/target/common/obj/APPS/CMSettingsProvider_intermediates /home/andi/android/system/out/target/common/obj/APPS/org.cyanogenmod.platform-res_intermediates /home/andi/android/system/out/target/common/obj/APPS/LatinIME_intermediates /home/andi/android/system/out/target/common/obj/APPS/TeleService_intermediates /home/andi/android/system/out/target/common/obj/APPS/SettingsProvider_intermediates /home/andi/android/system/out/target/common/obj/APPS/SystemUI_intermediates
PRODUCT_COPY_FILES device/samsung/smdk4412-common/rootdir/ueventd.smdk4x12.rc:root/ueventd.smdk4x12.rc ignored.
PRODUCT_COPY_FILES device/samsung/smdk4412-common/rootdir/ueventd.smdk4x12.rc:recovery/root/ueventd.smdk4x12.rc ignored.
PRODUCT_COPY_FILES device/samsung/smdk4412-common/configs/audio_effects.conf:system/etc/audio_effects.conf ignored.
PRODUCT_COPY_FILES device/samsung/smdk4412-common/configs/audio_policy.conf:system/etc/audio_policy.conf ignored.
PRODUCT_COPY_FILES device/samsung/smdk4412-common/configs/gps.conf:system/etc/gps.conf ignored.
PRODUCT_COPY_FILES device/samsung/smdk4412-common/configs/media_profiles.xml:system/etc/media_profiles.xml ignored.
build/core/Makefile:54: Duplicate header copy: /home/andi/android/system/out/target/product/n8013/obj/include/libsecmm/mfc_errno.h
build/core/Makefile:54: Defined in: hardware/samsung/exynos/multimedia/codecs/video/exynos4/mfc/Android.mk hardware/samsung/exynos/multimedia/codecs/video/exynos4/mfc/Android.mk hardware/samsung/exynos/multimedia/codecs/video/exynos4/mfc/Android.mk
build/core/Makefile:54: Duplicate header copy: /home/andi/android/system/out/target/product/n8013/obj/include/libsecmm/mfc_interface.h
build/core/Makefile:54: Defined in: hardware/samsung/exynos/multimedia/codecs/video/exynos4/mfc/Android.mk hardware/samsung/exynos/multimedia/codecs/video/exynos4/mfc/Android.mk hardware/samsung/exynos/multimedia/codecs/video/exynos4/mfc/Android.mk
build/core/Makefile:54: Duplicate header copy: /home/andi/android/system/out/target/product/n8013/obj/include/libsecmm/SsbSipMfcApi.h
build/core/Makefile:54: Defined in: hardware/samsung/exynos/multimedia/codecs/video/exynos4/mfc/Android.mk hardware/samsung/exynos/multimedia/codecs/video/exynos4/mfc/Android.mk hardware/samsung/exynos/multimedia/codecs/video/exynos4/mfc/Android.mk
vendor/cm/build/tasks/kernel.mk:159: ***************************************************************
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/samsung/smdk4412
vendor/cm/build/tasks/kernel.mk:164: * for more information *
vendor/cm/build/tasks/kernel.mk:165: ***************************************************************
build/core/Makefile:34: warning: overriding commands for target `/home/andi/android/system/out/target/product/n8013/system/etc/permissions/android.software.live_wallpaper.xml'
build/core/base_rules.mk:320: warning: ignoring old commands for target `/home/andi/android/system/out/target/product/n8013/system/etc/permissions/android.software.live_wallpaper.xml'
Starting build with ninja
ninja: Entering directory `.'
ninja: error: '/home/andi/android/system/out/target/product/n8013/kernel', needed by '/home/andi/android/system/out/target/product/n8013/boot.img', 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: Leaving directory '/home/andi/android/system'

#### make failed to build some targets (26 seconds) ####

real	0m26,784s
user	0m18,902s
sys	0m2,255s

and my manifest.xml with the used kernel, vendor and device sources:

https://pastebin.com/Ws11sRSa