From: Michael Tremer Date: Fri, 27 Nov 2020 15:19:53 +0000 (+0000) Subject: gdb: Build package to be available in the build environment X-Git-Url: http://git.ipfire.org/?p=people%2Fpmueller%2Fipfire-2.x.git;a=commitdiff_plain;h=8a4495a41f9bef41bb8e2c87cdd6556869bcd03e gdb: Build package to be available in the build environment Signed-off-by: Michael Tremer --- diff --git a/config/rootfiles/common/gdb b/config/rootfiles/common/gdb new file mode 100644 index 0000000000..0bb907f5ea --- /dev/null +++ b/config/rootfiles/common/gdb @@ -0,0 +1,63 @@ +#usr/bin/gcore +#usr/bin/gdb +#usr/bin/gdb-add-index +#usr/bin/gdbserver +#usr/include/gdb +#usr/include/gdb/jit-reader.h +#usr/lib/libinproctrace.so +#usr/share/gdb/python +#usr/share/gdb/python/gdb +#usr/share/gdb/python/gdb/FrameDecorator.py +#usr/share/gdb/python/gdb/FrameIterator.py +#usr/share/gdb/python/gdb/__init__.py +#usr/share/gdb/python/gdb/command +#usr/share/gdb/python/gdb/command/__init__.py +#usr/share/gdb/python/gdb/command/explore.py +#usr/share/gdb/python/gdb/command/frame_filters.py +#usr/share/gdb/python/gdb/command/pretty_printers.py +#usr/share/gdb/python/gdb/command/prompt.py +#usr/share/gdb/python/gdb/command/type_printers.py +#usr/share/gdb/python/gdb/command/unwinders.py +#usr/share/gdb/python/gdb/command/xmethods.py +#usr/share/gdb/python/gdb/frames.py +#usr/share/gdb/python/gdb/function +#usr/share/gdb/python/gdb/function/__init__.py +#usr/share/gdb/python/gdb/function/as_string.py +#usr/share/gdb/python/gdb/function/caller_is.py +#usr/share/gdb/python/gdb/function/strfns.py +#usr/share/gdb/python/gdb/printer +#usr/share/gdb/python/gdb/printer/__init__.py +#usr/share/gdb/python/gdb/printer/bound_registers.py +#usr/share/gdb/python/gdb/printing.py +#usr/share/gdb/python/gdb/prompt.py +#usr/share/gdb/python/gdb/types.py +#usr/share/gdb/python/gdb/unwinder.py +#usr/share/gdb/python/gdb/xmethod.py +#usr/share/gdb/syscalls +#usr/share/gdb/syscalls/aarch64-linux.xml +#usr/share/gdb/syscalls/amd64-linux.xml +#usr/share/gdb/syscalls/arm-linux.xml +#usr/share/gdb/syscalls/freebsd.xml +#usr/share/gdb/syscalls/gdb-syscalls.dtd +#usr/share/gdb/syscalls/i386-linux.xml +#usr/share/gdb/syscalls/mips-n32-linux.xml +#usr/share/gdb/syscalls/mips-n64-linux.xml +#usr/share/gdb/syscalls/mips-o32-linux.xml +#usr/share/gdb/syscalls/netbsd.xml +#usr/share/gdb/syscalls/ppc-linux.xml +#usr/share/gdb/syscalls/ppc64-linux.xml +#usr/share/gdb/syscalls/s390-linux.xml +#usr/share/gdb/syscalls/s390x-linux.xml +#usr/share/gdb/syscalls/sparc-linux.xml +#usr/share/gdb/syscalls/sparc64-linux.xml +#usr/share/gdb/system-gdbinit +#usr/share/gdb/system-gdbinit/elinos.py +#usr/share/gdb/system-gdbinit/wrs-linux.py +#usr/share/info/annotate.info +#usr/share/info/gdb.info +#usr/share/info/stabs.info +#usr/share/man/man1/gcore.1 +#usr/share/man/man1/gdb-add-index.1 +#usr/share/man/man1/gdb.1 +#usr/share/man/man1/gdbserver.1 +#usr/share/man/man5/gdbinit.5 diff --git a/lfs/gdb b/lfs/gdb new file mode 100644 index 0000000000..88ce5d34ed --- /dev/null +++ b/lfs/gdb @@ -0,0 +1,85 @@ +############################################################################### +# # +# IPFire.org - A linux based firewall # +# Copyright (C) 2007-2018 IPFire Team # +# # +# This program is free software: you can redistribute it and/or modify # +# it under the terms of the GNU General Public License as published by # +# the Free Software Foundation, either version 3 of the License, or # +# (at your option) any later version. # +# # +# This program is distributed in the hope that it will be useful, # +# but WITHOUT ANY WARRANTY; without even the implied warranty of # +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # +# GNU General Public License for more details. # +# # +# You should have received a copy of the GNU General Public License # +# along with this program. If not, see . # +# # +############################################################################### + +############################################################################### +# Definitions +############################################################################### + +include Config + +VER = 10.1 + +THISAPP = gdb-$(VER) +DL_FILE = $(THISAPP).tar.xz +DL_FROM = $(URL_IPFIRE) +DIR_APP = $(DIR_SRC)/$(THISAPP) +TARGET = $(DIR_INFO)/$(THISAPP) + +############################################################################### +# Top-level Rules +############################################################################### + +objects = $(DL_FILE) + +$(DL_FILE) = $(DL_FROM)/$(DL_FILE) + +$(DL_FILE)_MD5 = 1822a7dd45e7813f4408407eec1a6af1 + +install : $(TARGET) + +check : $(patsubst %,$(DIR_CHK)/%,$(objects)) + +download :$(patsubst %,$(DIR_DL)/%,$(objects)) + +md5 : $(subst %,%_MD5,$(objects)) + +############################################################################### +# Downloading, checking, md5sum +############################################################################### + +$(patsubst %,$(DIR_CHK)/%,$(objects)) : + @$(CHECK) + +$(patsubst %,$(DIR_DL)/%,$(objects)) : + @$(LOAD) + +$(subst %,%_MD5,$(objects)) : + @$(MD5) + +############################################################################### +# Installation Details +############################################################################### + +$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) + @$(PREBUILD) + @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE) + cd $(DIR_APP) && mkdir -pv build + cd $(DIR_APP)/build && \ + ../configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --disable-nls \ + --enable-tui \ + --with-system-readline \ + --with-python=/usr/bin/python3 + cd $(DIR_APP)/build && make $(MAKETUNING) + cd $(DIR_APP)/build && make install + @rm -rf $(DIR_APP) + @$(POSTBUILD) diff --git a/make.sh b/make.sh index b2c7df50c8..3caae9552f 100755 --- a/make.sh +++ b/make.sh @@ -1239,6 +1239,7 @@ buildipfire() { lfsmake2 libffi lfsmake2 python lfsmake2 python3 + lfsmake2 gdb lfsmake2 grub lfsmake2 efivar lfsmake2 efibootmgr