mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
gdb: Build package to be available in the build environment
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
63
config/rootfiles/common/gdb
Normal file
63
config/rootfiles/common/gdb
Normal file
@@ -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
|
||||
85
lfs/gdb
Normal file
85
lfs/gdb
Normal file
@@ -0,0 +1,85 @@
|
||||
###############################################################################
|
||||
# #
|
||||
# IPFire.org - A linux based firewall #
|
||||
# Copyright (C) 2007-2018 IPFire Team <info@ipfire.org> #
|
||||
# #
|
||||
# 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 <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
###############################################################################
|
||||
|
||||
###############################################################################
|
||||
# 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)
|
||||
Reference in New Issue
Block a user