Commit Graph

4 Commits

Author SHA1 Message Date
Dezhen Wang 67129f92fb scripts: remove unused code in scripts and optimize scripts [1/1]
PD#SWPL-216228

Problem:
scripts have some unused code

Solution:
remove common_drivers_on_top code in scripts

Verify:
local

Change-Id: I7c98f733281c9a7500e9a64f11d825b01480992c
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2025-06-04 18:04:58 -07:00
Wanwei Jiang 0ebbe91209 build: supports direct compilation using tools/bazel [1/4]
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>
2025-05-12 18:25:48 -07:00
qinglin.li b5e626ec63 scripts: remove autopatch when ddk build [1/1]
PD#SWPL-208157

Problem:
remove autopatch when ddk build

Solution:
remove autopatch when ddk build

Verify:
local

Change-Id: Id25d195dd5edbc2fa55e777a765b42036a068072
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2025-04-15 04:35:07 -07:00
Dezhen Wang 5c4980155c scripts: 6.12 mv common_drivers to up dir [1/1]
PD#SWPL-188894

Problem:
common_drivers dir is not normal position. move it out of common dir.

Solution:
move it out of common dir

Verify:
local

Change-Id: I949688e2e86d687ef205030a646975065860950a
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2024-10-17 00:11:25 -07:00