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
|
|
|
|
2021-09-11 10:10:51 +00:00
|
|
|
PKG_VERSION:=2021.07
|
2021-10-02 17:03:32 +00:00
|
|
|
PKG_RELEASE:=$(AUTORELEASE)
|
2012-01-14 23:02:56 +00:00
|
|
|
|
2021-09-11 10:10:51 +00:00
|
|
|
PKG_HASH:=312b7eeae44581d1362c3a3f02c28d806647756c82ba8c72241c7cdbe68ba77e
|
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_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
|
|
|
|
|
2021-11-28 21:23:47 +00:00
|
|
|
UBOOT_TARGETS:=omap4_panda am335x_evm 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))
|