Commit Graph

116 Commits

Author SHA1 Message Date
Tao Zeng 187ca993ca t6d: amfc: use device config and compress uImage
PD#SWPL-181954

Problem:
uImage not decompressed by AMFC

Solution:
1, change zstd tools to append size at end of uImage;
2, change scripts to support uImage decomperss by AMFC

Verify:
t6d

Change-Id: I2f2465a2247085c150a1c7f42ede688011745071
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2024-08-22 14:40:36 +08:00
Wanwei Jiang c32c643171 build: optimize android build time [1/1]
PD#SWPL-172042

Problem:
optimize android build time

Solution:
1. further optimization based on mk.sh fast build mode
2. enable build system_dlkm image

Verify:
local

Change-Id: I121bac2d05d5929147fde9c2c86024af2db2b13b
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2024-07-22 20:11:52 -07:00
qinglin.li 71c0eed79d scripts: optimize build time [1/1]
PD#SWPL-172042

Problem:
optimize autopatch run time

Solution:
autopatch Asynchronous loading based on directory.
Fetch git information only once, based on directory.
mod_probe function use array instead of file can save time

Verify:
local

Change-Id: Ica47d23a867ce1aa5b534d7bfa0a85db33a37f5f
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2024-07-22 20:11:47 -07:00
Wanwei Jiang ea102c00ab build: optimize fatload build speed [1/1]
PD#SWPL-172042

Problem:
optimize fatload build speed

Solution:
1. use --lto=none
2. use --notrim
3. use --nokmi_symbol_list_strict_mode
4. reduce unnecessary constructions, such as system_dlkm and initramfs
5. modules, modules.dep and other files are copied from intermediate files

Verify:
local

Change-Id: Idb5c57a9a6ab357351341efb93fb6a79aeca5d0c
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2024-07-22 20:11:43 -07:00
Dezhen Wang 7a28cd68af scripts: fix building error remove staging dir last time [1/1]
PD#SWPL-163329

Problem:
building will fail because last build remain the staging dir

Solution:
remove staging dir in last build

Verify:
local

Change-Id: I5ca2751b70240afac2faff3fea1420f3fda3ad98
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2024-04-16 05:06:56 -07:00
Dezhen Wang 170460d899 scripts: function adjustment and remove staging dir last time [1/1]
PD#SWPL-163329

Problem:
building will fail because last build remain the staging dir

Solution:
remove staging dir in last build

Verify:
local

Change-Id: Ie5acfb09af45027d567f12f197ec4001af0d304a
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2024-04-07 01:55:31 -07:00
Dezhen Wang 0a45329dfa scripts: support closed source modules build to Independent folder [1/2]
PD#SWPL-158464

Problem:
support closed source modules build to Independent folder and copy
to android output folder

Solution:
add closed source modules list to blacklist

Verify:
local

Change-Id: Ibd9be1c7e8e7eb1b043fd10e96436cb1d96f78a1
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2024-03-22 04:23:15 -07:00
Dezhen Wang c7e8fdac79 scripts: support building command SKIP_RM_OUTDIR=1 for smarthome [1/1]
PD#SWPL-161245

Problem:
building command SKIP_RM_OUTDIR=1 will fail because last build remain
the staging dir

Solution:
remove staging dir in last build

Verify:
local

Change-Id: I057b5d33def309197b43627ff88976a86580ce4a
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2024-03-20 22:33:32 -07:00
qinglin.li 7f7de17272 scripts: support build kasan with parameter for androidt [2/2]
PD#TV-107858

Problem:
support build kasan with parameter for androidt

Solution:
support build kasan with parameter for androidt

Verify:
local

Change-Id: I0538542862e5e708aea92257d90b49ab47ced9be
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2024-01-18 04:26:22 -07:00
Dezhen Wang 3f17b46e37 scripts: fix build error when compress with lzma [1/1]
PD#SWPL-129222

Problem:
some services will lead to build error when compress with lzma

Solution:
not set specified name

Verify:
local

Change-Id: I6ad2e765f50c40279b0e9d24667b573d54efe0f2
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2023-12-28 04:49:16 -07:00
Dezhen Wang 0ac8a6ac70 Script: support build kernel image in lzma format [1/1]
PD#SWPL-129222

Problem:
there is no dts for ac214 to bringup Newton gpt on kernel 5.15 + uboot 2015
we need the dts for ac214 first

Solution:
support build kernel image and boot.img in lzma format

Verify:
local

Change-Id: I60b6bd9b974abe3114ba3ad557013963c122b3b3
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2023-12-13 22:59:12 -07:00
Dezhen Wang 50d5648d9e Script: fix the problem when create the modules.order file [1/1]
PD#SWPL-146602

Problem:
when there are some modules which have similar name, the script will
not put the module with the short name in the modules.order

Solution:
fix the problem

Verify:
local

Change-Id: I2623b8b3ab1e44c515f5bca8217a41bb75f64cc4
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2023-11-24 16:39:17 -07:00
Dezhen Wang f9bec56750 Script: fix the problem in function menuconfig and basicconfig [1/1]
PD#SWPL-142167

Problem:
menuconfig and basicconfig have problem in build kernel 14-5.15

Solution:
fix the problem

Verify:
local

Change-Id: Ic920a5489a3895eebed78aacb12c38409124f61a
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2023-10-24 20:58:59 -07:00
pengzhao.liu 4acfe0c1d4 kernel: add environment variables [1/1]
PD#SWPL-141965

Problem:
realpath should not use commands on the server

Solution:
add environment variables

Verify:
s7

Change-Id: I18c5085052fe73272109acb5e22ab5f8abd7ae94
Signed-off-by: pengzhao.liu <pengzhao.liu@amlogic.com>
2023-10-09 06:09:06 -07:00
Wanwei Jiang d71aca6fce script: optimization of modprobe and module dependency algorithm [1/1]
PD#SWPL-139903

Problem:
slow execution of modprobe

Solution:
1. optimization of modprobe and module dependency algorithm
2. optimize scripts

Verify:
ohm oppen planck

Change-Id: If81efc49f4701e56312f174130dd7d1a253d886e
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2023-09-17 22:49:32 -07:00
qinglin.li feb92b24d6 module: add modules out add and remove function [1/2]
PD#SWPL-134106

Problem:
add modules out add and remove function

Solution:
add modules out add and remove function

Verify:
local

Change-Id: I836b63a2074b9bc480627da690d9c4240104e729
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2023-08-29 03:59:05 -07:00
Dezhen Wang ad3fffe07e scripts: separate the code for building android 32bit from 64bit [1/1]
PD#SWPL-134884

Problem:
the script is not clear

Solution:
separate the code for building android 32bit from 64bit.

Verify:
local

Change-Id: I116fd122061abf059f0134c94c09198f822b5c0a
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2023-08-25 20:03:35 -07:00
Qinglin Li 8c3c51983b Revert "modules: remove modules out list [1/2]"
This reverts commit 6ea7d6e204.

Change-Id: Id5ffc6e06cdb384ed31f3d3f9dfb43e02014d1da
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2023-08-10 21:48:59 -07:00
qinglin.li 6e3847df45 module: module number error when ramdisk modules is null [1/1]
PD#SWPL-135285

Problem:
module number error when ramdisk modules is null

Solution:
fix module number error when ramdisk modules is null

Verify:
local

Change-Id: I6061367f4c0b7a387fd47f28c33cdb4e395cb854
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2023-08-09 21:59:25 -07:00
qinglin.li 6ea7d6e204 modules: remove modules out list [1/2]
PD#SWPL-134106

Problem:
remove modules out list

Solution:
remove modules out list

Verify:
local

Change-Id: I6d4d13b6779d73133367735aee08814d5dbfb1a6
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2023-08-09 02:58:55 -07:00
Dezhen Wang 365df772b2 bazel: fix compilation issue [1/1]
PD#SWPL-134849

Problem:
Have compile problem

Solution:
delete chmod code in building bazel

Verify:
SC2/AH212

Change-Id: I48eb87999a71d90fb5ee106aa8fa8af90dcef28c
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2023-08-08 02:58:35 -07:00
qinglin.li b71c32040c user: android R need build user [1/1]
PD#SWPL-131945

Problem:
android R need build user
fix DEBUG_FS use error

Solution:
disabled DEBUG_FS config when build user

Verify:
local

Test:
zcat /proc/config.gz |grep CONFIG_DEBUG_FS

Change-Id: I274d7e29d3c20a9b6f03bc306f8c9fa185b963c5
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2023-08-04 00:38:57 -07:00
Dezhen Wang 42c6bf81f1 script: adjust the build script for 32bit [1/1]
PD#SWPL-132031

Problem:
have not build android_overlay_dt.dtbo

Solution:
adjust the build targets

Verify:
planck_32bit

Change-Id: Iab2b2ffbcf4bee0e97fe2bb69fc92212d0a008f3
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2023-08-02 22:28:46 -07:00
qinglin.li a40f7b66e3 upgrade: kernel upgrade by July with kernel [1/1]
PD#SWPL-132973

Problem:
common14-5.15 rel_path is deprecated
update include/linux/upstream_version.h

Solution:
use 'realpath $1 --relative-to $2' instead.
update include/linux/upstream_version.h

Verify:
local

Change-Id: Iae256322e030a13076c9e40c3162e56d2cb87127
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2023-07-28 02:16:29 -07:00
Wanwei Jiang 7c582c0027 customer: support customized modules loading sequence [1/3]
PD#SWPL-132930

Problem:
support customized modules loading sequence

Solution:
1. priority of module loading order files:
${MODULES_SEQUENCE_LIST} > scripts/amlogic/modules_sequence_list
2. solving the problem of bazel output directory
3. export GKI_MODULES_LIST

Verify:
ohm planck

Change-Id: I31951289377e880017fd49b245641c14e001ffe3
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2023-07-27 23:05:10 -07:00
Wanwei Jiang 0bde312111 customer: support for external driver kconfig [1/3]
PD#SWPL-132650

Problem:
support for external driver kconfig

Solution:
support for external driver kconfig

Verify:
ohm planck

Change-Id: Ib7180059b02ee7c4d8984201bfe192d961680bad
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2023-07-24 05:08:37 -07:00
Wanwei Jiang 16554d0874 customer: the specified external driver can be automatically loaded [1/3]
PD#SWPL-131837

Problem:
the specified external driver can be automatically loaded

Solution:
1. the specified external driver can be automatically loaded
2. modify the algorithm of modprob to improve build speed
3. when compiling in Fatload mode, all drivers are treated
as internal drivers for easy loading and verification;
when compiling in Android mode, external drivers that
are not in the autoload list are loaded by init scripts,
while other drivers are automatically loaded as internal drivers
4. module renaming only applies to modules loaded by scripts

Verify:
ohm planck

Change-Id: I13080c96585f39efe0b8f21083835c3af2a67d23
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2023-07-19 21:22:31 -07:00
qinglin.li 7cf37c0d62 kasan: bazel add kasan support [1/2]
PD#SWPL-128976

Problem:
bazel add kasan support

Solution:
add --kasan support

Verify:
local

Change-Id: I493e17ba66fd79a36b53c57bdcee7a7c52711f67
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2023-07-17 21:06:48 -07:00
qinglin.li 62b23335d8 bazel: support some build command --upgrade [1/2]
PD#SWPL-127872

Problem:
support some build command --upgrade

Solution:
support some build command --upgrade

Verify:
5.15

Change-Id: Ic5f90990d14b40bc1408c88d12f15b86622261c0
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2023-07-14 03:28:39 -07:00
Dezhen Wang 3e94b29cf1 Script: detect the abi symbol in kernel14 [1/1]
PD#SWPL-131369

Problem:
have no function to detect the symbol in kernel 14 which will submit to
google

Solution:
add the symbol file in kernel14

Verify:
local

Change-Id: Ic6bb0cf71a820345430de807fce7051c1ef867ce
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2023-07-13 05:14:23 -07:00
Dezhen Wang c5c95c30c5 script: support build command --dtbs in kernel 14 [3/3]
PD#SWPL-127870

Problem:
kernel14-5.15 has not build command --dtbs

Solution:
support the command

Verify:
local

Change-Id: I9657622f8ef1e0dba21c86b43fd3a4e7727b3657
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2023-07-13 05:14:18 -07:00
Dezhen Wang 2edb523840 script: support config build command in kernel 14 [3/3]
PD#SWPL-127869

Problem:
kernel14-5.15 has not build command --menuconfig --basicconfig
--check_defconfig

Solution:
support the command

Verify:
local

Change-Id: I31568f33a076d96f04b3ab72ea093a265f0ffdbe
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2023-07-13 05:14:03 -07:00
Dezhen Wang 4e60810b3a Script: autosh:fix build error [1/1]
PD#SWPL-130369

Problem:
there is not a error when autopatch fail when autosh

Solution:
add a judgement in the script

Verify:
local

Change-Id: Ide9ee4509cc13adce866b978421a13914313d4e2
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2023-07-10 21:03:40 -07:00
Wanwei Jiang e542675e9e android: support gki2.0 gki1.0 and nonGKI [1/1]
PD#SWPL-130287

Problem:
support gki2.0 gki1.0 and nonGKI

Solution:
support gki2.0 gki1.0 and nonGKI

Verify:
ohm

Change-Id: I1529b253f58c814979fa48de4cf960b34b1aff16
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2023-07-05 22:45:20 -07:00
Wanwei Jiang 0a519f6984 build: support --use_prebuilt_gki [1/1]
PD#SWPL-130219

Problem:
support --use_prebuilt_gki

Solution:
support --use_prebuilt_gki

Verify:
local

Change-Id: I32515737f5663b798f23ee2c69ce4b766ee1c5e6
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2023-07-04 07:07:56 -07:00
Dezhen Wang 1176fad163 Script: support build 32bit android kernel without build.sh [1/1]
PD#SWPL-126348

Problem:
build.sh file will remove in the future kernel version. we can not use
it to build with 32bit

Solution:
support build 32bit android kernel with clang of gcc

Verify:
local

Change-Id: I0774fc57aaac2555b8ddc99c74997204ba6763a9
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2023-06-30 01:50:48 -07:00
qinglin.li eafebcfc03 upgrade: kernel upgrade fix conflict [1/1]
PD#SWPL-129165

Problem:
kernel upgrade fix conflict

Solution:
kernel upgrade fix conflict

Verify:
local

Change-Id: I1bdcee4097afc381d67bc6ec1be9ab325c51d1c8
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2023-06-29 22:49:57 -07:00
dongqing.li 6fd83502ab ramfs: run cpio with fakeroot. [1/1]
PD#SWPL-128349

Problem:
cpio: dev/console: Cannot mknod: Operation not permitted

Solution:
fake cpio

Verify:
sc2_ah212

Change-Id: I5efb8f1b6f8bf9afc5ba5342884bd888f3e40d29
Signed-off-by: dongqing.li <dongqing.li@amlogic.com>
2023-06-29 10:38:53 +08:00
yao zhang1 a0c556a99a Bringup: Add sm1 s905x3 ac214 dts [1/1]
PD#SWPL-127956

Problem:
Add sm1 s905x3 ac214 dts.

Solution:
Add sm1 s905x3 ac214 dts.

Verify:
sm1 ac214

Change-Id: I43eb1b3dc9776a7dd52d1e915bb32615445e7803
Signed-off-by: yao zhang1 <yao.zhang1@amlogic.com>
2023-06-28 01:29:38 -07:00
pengzhao.liu a923dea38d kernel: Remove Makefile autoreview script [1/2]
PD#SWPL-128588

Problem:
Cannot copy files when compiling

Solution:
Remove Makefile autoreview script

Verify:
no

Change-Id: Icdbe276ef2a5c2aefe0173c0b8457c09a3b40e4b
Signed-off-by: pengzhao.liu <pengzhao.liu@amlogic.com>
2023-06-27 01:17:25 -07:00
Dezhen Wang 2006929590 Script: fix force to buld upgrade project with build.sh [2/2]
PD#SWPL-128334

Problem:
android upgrade project cannot build kernel14 with bazel

Solution:
build android upgrade project with build.sh

Verify:
local

Change-Id: Iec4f1b3c48bcea5ef866c0bdf57417bc4d1a9098
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2023-06-21 01:09:44 -07:00
Dezhen Wang 556827e6aa Script: optimize auto patch function [1/1]
PD#SWPL-124723

Problem:
auto patch function cannot excute in up directory

Solution:
support auto patch function in android directory

Verify:
local

Change-Id: I6bb53b5f53dc6604dbf07c9e819b68cc8a3b071d
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2023-06-20 03:39:36 -07:00
Dezhen Wang a6806c5ce6 Script: integrate the config in fragment for 32bit kernel [1/1]
PD#SWPL-127665

Problem:
the config in 32bit is unnecessary

Solution:
integrate the config in fragment for 32bit kernel

Verify:
local

Change-Id: I139a2753d1e5c0c018ffa6d6ef610e4f335e0d06
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2023-06-16 05:34:21 -07:00
Dezhen Wang 850c0d2b01 Script: optimize the structure for build script [1/1]
PD#SWPL-124723

Problem:
build script mk.sh is too redundant

Solution:
optimize the structure for mk.sh and extract some command to functions in
amlogic_utils.sh

Verify:
local

Change-Id: If5c5ecfc651013169922d65128ffec88347d3ad2
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2023-06-07 05:18:27 -07:00
Wanwei Jiang 8042e473ef build: simplify compilation commands [1/2]
PD#SWPL-126432

Problem:
./mk ohm -v common14-5.15, build error without --bazel parameter

Solution:
the kernel will automatically decide whether to use bazel
and need to export it to mk

Verify:
ohm

Change-Id: I05889700529249479e15e9ad35a8767c986c6980
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2023-06-06 02:03:33 -07:00
Dezhen Wang 061c478f68 Configs: add new config for android s with kernel 5.15 [1/1]
PD#SWPL-124507

Problem:
android s with kernel 5.15 have not config.

Solution:
add new config for android s with kernel 5.15

Verify:
local

Change-Id: I191ecd9724d4fc9f983d31728685ed7112cf5482
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2023-05-25 04:08:13 -07:00
Wanwei Jiang 92c8943985 bazel: optimize and add some function [1/2]
PD#SWPL-123803

Problem:
optimize and add some function

Solution:
1. support update symbol list
2. support abi check
3. remove db845c information
4. optimize modules_out
5. rename symbol list file name

Verify:
sc2

Change-Id: Ia816fa87ebb6047c5bf3722c613c5545d4367a9d
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2023-05-23 01:42:23 -07:00
Wanwei Jiang 8fe0034900 gki: gki modules white list [1/2]
PD#SWPL-122842

Problem:
the modules in system_dlkm will increase or decrease,
so it needs to be changed to a whitelist mechanism

Solution:
change to a whitelist mechanism

Verify:
sc2

Change-Id: If5bfd9605269ef1e18454a74ebd957be2270a4f3
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2023-05-23 01:42:20 -07:00
qinglin.li bce5471ebe upgrade: android P upgrade [1/1]
PD#SWPL-122569

Problem:
android not vendor boot

Solution:
builtin all vendor boot modules

Verify:
local

Change-Id: I40b3a29e4cc7e3510193df91bd7af326bb999dad
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2023-05-16 03:01:29 -07:00
Wanwei Jiang 475245b5b3 system_dlkm: gki modules white list [1/2]
PD#SWPL-122842

Problem:
support gki modules white list

Solution:
support gki modules white list

Verify:
sc2

Change-Id: Iaea1035136a4000189d2aac4316e01884d8d2d0e
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2023-05-15 00:25:12 -07:00