[Shield Android TV General] locki:
i will try make there how to do it, because i want know how to do it ... i am noob in compiling but how to looks "simple" for me ... noob friendly,

1) install ubuntu 14.04 LTS 64bit, i downloaded 18.04 LTS i hope it will works same way

2) prepare your compiling device

https://source.android.com/setup/build/initializing

http://source.android.com/source/downloading.html#installing-repo

3) download it all! :) it is really big

repo init -u git://nv-tegra.nvidia.com/manifest/android/binary.git -b rel-30-r3-partner -m tlk/t210.xml

4) then follow: http://nv-tegra.nvidia.com/gitweb/?...ob_plain;f=README_SHIELD;hb=rel-30-r3-partner

5) and there compile:

https://bitbucket.org/nopnop9090/shieldtv-kernel/wiki/Home

root@ubuntu:~/shield-open-source# . build/envsetup.sh
including device/asus/fugu/vendorsetup.sh
including device/generic/mini-emulator-arm64/vendorsetup.sh
including device/generic/mini-emulator-armv7-a-neon/vendorsetup.sh
including device/generic/mini-emulator-mips64/vendorsetup.sh
including device/generic/mini-emulator-mips/vendorsetup.sh
including device/generic/mini-emulator-x86_64/vendorsetup.sh
including device/generic/mini-emulator-x86/vendorsetup.sh
including device/google/dragon/vendorsetup.sh
including device/google/marlin/vendorsetup.sh
including device/huawei/angler/vendorsetup.sh
including device/lge/bullhead/vendorsetup.sh
including device/linaro/hikey/vendorsetup.sh
including vendor/nvidia/build/vendorsetup.sh
including sdk/bash_completion/adb.bash
root@ubuntu:~/shield-open-source# setpaths
root@ubuntu:~/shield-open-source# lunch foster_e-userdebug

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=8.0.0
TARGET_PRODUCT=foster_e
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_PLATFORM_VERSION=OPR1
TARGET_BUILD_APPS=
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=generic
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv7-a-neon
TARGET_2ND_CPU_VARIANT=cortex-a15
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.15.0-46-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=OPR6.170623.010
OUT_DIR=out
AUX_OS_VARIANT_LIST=
============================================
root@ubuntu:~/shield-open-source# mp bootimage -j3
make: Entering directory '/root/shield-open-source'
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=8.0.0
TARGET_PRODUCT=foster_e
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=armv7-a-neon
TARGET_2ND_CPU_VARIANT=cortex-a15
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.15.0-46-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=OPR6.170623.010
OUT_DIR=out
============================================
ninja: no work to do.
[1/2] glob vendor/*/*/Android.bp
ninja: no work to do.
out/ninja-foster_e.sh is missing, regenerating...
[10/981] including ./cts/Android.mk ...
cts/apps/CtsVerifier/Android.mk:72: warning: FindEmulator: find: `cts/apps/CtsVerifier/src/com/android/cts/verifier/backup': No such file or directory
build/core/java_common.mk:88: warning: FindEmulator: cd: cts/hostsidetests/appsecurity/test-apps/WriteExternalStorageApp/cts/hostsidetests/appsecurity/test-apps/WriteExternalStorageApp/res: No such file or directory
build/core/java_common.mk:88: warning: FindEmulator: cd: cts/hostsidetests/backup/assets: No such file or directory
cts/hostsidetests/os/test-apps/StaticSharedNativeLibProvider/Android.mk:23: warning: FindEmulator: find: `cts/hostsidetests/os/test-apps/StaticSharedNativeLibProvider/src': No such file or directory
cts/hostsidetests/os/test-apps/StaticSharedNativeLibProvider1/Android.mk:23: warning: FindEmulator: find: `cts/hostsidetests/os/test-apps/StaticSharedNativeLibProvider1/src': No such file or directory
cts/tests/tests/contactsproviderwipe/Android.mk:33: warning: FindEmulator: find: `cts/tests/tests/contactsproviderwipe/common/src': No such file or directory
cts/tests/tests/telecom3/Android.mk:37: warning: FindEmulator: find: `cts/tests/tests/telecom/src/android/telecom/cts/MockDialerActivity.java': No such file or directory
[328/981] including ./external/toybox/Android.mk ...
awk: line 1: syntax error at or near ,
[360/981] including ./frameworks/av/media/libaaudio/Android.mk ...
frameworks/av/media/libaaudio/examples/input_monitor/static/Android.mk: warning: input_monitor: unusual tags examples
frameworks/av/media/libaaudio/examples/write_sine/static/Android.mk: warning: write_sine: unusual tags examples
[394/981] including ./frameworks/base/Android.mk ...
./frameworks/base/Android.mk:865: warning: FindEmulator: find: `frameworks/opt/telephony/src/java/android/provider': No such file or directory
./frameworks/base/Android.mk:874: warning: FindEmulator: find: `frameworks/opt/telephony/src/java/android/provider': No such file or directory
./frameworks/base/Android.mk:879: warning: FindEmulator: find: `frameworks/opt/telephony/src/java/android/provider': No such file or directory
./frameworks/base/Android.mk:884: warning: FindEmulator: find: `frameworks/opt/telephony/src/java/android/provider': No such file or directory
[724/981] including ./system/sepolicy/Android.mk ...
./system/sepolicy/Android.mk:107: warning: BOARD_SEPOLICY_VERS not specified, assuming current platform version
[981/981] including ./vendor/nvidia/tegra/Android.mk ...
PRODUCT_COPY_FILES device/nvidia/platform/t210/fstab_m.t210ref_encrypt:root/fstab.jetson_e ignored.
PRODUCT_COPY_FILES device/nvidia/platform/t210/fstab_m.t210ref_encrypt:root/fstab.jetson_cv ignored.
PRODUCT_COPY_FILES device/nvidia/common/init.recovery.android.usb.rc:root/init.recovery.usb.rc ignored.
Factory: Ramdisk module not defined
Factory: Building default.prop
platform_testing/build/tasks/tests/instrumentation_metric_test_list.mk: warning: continuous_instrumentation_metric_tests: Unknown installed file for module perf-setup.sh
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module RecyclerViewTests
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module SettingsFunctionalTests
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module LauncherFunctionalTests
platform_testing/build/tasks/tests/native_metric_test_list.mk: warning: continuous_native_metric_tests: Unknown installed file for module perf-setup.sh
test/vts/tools/build/tasks/vts_package.mk:216: warning: FindEmulator: cd: vendor/google_vts/testcases: No such file or directory
test/vts/tools/build/tasks/vts_package.mk:216: warning: FindEmulator: cd: vendor/google_vts/testcases: No such file or directory
test/vts/tools/build/tasks/vts_package.mk:216: warning: FindEmulator: cd: vendor/google_vts/testcases: No such file or directory
build/core/base_rules.mk:466: warning: overriding commands for target `out/host/linux-x86/cts/android-cts/testcases/libcrash-jni.so'
build/core/base_rules.mk:466: warning: ignoring old commands for target `out/host/linux-x86/cts/android-cts/testcases/libcrash-jni.so'
build/core/base_rules.mk:466: warning: overriding commands for target `out/target/product/t210/testcases/libcrash-jni/libcrash-jni.so'
build/core/base_rules.mk:466: warning: ignoring old commands for target `out/target/product/t210/testcases/libcrash-jni/libcrash-jni.so'
build/core/base_rules.mk:466: warning: overriding commands for target `out/target/product/t210/testcases/hello_world_test/hello_world_test'
build/core/base_rules.mk:466: warning: ignoring old commands for target `out/target/product/t210/testcases/hello_world_test/hello_world_test'
./test/vts/utils/python/archive/Android.mk:28: warning: overriding commands for target `default'
./test/vts/runners/host/tcp_server/Android.mk:19: warning: ignoring old commands for target `default'
./test/vts/utils/python/coverage/Android.mk:28: warning: overriding commands for target `default'
./test/vts/utils/python/archive/Android.mk:28: warning: ignoring old commands for target `default'
build/core/Makefile:34: warning: overriding commands for target `out/target/product/t210/system/etc/hosts'
build/core/base_rules.mk:374: warning: ignoring old commands for target `out/target/product/t210/system/etc/hosts'
build/core/Makefile:34: warning: overriding commands for target `out/target/product/t210/root/init.nvphsd.rc'
build/core/base_rules.mk:374: warning: ignoring old commands for target `out/target/product/t210/root/init.nvphsd.rc'
build/core/Makefile:34: warning: overriding commands for target `out/target/product/t210/root/init.sata.configs.rc'
build/core/base_rules.mk:374: warning: ignoring old commands for target `out/target/product/t210/root/init.sata.configs.rc'
build/core/Makefile:34: warning: overriding commands for target `out/target/product/t210/system/bin/badblocks'
build/core/base_rules.mk:374: warning: ignoring old commands for target `out/target/product/t210/system/bin/badblocks'
build/core/Makefile:34: warning: overriding commands for target `out/target/product/t210/root/init.tlk.rc'
build/core/base_rules.mk:374: warning: ignoring old commands for target `out/target/product/t210/root/init.tlk.rc'
build/core/Makefile:34: warning: overriding commands for target `out/target/product/t210/root/init.hdcp.rc'
build/core/base_rules.mk:374: warning: ignoring old commands for target `out/target/product/t210/root/init.hdcp.rc'
14:01:59 ckati failed with: signal: killed
build/core/main.mk:21: recipe for target 'run_soong_ui' failed
make: *** [run_soong_ui] Error 1
make: Leaving directory '/root/shield-open-source'

[COLOR="Red"]#### make failed to build some targets (02:40 (mm:ss)) ####[/COLOR]

I am doing something wrong ... I added more memory but:

ninja: no work to do.

ninja: no work to do.

No need to regenerate ninja file

[ 0% 1/10231] Lex: checkpolicy <= external/selinux/checkpolicy/policy_scan.l

FAILED: out/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/policy_scan.c

/bin/bash -c "prebuilts/misc/linux-x86/flex/flex-2.5.39 -oout/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/policy_scan.c external/selinux/checkpolicy/policy_scan.l"

flex-2.5.39: loadlocale.c:130: _nl_intern_locale_data: Assertion `cnt < (sizeof (_nl_value_type_LC_TIME) / sizeof (_nl_value_type_LC_TIME[0]))' failed.

Aborted (core dumped)

[ 0% 2/10231] target C++: libadbd <= system/core/adb/fdevent.cpp

ninja: build stopped: subcommand failed.

18:35:18 ninja failed with: exit status 1

build/core/main.mk:21: recipe for target 'run_soong_ui' failed

make: *** [run_soong_ui] Error 1

make: Leaving directory '/root/shield-open-source'

edit2: fixed by:

export LC_ALL=C

find: paths must precede expression: `tegra210*.dtb'

[100% 4/4] Target boot image: out/target/product/t210/boot.img

out/target/product/t210/boot.img maxsize=53526528 blocksize=4224 total=13676544 reserve=540672

make: Leaving directory '/root/shield-open-source'

now how to add modules ...

root@ubuntu:~/shield-open-source/kernel/kernel-4.9# scripts/diffconfig .config.old .config-new

DVB_SI2168 m -> y

DVB_SI21XX m -> y

DVB_USB n -> y

DVB_USB_V2 n -> y

MEDIA_TUNER_R820T m -> y

MEDIA_TUNER_SI2157 m -> y

MEDIA_TUNER_SIMPLE m -> y

MEDIA_TUNER_TDA9887 m -> y

NTFS_FS n -> y

+DVB_USB_A800 n

+DVB_USB_AF9005 n

+DVB_USB_AF9015 n

+DVB_USB_AF9035 n

+DVB_USB_ANYSEE n

+DVB_USB_AU6610 n

+DVB_USB_AZ6007 n

+DVB_USB_AZ6027 n

+DVB_USB_CE6230 n

+DVB_USB_CINERGY_T2 n

+DVB_USB_CXUSB n

+DVB_USB_DEBUG y

+DVB_USB_DIB0700 n

+DVB_USB_DIBUSB_MB n

+DVB_USB_DIBUSB_MC n

+DVB_USB_DIGITV n

+DVB_USB_DTT200U n

+DVB_USB_DTV5100 n

+DVB_USB_DVBSKY n

+DVB_USB_DW2102 n

+DVB_USB_EC168 n

+DVB_USB_FRIIO n

+DVB_USB_GL861 n

+DVB_USB_GP8PSK n

+DVB_USB_LME2510 n

+DVB_USB_M920X n

+DVB_USB_MXL111SF n

+DVB_USB_NOVA_T_USB2 n

+DVB_USB_OPERA1 n

+DVB_USB_PCTV452E n

+DVB_USB_RTL28XXU n

+DVB_USB_TECHNISAT_USB2 n

+DVB_USB_TTUSB2 n

+DVB_USB_UMT_010 n

+DVB_USB_VP702X n

+DVB_USB_VP7045 n

+NTFS_DEBUG n

+NTFS_RW y

find: paths must precede expression: `tegra210*.dtb'

[100% 4/4] Target boot image: out/target/product/t210/boot.img

out/target/product/t210/boot.img maxsize=53526528 blocksize=4224 total=13676544 reserve=540672

make: Leaving directory '/root/shield-open-source'

#### make completed successfully (01:22 (mm:ss)) ####

it is correct? :)

if somebody want test it without any support/warranty ... there is link https://mega.nz/#!RctAnAZI!_jK4bxvAtHebcCGhBA7ahDgIfJQQ1JjXckcTFZctsQ0 i dont have time fort this ... 2015 16g version