-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild_pcsx.sh
executable file
·42 lines (39 loc) · 1.4 KB
/
build_pcsx.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
42
#!/bin/bash
#
# 使い方:
# $./build_pcsx.sh
# →リリース用のpcsxがビルドされます。
#
# $./build_pcsx.sh enable_menu
# →Joysticの「select + △」押下でpcsxのメニューが開くpcsxがビルドされます。
#
#
#source /usr/local/oecore-x86_64/environment-setup-cortexa7hf-neon-vfpv4-poky-linux-gnueabi
#if [ ! -e config.log ]; then
# set sdl2-config path
#export PATH=$PATH:$SDKTARGETSYSROOT/usr/bin
# CROSS_COMPILE=arm-linux-gnueabihf CFLAGS="-march=armv7ve -mfloat-abi=hard -mfpu=neon-vfpv4 -mcpu=cortex-a7 -mtune=cortex-a7"
# CFLAGS="-march=armv7-a -mfloat-abi=hard -mfpu=neon-vfpv4 -mcpu=cortex-a7 -mtune=cortex-a7"
# CFLAGS=-march=armv7-a ./configure --sound-drivers=sdl
#fi
# build.log include stdout & stderr
#if [ $# -eq 1 ]; then
# if [ $1 = "enable_menu" ]; then
BUILD_OPTION="CONFIG_ENABLE_MENU=1"
# fi
#fi
echo "make $BUILD_OPTION -j4 2>&1 | tee build.log"
make $BUILD_OPTION -j4 2>&1 | tee build.log
TARGET_EXECUTABLE=pcsx
STRIP_OPTION=-s
STRIP=strip
cp ${TARGET_EXECUTABLE} ${TARGET_EXECUTABLE}.unstripped
$(${STRIP} ${STRIP_OPTION} -o ${TARGET_EXECUTABLE} ${TARGET_EXECUTABLE}.unstripped)
#if [ -e ./pcsx ]; then
# mkdir -p ../rootfs/usr/sony/bin/
# cp ./pcsx ../rootfs/usr/sony/bin/
#fi
#if [ -e ./plugins ]; then
# mkdir -p ../rootfs/usr/sony/bin/plugins
# cp ./plugins/gpu_peops.so ../rootfs/usr/sony/bin/plugins
#fi