2010-03-29 01:40:32 +03:00
|
|
|
#
|
|
|
|
# Copyright (C) 2010 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
include $(INCLUDE_DIR)/kernel.mk
|
|
|
|
|
|
|
|
PKG_NAME:=u-boot
|
2010-04-09 13:44:47 +03:00
|
|
|
|
|
|
|
PKG_VERSION:=2010.03
|
|
|
|
PKG_MD5SUM:=2bf5ebf497dddc52440b1ea386cc1332
|
2010-03-29 01:40:32 +03:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
|
|
|
PKG_SOURCE_URL:=ftp://ftp.denx.de/pub/u-boot
|
|
|
|
PKG_TARGETS:=bin
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2010-03-31 12:45:09 +03:00
|
|
|
ifeq ($(DUMP),)
|
2011-02-01 16:26:47 +02:00
|
|
|
STAMP_CONFIGURED:=$(PKG_BUILD_DIR)/$(BUILD_VARIANT)/.configured
|
|
|
|
STAMP_BUILT:=$(PKG_BUILD_DIR)/$(BUILD_VARIANT)/.built
|
2010-03-31 12:45:09 +03:00
|
|
|
endif
|
|
|
|
|
2011-02-01 16:26:47 +02:00
|
|
|
define Package/uboot-lantiq-template
|
2010-03-29 01:40:32 +03:00
|
|
|
SECTION:=boot
|
|
|
|
CATEGORY:=Boot Loaders
|
2011-07-07 21:20:37 +03:00
|
|
|
DEPENDS:=@TARGET_lantiq_danube
|
2010-03-29 02:33:10 +03:00
|
|
|
URL:=http://www.denx.de/wiki/U-Boot
|
2011-02-01 16:26:47 +02:00
|
|
|
VARIANT:=$(1)
|
|
|
|
TITLE:=$(1) ($(2))
|
|
|
|
MAINTAINER:=John Crispin <blogic@openwrt.org>
|
2010-03-29 01:40:32 +03:00
|
|
|
endef
|
|
|
|
|
2011-02-01 16:26:47 +02:00
|
|
|
#Lantiq
|
|
|
|
Package/uboot-lantiq-easy50712_DDR166M=$(call Package/uboot-lantiq-template,easy50712_DDR166M,NOR)
|
|
|
|
Package/uboot-lantiq-easy50712_DDR166M_ramboot=$(call Package/uboot-lantiq-template,easy50712_DDR166M_ramboot,RAM)
|
|
|
|
Package/uboot-lantiq-easy50812_DDR166M=$(call Package/uboot-lantiq-template,easy50812_DDR166M,NOR)
|
|
|
|
Package/uboot-lantiq-easy50812_DDR166M_ramboot=$(call Package/uboot-lantiq-template,easy50812_DDR166M_ramboot,RAM)
|
|
|
|
|
|
|
|
DDR_CONFIG_easy50712_DDR166M_ramboot:=easy50712_DDR166M
|
|
|
|
DDR_CONFIG_easy50812_DDR166M_ramboot:=easy50812
|
|
|
|
|
2011-07-06 13:36:47 +03:00
|
|
|
#Siemens
|
|
|
|
Package/uboot-lantiq-gigaSX76X_DDRsamsung166=$(call Package/uboot-lantiq-template,gigaSX76X_DDRsamsung166,NOR)
|
|
|
|
|
2011-02-01 16:26:47 +02:00
|
|
|
#Arcadyan
|
2011-02-24 09:41:10 +02:00
|
|
|
Package/uboot-lantiq-arv3527P_flash=$(call Package/uboot-lantiq-template,arv3527P_flash,NOR)
|
|
|
|
Package/uboot-lantiq-arv3527P_ramboot=$(call Package/uboot-lantiq-template,arv3527P_ramboot,RAM)
|
|
|
|
Package/uboot-lantiq-arv3527P_brnboot=$(call Package/uboot-lantiq-template,arv3527P_brnboot,BRN)
|
|
|
|
Package/uboot-lantiq-arv4518PW_flash=$(call Package/uboot-lantiq-template,arv4518PW_flash,NOR)
|
2011-02-03 19:33:54 +02:00
|
|
|
Package/uboot-lantiq-arv4518PW_ramboot=$(call Package/uboot-lantiq-template,arv4518PW_ramboot,RAM)
|
|
|
|
Package/uboot-lantiq-arv4518PW_brnboot=$(call Package/uboot-lantiq-template,arv4518PW_brnboot,BRN)
|
2011-02-24 09:41:10 +02:00
|
|
|
Package/uboot-lantiq-arv4520PW_flash=$(call Package/uboot-lantiq-template,arv4520PW_flash,NOR)
|
|
|
|
Package/uboot-lantiq-arv4520PW_ramboot=$(call Package/uboot-lantiq-template,arv4520PW_ramboot,RAM)
|
|
|
|
Package/uboot-lantiq-arv4520PW_brnboot=$(call Package/uboot-lantiq-template,arv4520PW_brnboot,BRN)
|
|
|
|
Package/uboot-lantiq-arv4525PW_flash=$(call Package/uboot-lantiq-template,arv4525PW_flash,NOR)
|
|
|
|
Package/uboot-lantiq-arv4525PW_ramboot=$(call Package/uboot-lantiq-template,arv4525PW_ramboot,RAM)
|
|
|
|
Package/uboot-lantiq-arv4525PW_brnboot=$(call Package/uboot-lantiq-template,arv4525PW_brnboot,BRN)
|
2011-07-17 22:27:34 +03:00
|
|
|
Package/uboot-lantiq-arv7525PW_flash=$(call Package/uboot-lantiq-template,arv7525PW_flash,NOR)
|
|
|
|
Package/uboot-lantiq-arv7525PW_ramboot=$(call Package/uboot-lantiq-template,arv7525PW_ramboot,RAM)
|
|
|
|
Package/uboot-lantiq-arv7525PW_brnboot=$(call Package/uboot-lantiq-template,arv7525PW_brnboot,BRN)
|
2011-02-24 09:41:10 +02:00
|
|
|
Package/uboot-lantiq-arv452CPW_flash=$(call Package/uboot-lantiq-template,arv452CPW_flash,NOR)
|
2011-02-03 19:33:54 +02:00
|
|
|
Package/uboot-lantiq-arv452CPW_ramboot=$(call Package/uboot-lantiq-template,arv452CPW_ramboot,RAM)
|
|
|
|
Package/uboot-lantiq-arv452CPW_brnboot=$(call Package/uboot-lantiq-template,arv452CPW_brnboot,BRN)
|
2011-02-24 09:41:10 +02:00
|
|
|
Package/uboot-lantiq-arv752DPW_flash=$(call Package/uboot-lantiq-template,arv752DPW_flash,NOR)
|
2011-02-01 16:26:47 +02:00
|
|
|
Package/uboot-lantiq-arv752DPW_ramboot=$(call Package/uboot-lantiq-template,arv752DPW_ramboot,RAM)
|
|
|
|
Package/uboot-lantiq-arv752DPW_brnboot=$(call Package/uboot-lantiq-template,arv752DPW_brnboot,BRN)
|
2011-02-24 09:41:10 +02:00
|
|
|
Package/uboot-lantiq-arv752DPW22_flash=$(call Package/uboot-lantiq-template,arv752DPW22_flash,NOR)
|
2011-02-01 16:26:47 +02:00
|
|
|
Package/uboot-lantiq-arv752DPW22_ramboot=$(call Package/uboot-lantiq-template,arv752DPW22_ramboot,RAM)
|
|
|
|
Package/uboot-lantiq-arv752DPW22_brnboot=$(call Package/uboot-lantiq-template,arv752DPW22_brnboot,BRN)
|
|
|
|
|
2011-02-24 09:41:10 +02:00
|
|
|
DDR_CONFIG_arv3527P_ramboot:=arcadyan_psc166_32
|
|
|
|
DDR_CONFIG_arv4518PW_ramboot:=arcadyan_psc166_64
|
|
|
|
DDR_CONFIG_arv4520PW_ramboot:=arcadyan_psc166_32
|
|
|
|
DDR_CONFIG_arv4525PW_ramboot:=arcadyan_psc166_32
|
2011-07-17 22:27:34 +03:00
|
|
|
DDR_CONFIG_arv7525PW_ramboot:=arcadyan_psc166_32
|
2011-02-24 09:41:10 +02:00
|
|
|
DDR_CONFIG_arv452CPW_ramboot:=arcadyan_psc166_32
|
|
|
|
DDR_CONFIG_arv752DPW_ramboot:=arcadyan_psc166_64
|
|
|
|
DDR_CONFIG_arv752DPW22_ramboot:=arcadyan_psc166_64
|
2011-02-01 16:26:47 +02:00
|
|
|
|
2010-03-29 01:40:32 +03:00
|
|
|
define Build/Prepare
|
|
|
|
$(PKG_UNPACK)
|
|
|
|
cp -r $(CP_OPTS) $(FILES_DIR)/* $(PKG_BUILD_DIR)/
|
|
|
|
$(Build/Patch)
|
|
|
|
find $(PKG_BUILD_DIR) -name .svn | $(XARGS) rm -rf
|
|
|
|
endef
|
|
|
|
|
|
|
|
UBOOT_MAKE_OPTS:= \
|
|
|
|
CROSS_COMPILE=$(TARGET_CROSS) \
|
|
|
|
ENDIANNESS= \
|
|
|
|
V=1
|
|
|
|
|
|
|
|
define Build/Configure/Target
|
|
|
|
$(MAKE) -s -C $(PKG_BUILD_DIR) \
|
|
|
|
$(UBOOT_MAKE_OPTS) \
|
2011-02-01 16:26:47 +02:00
|
|
|
O=$(PKG_BUILD_DIR)/$(BUILD_VARIANT) \
|
2010-03-29 01:40:32 +03:00
|
|
|
$(1)_config
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Configure
|
2011-02-01 16:26:47 +02:00
|
|
|
$(call Build/Configure/Target,$(BUILD_VARIANT))
|
2010-03-29 01:40:32 +03:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile/Target
|
|
|
|
$(MAKE) -s -C $(PKG_BUILD_DIR) \
|
|
|
|
$(UBOOT_MAKE_OPTS) \
|
|
|
|
O=$(PKG_BUILD_DIR)/$(1) \
|
|
|
|
all
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
2011-02-01 16:26:47 +02:00
|
|
|
$(call Build/Compile/Target,$(BUILD_VARIANT))
|
2010-03-29 01:40:32 +03:00
|
|
|
endef
|
|
|
|
|
2011-02-01 16:26:47 +02:00
|
|
|
define Package/uboot-lantiq-$(BUILD_VARIANT)/install
|
|
|
|
mkdir -p $(1)
|
2011-09-26 12:00:11 +03:00
|
|
|
ifneq ($(findstring flash,$(BUILD_VARIANT)),)
|
2011-02-24 09:41:10 +02:00
|
|
|
dd \
|
2011-09-26 12:00:11 +03:00
|
|
|
if=$(PKG_BUILD_DIR)/$(BUILD_VARIANT)/u-boot-bootstrap.bin \
|
|
|
|
of=$(1)/u-boot-bootstrap.bin \
|
2011-02-24 09:41:10 +02:00
|
|
|
bs=64k conv=sync
|
|
|
|
else
|
2010-03-29 01:40:32 +03:00
|
|
|
dd \
|
2011-09-26 12:00:11 +03:00
|
|
|
if=$(PKG_BUILD_DIR)/$(BUILD_VARIANT)/u-boot.bin \
|
|
|
|
of=$(1)/u-boot.bin \
|
2010-03-29 01:40:32 +03:00
|
|
|
bs=64k conv=sync
|
2011-02-24 09:41:10 +02:00
|
|
|
endif
|
2011-02-01 16:26:47 +02:00
|
|
|
ifneq ($(findstring ramboot,$(BUILD_VARIANT)),)
|
|
|
|
if [ -e $(DDR_CONFIG_$(BUILD_VARIANT)).conf ]; then \
|
2010-03-29 01:40:32 +03:00
|
|
|
perl ./gct \
|
2011-02-01 16:26:47 +02:00
|
|
|
$(DDR_CONFIG_$(BUILD_VARIANT)).conf \
|
|
|
|
$(PKG_BUILD_DIR)/$(BUILD_VARIANT)/u-boot.srec \
|
|
|
|
$(1)/u-boot.asc; \
|
2010-03-29 01:40:32 +03:00
|
|
|
fi
|
2010-03-30 16:49:42 +03:00
|
|
|
endif
|
2010-03-29 01:40:32 +03:00
|
|
|
endef
|
|
|
|
|
2011-02-01 16:26:47 +02:00
|
|
|
$(eval $(call BuildPackage,uboot-lantiq-easy50712_DDR166M))
|
|
|
|
$(eval $(call BuildPackage,uboot-lantiq-easy50712_DDR166M_ramboot))
|
|
|
|
$(eval $(call BuildPackage,uboot-lantiq-easy50812_DDR166M))
|
|
|
|
$(eval $(call BuildPackage,uboot-lantiq-easy50812_DDR166M_ramboot))
|
2011-07-06 13:36:47 +03:00
|
|
|
$(eval $(call BuildPackage,uboot-lantiq-gigaSX76X_DDRsamsung166))
|
2011-02-24 09:41:10 +02:00
|
|
|
#$(eval $(call BuildPackage,uboot-lantiq-arv3527P_flash))
|
|
|
|
#$(eval $(call BuildPackage,uboot-lantiq-arv3527P_brnboot))
|
|
|
|
#$(eval $(call BuildPackage,uboot-lantiq-arv3527P_ramboot))
|
|
|
|
$(eval $(call BuildPackage,uboot-lantiq-arv4518PW_flash))
|
2011-02-03 19:33:54 +02:00
|
|
|
$(eval $(call BuildPackage,uboot-lantiq-arv4518PW_brnboot))
|
|
|
|
$(eval $(call BuildPackage,uboot-lantiq-arv4518PW_ramboot))
|
2011-02-24 09:41:10 +02:00
|
|
|
$(eval $(call BuildPackage,uboot-lantiq-arv4520PW_flash))
|
|
|
|
$(eval $(call BuildPackage,uboot-lantiq-arv4520PW_brnboot))
|
|
|
|
$(eval $(call BuildPackage,uboot-lantiq-arv4520PW_ramboot))
|
|
|
|
$(eval $(call BuildPackage,uboot-lantiq-arv4525PW_flash))
|
|
|
|
$(eval $(call BuildPackage,uboot-lantiq-arv4525PW_brnboot))
|
|
|
|
$(eval $(call BuildPackage,uboot-lantiq-arv4525PW_ramboot))
|
2011-07-17 22:27:34 +03:00
|
|
|
$(eval $(call BuildPackage,uboot-lantiq-arv7525PW_flash))
|
|
|
|
$(eval $(call BuildPackage,uboot-lantiq-arv7525PW_brnboot))
|
|
|
|
$(eval $(call BuildPackage,uboot-lantiq-arv7525PW_ramboot))
|
2011-02-24 09:41:10 +02:00
|
|
|
$(eval $(call BuildPackage,uboot-lantiq-arv452CPW_flash))
|
2011-02-03 19:33:54 +02:00
|
|
|
$(eval $(call BuildPackage,uboot-lantiq-arv452CPW_brnboot))
|
|
|
|
$(eval $(call BuildPackage,uboot-lantiq-arv452CPW_ramboot))
|
2011-02-24 09:41:10 +02:00
|
|
|
$(eval $(call BuildPackage,uboot-lantiq-arv752DPW_flash))
|
2011-02-01 16:26:47 +02:00
|
|
|
$(eval $(call BuildPackage,uboot-lantiq-arv752DPW_brnboot))
|
|
|
|
$(eval $(call BuildPackage,uboot-lantiq-arv752DPW_ramboot))
|
2011-02-24 09:41:10 +02:00
|
|
|
$(eval $(call BuildPackage,uboot-lantiq-arv752DPW22_flash))
|
2011-02-01 16:26:47 +02:00
|
|
|
$(eval $(call BuildPackage,uboot-lantiq-arv752DPW22_brnboot))
|
|
|
|
$(eval $(call BuildPackage,uboot-lantiq-arv752DPW22_ramboot))
|
|
|
|
|