Subject: [PATCH] Upgrades x86 to kernel 2.6.27 (#4195)
[openwrt.git] / package / uboot-ifxmips / 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:=2
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 PKG_TARGETS:=bin
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/uboot-ifxmips
25 SECTION:=boot
26 CATEGORY:=Boot Loaders
27 DEPENDS:=@TARGET_ifxmips
28 TITLE:=U-Boot for Infineon MIPS boards
29 URL:=http://www.denx.de/wiki/UBoot/WebHome
30 endef
31
32 define Build/Prepare
33 $(call Build/Prepare/Default)
34 cp -r $(CP_OPTS) ./files/* $(PKG_BUILD_DIR)
35 find $(PKG_BUILD_DIR) -name .svn | $(XARGS) rm -rf
36 endef
37
38 UBOOT_CONFIG:=danube
39
40 UBOOT_MAKE_OPTS:=\
41 CROSS_COMPILE=$(TARGET_CROSS) \
42 CROSS_COMPILE_UCLIBC=1 \
43 COMPRESS=lzma \
44 PLATFORM_CPU=mips32r2 \
45 UBOOT_RAM_TEXT_BASE=0xA0400000
46
47 define Build/Configure
48 $(MAKE) -s -C $(PKG_BUILD_DIR) \
49 $(UBOOT_MAKE_OPTS) \
50 $(UBOOT_CONFIG)_config
51 endef
52
53 define Build/Compile
54 $(MAKE) -s -C $(PKG_BUILD_DIR) \
55 $(UBOOT_MAKE_OPTS) \
56 ifx_all
57 if [ `stat -c%s $(PKG_BUILD_DIR)/u-boot.ifx` -gt 65536 ] ;\
58 then \
59 echo "u-boot.ifx file has exceeded 64MB in size."; exit 1; \
60 fi
61 endef
62
63 define Package/uboot-ifxmips/install
64 mkdir -p $(1)
65 dd if=$(PKG_BUILD_DIR)/u-boot.ifx of=$(1)/u-boot.ifx bs=64k conv=sync
66 endef
67
68 $(eval $(call BuildPackage,uboot-ifxmips))
This page took 0.059938 seconds and 5 git commands to generate.