aeeb010944
* Enable reference clock on RK3566. * Switch back to upstream dosbox-svn libretro core as our PR has merged.
66 lines
1.4 KiB
Bash
Executable file
66 lines
1.4 KiB
Bash
Executable file
#!/bin/bash
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
# Copyright (C) 2020-present Fewtarius
|
|
|
|
###
|
|
### Simple script to build JELOS
|
|
###
|
|
|
|
if [ !"${ARCH}" == true ]
|
|
then
|
|
echo "export ARCH before building."
|
|
exit 1
|
|
fi
|
|
|
|
. config/options ""
|
|
. projects/${PROJECT}/devices/${DEVICE}/options
|
|
|
|
echo "Building ${DISTRO} for ${DEVICE}"
|
|
|
|
if [ "${ENABLE_32BIT}" == "true" ]
|
|
then
|
|
PKG_CLEAN+=" ${CLEAN_EMU_32BIT}"
|
|
fi
|
|
|
|
# Clean necessary packages.
|
|
PKG_CLEAN+=" ${CLEAN_NETWORK} ${CLEAN_OS_BASE}"
|
|
|
|
if [ ! -n "${DIRTY}" ]
|
|
then
|
|
# Clean a few packages to ensure the build date and version are updated
|
|
for package in ${PKG_CLEAN}
|
|
do
|
|
echo "Clean: ${package}"
|
|
./scripts/clean ${package}
|
|
done
|
|
fi
|
|
|
|
# Clean out old builds before starting the new one.
|
|
echo "Prune old releases: ${DISTRO}-${DEVICE}.${ARCH}-*"
|
|
rm -f ./release/${DISTRO}-${DEVICE}.${ARCH}-*
|
|
|
|
# Remove the image root as it should be regenerated for every build.
|
|
rm -rf ./build.${DISTRO}-${DEVICE}.${ARCH}/image
|
|
|
|
case ${ARCH} in
|
|
arm)
|
|
[ "${BASE_ONLY}" == "true" ] || [ ! "${ENABLE_32BIT}" == "true" ] && exit 0
|
|
export PKG_BUILD_PERF=no
|
|
scripts/build_compat arm
|
|
scripts/install arm
|
|
;;
|
|
i686)
|
|
[ "${BASE_ONLY}" == "true" ] || [ ! "${ENABLE_32BIT}" == "true" ] && exit 0
|
|
export PKG_BUILD_PERF=no
|
|
scripts/build_compat x86
|
|
scripts/install x86
|
|
;;
|
|
*)
|
|
make image
|
|
esac
|
|
|
|
if [ ! $? == 0 ]
|
|
then
|
|
echo "Build failed..exiting."
|
|
exit 1
|
|
fi
|