2021-02-02 18:04:33 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2017 Hauke Mehrtens
|
2023-07-22 14:12:27 +00:00
|
|
|
# Copyright (C) 2021-2023 Daniel Golle
|
2021-02-02 18:04:33 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=arm-trusted-firmware-mediatek
|
2023-09-10 22:39:33 +00:00
|
|
|
PKG_RELEASE:=2
|
2021-02-02 18:04:33 +00:00
|
|
|
|
|
|
|
PKG_SOURCE_PROTO:=git
|
|
|
|
PKG_SOURCE_URL=https://github.com/mtk-openwrt/arm-trusted-firmware.git
|
2023-07-22 14:12:27 +00:00
|
|
|
PKG_SOURCE_DATE:=2023-07-24
|
|
|
|
PKG_SOURCE_VERSION:=00ac6db375b76e57e1f5e9e9bffa033e907c3581
|
2023-07-31 00:12:24 +00:00
|
|
|
PKG_MIRROR_HASH:=74fc18395532c4292f530da8d00fa1873ada4e05e600c0077a7b7f85ace0d913
|
2021-02-02 18:04:33 +00:00
|
|
|
|
|
|
|
PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
|
|
|
|
|
2022-08-11 21:29:52 +00:00
|
|
|
include $(INCLUDE_DIR)/kernel.mk
|
2021-02-03 14:48:45 +00:00
|
|
|
include $(INCLUDE_DIR)/trusted-firmware-a.mk
|
2021-02-02 18:04:33 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2021-02-10 02:47:53 +00:00
|
|
|
define Trusted-Firmware-A/Default
|
|
|
|
BUILD_TARGET:=mediatek
|
|
|
|
TFA_IMAGE:=bl2.img bl31.bin
|
|
|
|
BOOT_DEVICE:=
|
2021-03-05 23:53:51 +00:00
|
|
|
DDR3_FLYBY:=
|
2022-08-13 11:54:52 +00:00
|
|
|
DDR_TYPE:=
|
|
|
|
NAND_TYPE:=
|
2023-04-26 15:28:31 +00:00
|
|
|
BOARD_QFN:=
|
2023-07-22 14:12:27 +00:00
|
|
|
DRAM_USE_COMB:=
|
2021-02-10 02:47:53 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Trusted-Firmware-A/mt7622-nor-1ddr
|
|
|
|
NAME:=MediaTek MT7622 (SPI-NOR, 1x DDR3)
|
2022-08-13 11:54:52 +00:00
|
|
|
BUILD_SUBTARGET:=mt7622
|
|
|
|
PLAT:=mt7622
|
2021-02-10 02:47:53 +00:00
|
|
|
BOOT_DEVICE:=nor
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Trusted-Firmware-A/mt7622-nor-2ddr
|
|
|
|
NAME:=MediaTek MT7622 (SPI-NOR, 2x DDR3)
|
2022-08-13 11:54:52 +00:00
|
|
|
BUILD_SUBTARGET:=mt7622
|
|
|
|
PLAT:=mt7622
|
2021-02-10 02:47:53 +00:00
|
|
|
BOOT_DEVICE:=nor
|
2021-03-05 23:53:51 +00:00
|
|
|
DDR3_FLYBY:=1
|
2021-02-02 18:04:33 +00:00
|
|
|
endef
|
|
|
|
|
2021-02-10 02:47:53 +00:00
|
|
|
define Trusted-Firmware-A/mt7622-snand-1ddr
|
|
|
|
NAME:=MediaTek MT7622 (SPI-NAND, 1x DDR3)
|
2022-08-13 11:54:52 +00:00
|
|
|
BUILD_SUBTARGET:=mt7622
|
|
|
|
PLAT:=mt7622
|
2021-02-10 02:47:53 +00:00
|
|
|
BOOT_DEVICE:=snand
|
2021-02-02 18:04:33 +00:00
|
|
|
endef
|
|
|
|
|
2021-02-10 02:47:53 +00:00
|
|
|
define Trusted-Firmware-A/mt7622-snand-2ddr
|
2021-03-08 21:27:07 +00:00
|
|
|
NAME:=MediaTek MT7622 (SPI-NAND, 2x DDR3)
|
2022-08-13 11:54:52 +00:00
|
|
|
BUILD_SUBTARGET:=mt7622
|
|
|
|
PLAT:=mt7622
|
2021-02-10 02:47:53 +00:00
|
|
|
BOOT_DEVICE:=snand
|
2021-03-05 23:53:51 +00:00
|
|
|
DDR3_FLYBY:=1
|
2021-02-02 18:04:33 +00:00
|
|
|
endef
|
|
|
|
|
2021-02-10 02:47:53 +00:00
|
|
|
define Trusted-Firmware-A/mt7622-emmc-1ddr
|
|
|
|
NAME:=MediaTek MT7622 (eMMC, 1x DDR3)
|
2022-08-13 11:54:52 +00:00
|
|
|
BUILD_SUBTARGET:=mt7622
|
|
|
|
PLAT:=mt7622
|
2021-02-10 02:47:53 +00:00
|
|
|
BOOT_DEVICE:=emmc
|
2021-02-02 18:04:33 +00:00
|
|
|
endef
|
|
|
|
|
2021-02-10 02:47:53 +00:00
|
|
|
define Trusted-Firmware-A/mt7622-emmc-2ddr
|
|
|
|
NAME:=MediaTek MT7622 (eMMC, 2x DDR3)
|
2022-08-13 11:54:52 +00:00
|
|
|
BUILD_SUBTARGET:=mt7622
|
|
|
|
PLAT:=mt7622
|
2021-02-10 02:47:53 +00:00
|
|
|
BOOT_DEVICE:=emmc
|
2021-03-05 23:53:51 +00:00
|
|
|
DDR3_FLYBY:=1
|
2021-02-02 18:04:33 +00:00
|
|
|
endef
|
|
|
|
|
2021-02-10 02:47:53 +00:00
|
|
|
define Trusted-Firmware-A/mt7622-sdmmc-1ddr
|
2022-08-13 11:54:52 +00:00
|
|
|
NAME:=MediaTek MT7622 (SD card, 1x DDR3)
|
|
|
|
BUILD_SUBTARGET:=mt7622
|
|
|
|
PLAT:=mt7622
|
2021-02-10 02:47:53 +00:00
|
|
|
BOOT_DEVICE:=sdmmc
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Trusted-Firmware-A/mt7622-sdmmc-2ddr
|
2022-08-13 11:54:52 +00:00
|
|
|
NAME:=MediaTek MT7622 (SD card, 2x DDR3)
|
|
|
|
BUILD_SUBTARGET:=mt7622
|
|
|
|
PLAT:=mt7622
|
2021-02-10 02:47:53 +00:00
|
|
|
BOOT_DEVICE:=sdmmc
|
2021-03-05 23:53:51 +00:00
|
|
|
DDR3_FLYBY:=1
|
2021-02-10 02:47:53 +00:00
|
|
|
endef
|
|
|
|
|
2023-09-23 07:00:41 +00:00
|
|
|
define Trusted-Firmware-A/mt7981-emmc-ddr4
|
|
|
|
NAME:=MediaTek MT7981 (eMMC, DDR4)
|
|
|
|
BOOT_DEVICE:=emmc
|
|
|
|
BUILD_SUBTARGET:=filogic
|
|
|
|
PLAT:=mt7981
|
|
|
|
DDR_TYPE:=ddr4
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Trusted-Firmware-A/mt7981-spim-nand-ddr4
|
|
|
|
NAME:=MediaTek MT7981 (SPI-NAND via SPIM, DDR4)
|
|
|
|
BOOT_DEVICE:=spim-nand
|
|
|
|
BUILD_SUBTARGET:=filogic
|
|
|
|
PLAT:=mt7981
|
|
|
|
DDR_TYPE:=ddr4
|
|
|
|
endef
|
|
|
|
|
2023-04-26 15:28:31 +00:00
|
|
|
define Trusted-Firmware-A/mt7981-nor-ddr3
|
|
|
|
NAME:=MediaTek MT7981 (SPI-NOR, DDR3)
|
|
|
|
BOOT_DEVICE:=nor
|
|
|
|
BUILD_SUBTARGET:=filogic
|
|
|
|
PLAT:=mt7981
|
|
|
|
DDR_TYPE:=ddr3
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Trusted-Firmware-A/mt7981-emmc-ddr3
|
|
|
|
NAME:=MediaTek MT7981 (eMMC, DDR3)
|
|
|
|
BOOT_DEVICE:=emmc
|
|
|
|
BUILD_SUBTARGET:=filogic
|
|
|
|
PLAT:=mt7981
|
|
|
|
DDR_TYPE:=ddr3
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Trusted-Firmware-A/mt7981-sdmmc-ddr3
|
|
|
|
NAME:=MediaTek MT7981 (SD card, DDR3)
|
|
|
|
BOOT_DEVICE:=sdmmc
|
|
|
|
BUILD_SUBTARGET:=filogic
|
|
|
|
PLAT:=mt7981
|
|
|
|
DDR_TYPE:=ddr3
|
|
|
|
endef
|
|
|
|
|
2023-09-18 15:40:30 +00:00
|
|
|
define Trusted-Firmware-A/mt7981-snand-ddr3
|
2023-04-26 15:28:31 +00:00
|
|
|
NAME:=MediaTek MT7981 (SPI-NAND via SNFI, DDR3)
|
|
|
|
BOOT_DEVICE:=snand
|
|
|
|
BUILD_SUBTARGET:=filogic
|
|
|
|
PLAT:=mt7981
|
|
|
|
DDR_TYPE:=ddr3
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Trusted-Firmware-A/mt7981-spim-nand-ddr3
|
|
|
|
NAME:=MediaTek MT7981 (SPI-NAND via SPIM, DDR3)
|
|
|
|
BOOT_DEVICE:=spim-nand
|
|
|
|
BUILD_SUBTARGET:=filogic
|
|
|
|
PLAT:=mt7981
|
|
|
|
DDR_TYPE:=ddr3
|
|
|
|
endef
|
|
|
|
|
2022-08-13 11:54:52 +00:00
|
|
|
define Trusted-Firmware-A/mt7986-nor-ddr4
|
|
|
|
NAME:=MediaTek MT7986 (SPI-NOR, DDR4)
|
|
|
|
BOOT_DEVICE:=nor
|
|
|
|
BUILD_SUBTARGET:=filogic
|
|
|
|
PLAT:=mt7986
|
|
|
|
DDR_TYPE:=ddr4
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Trusted-Firmware-A/mt7986-emmc-ddr4
|
|
|
|
NAME:=MediaTek MT7986 (eMMC, DDR4)
|
|
|
|
BOOT_DEVICE:=emmc
|
|
|
|
BUILD_SUBTARGET:=filogic
|
|
|
|
PLAT:=mt7986
|
|
|
|
DDR_TYPE:=ddr4
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Trusted-Firmware-A/mt7986-sdmmc-ddr4
|
|
|
|
NAME:=MediaTek MT7986 (SD card, DDR4)
|
|
|
|
BOOT_DEVICE:=sdmmc
|
|
|
|
BUILD_SUBTARGET:=filogic
|
|
|
|
PLAT:=mt7986
|
|
|
|
DDR_TYPE:=ddr4
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Trusted-Firmware-A/mt7986-snand-ddr4
|
|
|
|
NAME:=MediaTek MT7986 (SPI-NAND via SNFI, DDR4)
|
|
|
|
BOOT_DEVICE:=snand
|
|
|
|
BUILD_SUBTARGET:=filogic
|
|
|
|
PLAT:=mt7986
|
|
|
|
DDR_TYPE:=ddr4
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Trusted-Firmware-A/mt7986-spim-nand-ddr4
|
|
|
|
NAME:=MediaTek MT7986 (SPI-NAND via SPIM, DDR4)
|
|
|
|
BOOT_DEVICE:=spim-nand
|
|
|
|
BUILD_SUBTARGET:=filogic
|
|
|
|
PLAT:=mt7986
|
|
|
|
DDR_TYPE:=ddr4
|
|
|
|
NAND_TYPE:=spim:2k+64
|
|
|
|
endef
|
|
|
|
|
2023-08-26 22:01:58 +00:00
|
|
|
define Trusted-Firmware-A/mt7986-spim-nand-4k-ddr4
|
|
|
|
NAME:=MediaTek MT7986 (SPI-NAND via SPIM, DDR4)
|
|
|
|
BOOT_DEVICE:=spim-nand
|
|
|
|
BUILD_SUBTARGET:=filogic
|
|
|
|
PLAT:=mt7986
|
|
|
|
DDR_TYPE:=ddr4
|
|
|
|
NAND_TYPE:=spim:4k+256
|
|
|
|
endef
|
|
|
|
|
2022-08-13 11:54:52 +00:00
|
|
|
define Trusted-Firmware-A/mt7986-nor-ddr3
|
|
|
|
NAME:=MediaTek MT7986 (SPI-NOR, DDR3)
|
|
|
|
BOOT_DEVICE:=nor
|
|
|
|
BUILD_SUBTARGET:=filogic
|
|
|
|
PLAT:=mt7986
|
|
|
|
DDR_TYPE:=ddr3
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Trusted-Firmware-A/mt7986-emmc-ddr3
|
|
|
|
NAME:=MediaTek MT7986 (eMMC, DDR3)
|
|
|
|
BOOT_DEVICE:=emmc
|
|
|
|
BUILD_SUBTARGET:=filogic
|
|
|
|
PLAT:=mt7986
|
|
|
|
DDR_TYPE:=ddr3
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Trusted-Firmware-A/mt7986-sdmmc-ddr3
|
|
|
|
NAME:=MediaTek MT7986 (SD card, DDR3)
|
|
|
|
BOOT_DEVICE:=sdmmc
|
|
|
|
BUILD_SUBTARGET:=filogic
|
|
|
|
PLAT:=mt7986
|
|
|
|
DDR_TYPE:=ddr3
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Trusted-Firmware-A/mt7986-snand-ddr3
|
|
|
|
NAME:=MediaTek MT7986 (SPI-NAND via SNFI, DDR3)
|
|
|
|
BOOT_DEVICE:=snand
|
|
|
|
BUILD_SUBTARGET:=filogic
|
|
|
|
PLAT:=mt7986
|
|
|
|
DDR_TYPE:=ddr3
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Trusted-Firmware-A/mt7986-spim-nand-ddr3
|
|
|
|
NAME:=MediaTek MT7986 (SPI-NAND via SPIM, DDR3)
|
|
|
|
BOOT_DEVICE:=spim-nand
|
|
|
|
BUILD_SUBTARGET:=filogic
|
|
|
|
PLAT:=mt7986
|
|
|
|
DDR_TYPE:=ddr3
|
|
|
|
endef
|
|
|
|
|
2023-07-22 14:12:27 +00:00
|
|
|
define Trusted-Firmware-A/mt7988-nor-ddr3
|
|
|
|
NAME:=MediaTek MT7988 (SPI-NOR, DDR3)
|
|
|
|
BOOT_DEVICE:=nor
|
|
|
|
BUILD_SUBTARGET:=filogic
|
|
|
|
PLAT:=mt7988
|
|
|
|
DDR_TYPE:=ddr3
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Trusted-Firmware-A/mt7988-emmc-ddr3
|
|
|
|
NAME:=MediaTek MT7988 (eMMC, DDR3)
|
|
|
|
BOOT_DEVICE:=emmc
|
|
|
|
BUILD_SUBTARGET:=filogic
|
|
|
|
PLAT:=mt7988
|
|
|
|
DDR_TYPE:=ddr3
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Trusted-Firmware-A/mt7988-sdmmc-ddr3
|
|
|
|
NAME:=MediaTek MT7988 (SD card, DDR3)
|
|
|
|
BOOT_DEVICE:=sdmmc
|
|
|
|
BUILD_SUBTARGET:=filogic
|
|
|
|
PLAT:=mt7988
|
|
|
|
DDR_TYPE:=ddr3
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Trusted-Firmware-A/mt7988-snand-ddr3
|
|
|
|
NAME:=MediaTek MT7988 (SPI-NAND via SNFI, DDR3)
|
|
|
|
BOOT_DEVICE:=snand
|
|
|
|
BUILD_SUBTARGET:=filogic
|
|
|
|
PLAT:=mt7988
|
|
|
|
DDR_TYPE:=ddr3
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Trusted-Firmware-A/mt7988-spim-nand-ddr3
|
|
|
|
NAME:=MediaTek MT7988 (SPI-NAND via SPIM, DDR3)
|
|
|
|
BOOT_DEVICE:=spim-nand
|
|
|
|
BUILD_SUBTARGET:=filogic
|
|
|
|
PLAT:=mt7988
|
|
|
|
DDR_TYPE:=ddr3
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Trusted-Firmware-A/mt7988-nor-ddr4
|
|
|
|
NAME:=MediaTek MT7988 (SPI-NOR, DDR4)
|
|
|
|
BOOT_DEVICE:=nor
|
|
|
|
BUILD_SUBTARGET:=filogic
|
|
|
|
PLAT:=mt7988
|
|
|
|
DDR_TYPE:=ddr4
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Trusted-Firmware-A/mt7988-emmc-ddr4
|
|
|
|
NAME:=MediaTek MT7988 (eMMC, DDR4)
|
|
|
|
BOOT_DEVICE:=emmc
|
|
|
|
BUILD_SUBTARGET:=filogic
|
|
|
|
PLAT:=mt7988
|
|
|
|
DDR_TYPE:=ddr4
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Trusted-Firmware-A/mt7988-sdmmc-ddr4
|
|
|
|
NAME:=MediaTek MT7988 (SD card, DDR4)
|
|
|
|
BOOT_DEVICE:=sdmmc
|
|
|
|
BUILD_SUBTARGET:=filogic
|
|
|
|
PLAT:=mt7988
|
|
|
|
DDR_TYPE:=ddr4
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Trusted-Firmware-A/mt7988-snand-ddr4
|
|
|
|
NAME:=MediaTek MT7988 (SPI-NAND via SNFI, DDR4)
|
|
|
|
BOOT_DEVICE:=snand
|
|
|
|
BUILD_SUBTARGET:=filogic
|
|
|
|
PLAT:=mt7988
|
|
|
|
DDR_TYPE:=ddr4
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Trusted-Firmware-A/mt7988-spim-nand-ddr4
|
|
|
|
NAME:=MediaTek MT7988 (SPI-NAND via SPIM, DDR4)
|
|
|
|
BOOT_DEVICE:=spim-nand
|
|
|
|
BUILD_SUBTARGET:=filogic
|
|
|
|
PLAT:=mt7988
|
|
|
|
DDR_TYPE:=ddr4
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Trusted-Firmware-A/mt7988-nor-comb
|
|
|
|
NAME:=MediaTek MT7988 (SPI-NOR)
|
|
|
|
BOOT_DEVICE:=nor
|
|
|
|
BUILD_SUBTARGET:=filogic
|
|
|
|
PLAT:=mt7988
|
|
|
|
DRAM_USE_COMB:=1
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Trusted-Firmware-A/mt7988-emmc-comb
|
|
|
|
NAME:=MediaTek MT7988 (eMMC)
|
|
|
|
BOOT_DEVICE:=emmc
|
|
|
|
BUILD_SUBTARGET:=filogic
|
|
|
|
PLAT:=mt7988
|
|
|
|
DRAM_USE_COMB:=1
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Trusted-Firmware-A/mt7988-sdmmc-comb
|
|
|
|
NAME:=MediaTek MT7988 (SD card)
|
|
|
|
BOOT_DEVICE:=sdmmc
|
|
|
|
BUILD_SUBTARGET:=filogic
|
|
|
|
PLAT:=mt7988
|
|
|
|
DRAM_USE_COMB:=1
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Trusted-Firmware-A/mt7988-snand-comb
|
|
|
|
NAME:=MediaTek MT7988 (SPI-NAND via SNFI)
|
|
|
|
BOOT_DEVICE:=snand
|
|
|
|
BUILD_SUBTARGET:=filogic
|
|
|
|
PLAT:=mt7988
|
|
|
|
DRAM_USE_COMB:=1
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Trusted-Firmware-A/mt7988-spim-nand-comb
|
|
|
|
NAME:=MediaTek MT7988 (SPI-NAND via SPIM)
|
|
|
|
BOOT_DEVICE:=spim-nand
|
|
|
|
BUILD_SUBTARGET:=filogic
|
|
|
|
PLAT:=mt7988
|
|
|
|
DRAM_USE_COMB:=1
|
|
|
|
endef
|
|
|
|
|
2021-02-10 02:47:53 +00:00
|
|
|
TFA_TARGETS:= \
|
2021-03-05 17:14:02 +00:00
|
|
|
mt7622-nor-1ddr \
|
|
|
|
mt7622-nor-2ddr \
|
|
|
|
mt7622-snand-1ddr \
|
|
|
|
mt7622-snand-2ddr \
|
|
|
|
mt7622-emmc-1ddr \
|
|
|
|
mt7622-emmc-2ddr \
|
|
|
|
mt7622-sdmmc-1ddr \
|
2022-08-13 11:54:52 +00:00
|
|
|
mt7622-sdmmc-2ddr \
|
2023-04-26 15:28:31 +00:00
|
|
|
mt7981-emmc-ddr3 \
|
|
|
|
mt7981-nor-ddr3 \
|
|
|
|
mt7981-sdmmc-ddr3 \
|
2023-09-18 15:40:30 +00:00
|
|
|
mt7981-snand-ddr3 \
|
2023-04-26 15:28:31 +00:00
|
|
|
mt7981-spim-nand-ddr3 \
|
2023-09-23 07:00:41 +00:00
|
|
|
mt7981-emmc-ddr4 \
|
|
|
|
mt7981-spim-nand-ddr4 \
|
2022-08-13 11:54:52 +00:00
|
|
|
mt7986-emmc-ddr3 \
|
|
|
|
mt7986-nor-ddr3 \
|
|
|
|
mt7986-sdmmc-ddr3 \
|
|
|
|
mt7986-snand-ddr3 \
|
|
|
|
mt7986-spim-nand-ddr3 \
|
|
|
|
mt7986-emmc-ddr4 \
|
|
|
|
mt7986-nor-ddr4 \
|
|
|
|
mt7986-sdmmc-ddr4 \
|
|
|
|
mt7986-snand-ddr4 \
|
2023-07-22 14:12:27 +00:00
|
|
|
mt7986-spim-nand-ddr4 \
|
2023-08-26 22:01:58 +00:00
|
|
|
mt7986-spim-nand-4k-ddr4 \
|
2023-07-22 14:12:27 +00:00
|
|
|
mt7988-emmc-ddr3 \
|
|
|
|
mt7988-nor-ddr3 \
|
|
|
|
mt7988-sdmmc-ddr3 \
|
|
|
|
mt7988-snand-ddr3 \
|
|
|
|
mt7988-spim-nand-ddr3 \
|
|
|
|
mt7988-emmc-ddr4 \
|
|
|
|
mt7988-nor-ddr4 \
|
|
|
|
mt7988-sdmmc-ddr4 \
|
|
|
|
mt7988-snand-ddr4 \
|
|
|
|
mt7988-spim-nand-ddr4 \
|
|
|
|
mt7988-emmc-comb \
|
|
|
|
mt7988-nor-comb \
|
|
|
|
mt7988-sdmmc-comb \
|
|
|
|
mt7988-snand-comb \
|
|
|
|
mt7988-spim-nand-comb
|
2021-03-05 17:14:02 +00:00
|
|
|
|
2021-03-11 16:01:32 +00:00
|
|
|
TFA_MAKE_FLAGS += \
|
|
|
|
BOOT_DEVICE=$(BOOT_DEVICE) \
|
|
|
|
USE_MKIMAGE=1 MKIMAGE=$(STAGING_DIR_HOST)/bin/mkimage \
|
2022-08-13 11:54:52 +00:00
|
|
|
$(if $(findstring ddr4,$(DDR_TYPE)),DRAM_USE_DDR4=1) \
|
2023-04-26 15:28:31 +00:00
|
|
|
$(if $(BOARD_QFN),BOARD_QFN=1,BOARD_BGA=1) \
|
2022-08-13 11:54:52 +00:00
|
|
|
$(if $(NAND_TYPE),NAND_TYPE=$(NAND_TYPE)) \
|
|
|
|
HAVE_DRAM_OBJ_FILE=yes \
|
2021-03-11 16:01:32 +00:00
|
|
|
$(if $(DDR3_FLYBY),DDR3_FLYBY=1) \
|
2023-07-22 14:12:27 +00:00
|
|
|
$(if $(DRAM_USE_COMB),DRAM_USE_COMB=1) \
|
2021-03-11 16:01:32 +00:00
|
|
|
all
|
2021-02-02 18:04:33 +00:00
|
|
|
|
2021-02-10 02:47:53 +00:00
|
|
|
define Package/trusted-firmware-a/install
|
2021-02-02 18:04:33 +00:00
|
|
|
$(INSTALL_DIR) $(STAGING_DIR_IMAGE)
|
2022-08-13 11:54:52 +00:00
|
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/build/$(PLAT)/release/bl2.img $(STAGING_DIR_IMAGE)/$(BUILD_VARIANT)-bl2.img
|
|
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/build/$(PLAT)/release/bl31.bin $(STAGING_DIR_IMAGE)/$(BUILD_VARIANT)-bl31.bin
|
2021-02-02 18:04:33 +00:00
|
|
|
endef
|
|
|
|
|
2021-02-10 02:47:53 +00:00
|
|
|
$(eval $(call BuildPackage/Trusted-Firmware-A))
|