2013-08-22 19:28:06 +00:00
|
|
|
#
|
2016-01-19 21:50:11 +00:00
|
|
|
# Copyright (C) 2013-2016 OpenWrt.org
|
2013-08-22 19:28:06 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
2017-01-25 06:31:01 +00:00
|
|
|
include $(INCLUDE_DIR)/kernel.mk
|
2013-08-22 19:28:06 +00:00
|
|
|
|
2020-04-19 22:21:59 +00:00
|
|
|
PKG_VERSION:=2020.04
|
2023-01-29 17:26:10 +00:00
|
|
|
PKG_RELEASE:=6
|
2013-08-22 19:28:06 +00:00
|
|
|
|
2020-04-19 22:21:59 +00:00
|
|
|
PKG_HASH:=fe732aaf037d9cc3c0909bad8362af366ae964bbdac6913a34081ff4ad565372
|
2013-08-22 19:28:06 +00:00
|
|
|
|
2017-01-23 11:15:19 +00:00
|
|
|
include $(INCLUDE_DIR)/u-boot.mk
|
2013-08-22 19:28:06 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2018-05-23 07:15:52 +00:00
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
2013-08-22 19:28:06 +00:00
|
|
|
|
2017-01-23 11:15:19 +00:00
|
|
|
define U-Boot/Default
|
|
|
|
BUILD_TARGET:=mxs
|
2022-12-24 20:06:03 +00:00
|
|
|
BUILD_SUBTARGET:=generic
|
2017-01-23 11:15:19 +00:00
|
|
|
UBOOT_IMAGE:=u-boot.sb
|
2017-01-25 06:31:01 +00:00
|
|
|
DEFAULT:=y
|
|
|
|
HIDDEN:=1
|
2013-08-22 19:28:06 +00:00
|
|
|
endef
|
|
|
|
|
2017-01-23 11:15:19 +00:00
|
|
|
define U-Boot/mx23_olinuxino
|
|
|
|
NAME:=Olinuxino i.MX233
|
2023-01-29 17:26:10 +00:00
|
|
|
BUILD_DEVICES:=olinuxino_maxi olinuxino_micro
|
2015-03-26 22:39:06 +00:00
|
|
|
endef
|
|
|
|
|
2017-01-23 11:15:19 +00:00
|
|
|
define U-Boot/duckbill
|
|
|
|
NAME:=I2SE Duckbill
|
2023-01-29 17:26:10 +00:00
|
|
|
BUILD_DEVICES:=i2se_duckbill
|
2013-08-22 19:28:06 +00:00
|
|
|
endef
|
|
|
|
|
2017-01-23 11:15:19 +00:00
|
|
|
UBOOT_TARGETS := \
|
2015-03-26 22:39:06 +00:00
|
|
|
mx23_olinuxino \
|
|
|
|
duckbill
|
2013-08-22 19:28:06 +00:00
|
|
|
|
2018-02-17 14:38:26 +00:00
|
|
|
UBOOT_MAKE_FLAGS += $(UBOOT_IMAGE)
|
2017-01-25 06:31:01 +00:00
|
|
|
|
|
|
|
define Build/InstallDev
|
2023-01-29 17:26:10 +00:00
|
|
|
$(foreach device,$(BUILD_DEVICES), \
|
|
|
|
$(INSTALL_DIR) $(STAGING_DIR_IMAGE)/$(device)
|
|
|
|
)
|
|
|
|
$(foreach device,$(BUILD_DEVICES), \
|
|
|
|
$(CP) $(patsubst %,$(PKG_BUILD_DIR)/%,$(UBOOT_IMAGE)) $(STAGING_DIR_IMAGE)/$(device)/
|
|
|
|
)
|
2013-08-22 19:28:06 +00:00
|
|
|
endef
|
|
|
|
|
2017-01-23 11:15:19 +00:00
|
|
|
$(eval $(call BuildPackage/U-Boot))
|