source: trunk/target/linux/avr32/image/u-boot/Makefile @ 14702

Last change on this file since 14702 was 14702, checked in by nico, 8 years ago

[avr32] fix u-boot build error (make[...]: avr32-linux-gcc: Command not found)

File size: 906 bytes
Line 
1#
2# Copyright (C) 2008-2009 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9include $(INCLUDE_DIR)/kernel.mk
10
11PKG_NAME:=u-boot
12PKG_VERSION:=1.3.3
13PKG_RELEASE:=1
14
15PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
16PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
17PKG_SOURCE_URL:=ftp://ftp.denx.de/pub/u-boot
18PKG_MD5SUM:=6ee26954bb548ad90392cd329ab5cc4c
19PKG_CAT:=bzcat
20
21include $(INCLUDE_DIR)/package.mk
22
23UBOOT_CONFIG=$(strip $(subst ",, $(CONFIG_AVR32_UBOOT_TARGET)))
24
25define Build/Compile
26        $(MAKE) -C $(PKG_BUILD_DIR) $(UBOOT_CONFIG)_config
27        $(MAKE) -C $(PKG_BUILD_DIR) CROSS_COMPILE=$(TARGET_CROSS)
28endef
29
30define Build/InstallDev
31        mkdir -p $(BIN_DIR)
32        dd if=$(PKG_BUILD_DIR)/u-boot.bin of=$(BIN_DIR)/u-boot-$(UBOOT_CONFIG).bin bs=64k conv=sync
33endef
34
35$(eval $(call Build/DefaultTargets))
Note: See TracBrowser for help on using the repository browser.