6b13f685e
김민수
BSP 최초 추가
|
1
2
3
4
5
6
7
8
9
10
|
#!/bin/sh
DIR_NAME=$(basename $(realpath .))
build_path="../output-${DIR_NAME}"
module_install="../out"
firmware_install="../out"
if [ -z "${CP_DIR}" ]
then
|
6f95b1269
larche
= Fusing SD 제작 추가...
|
11
|
CP_DIR="../../release /tftpboot/${FA_PRODUCT} /nfs/${FA_PRODUCT}"
|
6b13f685e
김민수
BSP 최초 추가
|
12
13
14
|
fi
image_filename="arch/arm/boot/uImage"
|
5a693527a
장형기
kernel dtb 수정
|
15
|
dtb_filename="arch/arm/boot/dts/imx6s-prime-oven.dtb"
|
43a6d4d6a
남새힘
kernel: make.sh j...
|
16
|
jig_filename="arch/arm/boot/dts/imx6s-prime-oven_jig.dtb"
|
6b13f685e
김민수
BSP 최초 추가
|
17
18
|
image_target_filename="uImage"
|
5a693527a
장형기
kernel dtb 수정
|
19
|
dtb_target_filename="imx6s-prime-oven.dtb"
|
43a6d4d6a
남새힘
kernel: make.sh j...
|
20
|
jig_target_filename="imx6s-prime-oven_jig.dtb"
|
6b13f685e
김민수
BSP 최초 추가
|
21
22
23
24
25
26
27
28
29
30
31
32
33
|
if [ -f .config ]; then
echo ".....mrproper"
make mrproper
fi
if [ ! -d $build_path ]; then
mkdir $build_path
#chmod 777 $build_path
fi
if [ ! -f $build_path/.config ]; then
|
5a693527a
장형기
kernel dtb 수정
|
34
|
echo ".....imx6s prime oven defconfig"
|
6b13f685e
김민수
BSP 최초 추가
|
35
|
ARCH=arm make arm=ARM O=$build_path distclean
|
5a693527a
장형기
kernel dtb 수정
|
36
|
ARCH=arm make arm=ARM O=$build_path imx6s_prime_oven_defconfig
|
6b13f685e
김민수
BSP 최초 추가
|
37
38
39
40
|
fi
if [ "$1" = "" ]; then
|
2e2a9654a
남새힘
kernel: make.sh 오...
|
41
42
|
ARCH=arm make arm=ARM O=$build_path uImage LOADADDR=0x10008000 -j$(nproc)
ARCH=arm make arm=ARM O=$build_path dtbs -j$(nproc)
|
6b13f685e
김민수
BSP 최초 추가
|
43
|
else
|
2e2a9654a
남새힘
kernel: make.sh 오...
|
44
45
|
ARCH=arm make arm=ARM O=$build_path $1 $2 $3 -j$(nproc)
ARCH=arm make arm=ARM O=$build_path dtbs -j$(nproc)
|
6b13f685e
김민수
BSP 최초 추가
|
46
47
48
|
fi
if [ "$1" = "dtb" ]; then
|
2e2a9654a
남새힘
kernel: make.sh 오...
|
49
|
ARCH=arm make arm=ARM O=$build_path dtbs -j$(nproc)
|
6b13f685e
김민수
BSP 최초 추가
|
50
51
52
53
54
|
fi
# build kernel modules
if [ "$1" = "modules" ] ; then
|
2e2a9654a
남새힘
kernel: make.sh 오...
|
55
56
57
|
ARCH=arm INSTALL_MOD_PATH=$module_install make arm=ARM O=$build_path modules -j$(nproc)
ARCH=arm INSTALL_MOD_PATH=$module_install make arm=ARM O=$build_path modules_install -j$(nproc)
ARCH=arm INSTALL_MOD_PATH=$firmware_install make arm=ARM O=$build_path firmware_install -j$(nproc)
|
6b13f685e
김민수
BSP 최초 추가
|
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
fi
if [ -f $build_path/$image_filename ]; then
for DEST_DIR in ${CP_DIR}
do
mkdir -p ${DEST_DIR}
echo "copy from image $build_path/$image_filename to ${DEST_DIR}/$image_target_filename"
cp $build_path/$image_filename ${DEST_DIR}/$image_target_filename
done
fi
if [ -f $build_path/$dtb_filename ]; then
for DEST_DIR in ${CP_DIR}
do
mkdir -p ${DEST_DIR}
echo "copy from dtb $build_path/$dtb_filename to ${DEST_DIR}/$dtb_target_filename"
cp $build_path/$dtb_filename ${DEST_DIR}/$dtb_target_filename
done
fi
|
43a6d4d6a
남새힘
kernel: make.sh j...
|
79
80
81
82
83
84
85
86
87
|
if [ -f $build_path/$jig_filename ]; then
for DEST_DIR in ${CP_DIR}
do
mkdir -p ${DEST_DIR}
echo "copy from dtb $build_path/$jig_filename to ${DEST_DIR}/$jig_target_filename"
cp $build_path/$jig_filename ${DEST_DIR}/$jig_target_filename
done
fi
|