OpenWrt – Blame information for rev 4
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
4 | office | 1 | # |
2 | # Copyright (C) 2006-2016 OpenWrt.org |
||
3 | # |
||
4 | # This is free software, licensed under the GNU General Public License v2. |
||
5 | # See /LICENSE for more information. |
||
6 | # |
||
7 | |||
8 | include $(TOPDIR)/rules.mk |
||
9 | |||
10 | PKG_NAME:=gdb-arc |
||
11 | PKG_VERSION:=arc-2017.09-gdb |
||
12 | PKG_RELEASE:=1 |
||
13 | |||
14 | PKG_SOURCE:=gdb-arc-2017.09-gdb.tar.gz |
||
15 | PKG_SOURCE_URL:=https://github.com/foss-for-synopsys-dwc-arc-processors/binutils-gdb/archive/$(PKG_VERSION) |
||
16 | PKG_HASH:=6a91f86cc487c1548d3f5d4f29f7226d2019c0db8a63633aeabd5914a340f3f9 |
||
17 | |||
18 | PKG_BUILD_DIR:=$(BUILD_DIR)/binutils-gdb-arc-2017.09-gdb |
||
19 | |||
20 | PKG_BUILD_PARALLEL:=1 |
||
21 | PKG_INSTALL:=1 |
||
22 | PKG_LICENSE:=GPL-3.0+ |
||
23 | |||
24 | include $(INCLUDE_DIR)/package.mk |
||
25 | |||
26 | define Package/gdb-arc/Default |
||
27 | SECTION:=devel |
||
28 | CATEGORY:=Development |
||
29 | DEPENDS:=+!USE_MUSL:libthread-db +PACKAGE_zlib:zlib @arc |
||
30 | URL:=http://www.gnu.org/software/gdb/ |
||
31 | endef |
||
32 | |||
33 | define Package/gdb-arc |
||
34 | $(call Package/gdb-arc/Default) |
||
35 | TITLE:=GNU Debugger for ARC |
||
36 | DEPENDS+=+libreadline +libncurses +zlib |
||
37 | endef |
||
38 | |||
39 | define Package/gdb-arc/description |
||
40 | GDB, the GNU Project debugger, allows you to see what is going on `inside' |
||
41 | another program while it executes -- or what another program was doing at the |
||
42 | moment it crashed. |
||
43 | endef |
||
44 | |||
45 | define Package/gdbserver-arc |
||
46 | $(call Package/gdb-arc/Default) |
||
47 | TITLE:=Remote server for GNU Debugger |
||
48 | endef |
||
49 | |||
50 | define Package/gdbserver-arc/description |
||
51 | GDBSERVER is a program that allows you to run GDB on a different machine than the |
||
52 | one which is running the program being debugged. |
||
53 | endef |
||
54 | |||
55 | # XXX: add --disable-werror to prevent build failure with arm |
||
56 | CONFIGURE_ARGS+= \ |
||
57 | --with-system-readline \ |
||
58 | --without-expat \ |
||
59 | --without-lzma \ |
||
60 | --disable-werror \ |
||
61 | --disable-binutils \ |
||
62 | --disable-ld \ |
||
63 | --disable-gas \ |
||
64 | --disable-sim |
||
65 | |||
66 | CONFIGURE_VARS+= \ |
||
67 | ac_cv_search_tgetent="$(TARGET_LDFLAGS) -lncurses -lreadline" |
||
68 | |||
69 | define Build/Compile |
||
70 | +$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \ |
||
71 | DESTDIR="$(PKG_INSTALL_DIR)" \ |
||
72 | CPPFLAGS="$(TARGET_CPPFLAGS)" \ |
||
73 | all |
||
74 | endef |
||
75 | |||
76 | define Build/Install |
||
77 | $(MAKE) -C $(PKG_BUILD_DIR) \ |
||
78 | DESTDIR="$(PKG_INSTALL_DIR)" \ |
||
79 | CPPFLAGS="$(TARGET_CPPFLAGS)" \ |
||
80 | install-gdb |
||
81 | endef |
||
82 | |||
83 | define Package/gdb-arc/install |
||
84 | $(INSTALL_DIR) $(1)/usr/bin |
||
85 | $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gdb $(1)/usr/bin/ |
||
86 | endef |
||
87 | |||
88 | define Package/gdbserver-arc/install |
||
89 | $(INSTALL_DIR) $(1)/usr/bin |
||
90 | $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gdbserver $(1)/usr/bin/ |
||
91 | endef |
||
92 | |||
93 | $(eval $(call BuildPackage,gdb-arc)) |
||
94 | $(eval $(call BuildPackage,gdbserver-arc)) |