PD#SWPL-211590
Problem:
supports direct compilation using tools/bazel
Solution:
1. Default is the trunk's kernel, and can also be configured to
use the project kernel.
2. Default is the trunk's build.config.project, and can also be configured to
use the project's build.config.project.
3. Default is the trunk's Kconfig.ext_modules, and can also be configured to
use the project's Kconfig.ext_modules.
4. Default is the trunk's project.bzl, and can also be configured to
use the project's project.bzl. For other drivers' BUILD.bazel,
currently the corresponding GKI_CONFIG is automatically selected
based on the project. Other members are not distinguished at present.
5. Package all variables in project.bzl into a struct called project_configs,
which facilitates accessing the corresponding variables on a per-project basis.
6. Remove the DDK dependency check mechanism. However,
since it is protected by the configuration of the config, the impact is
not significant.
7. Change kernel_build to kernel_select in ddk_module.
8. support build command:
tools/bazel run --config=adt4 //project/sei/adt4:adt4_dist
./mk.sh --package adt4
9. Optimize the Bazel configure settings.
10. Optimize the copying of ko sources.
11. Optimize the copying of ko sources with debugging symbols.
12. Optimize the paths of some temporary files, so that the files are located
in the out directory instead of the /tmp directory.
Verify:
local
Test:
PB
Change-Id: I38f631215a41156910ae378c34c92de5a255309f
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
PD#SWPL-201692
Problem:
meson_rtc_handler be processed in irq context, spinlock in subsequent call
of meson_rtc_handler cannot be used, due to spinlock is sleeping lock in
preempt rt kernel
Solution:
threaded rtc interrupt
Verify:
on A5
Change-Id: I81ebed52d5b111c553f55fff5f2dd6c440e94adc
Signed-off-by: Lei Zhang <lei.zhang@amlogic.com>
PD#SWPL-208157
Problem:
use kernel build ddk_module_headers
Solution:
use kernel build ddk_module_headers
Verify:
local
Test:
local
Change-Id: I68cb33366c826fcd58fdb0a040229011ea669064
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
PD#SWPL-206164
Problem:
ddk_module cannot find Kconfig and Makefile in sub package
Solution:
add Kconfig and Makefile srcs to common kernel srcs
Verify:
local
Test:
local
Change-Id: I3e71b7e1ddea15e9d32efc0e6cb7e8e81b95b793
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
PD#SWPL-195997
Problem:
the drivers in the common_drivers directory can be built using DDK
with gki_20 mode, it is also compatible with the original build.
Solution:
add BUILD.bazel and modify build script
Verify:
sc2
Test:
PB
Change-Id: Ie138e63f4eec8715d976d421dc8a431bcfadd859
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
PD#SWPL-192783
Problem:
insmod rtc will reads alarm and converts it to standard time.
UBSAN detects that the alarm is converted to the standard time and
a data overflow warning is generated
Solution:
fix code
Verify:
sc2
Change-Id: Ia9aacddfa97d15e2019d927cc54747fee539675b
Signed-off-by: yiting.deng <yiting.deng@amlogic.com>
PD#SWPL-141475
Problem:
set alarm A second, then clear alarm using echo 0 cmd,
suspend or poweroff will delay A second resume/boot
Solution:
add code clear driver store alarm para after set alarm
Verify:
t5d, t3, sc2, s4
Change-Id: Iee848ab5949edcb3b6e92027ae4410124d38fcec
Signed-off-by: yiting.deng <yiting.deng@amlogic.com>
PD#SWPL-118972
Problem:
kernel5.15 cannot set the next alarm immediately after resume,
setting a new alarm will be delayed for about the time of the
previous alarm.
Solution:
fix the time of calling the callback function of timer in vrtc.
Verify:
SC2_S905X4_AH212
t3_t985d4
t5m_ay309
Change-Id: I8e1be13c5f64279a2698e43643fa8a06eb6220d9
Signed-off-by: yiting.deng <yiting.deng@amlogic.com>
PD#SWPL-112358
Problem:
ad403 is missing pmic6b driver in kernel5.15.
Solution:
base Yu Tu 76117 and 78726;
base Jian yi 189702 and 192916,216774;
and yao jie 216898;
Verify:
A113L-AD401 #1 +Battery.
all driver use ko;
Change-Id: I911ca92dbe6f8c0f623e32fd14bdcf23a6318861
Signed-off-by: chengbing wu <chengbing.wu@amlogic.com>
PD#SWPL-70486
Problem:
use common tag in driver when printf
Solution:
set common pr_fmt in driver
Verify:
s4d
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
Change-Id: Ieee271d289e4d2f81258875d36288046b996a5d2