gdb: decouple toolchain and package, add special package for microblaze, looks cleane...
[openadk.git] / package / gdb-microblaze / Makefile
bloba2527833025b9cfa8e383f8d9ec715ff218fce97
1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include ${ADK_TOPDIR}/rules.mk
6 PKG_NAME:= gdb
7 PKG_VERSION:= 7.8.2
8 PKG_RELEASE:= 1
9 PKG_DESCR:= programm debugger
10 PKG_SECTION:= app/debug
11 PKG_HASH:= 605954d5747d5f08ea4b7f48e958d1ebbf39265e18f7f36738deeabb83744485
12 PKG_DEPENDS:= libncurses zlib libexpat libthread-db
13 PKG_BUILDDEP:= ncurses readline expat zlib
14 PKG_SITES:= ${MASTER_SITE_GNU:=gdb/}
15 PKG_NOPARALLEL:= 1
17 PKG_ARCH_DEPENDS:= microblaze
19 include ${ADK_TOPDIR}/mk/package.mk
21 $(eval $(call PKG_template,GDB,gdb,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
23 TARGET_CFLAGS+= ${TARGET_CPPFLAGS} -fPIC
24 CONFIGURE_ARGS+= --without-uiout \
25 --disable-tui \
26 --disable-gdbtk \
27 --disable-gdbserver \
28 --without-x \
29 --disable-sim \
30 --disable-werror \
31 --without-python \
32 --without-included-gettext \
33 --without-auto-load-safe-path \
34 --disable-install-libiberty \
35 --disable-install-libbfd \
36 --with-curses \
37 --enable-gdbmi
39 XAKE_FLAGS+= LDFLAGS='${TARGET_LDFLAGS}'
40 # disable honour cflags stuff
41 XAKE_FLAGS+= GCC_HONOUR_COPTS:=s
43 gdb-install:
44 ${INSTALL_DIR} ${IDIR_GDB}/usr/bin
45 ${INSTALL_BIN} ${WRKINST}/usr/bin/gdb \
46 ${IDIR_GDB}/usr/bin/
47 # shipped libbfd conflicts with system wide one
48 rm -f ${WRKINST}/usr/lib/libbfd*
50 include ${ADK_TOPDIR}/mk/pkg-bottom.mk