2 # Copyright (C) 2006 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
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
21 include $(INCLUDE_DIR
)/package.mk
23 UBOOT_CONFIG
=$(call qstrip
,$(CONFIG_UBOOT_TARGET
))
24 LAN_IP
=$(call qstrip
,$(CONFIG_UBOOT_IPADDR
))
25 LAN_SERVERIP
=$(call qstrip
,$(CONFIG_UBOOT_SERVERIP
))
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"
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/sbin
48 cp
$(PKG_BUILD_DIR
)/u-boot.bin
$(BIN_DIR
)/u-boot.
$(PKG_VERSION
).bin
51 $(eval
$(call Build
/DefaultTargets
))
This page took 0.040307 seconds and 5 git commands to generate.