2 # Copyright (C) 2006-2009 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 include $(TOPDIR
)/rules.mk
12 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
13 PKG_MD5SUM
:=4ee9824c1e8d6108d886c6c09b24f0ac
14 PKG_SOURCE_URL
:=ftp
://sourceware.org
/pub
/insight
/releases
17 STAGING_DIR_HOST
:=$(TOOLCHAIN_DIR
)
18 BUILD_DIR_HOST
:=$(BUILD_DIR_TOOLCHAIN
)
20 include $(INCLUDE_DIR
)/host-build.mk
23 (cd
$(HOST_BUILD_DIR
); \
24 gdb_cv_func_sigsetjmp
=yes \
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
) \
38 $(MAKE
) -C
$(HOST_BUILD_DIR
)
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
51 $(TOOLCHAIN_DIR
)/bin
/$(TARGET_CROSS
)insight \
52 $(TOOLCHAIN_DIR
)/bin
/$(GNU_TARGET_NAME
)-insight
55 $(eval
$(call HostBuild
))