1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2025-02-03 23:11:05 +02:00
Lars-Peter Clausen 78fcab66df Merge commit 'backfire/master' into xburst
Conflicts:

	feeds.conf.default
	package/base-files/Makefile
	package/block-extroot/Makefile
	package/block-mount/Makefile
	package/busybox/Makefile
	package/busybox/config/util-linux/Config.in
	package/dnsmasq/Makefile
	package/dnsmasq/files/dnsmasq.init
	package/uhttpd/Makefile
	target/linux/adm5120/image/Makefile
	target/linux/amazon/image/Makefile
	target/linux/ar71xx/config-2.6.33
	target/linux/ar71xx/config-2.6.34
	target/linux/at91/image/Makefile
	target/linux/atheros/patches-2.6.33/220-enet_micrel_workaround.patch
	target/linux/coldfire/image/Makefile
	target/linux/ep93xx/image/Makefile
	target/linux/etrax/image/Makefile
	target/linux/gemini/image/Makefile
	target/linux/generic-2.6/config-2.6.33
	target/linux/generic-2.6/config-2.6.34
	target/linux/generic-2.6/patches-2.6.33/007-squashfs_make_lzma_available.patch
	target/linux/generic-2.6/patches-2.6.33/014-samsung_flash
	target/linux/generic-2.6/patches-2.6.33/020-mips_multi_machine_support.patch
	target/linux/generic-2.6/patches-2.6.33/030-pci_disable_common_quirks.patch
	target/linux/generic-2.6/patches-2.6.33/060-block2mtd_init.patch
	target/linux/generic-2.6/patches-2.6.33/100-netfilter_layer7_2.21.patch
	target/linux/generic-2.6/patches-2.6.33/110-netfilter_match_speedup.patch
	target/linux/generic-2.6/patches-2.6.33/150-netfilter_imq.patch
	target/linux/generic-2.6/patches-2.6.33/202-mips_mem_functions_performance.patch
	target/linux/generic-2.6/patches-2.6.33/203-slab_maxsize.patch
	target/linux/generic-2.6/patches-2.6.33/205-skb_padding.patch
	target/linux/generic-2.6/patches-2.6.33/210-mini_fo_2.6.25_fixes.patch
	target/linux/generic-2.6/patches-2.6.33/212-mini_fo_2.6.26_fixes.patch
	target/linux/generic-2.6/patches-2.6.33/400-ledtrig_morse.patch
	target/linux/generic-2.6/patches-2.6.33/402-ledtrig_netdev.patch
	target/linux/generic-2.6/patches-2.6.33/511-yaffs-cvs-2009-04-24.patch
	target/linux/generic-2.6/patches-2.6.33/903-hostap_txpower.patch
	target/linux/generic-2.6/patches-2.6.33/924-cs5535_gpio.patch
	target/linux/generic-2.6/patches-2.6.33/940-wireless_mesh_header.patch
	target/linux/generic-2.6/patches-2.6.33/971-ocf_20080917.patch
	target/linux/generic-2.6/patches-2.6.33/980-vm_exports.patch
	target/linux/generic-2.6/patches-2.6.33/998-openwrt_lzma_options.patch
	target/linux/goldfish/image/Makefile
	target/linux/iop32x/image/Makefile
	target/linux/malta/Makefile
	target/linux/malta/README
	target/linux/malta/image/Makefile
	target/linux/mpc52xx/image/Makefile
	target/linux/mpc83xx/image/Makefile
	target/linux/omap35xx/image/Makefile
	target/linux/ppc40x/config-default
	target/linux/ppc40x/patches/004-magicbox.patch
	target/linux/ppc40x/patches/005-openrb.patch
	target/linux/ps3/image/Makefile
	target/linux/pxa/image/Makefile
	target/linux/pxcab/image/Makefile
	target/linux/ramips/image/Makefile
	target/linux/ramips/rt288x/config-2.6.32
	target/linux/ramips/rt305x/config-2.6.32
	target/linux/s3c24xx/image/Makefile
	target/linux/sibyte/image/Makefile
	target/linux/ubicom32/image/Makefile
	target/linux/x86/generic/config-default
2010-05-02 13:23:58 +02:00

101 lines
2.3 KiB
Makefile

#
# Copyright (C) 2010 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/kernel.mk
PKG_NAME:=u-boot
PKG_VERSION:=2010.03
PKG_MD5SUM:=2bf5ebf497dddc52440b1ea386cc1332
PKG_RELEASE:=1
PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=ftp://ftp.denx.de/pub/u-boot
PKG_TARGETS:=bin
include $(INCLUDE_DIR)/package.mk
ifeq ($(DUMP),)
STAMP_CONFIGURED:=$(strip $(STAMP_CONFIGURED))_$(shell grep '^CONFIG_UBOOT_' $(TOPDIR)/.config | md5s)
endif
define Package/uboot-lantiq
SECTION:=boot
CATEGORY:=Boot Loaders
DEPENDS:=@TARGET_ifxmips
TITLE:=U-Boot for Lantiq reference boards
URL:=http://www.denx.de/wiki/U-Boot
MENU:=1
endef
define Build/Prepare
$(PKG_UNPACK)
cp -r $(CP_OPTS) $(FILES_DIR)/* $(PKG_BUILD_DIR)/
$(Build/Patch)
find $(PKG_BUILD_DIR) -name .svn | $(XARGS) rm -rf
endef
UBOOT_TARGET:=$(call qstrip,$(CONFIG_UBOOT_TARGET))
UBOOT_RAMBOOT_DDR_CONFIG:=$(call qstrip,$(CONFIG_UBOOT_RAMBOOT_DDR_CONFIG))
UBOOT_MAKE_OPTS:= \
CROSS_COMPILE=$(TARGET_CROSS) \
ENDIANNESS= \
V=1
define Package/uboot-lantiq/config
source "$(SOURCE)/Config.in"
endef
define Build/Configure/Target
$(MAKE) -s -C $(PKG_BUILD_DIR) \
$(UBOOT_MAKE_OPTS) \
O=$(PKG_BUILD_DIR)/$(1) \
$(1)_config
endef
define Build/Configure
$(call Build/Configure/Target,$(UBOOT_TARGET))
ifeq ($(CONFIG_UBOOT_RAMBOOT),y)
$(call Build/Configure/Target,$(UBOOT_TARGET)_ramboot)
endif
endef
define Build/Compile/Target
$(MAKE) -s -C $(PKG_BUILD_DIR) \
$(UBOOT_MAKE_OPTS) \
O=$(PKG_BUILD_DIR)/$(1) \
all
endef
define Build/Compile
$(call Build/Compile/Target,$(UBOOT_TARGET))
ifeq ($(CONFIG_UBOOT_RAMBOOT),y)
$(call Build/Compile/Target,$(UBOOT_TARGET)_ramboot)
endif
endef
define Package/uboot-lantiq/install
mkdir -p $(1)/$(UBOOT_TARGET)
dd \
if=$(PKG_BUILD_DIR)/$(UBOOT_TARGET)/u-boot.bin \
of=$(1)/$(UBOOT_TARGET)/u-boot.bin \
bs=64k conv=sync
ifeq ($(CONFIG_UBOOT_RAMBOOT),y)
if [ -e $(UBOOT_RAMBOOT_DDR_CONFIG) ]; then \
perl ./gct \
$(UBOOT_RAMBOOT_DDR_CONFIG) \
$(PKG_BUILD_DIR)/$(UBOOT_TARGET)_ramboot/u-boot.srec \
$(1)/$(UBOOT_TARGET)/u-boot.asc; \
fi
endif
endef
$(eval $(call BuildPackage,uboot-lantiq))