2012-01-14 23:02:56 +00:00
|
|
|
#
|
2013-11-08 12:37:39 +00:00
|
|
|
# Copyright (C) 2012-2013 OpenWrt.org
|
2012-01-14 23:02:56 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
2017-02-23 00:04:36 +00:00
|
|
|
include $(INCLUDE_DIR)/kernel.mk
|
2012-01-14 23:02:56 +00:00
|
|
|
|
2020-09-04 07:30:49 +00:00
|
|
|
PKG_VERSION:=2020.04
|
2019-09-06 09:25:30 +00:00
|
|
|
PKG_RELEASE:=1
|
2012-01-14 23:02:56 +00:00
|
|
|
|
2020-09-04 07:30:49 +00:00
|
|
|
PKG_HASH:=fe732aaf037d9cc3c0909bad8362af366ae964bbdac6913a34081ff4ad565372
|
2012-01-14 23:02:56 +00:00
|
|
|
|
2017-01-23 11:25:49 +00:00
|
|
|
include $(INCLUDE_DIR)/u-boot.mk
|
2012-01-14 23:02:56 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2017-01-23 11:25:49 +00:00
|
|
|
define U-Boot/Default
|
|
|
|
BUILD_TARGET:=omap
|
|
|
|
UBOOT_IMAGE:=u-boot.img MLO
|
2012-01-14 23:02:56 +00:00
|
|
|
endef
|
|
|
|
|
2017-01-23 11:25:49 +00:00
|
|
|
define U-Boot/omap4_panda
|
|
|
|
NAME:=Pandaboard
|
2018-07-19 06:48:56 +00:00
|
|
|
BUILD_DEVICES:=ti_omap4-panda
|
2012-01-14 23:02:56 +00:00
|
|
|
endef
|
|
|
|
|
2017-01-23 11:25:49 +00:00
|
|
|
define U-Boot/am335x_evm
|
|
|
|
NAME:=AM335x EVM
|
2019-09-06 09:25:30 +00:00
|
|
|
BUILD_DEVICES:=ti_am335x-evm ti_am335x-bone-black
|
2012-01-14 23:02:56 +00:00
|
|
|
endef
|
|
|
|
|
2017-01-23 11:25:49 +00:00
|
|
|
define U-Boot/omap3_overo
|
|
|
|
NAME:=Gumstix Overo
|
2013-10-31 10:57:46 +00:00
|
|
|
endef
|
|
|
|
|
2017-01-23 11:25:49 +00:00
|
|
|
define U-Boot/omap3_beagle
|
|
|
|
NAME:=BeagleBoard
|
2018-07-19 06:48:56 +00:00
|
|
|
BUILD_DEVICES:=ti_omap3-beagle
|
2012-01-14 23:02:56 +00:00
|
|
|
endef
|
|
|
|
|
2019-09-06 09:25:30 +00:00
|
|
|
UBOOT_TARGETS:=omap4_panda am335x_evm omap3_overo omap3_beagle
|
2012-01-14 23:02:56 +00:00
|
|
|
|
2017-04-15 16:49:57 +00:00
|
|
|
define Build/InstallDev
|
2019-09-06 09:25:30 +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)/
|
|
|
|
)
|
|
|
|
$(foreach device,$(BUILD_DEVICES), \
|
2019-09-06 20:53:23 +00:00
|
|
|
mkimage -C none -A arm -T script -d ./files/boot.scr.txt \
|
|
|
|
$(STAGING_DIR_IMAGE)/$(device)/boot.scr
|
2019-09-06 09:25:30 +00:00
|
|
|
)
|
2017-04-15 16:49:57 +00:00
|
|
|
endef
|
|
|
|
|
2017-01-23 11:25:49 +00:00
|
|
|
$(eval $(call BuildPackage/U-Boot))
|