commit
5d4d8ea638
6 changed files with 27 additions and 15 deletions
7
Makefile
7
Makefile
|
@ -83,6 +83,13 @@ RK3399:
|
|||
PROJECT=Rockchip DEVICE=RK3399 ARCH=arm ./scripts/build_distro
|
||||
PROJECT=Rockchip DEVICE=RK3399 ARCH=aarch64 ./scripts/build_distro
|
||||
|
||||
RK33XX:
|
||||
unset DEVICE_ROOT
|
||||
unset BASE_DEVICE
|
||||
$(MAKE) RK-ARMV8-A
|
||||
BASE_DEVICE=RK-ARMV8-A $(MAKE) RK3326
|
||||
BASE_DEVICE=RK-ARMV8-A $(MAKE) RK3399
|
||||
|
||||
update:
|
||||
PROJECT=PC DEVICE=AMD64 ARCH=x86_64 ./scripts/update_packages
|
||||
|
||||
|
|
|
@ -50,7 +50,7 @@ controls_a[CONTROL_INDEX_TOUCH_CURSOR_UP] = 1217
|
|||
controls_a[CONTROL_INDEX_TOUCH_CURSOR_DOWN] = 1153
|
||||
controls_a[CONTROL_INDEX_TOUCH_CURSOR_LEFT] = 1216
|
||||
controls_a[CONTROL_INDEX_TOUCH_CURSOR_RIGHT] = 1152
|
||||
controls_a[CONTROL_INDEX_TOUCH_CURSOR_PRESS] = 1037
|
||||
controls_a[CONTROL_INDEX_TOUCH_CURSOR_PRESS] = 1035
|
||||
controls_a[CONTROL_INDEX_MENU] = 1034
|
||||
controls_a[CONTROL_INDEX_SAVE_STATE] = 65535
|
||||
controls_a[CONTROL_INDEX_LOAD_STATE] = 65535
|
||||
|
|
|
@ -6,7 +6,7 @@ PKG_VERSION="1.32.0-UNSTABLE"
|
|||
PKG_LICENSE="mixed"
|
||||
PKG_SITE="https://mednafen.github.io/"
|
||||
PKG_URL="${PKG_SITE}/releases/files/${PKG_NAME}-${PKG_VERSION}.tar.xz"
|
||||
PKG_DEPENDS_TARGET="toolchain SDL2"
|
||||
PKG_DEPENDS_TARGET="toolchain SDL2 flac"
|
||||
PKG_TOOLCHAIN="configure"
|
||||
|
||||
if [ "${DEVICE}" = "S922X*" ]; then
|
||||
|
|
|
@ -16,7 +16,8 @@ case ${DEVICE} in
|
|||
PKG_URL="${PKG_SITE}.git"
|
||||
PKG_GIT_CLONE_BRANCH="csf"
|
||||
;;
|
||||
RK33*|RK3566) #Using upstream dev for panfrost
|
||||
# keep RK3399 and RK-ARMV8-A on same version to maintain cross comaptibility
|
||||
RK33*|RK-ARMV8-A|RK3566) #Using upstream dev for panfrost
|
||||
PKG_VERSION="0b953bdbb81439c3d812631282429feeaf393db8"
|
||||
PKG_SITE="https://gitlab.freedesktop.org/mesa/mesa"
|
||||
PKG_URL="${PKG_SITE}.git"
|
||||
|
|
|
@ -155,7 +155,7 @@
|
|||
HTOP_TOOL="yes"
|
||||
|
||||
# Exclude packages that are device specific, etc.
|
||||
EXCLUDE_PKGS="retroarch parallel-n64-lr yabasanshiro-lr "
|
||||
EXCLUDE_PKGS="retroarch parallel-n64-lr yabasanshiro-lr duckstation-sa "
|
||||
EXCLUDE_PKGS+="flycast-sa flycast2021-lr mednafen drastic-sa"
|
||||
|
||||
NO_IMAGE="yes"
|
||||
|
|
|
@ -61,28 +61,32 @@ then
|
|||
elif [ -n "$BASE_DEVICE" ]
|
||||
then
|
||||
build_dir="build.${DISTRO}-${DEVICE}.${ARCH}"
|
||||
# not the best check but the build gets created before this
|
||||
if [ ! -d "${build_dir}/.threads" ]; then
|
||||
build_dir_base="build.${DISTRO}-${BASE_DEVICE}.${ARCH}"
|
||||
echo "$build_dir_base"
|
||||
if [ -d "$build_dir_base" ]; then
|
||||
echo "Setting up ${DEVICE} build dir with ${BASE_DEVICE} as base"
|
||||
mkdir -p ${build_dir}
|
||||
mkdir -p ${build_dir}/.stamps
|
||||
ln -sr -t ${build_dir} ${build_dir_base}/*/
|
||||
ln -sr -t ${build_dir}/.stamps ${build_dir_base}/.stamps/*/
|
||||
if [ ! -d "$build_dir" ]; then
|
||||
mkdir -p ${build_dir}
|
||||
else
|
||||
find ${build_dir} -maxdepth 1 -type l -exec rm {} \;
|
||||
fi
|
||||
if [ ! -d "$build_dir/.stamps" ]; then
|
||||
mkdir -p ${build_dir}/.stamps
|
||||
else
|
||||
find ${build_dir}/.stamps -maxdepth 1 -type l -exec rm {} \;
|
||||
fi
|
||||
# We allow ln to fail in case some linkpaths exists, because we should prioritize the end device
|
||||
ln -sr -t ${build_dir} ${build_dir_base}/*/ || true
|
||||
ln -sr -t ${build_dir}/.stamps ${build_dir_base}/.stamps/*/ || true
|
||||
mkdir -p ${build_dir}/image
|
||||
rsync -a ${build_dir_base}/image/ ${build_dir}/image/
|
||||
rm -f ${build_dir}/linux*
|
||||
rm -f ${build_dir}/.stamps/linux*
|
||||
rm -rf ${build_dir}/linux*
|
||||
rm -rf ${build_dir}/.stamps/linux*
|
||||
rm -rf ${build_dir}/image/.stamps/linux*
|
||||
else
|
||||
echo "Base directory: $build_dir_base doesn't exists. Exiting..."
|
||||
exit 1
|
||||
fi
|
||||
else
|
||||
echo "Build directory already exist, continue without setting up base device."
|
||||
fi
|
||||
fi
|
||||
|
||||
# Clean necessary packages.
|
||||
|
|
Loading…
Reference in a new issue