Tweak amiberry and fix oops.

This commit is contained in:
fewtarius 2022-03-31 07:11:08 -04:00
parent 027c058e03
commit 75d119eb38
No known key found for this signature in database
GPG key ID: F4AE55305D1B8C1A

View file

@ -17,14 +17,14 @@ pre_configure_target() {
export SYSROOT_PREFIX=${SYSROOT_PREFIX}
if [[ "${DEVICE}" =~ RG552 ]]
then
AMIBERRY_PLATFORM="PLATFORM=rpi4"
AMIBERRY_PLATFORM="PLATFORM=n2"
elif [[ "${DEVICE}" =~ RG351 ]]
then
AMIBERRY_PLATFORM="PLATFORM=oga"
fi
sed -i "s|AS = as|AS \?= as|" Makefile
PKG_MAKE_OPTS_TARGET+=" all SDL_CONFIG=${SYSROOT_PREFIX}/usr/bin/sdl2-config"
PKG_MAKE_OPTS_TARGET+="${AMIBERRY_PLATFORM} all SDL_CONFIG=${SYSROOT_PREFIX}/usr/bin/sdl2-config"
}
makeinstall_target() {