49 Commits

Author SHA1 Message Date
Dongjin Kim
bf42a4f583 ODROID-N2: git: removing '.git/pre-commit'
Change-Id: Ia44136b12853e4555159dcb5aa046ea711d0c206
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2020-03-13 18:08:44 +09:00
Jianxiong Pan
4b47fce393 scripts: fixed an issue that could cause an infinite loop. [1/1]
PD#SWPL-12025

Problem:
the merge_pre_check.pl script has an bug that may enter an infinite loop,
causing problems.

Solution:
add the length of the detection conditions.

Verify:
local test.

Change-Id: I48fe839678ea0884a9082197eab083a2b8f489cd
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2019-07-29 19:34:21 -07:00
Jiamin Ma
75a8a664e9 Scripts: add auto weekly change generator [1/1]
PD#SWPL-8487

Problem:
Manully generating weekly change is time wasting, we
need some helpers

Solution:
Add auto weekly change generator

Verify:
Locally pass

Change-Id: Ifafcd7d82eebcceaf45676056de4217260f18a5c
Signed-off-by: Jiamin Ma <jiamin.ma@amlogic.com>
2019-05-14 09:36:27 +08:00
shanghai engineers
b73f974f2c tm2: add tm2_pxp dts at amlogic for ptm bringup [1/1]
PD#SWPL-6157

Problem:
Current branch need tm2_pxp dts at amlogic system

Solution:
Create tm2_pxp dts at tm2 kernel branch, and modified scripts

Verify:
on ptm board4

Change-Id: I83204db07462729861a59d322fa99e4370c09dea
Signed-off-by: pan yang <pan.yang@amlogic.com>
2019-04-11 10:40:39 +08:00
zhiqiang liang
2eef77a202 dts: modify dts for SM1 bringup with SMP [1/1]
PD#SWPL-5865

Problem:
SM1 bring up

Solution:
modify dts for SM1 bringup with smp

Verify:
PxP

Change-Id: Ie83ad7434acfb8c6232a8e373dfc63ef0ba9b87e
Signed-off-by: zhiqiang liang <zhiqiang.liang@amlogic.com>
2019-03-29 04:41:59 -07:00
zhiqiang liang
f9690587c4 dts: commit dts for SM1 bringup [1/1]
PD#SWPL-5865

Problem:
SM1 bring up

Solution:
commit dts for SM1 bringup

Verify:
PxP

Change-Id: Id117d7ff130c67feb8ca04657d8a4ad463793fed
Signed-off-by: zhiqiang liang <zhiqiang.liang@amlogic.com>
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2019-03-29 04:00:40 -07:00
Jianxiong Pan
0e8f3c7d65 script: segments can appear in descriptive information [1/1]
PD#174488

Problem:
segmentation in descriptive information is reasonable and
should be allowed.

Solution:
modify the check codes.

Verify:
test locally.

Change-Id: I5e34ef2dd26077bb54adee7597a1aa3c789566c9
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2018-11-09 04:33:34 -07:00
Jianxiong Pan
cdc14a2bb8 script: fix the defects in the merge_pre_check.pl [1/1]
PD#174488

Problem:
some defects in the script.

Solution:
rechange check rules in the script.

Verify:
verified locally.

Change-Id: I9c7011d1bd3b1d52131318dae34112d0d0164a00
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2018-10-22 22:22:03 -07:00
Jianxiong Pan
3f25fef9ac script: add new check rules in merge_pre_check.pl [1/1]
PD#174488

Problem:
add some new rules

Solution:
expand the scope of check

Verify:
p212

Change-Id: Ica28adb7ddb43e39cd4570e0338dbd59ec6a42f3
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2018-10-17 23:29:40 -07:00
Jianxiong Pan
ef8311d41d script: dd new check rules in merge_pre_check.pl script [1/1]
PD#174488

Problem:
add some new rules

Solution:
strictly check as required

Verify:
p212 pass

Change-Id: Iaa056eece6e9f812751cd585f0b5537476edfab5
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2018-10-17 19:20:00 -07:00
Jianxiong Pan
5940d7f258 script: add new check relus in merge_pre_check.pl script [1/1]
PD#174488

Problem:
add some new rules

Solution:
expand the scope of check

Verify:
p212

Change-Id: I4b5428367520456195645dbbce86c5f40411d59a
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2018-10-16 23:27:48 -07:00
Jianxiong Pan
c08c90524f Revert "script: add new check rules in merge_pre_check.pl script [1/1]"
This reverts commit 57728014ee.


Change-Id: Ia803a24fe6b6abd00d4015bb1e6857c2826efac7
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2018-10-15 05:10:38 -07:00
Jianxiong Pan
57728014ee script: add new check rules in merge_pre_check.pl script [1/1]
PD#174488

Problem:
some new rules should be added to the check scripts

Solution:
call the git_msg_check.sh script directly

Verify:
p212

Change-Id: I67c6515038ca2817236e63b4c9f4239583a20613
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2018-10-15 04:49:28 -07:00
Jianxiong Pan
fa6fba02af script: allow JIRA BugId check in the merge_pre_check.pl script
PD#174488: add JIRA BugId check in the merge_pre_check.pl script

Change-Id: I32f2fc123041e6c40ce2a5c4208734e11b307fd5
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2018-10-14 23:24:17 -07:00
Bo Yang
765d2c296f script: amlogic: add script to build 32bit image for meson64
PD#172587: script: add script to build 32bit image for meson64

    Use the new options:

      -c        specify defconfig with full name
      -f        specify rootfs
      -b        specify prefix or suffix of dts for the board
      -p        specify prefix of dts for the chip
      -d        make distclean
      -h        print help summary and examples

Change-Id: I44effd373f9c2928c7aa2ecb226baa6e4799da7e
Signed-off-by: Bo Yang <bo.yang@amlogic.com>
2018-09-26 20:14:29 -07:00
Bo Yang
efcaa90e2f scripts/amlogic: adjust the name of the options
PD#172587: scripts/amlogic: adjust the name of the options

Use the new options:

  -c	specify defconfig with full name
  -f	specify rootfs
  -b	specify prefix or suffix of dts for the board
  -p	specify prefix of dts for the chip
  -d	make distclean
  -h	print help summary and examples

Change-Id: I709c468fd06a15d3a66cc2c9d316e7898aab4d99
Signed-off-by: Bo Yang <bo.yang@amlogic.com>
2018-09-25 00:19:57 -07:00
Bo Yang
3b28da4ded scripts/amlogic: fix spelling mistake
PD#172587: scripts/amlogic: fix spelling mistake

Change-Id: I56fd60b2ee32e0b01eef796ae1a91839e8d1453d
Signed-off-by: Bo Yang <bo.yang@amlogic.com>
2018-09-25 00:19:34 -07:00
Jianxin Pan
fd9dacf2d1 dts: arch32: sync dtb between aarch64 and aarch32
PD#173683: remove unnecessary difference between aarch32 and aarch64

Change-Id: I9a1248e3d38dadf9cc6c4bb5e0a6f8c5dbd24a0a
Signed-off-by: Jianxin Pan <jianxin.pan@amlogic.com>
2018-09-17 03:52:30 -07:00
Jianxin Pan
a799d5187f 32bit: add P321 support for aarch32
PD#173683: add P321

Change-Id: I46228d22a244e7c43b75f2a6f784c13ac413b57f
Signed-off-by: Jianxin Pan <jianxin.pan@amlogic.com>
2018-09-14 00:45:16 -07:00
Jianxin
49d2203703 scritp: update merge check pl
PD#146811
':' and extral message folling PD#xxxx is not a must in line three

Change-Id: Ibe115f6a64bc267730020aaa52f8b21adb2f66a5
Signed-off-by: Jianxin <jianxin.pan@amlogic.com>
2018-08-13 03:53:12 -07:00
Xindong Xu
e37c6e9891 arm64: dts: add atom & Beast project [1/1]
PD#170502: add atom & Beast project

Change-Id: I50da79dbb660372528c5abcdf5da4bb13773bf6c
Signed-off-by: Xindong Xu <xindong.xu@amlogic.com>
2018-08-02 01:55:32 -07:00
Qiufang Dai
c9d7ad455f dts: add g12b_a311d_w400.dts
PD#165090: add g12b_a311d_w400.dts

Change-Id: I7f0c13e662abb0dea61a42f74f0db51190367ef7
Signed-off-by: Qiufang Dai <qiufang.dai@amlogic.com>
2018-06-29 00:12:50 -07:00
Qiufang Dai
1b5fcd9e9c dts: add g12b skt dts
PD#165090: add g12b skt a311d dts

Change-Id: Icdb5f8aea3d83d74731c7828986bac01da39c7bb
Signed-off-by: Qiufang Dai <qiufang.dai@amlogic.com>
2018-06-28 23:43:55 -07:00
jianxin.pan
959e21e6be sched: eas support
PD#165090: EAS support on g12b

Change-Id: Ic816ddef61e80f39944251f67ca8ebb2cb36f8ae
Signed-off-by: jianxin.pan <jianxin.pan@amlogic.com>
2018-06-28 23:27:41 -07:00
Yan Wang
c198fa6e33 dts: g12b: initial add g12b
PD#165090: initial add g12b

initial G12B dts for bringup.

Change-Id: If7c390b2139055f637fb17fb4e3ce0acd71a6f17
Signed-off-by: Yan Wang <yan.wang@amlogic.com>
2018-06-28 22:46:37 -07:00
Ao Xu
21b537a651 script: amlogic: add code scan script
PD#166377: script: amlogic: add code scan script

Add code scan script.

Usage: ./script/amlogic/code_scan.sh [path]

Examples:
	# scan all code
	./script/amlogic/code_scan.sh

	# scan specified directory
	./script/amlogic/code_scan.sh drivers/amlogic

scan result is in src code's parent directory, named coverity_html

Change-Id: I069cd99d08014cc50a3bf127e199690649e196c8
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
2018-05-16 01:02:03 -07:00
Ao Xu
48565d1644 defconfig: update buildcheck defconfig
PD#149771: update buildcheck defconfig

in fs/proc/uid.c file, compile will fail
when CONFIG_CPU_FREQ_TIMES is not set

Change-Id: Icdab57085749c1d8ce1b5886f2c1b52a2acc913d
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
2018-04-24 20:44:18 +08:00
Qiufang Dai
ab5afcc1bd dts: add g12a skt dts
PD#156734: dts: add g12a skt dts

Change-Id: I40ce169cabd1c53f7b7b8299bb3e11adbe29a35f
Signed-off-by: Qiufang Dai <qiufang.dai@amlogic.com>
2018-03-02 15:07:51 +08:00
Qiufang Dai
6ee68402f4 G12A: initial dts porting for pxp
PD#156734: G12A: initial dts porting for pxp

Change-Id: I84d9bd5eb97c0ae0e04f17cd1e41b68fead0ed05
Signed-off-by: Qiufang Dai <qiufang.dai@amlogic.com>
2018-03-02 14:52:25 +08:00
Bo Yang
370c8bf462 script: amlogic: add new build script
PD#154260: script: amlogic: add new build script

Add new kernel build script.
	mkimage_32.sh for arm
	mkimage_64.sh for arm64

Usage: mkimage_xx.sh [-k def] [-d dts | -p chip] [-f rootfs] [-c] [-h]

Examples:

	# build kernel using default meson32_defconfig
	mkimage_32.sh

	# build kernel using default meson64_defconfig
	mkimage_64.sh

	# build kernel using defconfig specified by the option -k
	# with full name.
	mkimage_64.sh -k meson64_defconfig

	# build all dtb for the board with prefix or suffix <p320>
	# specified by the option -d
	mkimage_64.sh -d p320

	# build all dtb for the chip with prefix <txl>
	# specified by the option -p
	mkimage_64.sh -p txl

	# make distclean and build kernel and dtb
	mkimage_64.sh -k meson64_defconfig -d p320 -c

	# make distclean
	mkimage_64.sh -c

	# print help
	mkimage_64.sh -h

Change-Id: I617a2546a40ab74e741706f4625afb924421953a
Signed-off-by: Bo Yang <bo.yang@amlogic.com>
2017-12-19 04:36:36 -07:00
Ao Xu
bd6adeed26 defconfig: remove meson64_audio_defconfig
PD#149771: remove meson64_audio_defconfig

Change-Id: I80e92b3f7eae3895371bc2ad91d78f4538740937
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
2017-09-20 17:30:05 +08:00
Peipeng Zhao
937de4a48b audio: modified dts for S400 & S420 board V03
PD#149114: modified dts for S400 & S420 board V03

Change-Id: Idd311e0061bc5fcf30f0a4cf3bdfef4aec3767fa
Signed-off-by: Peipeng Zhao <peipeng.zhao@amlogic.com>
2017-08-10 04:49:13 -07:00
jianxin.pan
4c8e5c3b48 script: update merge_pre_check.sh
PD#138174: update merge_pre_check script

Change-Id: I3340906ff4fc3a61ba720fb4dabecd3f623dfcae
Signed-off-by: jianxin.pan <jianxin.pan@amlogic.com>
2017-07-12 16:46:29 +08:00
Jiamin Ma
82062d5a49 script: update merge_pre_check.pl
PD#138714: update merge_pre_check.pl to compatible with checkpatch.pl

Change-Id: Ic3aa45a95d9b1c6c2a923a93b87d4a1590a9c066
Signed-off-by: Jiamin Ma <jiamin.ma@amlogic.com>
2017-07-11 12:26:57 +08:00
jianxin.pan
f47fda21dc script: check defconfig and commit message before merge
PD#138714: check patch before merge
1) meson32/64_defconfig should generated from savedefconfig
2) commit message style

Change-Id: Ia7330533249f2a93e541f10981ec4caae9978879
Signed-off-by: jianxin.pan <jianxin.pan@amlogic.com>
2017-06-30 04:44:16 -07:00
Jiamin Ma
a81899595b unifykey: initial add unifykey driver for m8bb
PD#141217: initial add unifykey driver for m8bb

known issues:
	1. do not support efuse mode for key storage
	2. do not support nand key storage
	3. do not suppot unifykey ops in multi-thread env
changelists:
	1. use internal sha apis
how to use:
	su
	cd /sys/class/unifykeys
	echo 1 > attach
	echo mac > name
	echo 001122 > write
	echo mac > name
	cat read

Change-Id: I0586f1a41ded72553afe3cc4cc199dbc4b563bf1
Signed-off-by: Jiamin Ma <jiamin.ma@amlogic.com>
2017-06-06 23:19:40 -07:00
Yun Cai
ae23902138 dts: add dts for A113D socket and development boards
PD#142470: add axg_a113d_skt.dts axg_s400.dts and axg_s420.dts

Change-Id: If8c5b1e0fa5b6a21a91ce1323fa1107d608c4af7
Signed-off-by: Yun Cai <yun.cai@amlogic.com>
2017-05-27 14:06:57 +08:00
Yun Cai
4e2e3d7c40 dts: add meson8b_skt.dts
PD#141217: add meson8b_skt.dts

Change-Id: Ib523fee8e76d8f386f7c74552441d241f5a19d64
Signed-off-by: Yun Cai <yun.cai@amlogic.com>
2017-05-09 19:59:45 -07:00
Yun Cai
f4bf7b7800 dts: add axg dts file
PD#142470: add dts for axg pxp

Change-Id: I0d5c77368b0583fcfa046f4c01ac936704e96434
Signed-off-by: Yun Cai <yun.cai@amlogic.com>
2017-04-26 04:28:13 -07:00
Yun Cai
9a06b057e8 dts: add gxl skt dts
PD#138714: add gxl_skt.dts

Change-Id: I0ca48f72267eed4f7f4dc2264c7e88483744740f
Signed-off-by: Yun Cai <yun.cai@amlogic.com>
2017-04-21 20:00:02 +08:00
Frank Chen
25c9d1b76a dts: disable useless devices
PD#138714: disable useless devices on p400 and p401

Change-Id: I7f0d2f4b59cae56814b3a91ceacf4aaac6058e16
Signed-off-by: Frank Chen <frank.chen@amlogic.com>
2017-04-20 12:42:54 +08:00
Peipeng Zhao
9a2e9f09c0 audio: add i2s capture function and fix pinctrl error
PD#138714: fix i2s in error

1. add aml_i2s_copy_capture for 8 channels
2. fix i2s pinctrl define error
3. add 8channel mic board d601 function on P400/P401 dts

Change-Id: I7b289e9926bded95f2a4e9a24b756363a94ba8dd
Signed-off-by: Peipeng Zhao <peipeng.zhao@amlogic.com>
2017-04-19 15:39:16 +08:00
Peipeng Zhao
ac50358ec2 dts: add m400 dts
PD#141217: add m400 dts
m400 is A111 development board with SLC Nand

Change-Id: I47a3528df70f656c7d631d9c35cbca87dc702f97
Signed-off-by: Peipeng Zhao <peipeng.zhao@amlogic.com>
2017-04-14 15:25:28 +08:00
Jianxin Pan
c360ae91bb defconfig: meson64: defconfig for no video device
PD#138714: meson64_audio_defconfig

Change-Id: I6af9bae918ab684c5353c0331eb3c85f9b3b003e
Signed-off-by: Jianxin Pan <jianxin.pan@amlogic.com>
2017-04-04 20:02:05 -07:00
Jianxin Pan
6298d92f28 meson8b: initial add m8b
PD#141217: initial add meson8b
1. smp
2. ioremap
3. uart
4. gcc6.3.1

Change-Id: I23aa5d64260452df13d6d8965386977581dcdb09
Signed-off-by: Jianxin Pan <jianxin.pan@amlogic.com>
2017-03-23 10:35:52 +08:00
Jianxin Pan
320599c660 compiler: fix gcc6 compilation error
PD#138714: gcc-6 warns about obviously wrong indentation

Change-Id: I41ecc671536c8083d13c4da00e09ddbe5f7c59c1
Signed-off-by: Jianxin Pan <jianxin.pan@amlogic.com>
2017-03-14 18:44:55 +08:00
Jianxin Pan
bfc0d5ba93 arm64: change TEXT_OFFSET to 1080000
PD#138714: change TEXT_OFFSET to 1080000 to compatible with uboot
1. change TEXT_OFFSET to 1080000
2. mkdir .git/hooks to avoid compiling error when build without git

Change-Id: I499f1369d0f818b95ee2afc8a2bb98ca5b828b22
Signed-off-by: Jianxin Pan <jianxin.pan@amlogic.com>
2017-03-09 19:48:51 +08:00
Jianxin Pan
5310f66400 defconfig: add small,tiny and compact defconfigs
PD#138714: add defconfigs
1.tiny: fewest configs for booting to console
2.small: nessary configs, not include dvfs,hotplug,mailbox
3.compact: normal configs, include dvfs,hotplug.no more drivers

Change-Id: If9a0793a1ddad5cd696052dca11e46f2203b92a6
Signed-off-by: Jianxin Pan <jianxin.pan@amlogic.com>
2017-02-04 00:27:24 -08:00
Jianxin Pan
e655ebfcdc meson64: first commit
PD#138714: initial commit for meson64 bringup
1. add meson64 defconfig
2. add uart driver
3. add iomap driver
4. add scripts
5. add p212 & q200 dts

Change-Id: Idbc0d4e33f024eaeb97fc9f7948188b9596aea4c
Signed-off-by: Jianxin Pan <jianxin.pan@amlogic.com>
2017-01-19 19:00:52 +08:00