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.
9 include $(TOPDIR
)/rules.mk
10 include $(INCLUDE_DIR
)/kernel.mk
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
22 include $(INCLUDE_DIR
)/package.mk
24 UBOOT_CONFIG
=$(strip $(subst ",, $(CONFIG_UBOOT_TARGET)))
27 $(MAKE) -C $(PKG_BUILD_DIR) $(UBOOT_CONFIG)_config
28 export CROSS_COMPILE=$(TARGET_CROSS); \
29 $(MAKE) -C $(PKG_BUILD_DIR)
30 mkdir -p $(PKG_BUILD_DIR)/ubclient
31 $(CP) ./ubclient/* $(PKG_BUILD_DIR)/ubclient
32 $(MAKE) -C $(PKG_BUILD_DIR)/ubclient \
33 $(TARGET_CONFIGURE_OPTS) \
34 CFLAGS="$(TARGET_CFLAGS
) -Dtarget_
$(BOARD
)=1"
37 define Build/InstallDev
38 dd if=$(PKG_BUILD_DIR)/u-boot.bin of=$(PKG_BUILD_DIR)/u-boot.block bs=232k count=1 conv=sync
39 # $(INSTALL_DIR) $(STAGING_DIR)/ubclient/sbin
40 # $(INSTALL_BIN) $(PKG_BUILD_DIR)/ubclient/ubpar $(STAGING_DIR)/ubclient/sbin/
41 $(CP) $(PKG_BUILD_DIR)/ubclient/ubpar ../../base-files/default/sbin
44 $(eval $(call Build/DefaultTargets))
This page took 0.045153 seconds and 5 git commands to generate.