Add changes to support compilation and enablement for
qtee modules on sun. These changes do not enable the
compilation but add a support to enable the driver
compilation just by setting ENABLE_SECUREMSM_QTEE_DLKM to true.
1. Flag ENABLE_SECUREMSM_QTEE_DLKM ensures that we can
enable compilation and enablement of smcinvoke,tzlog and qseecom
driver irrespective of high level KERNEL_DLKM* flags.
2. BUILD.bazel and build/sun.bzl changes to enable bazel
configurations for smcinvoke and tzlog driver once they are enabled
in Android.mk.
Change-Id: I5574c4b328266c3344aac435d034e6639a05fb12
Signed-off-by: Anmolpreet Kaur <quic_anmolpre@quicinc.com>
Make required changes to satisfy external module dependency.
This gives flexibilty for external modules to include
*.h
linux/*.h
Change-Id: I68c5a5842f84622b85da0056f998775f89e6eebf
Steps to test
1. Create symlink
cd kernel_platform
mkdir techpacks
cd techpacks
mkdir securemsm-kernel
cd securemsm-kernel
ln /vendor/qcom/open-source/securemsm-kernel/* .
2. To compile
cd kernel_platfrom
tools/bazel run --lto=thin //techpacks/securemsm-kernel:pineapple_consolidate_securemsm-kernel_dist
3. Test done:
Able to compile smcinvoke/tz_log/qseecom DLKM and able to install it
at
out/target/product/<target>/dlkm/lib/modules
Change-Id: I8258a1351281a0acb05a2e909bbc421d576b4ee0