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
|
|
|
|
2017-02-01 19:21:24 +00:00
|
|
|
PKG_VERSION:=2017.01
|
2012-01-14 23:02:56 +00:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
2017-02-01 19:21:24 +00:00
|
|
|
PKG_HASH:=6c425175f93a4bcf2ec9faf5658ef279633dbd7856a293d95bd1ff516528ecf2
|
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
|
2017-04-19 02:48:03 +00:00
|
|
|
UENV:=default
|
2012-01-14 23:02:56 +00:00
|
|
|
endef
|
|
|
|
|
2017-01-23 11:25:49 +00:00
|
|
|
define U-Boot/omap4_panda
|
|
|
|
NAME:=Pandaboard
|
2017-04-15 16:52:34 +00:00
|
|
|
BUILD_DEVICES:=omap4-panda
|
2012-01-14 23:02:56 +00:00
|
|
|
endef
|
|
|
|
|
2017-04-16 17:26:45 +00:00
|
|
|
define U-Boot/am335x_boneblack
|
|
|
|
NAME:=TI AM335x BeagleBone Black
|
|
|
|
BUILD_DEVICES:=am335x-boneblack
|
|
|
|
endef
|
|
|
|
|
2017-01-23 11:25:49 +00:00
|
|
|
define U-Boot/am335x_evm
|
|
|
|
NAME:=AM335x EVM
|
2017-04-15 16:52:34 +00:00
|
|
|
BUILD_DEVICES:=am335x-evm
|
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
|
2017-04-15 16:52:34 +00:00
|
|
|
BUILD_DEVICES:=omap3-beagle
|
2012-01-14 23:02:56 +00:00
|
|
|
endef
|
|
|
|
|
2017-04-16 17:26:45 +00:00
|
|
|
UBOOT_TARGETS:=omap4_panda am335x_evm omap3_overo omap3_beagle am335x_boneblack
|
2012-01-14 23:02:56 +00:00
|
|
|
|
2017-04-15 16:49:57 +00:00
|
|
|
define Build/InstallDev
|
|
|
|
$(INSTALL_DIR) $(STAGING_DIR_IMAGE)/$(BUILD_DEVICES)
|
|
|
|
$(CP) $(patsubst %,$(PKG_BUILD_DIR)/%,$(UBOOT_IMAGE)) $(STAGING_DIR_IMAGE)/$(BUILD_DEVICES)/
|
2017-04-19 02:48:03 +00:00
|
|
|
$(CP) ./files/uEnv-$(UENV).txt $(STAGING_DIR_IMAGE)/$(BUILD_DEVICES)/uEnv.txt
|
2017-04-15 16:49:57 +00:00
|
|
|
endef
|
|
|
|
|
2017-01-23 11:25:49 +00:00
|
|
|
$(eval $(call BuildPackage/U-Boot))
|