Commit 43a6d4d6a7906a5ad4e12de642af7b8e12036b12
1 parent
b44f31c453
Exists in
fhd
kernel: make.sh jig용 dtb 복사
Showing
1 changed file
with
20 additions
and
8 deletions
Show diff stats
kernel/linux-imx6_3.14.28/make.sh
... | ... | @@ -13,9 +13,11 @@ fi |
13 | 13 | |
14 | 14 | image_filename="arch/arm/boot/uImage" |
15 | 15 | dtb_filename="arch/arm/boot/dts/imx6s-prime-oven.dtb" |
16 | +jig_filename="arch/arm/boot/dts/imx6s-prime-oven_jig.dtb" | |
16 | 17 | |
17 | 18 | image_target_filename="uImage" |
18 | 19 | dtb_target_filename="imx6s-prime-oven.dtb" |
20 | +jig_target_filename="imx6s-prime-oven_jig.dtb" | |
19 | 21 | |
20 | 22 | if [ -f .config ]; then |
21 | 23 | echo ".....mrproper" |
... | ... | @@ -36,23 +38,23 @@ fi |
36 | 38 | |
37 | 39 | |
38 | 40 | if [ "$1" = "" ]; then |
39 | - ARCH=arm make arm=ARM O=$build_path uImage LOADADDR=0x10008000 | |
40 | - ARCH=arm make arm=ARM O=$build_path dtbs | |
41 | + ARCH=arm make arm=ARM O=$build_path uImage LOADADDR=0x10008000 -j$(proc) | |
42 | + ARCH=arm make arm=ARM O=$build_path dtbs -j$(proc) | |
41 | 43 | else |
42 | - ARCH=arm make arm=ARM O=$build_path $1 $2 $3 | |
43 | - ARCH=arm make arm=ARM O=$build_path dtbs | |
44 | + ARCH=arm make arm=ARM O=$build_path $1 $2 $3 -j$(proc) | |
45 | + ARCH=arm make arm=ARM O=$build_path dtbs -j$(proc) | |
44 | 46 | fi |
45 | 47 | |
46 | 48 | if [ "$1" = "dtb" ]; then |
47 | - ARCH=arm make arm=ARM O=$build_path dtbs | |
49 | + ARCH=arm make arm=ARM O=$build_path dtbs -j$(proc) | |
48 | 50 | fi |
49 | 51 | |
50 | 52 | |
51 | 53 | # build kernel modules |
52 | 54 | if [ "$1" = "modules" ] ; then |
53 | - ARCH=arm INSTALL_MOD_PATH=$module_install make arm=ARM O=$build_path modules | |
54 | - ARCH=arm INSTALL_MOD_PATH=$module_install make arm=ARM O=$build_path modules_install | |
55 | - ARCH=arm INSTALL_MOD_PATH=$firmware_install make arm=ARM O=$build_path firmware_install | |
55 | + ARCH=arm INSTALL_MOD_PATH=$module_install make arm=ARM O=$build_path modules -j$(proc) | |
56 | + ARCH=arm INSTALL_MOD_PATH=$module_install make arm=ARM O=$build_path modules_install -j$(proc) | |
57 | + ARCH=arm INSTALL_MOD_PATH=$firmware_install make arm=ARM O=$build_path firmware_install -j$(proc) | |
56 | 58 | fi |
57 | 59 | |
58 | 60 | if [ -f $build_path/$image_filename ]; then |
... | ... | @@ -75,3 +77,13 @@ if [ -f $build_path/$dtb_filename ]; then |
75 | 77 | done |
76 | 78 | fi |
77 | 79 | |
80 | +if [ -f $build_path/$jig_filename ]; then | |
81 | + for DEST_DIR in ${CP_DIR} | |
82 | + do | |
83 | + mkdir -p ${DEST_DIR} | |
84 | + | |
85 | + echo "copy from dtb $build_path/$jig_filename to ${DEST_DIR}/$jig_target_filename" | |
86 | + cp $build_path/$jig_filename ${DEST_DIR}/$jig_target_filename | |
87 | + done | |
88 | +fi | |
89 | + | ... | ... |