Commit Graph

23 Commits

Author SHA1 Message Date
qinglin.li 4ea4809eb6 module: optimisation list of modules launched first [2/2]
PD#SWPL-89845

Problem:
optimisation list of modules launched first

Solution:
optimisation list of modules launched first

Verify:
sc2

Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
Change-Id: I49fe2dc30588c5118540b378ae9ab26d6148f25e
2022-09-07 20:06:44 +08:00
wanwei.jiang 6ea233338e serial: change the build mode of serial driver [1/1]
PD#SWPL-89180

Problem:
change the build mode of serial driver

Solution:
1. --gki: don't build early console, build uart driver as module,
for android gki
2. --gi_user: buildin early console, build uart drvier as module,
for android
3. --gki_userdebug: buildin early console, buildin uart driver,
for fatloader

Verify:
sc2

Change-Id: I610c954d7b413265d7aa15f0ee5ca670895bacb5
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
2022-09-07 20:06:43 +08:00
wanwei.jiang 0612e5e386 scrip: fix the problem of missing signature [1/1]
PD#SWPL-80766

Problem:
module verification failed: signature and/or required key missing - tainting kernel

Solution:
strip when make INSTALL_MOD_STRIP=1

Verify:
s4d && c2

Change-Id: I15d9210a0686e306138a69a62eb2892f3383f390
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
2022-09-07 20:06:42 +08:00
pengzhao.liu 53a564385c auto sh: Increase the parameters for compiling dtb [1/1]
PD#SWPL-85831

Problem:
Increase the parameters for compiling dtb

Solution:
Increase the parameters for compiling dtb

Verify:
auto sh

Signed-off-by: pengzhao.liu <pengzhao.liu@amlogic.com>
Change-Id: Ie99225febac0909f0580e7bb17870c6c812d0009
2022-06-30 20:28:03 -07:00
wanwei.jiang 907b44918e script: follow the rule of gki dtb build [1/2]
PD#SWPL-80766

Problem:
modify kernel to build dtb

Solution:
1. remove the patch of the kernel modified for DTB compilation
2. modify the script to support DTB compilation

Verify:
s4d and a1

Change-Id: Ia45992f2e6b13adcb089469fa3daf5c8e2d00874
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
2022-05-18 02:44:57 -07:00
wanwei.jiang 8d4a513de8 script: optimize compilation scripts [1/1]
PD#SWPL-64232

Problem:
compile failed when the driver directory
is above the compilation directory

Solution:
add a link for compile

Verify:
s4d and c2

Change-Id: I2d2f98061e9112919dded5d47317f9ce6e06277c
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
2022-05-05 17:16:19 +08:00
wanwei.jiang 5c861ae1c1 script: support ext module [1/1]
PD#SWPL-64232

Problem:
support ext module

Solution:
support ext module

Verify:
s4d c2 local build

Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
Change-Id: Ie4630b795fe0364e96cd07ed9c2a28f4630a31a8
2022-04-25 00:39:18 -07:00
wanwei.jiang 67a191d817 script: optimize compilation scripts [1/1]
PD#SWPL-78980

Problem:
optimize compilation scripts

Solution:
1. use clang compile without gcc tool
2. copy warning error

Verify:
c2 AF400

Change-Id: Id8c8e2437d8739ab9c4d50ca962744f0c6e8c0fe
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
2022-04-18 21:27:00 +08:00
wanwei.jiang 50759e133a script: optimize output [1/1]
PD#SWPL-64232

Problem:
ramdisk and vendor related scripts and modules
are in the "modules" folder

Solution:
1. create a ramdisk and vendor folder
2. put the file in the corresponding path

Verify:
s4d and C2 AF400

Change-Id: Id65df11fb6ecd922904c4ea6bd3db2cbf1980c30
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
2022-03-23 22:21:20 -07:00
wanwei.jiang 0a8d6ee32d script: modules sequence list [1/1]
PD#SWPL-64232

Problem:
ramdisk modules sequence list
vendor modules sequence list

Solution:
1. ramdisk modules sequence list
2. vendor modules sequence list
3. delete needn't modules
4. delete other chip modules

Verify:
s4d and C2 AF400

Change-Id: Ibb5aed6509b7b18a920e58d507337d3b56f5af32
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
2022-03-23 05:22:35 -07:00
Qianggui Song 928e4e320b Pinctrl: fix wrong dtsi error and enable driver loading [1/1]
PD#SWPL-74259

Problem:
1. driver does not load in install scripts
2. dt bindings use c2 need

Solution:
1. Enable driver loading in install scripts
2. use c3 gpio dt-bindings and uncomment c2 GPIO

Verify:
C3_PTM

Signed-off-by: Qianggui Song <qianggui.song@amlogic.com>
Change-Id: I00b1535c2dcd24ff2f3f6b936f1aeda17436de7d
2022-03-23 15:29:34 +08:00
Lei Zhang 41daf8dd14 build: optimize build script [1/1]
PD#SWPL-71742

Problem:
auto sh depend on build result

Solution:
return value to auto sh if build error

Verify:
on C2 AF400

Signed-off-by: Lei Zhang <lei.zhang@amlogic.com>
Change-Id: I3c8778c0dfd54750756f7a567cc40ce91a8fecee
2022-03-22 18:45:59 -07:00
Lei Zhang dec4b28dd1 build: update toolchain to 10.3 [1/1]
PD#SWPL-71742

Problem:
update toolchain to 10.3

Solution:
update toolchain to 10.3

Verify:
on C2_AF400

Signed-off-by: Lei Zhang <lei.zhang@amlogic.com>
Change-Id: I757dbccb24e970764134a038d934e6db97ab1733
2022-03-17 01:06:42 -07:00
wanwei.jiang 27dd203d5a usb: reading USB stuck [1/1]
PD#SWPL-74824

Problem:
reading USB stuck

Solution:
adjust module loading sequence

Verify:
C2 AF400

Change-Id: Ic30872380a4f671537334a975dbafd97e99e1fa2
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
2022-03-16 21:16:43 +08:00
Jianxiong Pan 49f5c2ebbe mm: arm32: enable kasan. [1/1]
PD#SWPL-73890

Problem:
enable kasan on arm32.

Solution:
enable CONFIG_KASAN config.

Verify:
local.

Change-Id: I39c3459736c46b45f37c48d120b4e173fc614bdf
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2022-03-10 04:37:14 -07:00
Lei Zhang b6ffc36c78 build: optimize build script for c2 [1/1]
PD#SWPL-71742

Problem:
optimize build script for c2

Solution:
optimize build script for c2

Verify:
on C2_AF400

Signed-off-by: Lei Zhang <lei.zhang@amlogic.com>
Change-Id: Idc350f2c524f1f5f04440464fafd77f0760a72ab
2022-03-10 03:54:50 -07:00
qinglin.li 54fd189947 build: add 32&&64bit clang build scripts[1/1]
PD#SWPL-71749

Problem:
add 32&&64bit clang build scripts

Solution:
add 32&&64bit clang build scripts

Verify:
c2

Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
Change-Id: I3ead5c153f29c5b0e4889d8968537bda38906f41
2022-03-03 03:39:29 -07:00
Lei Zhang 475c17bd11 build: enable ko build [1/1]
PD#SWPL-72345

Problem:
enable ko build

Solution:
enable ko build

Verify:
on C2_AF400

Signed-off-by: Lei Zhang <lei.zhang@amlogic.com>
Change-Id: Iddfa3274867396fbbf72a600ec86ea57a719b1e7
2022-03-03 13:59:44 +08:00
Lei Zhang 3faeb77a5a aarch32: bring up c2 for aarch32 [2/2]
PD#SWPL-71725

Problem:
bring up c2 for aarch32

Solution:
bring up c2 for aarch32

Verify:
on C2_AF400

Signed-off-by: Lei Zhang <lei.zhang@amlogic.com>
Change-Id: I762a2066d07a0aae120524e2f5be6a5be59fe10a
2022-02-23 04:16:01 -07:00
wanwei.jiang 95a63652bd build: savedefconfig [1/1]
PD#SWPL-72981

Problem:
add savedefconfig function to script

Solution:
add savedefconfig function to script

Verify:
c2

Change-Id: I383b139ec58c40018f699fccec9af1ef766fd8b3
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
2022-02-22 03:31:33 -07:00
wanwei.jiang 7ef5fd4983 build: directory customization [1/3]
PD#SWPL-72631

Problem:
common, build and common_drivers directories are not under the same directory

Solution:
common, build and common_drivers directories customization

Verify:
s4d and C2 AF400

Change-Id: I8e29737a0a791d58454691e922dda949098595bb
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
2022-02-22 11:00:37 +08:00
wanwei.jiang 0057dddfee build: support build headers_install [2/2]
PD#SWPL-71742

Problem:
support build headers_install

Solution:
support build headers_install

Verify:
C2 AF400

Change-Id: I7444eb224e9566a54f47969ae250b0b5ab222d97
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
2022-02-18 10:34:25 +08:00
Lei Zhang cf81ab0ed8 c2: bringup c2 to console [1/1]
PD#SWPL-70222

Problem:
C2 bringup to console basic

Solution:
C2 bringup to console basic

Verify:
C2 Af400

Change-Id: Ic1b342875421740e595c2d9d32ff2999a3542813
Signed-off-by: Lei Zhang <lei.zhang@amlogic.com>
2022-01-16 19:30:39 -07:00