Add i2c driver (to etrax) improved by Geert Vancompernolle
[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 # $Id$
8
9 include $(TOPDIR)/rules.mk
10 include $(INCLUDE_DIR)/kernel.mk
11
12 PKG_NAME:=u-boot
13 PKG_VERSION:=1.1.4
14 PKG_RELEASE:=1
15
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
19 PKG_MD5SUM:=
20 PKG_CAT:=bzcat
21
22 include $(INCLUDE_DIR)/package.mk
23
24 UBOOT_CONFIG=$(strip $(subst ",, $(CONFIG_UBOOT_TARGET)))
25 LAN_IP=$(strip $(CONFIG_UBOOT_IPADDR))
26 LAN_SERVERIP=$(strip $(subst ",, $(CONFIG_UBOOT_SERVERIP)))
27
28 define Build/Compile
29 $(MAKE) -C $(PKG_BUILD_DIR) $(UBOOT_CONFIG)_config
30 export CROSS_COMPILE=$(TARGET_CROSS); \
31 export LAN_IP=$(LAN_IP); \
32 export LAN_SERVERIP=$(LAN_SERVERIP); \
33 $(MAKE) -C $(PKG_BUILD_DIR)
34 mkdir -p $(PKG_BUILD_DIR)/ubclient
35 $(CP) ./ubclient/* $(PKG_BUILD_DIR)/ubclient
36 export LAN_IP=$(LAN_IP); \
37 export LAN_SERVERIP=$(LAN_SERVERIP); \
38 $(MAKE) -C $(PKG_BUILD_DIR)/ubclient \
39 $(TARGET_CONFIGURE_OPTS) \
40 CFLAGS="$(TARGET_CFLAGS) -Dtarget_$(BOARD)=1"
41 endef
42
43 define Build/InstallDev
44 dd if=$(PKG_BUILD_DIR)/u-boot.bin of=$(PKG_BUILD_DIR)/u-boot.block bs=232k count=1 conv=sync
45 # $(INSTALL_DIR) $(STAGING_DIR)/ubclient/sbin
46 # $(INSTALL_BIN) $(PKG_BUILD_DIR)/ubclient/ubpar $(STAGING_DIR)/ubclient/sbin/
47 $(CP) $(PKG_BUILD_DIR)/ubclient/ubpar ../../base-files/default/sbin
48 endef
49
50 $(eval $(call Build/DefaultTargets))
This page took 0.039459 seconds and 5 git commands to generate.