ar71xx: use the lzma loader on the Planex boards
[openwrt.git] / toolchain / insight / Makefile
1 #
2 # Copyright (C) 2006-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 include $(TOPDIR)/rules.mk
8
9 PKG_NAME:=insight
10 PKG_VERSION:=6.8-1
11
12 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
13 PKG_MD5SUM:=4ee9824c1e8d6108d886c6c09b24f0ac
14 PKG_SOURCE_URL:=ftp://sourceware.org/pub/insight/releases
15 PKG_CAT:=bzcat
16
17 STAGING_DIR_HOST:=$(TOOLCHAIN_DIR)
18 BUILD_DIR_HOST:=$(BUILD_DIR_TOOLCHAIN)
19
20 include $(INCLUDE_DIR)/host-build.mk
21
22 define Host/Configure
23 (cd $(HOST_BUILD_DIR); \
24 gdb_cv_func_sigsetjmp=yes \
25 CFLAGS="-O2" \
26 $(HOST_BUILD_DIR)/configure \
27 --prefix=$(TOOLCHAIN_DIR) \
28 --build=$(GNU_HOST_NAME) \
29 --host=$(GNU_HOST_NAME) \
30 --target=$(REAL_GNU_TARGET_NAME) \
31 $(DISABLE_NLS) \
32 --enable-threads \
33 --enable-werror=no \
34 );
35 endef
36
37 define Host/Compile
38 $(MAKE) -C $(HOST_BUILD_DIR)
39 endef
40
41 define Host/Install
42 mkdir -p $(TOOLCHAIN_DIR)/bin
43 $(INSTALL_BIN) $(HOST_BUILD_DIR)/gdb/insight $(TOOLCHAIN_DIR)/bin/$(TARGET_CROSS)insight
44 ln -fs $(TARGET_CROSS)insight $(TOOLCHAIN_DIR)/bin/$(GNU_TARGET_NAME)-insight
45 strip $(TOOLCHAIN_DIR)/bin/$(TARGET_CROSS)insight
46 endef
47
48 define Host/Clean
49 rm -rf \
50 $(HOST_BUILD_DIR) \
51 $(TOOLCHAIN_DIR)/bin/$(TARGET_CROSS)insight \
52 $(TOOLCHAIN_DIR)/bin/$(GNU_TARGET_NAME)-insight
53 endef
54
55 $(eval $(call HostBuild))
This page took 0.040423 seconds and 5 git commands to generate.