2 # Copyright (C) 2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
9 include $(INCLUDE_DIR)/kernel.mk
12 PKG_VERSION:=2009.11.1
13 PKG_MD5SUM:=6086421c9e2f3a0d0dbc5f706b551dbc
16 PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
17 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
18 PKG_SOURCE_URL:=ftp://ftp.denx.de/pub/u-boot
21 include $(INCLUDE_DIR)/package.mk
23 define Package/uboot-lantiq
25 CATEGORY:=Boot Loaders
26 DEPENDS:=@TARGET_ifxmips
27 TITLE:=U-Boot for Lantiq reference boards
28 URL:=http://www.denx.de/wiki/UBoot/WebHome
33 cp -r $(CP_OPTS) $(FILES_DIR)/* $(PKG_BUILD_DIR)/
35 find $(PKG_BUILD_DIR) -name .svn | $(XARGS) rm -rf
38 UBOOT_CONFIG:=easy50712_DDR166M
40 CROSS_COMPILE=$(TARGET_CROSS) \
44 define Build/Configure/Target
45 $(MAKE) -s -C $(PKG_BUILD_DIR) \
47 O=$(PKG_BUILD_DIR)/$(1) \
51 define Build/Configure
52 $(call Build/Configure/Target,$(UBOOT_CONFIG))
53 $(call Build/Configure/Target,$(UBOOT_CONFIG)_ramboot)
56 define Build/Compile/Target
57 $(MAKE) -s -C $(PKG_BUILD_DIR) \
59 O=$(PKG_BUILD_DIR)/$(1) \
64 $(call Build/Compile/Target,$(UBOOT_CONFIG))
65 $(call Build/Compile/Target,$(UBOOT_CONFIG)_ramboot)
68 define Package/uboot-lantiq/install
69 mkdir -p $(1)/$(UBOOT_CONFIG)
71 if=$(PKG_BUILD_DIR)/$(UBOOT_CONFIG)/u-boot.bin \
72 of=$(1)/$(UBOOT_CONFIG)/u-boot.bin \
74 if [ -e $(UBOOT_CONFIG).conf ]; then \
76 $(UBOOT_CONFIG).conf \
77 $(PKG_BUILD_DIR)/$(UBOOT_CONFIG)_ramboot/u-boot.srec \
78 $(1)/$(UBOOT_CONFIG)/u-boot.asc; \
82 $(eval $(call BuildPackage,uboot-lantiq))