mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
tools: atf: use ATF_PLATFORM for platform specifc quirks
This commit is contained in:
parent
4dd23ad162
commit
b0d02bc24a
@ -14,13 +14,13 @@ PKG_TOOLCHAIN="manual"
|
||||
|
||||
[ -n "${KERNEL_TOOLCHAIN}" ] && PKG_DEPENDS_TARGET+=" gcc-${KERNEL_TOOLCHAIN}:host"
|
||||
|
||||
if [ "${PROJECT}" = "Rockchip" -a "${DEVICE}" = "RK3399" ]; then
|
||||
if [ "${ATF_PLATFORM}" = "rk3399" ]; then
|
||||
PKG_DEPENDS_TARGET+=" gcc-arm-none-eabi:host"
|
||||
export M0_CROSS_COMPILE="${TOOLCHAIN}/bin/arm-none-eabi-"
|
||||
fi
|
||||
|
||||
make_target() {
|
||||
if [ "${DEVICE}" = "iMX8" ]; then
|
||||
if [ "${ATF_PLATFORM}" = "imx8mq" ]; then
|
||||
CROSS_COMPILE="${TARGET_KERNEL_PREFIX}" LDFLAGS="--no-warn-rwx-segments" CFLAGS="--param=min-pagesize=0" make PLAT=${ATF_PLATFORM} bl31
|
||||
else
|
||||
CROSS_COMPILE="${TARGET_KERNEL_PREFIX}" LDFLAGS="--no-warn-rwx-segments" CFLAGS="" make PLAT=${ATF_PLATFORM} bl31
|
||||
|
Loading…
x
Reference in New Issue
Block a user