blob: 1cf737d496d8ba5a54fab41e82a510fed8529dae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
#!/usr/bin/make -f
include ../source.mk
nop:
@:
configure:
oh-autoconfigure -B obj -- \
--enable-tui \
--disable-gdbtk \
--with-system-readline \
--with-expat \
--without-python \
--with-system-gdbinit=/etc/gdb/gdbinit \
--without-lzma
touch $@
build: configure
oh-autobuild -B obj
oh-autobuild -B obj -T check-gdb
touch $@
install: build
oh-autoinstall -B obj -- MAKEINFO=:
# Remove BFD files.
rm -f \
dest/usr/include/*.h \
dest/usr/lib/$(OPK_HOST_ARCH)/libbfd.* \
dest/usr/lib/$(OPK_HOST_ARCH)/libopcodes.* \
dest/usr/share/info/bfd.info \
dest/usr/share/locale/*/LC_MESSAGES/bfd.mo \
dest/usr/share/locale/*/LC_MESSAGES/opcodes.mo
# Remove libiberty.
rm -f \
dest/usr/lib/lib/libiberty.*
# Remove GNU Info index.
rm -f dest/usr/share/info/dir
# Remove common info files.
rm -f dest/usr/share/info/configure.info
rm -f dest/usr/share/info/standards.info
# Remove Python bindings.
rm -Rf dest/usr/share/gdb/python
# Remove development files.
rm -f dest/usr/include/gdb/jit-reader.h
# Make /etc/gdbinit.
mkdir -p dest/etc/gdb
printf '# System-wide GDB initialization file.\n' >dest/etc/gdb/gdbinit
# Install gcore.
cp src/gdb/gdb_gcore.sh dest/usr/bin/gcore
# Make /usr/bin/gdbtui.
printf '#!/bin/sh\n\nexec "$${0%%tui}" --tui "$${@}"\n' \
>dest/usr/bin/gdbtui
oh-fixperms
oh-strip
oh-installfiles
|