2020-05-04 14:31:19 +00:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
include $(INCLUDE_DIR)/kernel.mk
|
|
|
|
|
2020-09-01 07:08:52 +00:00
|
|
|
PKG_VERSION:=2020.07
|
|
|
|
PKG_HASH:=c1f5bf9ee6bb6e648edbf19ce2ca9452f614b08a9f886f1a566aa42e8cf05f6a
|
2020-05-04 14:31:19 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/u-boot.mk
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
|
|
|
|
|
|
|
define U-Boot/Default
|
|
|
|
BUILD_TARGET:=mediatek
|
|
|
|
UBOOT_IMAGE:=u-boot-mtk.bin
|
|
|
|
DEFAULT:=y
|
|
|
|
endef
|
|
|
|
|
|
|
|
define U-Boot/mt7622
|
|
|
|
NAME:=MT7622
|
|
|
|
BUILD_SUBTARGET:=mt7622
|
|
|
|
UBOOT_CONFIG:=mt7622_rfb
|
|
|
|
endef
|
|
|
|
|
2020-07-13 09:37:28 +00:00
|
|
|
define U-Boot/mt7623a_unielec_u7623
|
|
|
|
NAME:=UniElec U7623 (mt7623)
|
|
|
|
BUILD_SUBTARGET:=mt7623
|
|
|
|
UBOOT_CONFIG:=mt7623a_unielec_u7623_02
|
|
|
|
endef
|
|
|
|
|
2020-06-11 18:32:12 +00:00
|
|
|
define U-Boot/mt7623n_bpir2
|
|
|
|
NAME:=Banana Pi R2 (mt7623)
|
|
|
|
BUILD_SUBTARGET:=mt7623
|
|
|
|
UBOOT_IMAGE:=u-boot.bin
|
|
|
|
UBOOT_CONFIG:=mt7623n_bpir2
|
|
|
|
endef
|
|
|
|
|
2020-07-13 09:37:28 +00:00
|
|
|
define U-Boot/mt7629
|
|
|
|
NAME:=MT7629
|
|
|
|
BUILD_SUBTARGET:=mt7629
|
|
|
|
UBOOT_CONFIG:=mt7629_rfb
|
|
|
|
endef
|
|
|
|
|
|
|
|
UBOOT_TARGETS := mt7629 mt7622 mt7623n_bpir2 mt7623a_unielec_u7623
|
2020-05-04 14:31:19 +00:00
|
|
|
|
|
|
|
UBOOT_MAKE_FLAGS += $(UBOOT_IMAGE)
|
|
|
|
|
|
|
|
Build/Exports:=$(Host/Exports)
|
|
|
|
|
|
|
|
define Build/InstallDev
|
|
|
|
$(INSTALL_DIR) $(STAGING_DIR_IMAGE)
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/$(UBOOT_IMAGE) $(STAGING_DIR_IMAGE)/$(BUILD_VARIANT)-$(UBOOT_IMAGE)
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage/U-Boot))
|