-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathrk_make.sh
executable file
·41 lines (34 loc) · 1.54 KB
/
rk_make.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#! /bin/sh
TOP_DIR=$(pwd)
BUILDROOT_TARGET_PATH=$(pwd)/../../../buildroot/output/target/
#gpu
rm $BUILDROOT_TARGET_PATH/usr/lib/libwayland-egl.so*
rm $BUILDROOT_TARGET_PATH/usr/lib/libgbm.so*
rm $BUILDROOT_TARGET_PATH/usr/lib/libEGL.so*
rm $BUILDROOT_TARGET_PATH/usr/lib/libGLESv*
cp -d lib/gpu/* $BUILDROOT_TARGET_PATH/usr/lib/
#sd udisk..
mkdir -p $BUILDROOT_TARGET_PATH/mnt/sdcard/
mkdir -p $BUILDROOT_TARGET_PATH/mnt/udisk/
cp $(pwd)/etc/mount-sdcard.sh $BUILDROOT_TARGET_PATH/etc/
cp $(pwd)/etc/mount-udisk.sh $BUILDROOT_TARGET_PATH/etc/
cp $(pwd)/etc/umount-sdcard.sh $BUILDROOT_TARGET_PATH/etc/
cp $(pwd)/etc/umount-udisk.sh $BUILDROOT_TARGET_PATH/etc/
cp $(pwd)/etc/udev/rules.d/add-sdcard-udisk.rules $BUILDROOT_TARGET_PATH/etc/udev/rules.d/
cp $(pwd)/etc/udev/rules.d/remove-sdcard-udisk.rules $BUILDROOT_TARGET_PATH/etc/udev/rules.d/
#usb
cp $(pwd)/usb/11usb.rules $BUILDROOT_TARGET_PATH/etc/udev/rules.d/
cp $(pwd)/usb/S60usb $BUILDROOT_TARGET_PATH/etc/init.d/
cp $(pwd)/usb/usb_config $BUILDROOT_TARGET_PATH/usr/bin/
#adb
cp $(pwd)/adb/adbd $BUILDROOT_TARGET_PATH/usr/bin/
cp $(pwd)/adb/libcutils.so $BUILDROOT_TARGET_PATH/usr/lib/
cp S50rk3399init $BUILDROOT_TARGET_PATH/etc/init.d/
cp alsa_conf/rt5651/alsa.conf $BUILDROOT_TARGET_PATH/usr/share/alsa/alsa.conf
#wifi firmware
mkdir -p $BUILDROOT_TARGET_PATH/system/etc
cp -rf firmware $BUILDROOT_TARGET_PATH/system/etc/
cp -rf etc/dnsmasq.conf $BUILDROOT_TARGET_PATH/etc/
#libs for vpudec plugin,mpp decoder
cp bin/mpp_test/* $BUILDROOT_TARGET_PATH/usr/bin/
cp lib/mpp/* $BUILDROOT_TARGET_PATH/usr/lib/