fix spurious ifxmips u-boot build errors
[openwrt/svn-archive/archive.git] / target / linux / ifxmips / image / u-boot / Makefile
1 #
2 # Copyright (C) 2008 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9 include $(INCLUDE_DIR)/kernel.mk
10
11 PKG_NAME:=u-boot
12 PKG_VERSION:=1.1.5
13 PKG_RELEASE:=1
14
15 PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
17 PKG_SOURCE_URL:=ftp://ftp.denx.de/pub/u-boot
18 PKG_MD5SUM:=579707c8ecbf1ab4127285d2aac2a9ee
19 PKG_CAT:=bzcat
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Build/Compile
24 cp -r ./files/* $(PKG_BUILD_DIR)
25 find $(PKG_BUILD_DIR) -name .svn | $(XARGS) rm -rf
26 cd $(PKG_BUILD_DIR);chmod a+x build_danube.sh;./build_danube.sh
27 endef
28
29 define Build/InstallDev
30 mkdir -p $(BIN_DIR)
31 dd if=$(PKG_BUILD_DIR)/u-boot.ifx of=$(BIN_DIR)/u-boot.ifx bs=64k conv=sync
32 endef
33
34 $(eval $(call Build/DefaultTargets))