[ifxmips] remove the 2.6.28 specific Kernel/Prepare hack
[openwrt.git] / target / linux / at91 / image / u-boot / Makefile
1 #
2 # Copyright (C) 2006 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.4
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:=
19 PKG_CAT:=bzcat
20
21 include $(INCLUDE_DIR)/package.mk
22
23 UBOOT_CONFIG=$(strip $(subst ",, $(CONFIG_UBOOT_TARGET)))
24 LAN_IP=$(strip $(CONFIG_UBOOT_IPADDR))
25 LAN_SERVERIP=$(strip $(subst ",, $(CONFIG_UBOOT_SERVERIP)))
26
27 define Build/Compile
28 $(MAKE) -C $(PKG_BUILD_DIR) $(UBOOT_CONFIG)_config
29 export CROSS_COMPILE=$(TARGET_CROSS); \
30 export LAN_IP=$(LAN_IP); \
31 export LAN_SERVERIP=$(LAN_SERVERIP); \
32 $(MAKE) -C $(PKG_BUILD_DIR)
33 mkdir -p $(PKG_BUILD_DIR)/ubclient
34 $(CP) ./ubclient/* $(PKG_BUILD_DIR)/ubclient
35 export LAN_IP=$(LAN_IP); \
36 export LAN_SERVERIP=$(LAN_SERVERIP); \
37 $(MAKE) -C $(PKG_BUILD_DIR)/ubclient \
38 $(TARGET_CONFIGURE_OPTS) \
39 CFLAGS="$(TARGET_CFLAGS) -Dtarget_$(BOARD)=1"
40 endef
41
42 define Build/InstallDev
43 dd if=$(PKG_BUILD_DIR)/u-boot.bin of=$(PKG_BUILD_DIR)/u-boot.block bs=232k count=1 conv=sync
44 # $(INSTALL_DIR) $(STAGING_DIR)/ubclient/sbin
45 # $(INSTALL_BIN) $(PKG_BUILD_DIR)/ubclient/ubpar $(STAGING_DIR)/ubclient/sbin/
46 $(CP) $(PKG_BUILD_DIR)/ubclient/ubpar ../../base-files/default/sbin
47 endef
48
49 $(eval $(call Build/DefaultTargets))
This page took 0.050643 seconds and 5 git commands to generate.