Jianxiong Pan | 61de272 | 2020-07-14 10:57:22 +0800 | [diff] [blame] | 1 | #!/usr/bin/env bash |
| 2 | |
| 3 | function move_output_to_top_dir() { |
| 4 | if [ -f bl30.bin ] |
| 5 | then |
| 6 | rm bl30.bin |
| 7 | fi |
| 8 | |
Jianxiong Pan | 6b12658 | 2021-01-26 14:52:08 +0800 | [diff] [blame] | 9 | if [ -f demos/amlogic/${arch_dir}/${soc_dir}/${board}/gcc/RTOSDemo.bin ] |
Jianxiong Pan | 61de272 | 2020-07-14 10:57:22 +0800 | [diff] [blame] | 10 | then |
Jianxiong Pan | 6b12658 | 2021-01-26 14:52:08 +0800 | [diff] [blame] | 11 | cp demos/amlogic/${arch_dir}/${soc_dir}/${board}/gcc/RTOSDemo.bin ./bl30.bin |
Jianxiong Pan | 61de272 | 2020-07-14 10:57:22 +0800 | [diff] [blame] | 12 | fi |
| 13 | } |
| 14 | |
Jianxiong Pan | 1a62b21 | 2020-12-02 09:00:47 +0800 | [diff] [blame] | 15 | function coding_style_check() { |
| 16 | if [ -d .git/hooks ] |
| 17 | then |
| 18 | if [ ! -f .git/hooks/pre-commit-old -a -f .git/hooks/pre-commit ] |
| 19 | then |
| 20 | cp .git/hooks/pre-commit .git/hooks/pre-commit-old |
| 21 | fi |
| 22 | cp scripts/amlogic/coding_style/pre-commit .git/hooks/ |
| 23 | chmod +x .git/hooks/pre-commit |
| 24 | fi |
| 25 | } |
| 26 | |
Jianxiong Pan | 61de272 | 2020-07-14 10:57:22 +0800 | [diff] [blame] | 27 | source scripts/amlogic/mk.sh $1 |
Jianxiong Pan | 1a62b21 | 2020-12-02 09:00:47 +0800 | [diff] [blame] | 28 | coding_style_check |
Jianxiong Pan | 61de272 | 2020-07-14 10:57:22 +0800 | [diff] [blame] | 29 | move_output_to_top_dir |