15 Commits

Author SHA1 Message Date
zhaoxp3
9e32eb4254 AndroidKernelModule.mk: add crow in Build_external_kernelmodule.mk
add crow for a new mechansim for
building external modules

Change-Id: Ia85ebb1f553ae7ba7d2a170cc4c133a779b41316
Signed-off-by: zhaoxp3 <zhaoxp3@motorola.com>
Reviewed-on: https://gerrit.mot.com/2730443
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2023-09-12 00:45:46 -05:00
zhaoxp3
672359fba1 AndroidKernelModule.mk: add bengal in Build_external_kernelmodule.mk
add Build_external_kernelmodule.mk for new sm6225 base.

Change-Id: I1b1b7a82ac9040e0c6d0f66af34bf4d09ee0ec97
Signed-off-by: zhaoxp3 <zhaoxp3@motorola.com>
Reviewed-on: https://gerrit.mot.com/2647687
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2023-06-20 01:10:06 -05:00
zhangly19
4d4e63a83c Add parrot in Build_external_kernelmodule.mk
add  parrot(6450) a new mechansim for
building external modules.

Change-Id: I1bdd6b55482fdd6ada9f63e160a27de33b664f83
Reviewed-on: https://gerrit.mot.com/2306144
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Tested-by: Jira Key
Submit-Approved: Liyun Zhang <zhangly19@lenovo.com>
2022-06-21 22:46:48 -05:00
Yinjun Chen
75d2b91660 Add kalama in Build_external_kernelmodule.mk
Add "kalama" to use a new mechansim for building external modules.

Change-Id: Iae3650749c6c8ca3ee6920e194284388012a74ac
Reviewed-on: https://gerrit.mot.com/2234561
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Yinjun Chen <a7301c@motorola.com>
2022-04-05 21:20:49 -05:00
Xiaojun Ji
7106c1eae9 Revert "(CR) build: Only include modules needed by product"
After apply https://gerrit.mot.com/#/c/2078132/, the FPS is available after
flashing GKI but the touch(focaltech_v2_mmi) will be unavailable on courfr

This reverts commit 284e4b4bb7693a6c9552afefe5b4fe8944baa0b0.

Change-Id: I9f6ff86b0d9179aedc66c09e9358a052a01b3fc4
Reviewed-on: https://gerrit.mot.com/2078503
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Reviewed-by: Jianlin Nie <niejl1@motorola.com>
Submit-Approved: Jira Key
2021-09-28 04:39:34 -05:00
jixj
605998546f build: Only include modules needed by product
It takes long time to include all DLKM's makefile even if the
product does not need this module.

Time of "make bootimage" on user build:
- without change: 23 mins
- with change: 9 mins

Change-Id: Icf0cd01b318a17457336dc7627cbf1ab3a8c78b8
Reviewed-on: https://gerrit.mot.com/2057699
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Minghui Wei <weimh1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-09-09 21:54:53 -05:00
qianlong
6b3cd4b54c build: Only include modules needed by product
It takes long time to include all DLKM's makefile even if the
product does not need this module.

Change-Id: I8629ac29a3f7e115c04dc24d2508366314716dac
Signed-off-by: qianlong <qianl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2059989
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2021-09-06 05:06:24 -05:00
a7301c
dc892e9b1f Add support for Build_external_kernelmodule.mk
The Android build infrastructure is transitioning to a new
mechansim for building external modules.
Starting from Taro(8450), update moto drivers to use that
mechanism.

Change-Id: Ic3640feabd6bd77334861d3f73082907ed88648b
Signed-off-by: a7301c <a7301c@motorola.com>
Reviewed-on: https://gerrit.mot.com/1941175
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
2021-05-11 09:36:02 -05:00
xizx
9ec97ffd6f AndroidKernelModule.mk: use Qcom dlkm file for GKI products
In order to keep compatability with current Moto products, GKI products
should use qcom dlkm files for GKI compile.

Including original qcom dlkm file will also easily sync with Qcom's changes.

Change-Id: I2373003e8149a2cfb9a2fbb4bf4784297d30d7e1
Reviewed-on: https://gerrit.mot.com/1709604
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
2020-07-30 20:32:40 -05:00
xizx
cf7a662832 Revert "(CR): AndroidKernelModule.mk: sync the file with qcom dlkm"
This reverts commit f7086a2737502e42fa690fb7bf6b1685816cdeb7.

The previous commit will cause doha, rav, buron-r jenkins job failure, because
some drivers have many warning as error. so revert the new patch

Change-Id: Iec55a038cdf8a844f023128fc84294d05e64e861
Reviewed-on: https://gerrit.mot.com/1709428
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Raja Phani K <a16821@motorola.com>
Submit-Approved: Raja Phani K <a16821@motorola.com>
2020-07-30 00:30:28 -05:00
xizx
af6219d26e AndroidKernelModule.mk: sync the file with qcom dlkm
fix the compile error during GKI kernel 5.4:
FAILED: ninja: 'out/target/product/jordan/dlkm/lib/modules/gki/utags.ko', needed by 'out/target/product/jordan/vendor/lib/modules/5.4-gki/utags.ko', missing and no known rule to make it

When build user variant, Qcom will build all kernel and modules with both
GKI and QGKI kernel configs, so Moto kernel modules should use the qcom's
latest dlkm's AndroidKernelModule.mk

Change-Id: Id7ca3976e1084474c801822cac07057c4466ba9c
Reviewed-on: https://gerrit.mot.com/1706097
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2020-07-29 20:48:55 -05:00
a7301c
5d6c6412e0 Use kernel_definitions.mk if AndroidKernel.mk not existed
Since all the definitions of Qcom's kernel 5.4 are now in
device/qcom/kernelscripts/kernel_definitions.mk,
And AndroidKernelModule.mk is removed in kernel 5.4.
So include kernel_definitions.mk instead for baseline
that does not have AndroidKernelModule.mk.

Change-Id: I3b995554697d04f06658448eedd19f98e6196db2
Signed-off-by: a7301c <a7301c@motorola.com>
Reviewed-on: https://gerrit.mot.com/1650768
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
2020-06-30 06:44:26 -05:00
a7301c
6fb73ee052 Pass absolute path of "TOP" to Kbuild.
In R, Only a few limite environment variables are passed
to ninjia, others will be cleared.
So, pass this "TOP" specically to kernel modules build.
And have to be absolute path.
Otherwise, the header can't be located.

Change-Id: I7820e3d8112611c1c16a1807ea57ab9949416918
Reviewed-on: https://gerrit.mot.com/1508821
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Submit-Approved: Jira Key
Tested-by: Jira Key
Reviewed-by: Yinjun Chen <a7301c@motorola.com>
Reviewed-on: https://gerrit.mot.com/1540154
2020-04-22 11:24:25 -05:00
Ryan Lattrel
66c7358fca add clang build option
Add option to build using clang via
USE_CLANG_FOR_MODULES. Add to the appropriate
board file for the product that needs clang.

Change-Id: I05578ac49de38887b3f359276a3350d0bb5a18db
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1399094
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2019-08-08 22:17:12 +00:00
Kenny Kessler
b0416cac67 motorola: dlkm: Initial AndroidKernelModule.mk
Add the Android Kernel Module Makefile that all motorola
dlkm will reference.

Change-Id: I2676c8ecf94099b8de8f33a708946bfd4356dd0e
Signed-off-by: Kenny Kessler <kenny.kessler@motorola.com>
Reviewed-on: https://gerrit.mot.com/1099028
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Reviewed-by: Igor Kovalenko <igork@motorola.com>
Submit-Approved: Jira Key
2017-12-05 11:26:05 -06:00