File tree 5 files changed +80
-12
lines changed
5 files changed +80
-12
lines changed Original file line number Diff line number Diff line change
1
+ vim1
Original file line number Diff line number Diff line change
1
+ vim1
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
1
3
# UBOOT_DIR FIP FIP_BUILD
2
4
3
5
CMD (){
@@ -42,6 +44,8 @@ uboot_custom_postprocess() {
42
44
43
45
CUR_SOC=${CONFIG_SYS_SOC}
44
46
47
+ echo " [i] CUR_SOC $CUR_SOC "
48
+
45
49
if [ " y" == " ${CONFIG_NEED_BL32} " ]; then
46
50
BLX_NEEDFUL[3]=" true"
47
51
fi
Original file line number Diff line number Diff line change 2
2
3
3
# # hyphop ##
4
4
5
- # = build wrapper for mailline uboot vim3
5
+ # = build wrapper for mailline uboot
6
6
7
7
# / menuconfig
8
8
# savedefconfig
9
9
# -j14
10
10
11
11
set -e
12
12
13
- P=" $( dirname $0 ) "
13
+ P=$( dirname $0 )
14
14
15
- export PATH=$( realpath $P /../../fenix/build/toolchains/gcc-linaro-aarch64-none-elf/bin) :$PATH
16
- export PATH=$( realpath $P /../../fenix/build/toolchains/gcc-arm-none-eabi/bin) :$PATH
15
+ export PATH=$PWD /../../fenix/build/toolchains/gcc-linaro-aarch64-none-elf/bin:$PATH
16
+ export PATH=$PWD /../../fenix/build/toolchains/gcc-arm-none-eabi/bin:$PATH
17
17
18
18
export ARCH=arm64
19
19
export CROSS_COMPILE=aarch64-none-elf-
@@ -23,27 +23,28 @@ CMD(){
23
23
" $@ "
24
24
}
25
25
26
- for DIR in /tmp /u-boot. vim3; do
26
+ for DIR in ../.. /u-boot- vim3; do
27
27
[ -d " $DIR " ] && break
28
28
done
29
29
30
30
[ -f $DIR /build/.config ] || {
31
- # CMD make -C "$DIR" kvim2_defconfig
32
- echo " [i] def config" >&2
33
-
31
+ CMD make -C " $DIR " kvim3_defconfig
34
32
}
35
33
36
34
CMD make -C " $DIR " " $@ "
37
35
38
- F=/tmp/uboot-legacy-aml
36
+ # exit 0
37
+
39
38
F=/tmp/uboot_vim3
40
39
41
- [ -d $F ] && rm -rd $F
40
+ [ -d $F ] && rm -rf $F
42
41
[ -d $F ] || mkdir $F
43
42
44
- . $P /VIM3.inc
43
+ . $P /VIM2.inc
44
+
45
+ echo " [i] post process" >&2
45
46
46
- uboot_custom_postprocess " $DIR " " $( realpath ../../fip) " " $F "
47
+ uboot_custom_postprocess " $( realpath $ DIR) " " $( realpath ../../fip) " " $F "
47
48
48
49
cd $F
49
50
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ # # hyphop ##
4
+
5
+ # = build wrapper for mailline uboot
6
+
7
+ # / menuconfig
8
+ # savedefconfig
9
+ # -j14
10
+
11
+ set -e
12
+
13
+ P=$( dirname $0 )
14
+
15
+ export PATH=$PWD /../../fenix/build/toolchains/gcc-linaro-aarch64-none-elf/bin:$PATH
16
+ export PATH=$PWD /../../fenix/build/toolchains/gcc-arm-none-eabi/bin:$PATH
17
+
18
+ export ARCH=arm64
19
+ export CROSS_COMPILE=aarch64-none-elf-
20
+
21
+ CMD (){
22
+ echo " [#] $@ " >&2
23
+ " $@ "
24
+ }
25
+
26
+ for DIR in ../../u-boot-vim3l; do
27
+ [ -d " $DIR " ] && break
28
+ done
29
+
30
+ [ -f $DIR /build/.config ] || {
31
+ CMD make -C " $DIR " kvim3l_defconfig
32
+ }
33
+
34
+ CMD make -C " $DIR " " $@ "
35
+
36
+ # exit 0
37
+
38
+ F=/tmp/uboot_vim3l
39
+
40
+ [ -d $F ] && rm -rf $F
41
+ [ -d $F ] || mkdir $F
42
+
43
+ . $P /VIM2.inc
44
+
45
+ echo " [i] post process" >&2
46
+
47
+ uboot_custom_postprocess " $( realpath $DIR ) " " $( realpath ../../fip) " " $F "
48
+
49
+ cd $F
50
+
51
+ mv u-boot.bin u-boot.spi.bin
52
+ mv u-boot.bin.sd.bin u-boot.sd.bin
53
+ rm bl* a* * .tpl * .bl2
54
+ rm fip.bin * _new.bin * encrypt*
55
+
56
+ for b in * .bin; do
57
+ gzip -c $b > $b .gz
58
+ done
59
+
60
+ echo " [i] output: $F " >&2
61
+ ls -l1 $F
You can’t perform that action at this time.
0 commit comments