Build ATF images for i.MX8MP. Tested on Kontron OSM-S/BL i.MX8MP. The default IMX_BOOT_UART_BASE for imx8mp platforms is 0x30890000, which would be UART2. The Kontron board however uses UART3 as serial debug console. As a result, after loading BL31 the system hangs. Setting IMX_BOOT_UART_BASE=auto will fix it. Signed-off-by: Martin Schiller <ms@dev.tdt.de>
43 lines
958 B
Makefile
43 lines
958 B
Makefile
#
|
|
# Copyright (C) 2026 Martin Schiller <ms@dev.tdt.de>
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_VERSION:=2.14.0
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_HASH:=b2a3bc360307c929714ffd8e7f1441c4888cd5d80531276e809c2de54db5dc16
|
|
|
|
PKG_MAINTAINER:=Martin Schiller <ms@dev.tdt.de>
|
|
|
|
include $(INCLUDE_DIR)/kernel.mk
|
|
include $(INCLUDE_DIR)/trusted-firmware-a.mk
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Trusted-Firmware-A/Default
|
|
BUILD_TARGET:=imx
|
|
BUILD_SUBTARGET:=cortexa53
|
|
endef
|
|
|
|
define Trusted-Firmware-A/imx8mp
|
|
NAME:=NXP i.MX8MP
|
|
PLAT:=imx8mp
|
|
endef
|
|
|
|
TFA_TARGETS:= \
|
|
imx8mp
|
|
|
|
TFA_MAKE_FLAGS += \
|
|
IMX_BOOT_UART_BASE="auto"
|
|
|
|
define Package/trusted-firmware-a/install
|
|
$(INSTALL_DIR) $(STAGING_DIR_IMAGE)
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/build/$(PLAT)/release/bl31.bin $(STAGING_DIR_IMAGE)/bl31_$(BUILD_VARIANT).bin
|
|
endef
|
|
|
|
$(eval $(call BuildPackage/Trusted-Firmware-A))
|