Index: 12.1/gdb-pkg-description.in
===================================================================
--- 12.1/gdb-pkg-description.in (revision 384)
+++ 12.1/gdb-pkg-description.in (nonexistent)
@@ -1,19 +0,0 @@
-# HOW TO EDIT THIS FILE:
-# The "handy ruler" below makes it easier to edit a package description. Line
-# up the first '|' above the ':' following the base package name, and the '|'
-# on the right side marks the last column you can put a character in. You must
-# make exactly 11 lines for the formatting to be correct. It's also
-# customary to leave one space after the ':'.
-
- |-----handy-ruler------------------------------------------------------|
-gdb: GNU gdb @VERSION@ (GNU symbolic debugger)
-gdb:
-gdb: GDB, the GNU Project debugger, allows you to see what is going on
-gdb: inside another program while it executes - or what another program
-gdb: was doing at the moment it crashed.
-gdb:
-gdb: The program being debugged can be written in Ada, C, C++,
-gdb: Objective-C, Pascal and many other languages.
-gdb:
-gdb:
-gdb:
Index: 12.1/PATCHES
===================================================================
--- 12.1/PATCHES (revision 384)
+++ 12.1/PATCHES (nonexistent)
@@ -1,2 +0,0 @@
-
-../../../sources/GNU/gdb/patches/gdb-12.1-compiler-permissive.patch -p0
Index: 12.1/Makefile
===================================================================
--- 12.1/Makefile (revision 384)
+++ 12.1/Makefile (nonexistent)
@@ -1,466 +0,0 @@
-
-COMPONENT_TARGETS = $(HARDWARE_INTEL_PC32)
-COMPONENT_TARGETS += $(HARDWARE_INTEL_PC64)
-COMPONENT_TARGETS += $(HARDWARE_EBOX_3350DX2)
-COMPONENT_TARGETS += $(HARDWARE_CB1X)
-COMPONENT_TARGETS += $(HARDWARE_CB2X)
-COMPONENT_TARGETS += $(HARDWARE_CB3X)
-COMPONENT_TARGETS += $(HARDWARE_ORANGE_PP2E)
-COMPONENT_TARGETS += $(HARDWARE_NANOPI_NEO)
-COMPONENT_TARGETS += $(HARDWARE_ORANGE_PP)
-COMPONENT_TARGETS += $(HARDWARE_ORANGE_PL2)
-COMPONENT_TARGETS += $(HARDWARE_WECHIP_TX6)
-COMPONENT_TARGETS += $(HARDWARE_FFRK3288)
-COMPONENT_TARGETS += $(HARDWARE_POIN2)
-COMPONENT_TARGETS += $(HARDWARE_RK3328_CC)
-COMPONENT_TARGETS += $(HARDWARE_KHADAS_EDGE)
-COMPONENT_TARGETS += $(HARDWARE_LEEZ_P710)
-COMPONENT_TARGETS += $(HARDWARE_M201)
-COMPONENT_TARGETS += $(HARDWARE_MXV)
-COMPONENT_TARGETS += $(HARDWARE_P201)
-COMPONENT_TARGETS += $(HARDWARE_NEXBOX_A95X)
-COMPONENT_TARGETS += $(HARDWARE_ODROID_C2)
-COMPONENT_TARGETS += $(HARDWARE_P212)
-COMPONENT_TARGETS += $(HARDWARE_KHADAS_VIM)
-COMPONENT_TARGETS += $(HARDWARE_Q201)
-COMPONENT_TARGETS += $(HARDWARE_ENYBOX_X2)
-COMPONENT_TARGETS += $(HARDWARE_KHADAS_VIM2)
-COMPONENT_TARGETS += $(HARDWARE_NIT6Q)
-COMPONENT_TARGETS += $(HARDWARE_OKMX6DL_C)
-COMPONENT_TARGETS += $(HARDWARE_OKMX6Q_C)
-COMPONENT_TARGETS += $(HARDWARE_BONE_BLACK)
-COMPONENT_TARGETS += $(HARDWARE_OMAP5UEVM)
-COMPONENT_TARGETS += $(HARDWARE_DRA7XXEVM)
-COMPONENT_TARGETS += $(HARDWARE_CI20)
-COMPONENT_TARGETS += $(HARDWARE_BAIKAL_T1)
-COMPONENT_TARGETS += $(HARDWARE_BAIKAL_M1)
-COMPONENT_TARGETS += $(HARDWARE_S824L)
-COMPONENT_TARGETS += $(HARDWARE_VESNIN)
-COMPONENT_TARGETS += $(HARDWARE_S824L_LSB)
-COMPONENT_TARGETS += $(HARDWARE_VESNIN_LSB)
-COMPONENT_TARGETS += $(HARDWARE_TL2WK2)
-COMPONENT_TARGETS += $(HARDWARE_TL2SV2)
-COMPONENT_TARGETS += $(HARDWARE_TL2WK2_LSB)
-COMPONENT_TARGETS += $(HARDWARE_TL2SV2_LSB)
-COMPONENT_TARGETS += $(HARDWARE_SIFIVE_U740)
-
-
-NEED_ABS_PATH = true
-COMPONENT_IS_3PP = true
-
-
-include ../../../build-system/constants.mk
-
-
-SOURCE_REQUIRES = sources/GNU/gdb
-
-REQUIRES = dev/binutils/2.39
-REQUIRES += dev/guile/3.0.5
-REQUIRES += libs/readline/8.2
-REQUIRES += libs/zlib/1.2.13
-REQUIRES += libs/isl/0.25
-REQUIRES += libs/mpc/1.2.1
-REQUIRES += app/xz/5.2.7
-
-# ======= __END_OF_REQUIRES__ =======
-
-
-version = 12.1
-tar_xz_archive = $(SRC_PACKAGE_PATH)/GNU/gdb/gdb-$(version).tar.xz
-SRC_ARCHIVE = $(tar_xz_archive)
-SRC_DIR = $(TARGET_BUILD_DIR)/gdb-$(version)
-src_dir_name = gdb-$(version)
-src_done = $(TARGET_BUILD_DIR)/.source_done
-
-PATCHES = PATCHES
-
-build_dir = $(TARGET_BUILD_DIR)/build
-build_target = $(TARGET_BUILD_DIR)/.build_done
-install_target = $(TARGET_BUILD_DIR)/.install_done
-
-
-####### Targets
-
-PKG_GROUP = dev
-
-#
-# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
-#
-GDB_DEV_PKG_NAME = gdb
-GDB_DEV_PKG_VERSION = 12.1
-GDB_DEV_PKG_ARCH = $(PKGARCH)
-GDB_DEV_PKG_DISTRO_NAME = $(DISTRO_NAME)
-GDB_DEV_PKG_DISTRO_VERSION = $(DISTRO_VERSION)
-GDB_DEV_PKG_GROUP = $(PKG_GROUP)
-### |---handy-ruler-------------------------------|
-GDB_DEV_PKG_SHORT_DESCRIPTION = GNU binary development tools
-GDB_DEV_PKG_URL = $(BUG_URL)
-GDB_DEV_PKG_LICENSE = GPLv2
-GDB_DEV_PKG_DESCRIPTION_FILE = $(TARGET_BUILD_DIR)/$(GDB_DEV_PKG_NAME)-pkg-description
-GDB_DEV_PKG_DESCRIPTION_FILE_IN = $(GDB_DEV_PKG_NAME)-pkg-description.in
-GDB_DEV_PKG_INSTALL_SCRIPT = $(GDB_DEV_PKG_NAME)-pkg-install.sh
-
-GDB_DEV_PKG = $(CURDIR)/$(TARGET_BUILD_DIR)/$(GDB_DEV_PKG_NAME)-package
-
-pkg_basename = $(GDB_DEV_PKG_NAME)-$(GDB_DEV_PKG_VERSION)-$(GDB_DEV_PKG_ARCH)-$(GDB_DEV_PKG_DISTRO_NAME)-$(GDB_DEV_PKG_DISTRO_VERSION)
-
-pkg_archive = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
-pkg_certificate = $(call cert-name,$(pkg_archive))
-pkg_signature = $(call sign-name,$(pkg_archive))
-pkg_description = $(call desc-name,$(pkg_archive))
-products = $(call pkg-files,$(pkg_archive))
-
-BUILD_TARGETS = $(build_target)
-BUILD_TARGETS += $(install_target)
-
-PRODUCT_TARGETS = $(products)
-
-ROOTFS_TARGETS = $(pkg_archive)
-
-
-include ../../../build-system/core.mk
-
-
-#
-# NOTE: BUILD_MULTILIB_SUFFIX related to bulld machine
-# (slacware64 - lib; ubuntu64 - lib32) see $(BUILDSYSTEM)/targets.mk
-#
-export CC_FOR_BUILD = gcc
-export CXX_FOR_BUILD = g++
-export LD_FOR_BUILD = ld
-export AR_FOR_BUILD = ar
-export AS_FOR_BUILD = as
-export NM_FOR_BUILD = nm
-export CFLAGS_FOR_BUILD = -I/usr/include
-export CXXFLAGS_FOR_BUILD = -I/usr/include
-export CPPFLAGS_FOR_BUILD = -I/usr/include
-export LDFLAGS_FOR_BUILD = -L/usr/lib$(BUILD_MULTILIB_SUFFIX)
-
-
-env_sysroot = DESTDIR=$(GDB_DEV_PKG)
-
-
-#
-# Common controls for components:
-#
-extra_configure_switches = --disable-dependency-tracking
-extra_configure_switches += --libdir=/usr/lib$(LIBSUFFIX)
-extra_configure_switches += --mandir=/usr/share/man
-extra_configure_switches += --infodir=/usr/share/info
-extra_configure_switches += --docdir=/usr/share/doc
-extra_configure_switches += --datadir=/usr/share
-
-extra_configure_switches += --with-system-readline
-extra_configure_switches += --with-system-zlib
-extra_configure_switches += --with-gmp=$(TARGET_DEST_DIR)/usr
-extra_configure_switches += --with-mpc=$(TARGET_DEST_DIR)/usr
-extra_configure_switches += --with-mpfr=$(TARGET_DEST_DIR)/usr
-extra_configure_switches += --with-isl=$(TARGET_DEST_DIR)/usr
-
-extra_configure_switches += --with-libexpat-type=shared
-extra_configure_switches += --with-libexpat-prefix=$(TARGET_DEST_DIR)/usr
-extra_configure_switches += --with-libgmp-type=shared
-extra_configure_switches += --with-libgmp-prefix=$(TARGET_DEST_DIR)/usr
-extra_configure_switches += --with-libmpfr-type=shared
-extra_configure_switches += --with-libmpfr-prefix=$(TARGET_DEST_DIR)/usr
-extra_configure_switches += --with-liblzma-type=shared
-extra_configure_switches += --with-liblzma-prefix=$(TARGET_DEST_DIR)/usr
-
-
-ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_A1X_GLIBC)),)
-extra_configure_switches += --enable-interwork
-extra_configure_switches += --enable-multilib
-extra_configure_switches += --disable-libssp
-extra_configure_switches += --with-arch=armv7-a
-extra_configure_switches += --with-tune=cortex-a8
-extra_configure_switches += --with-fpu=neon
-extra_configure_switches += --with-abi=aapcs-linux
-endif
-
-ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_A2X_GLIBC)),)
-extra_configure_switches += --enable-interwork
-extra_configure_switches += --enable-multilib
-extra_configure_switches += --disable-libssp
-extra_configure_switches += --with-arch=armv7ve
-extra_configure_switches += --with-tune=cortex-a7
-extra_configure_switches += --with-fpu=neon-vfpv4
-extra_configure_switches += --with-abi=aapcs-linux
-endif
-
-ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_H3_GLIBC)),)
-extra_configure_switches += --enable-interwork
-extra_configure_switches += --enable-multilib
-extra_configure_switches += --disable-libssp
-extra_configure_switches += --with-arch=armv7ve
-extra_configure_switches += --with-tune=cortex-a7
-extra_configure_switches += --with-fpu=neon-vfpv4
-extra_configure_switches += --with-abi=aapcs-linux
-endif
-
-ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_H5_GLIBC)),)
-extra_configure_switches += --disable-multilib
-extra_configure_switches += --with-arch=armv8-a
-extra_configure_switches += --with-cpu=cortex-a53
-extra_configure_switches += --with-fpu=neon-fp-armv8
-extra_configure_switches += --with-abi=lp64
-endif
-
-ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_RK328X_GLIBC)),)
-extra_configure_switches += --enable-interwork
-extra_configure_switches += --enable-multilib
-extra_configure_switches += --disable-libssp
-extra_configure_switches += --with-arch=armv7ve
-extra_configure_switches += --with-tune=cortex-a17
-extra_configure_switches += --with-fpu=neon-vfpv4
-extra_configure_switches += --with-abi=aapcs-linux
-endif
-
-ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_RK33XX_GLIBC)),)
-extra_configure_switches += --disable-multilib
-extra_configure_switches += --with-arch=armv8-a
-extra_configure_switches += --with-cpu=cortex-a53
-extra_configure_switches += --with-fpu=neon-fp-armv8
-extra_configure_switches += --with-abi=lp64
-endif
-
-ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_RK339X_GLIBC)),)
-extra_configure_switches += --disable-multilib
-extra_configure_switches += --with-arch=armv8-a
-extra_configure_switches += --with-cpu=cortex-a53
-extra_configure_switches += --with-fpu=neon-fp-armv8
-extra_configure_switches += --with-abi=lp64
-endif
-
-ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_S8XX_GLIBC)),)
-extra_configure_switches += --enable-interwork
-extra_configure_switches += --enable-multilib
-extra_configure_switches += --disable-libssp
-extra_configure_switches += --with-arch=armv7-a
-extra_configure_switches += --with-tune=cortex-a5
-extra_configure_switches += --with-fpu=neon
-extra_configure_switches += --with-abi=aapcs-linux
-endif
-
-ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_S9XX_GLIBC)),)
-extra_configure_switches += --disable-multilib
-extra_configure_switches += --with-arch=armv8-a
-extra_configure_switches += --with-cpu=cortex-a53
-extra_configure_switches += --with-fpu=neon-fp-armv8
-extra_configure_switches += --with-abi=lp64
-endif
-
-ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_A311X_GLIBC)),)
-extra_configure_switches += --disable-multilib
-extra_configure_switches += --with-arch=armv8-a
-extra_configure_switches += --with-cpu=cortex-a53
-extra_configure_switches += --with-fpu=neon-fp-armv8
-extra_configure_switches += --with-abi=lp64
-endif
-
-ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_IMX6_GLIBC)),)
-extra_configure_switches += --enable-interwork
-extra_configure_switches += --enable-multilib
-extra_configure_switches += --disable-libssp
-extra_configure_switches += --with-arch=armv7-a
-extra_configure_switches += --with-tune=cortex-a9
-extra_configure_switches += --with-fpu=vfpv3
-extra_configure_switches += --with-abi=aapcs-linux
-endif
-
-ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_IMX6ULL_GLIBC)),)
-extra_configure_switches += --enable-interwork
-extra_configure_switches += --enable-multilib
-extra_configure_switches += --disable-libssp
-extra_configure_switches += --with-arch=armv7-a
-extra_configure_switches += --with-tune=cortex-a7
-extra_configure_switches += --with-fpu=neon-vfpv4
-extra_configure_switches += --with-abi=aapcs-linux
-endif
-
-ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_AM335X_GLIBC)),)
-extra_configure_switches += --enable-interwork
-extra_configure_switches += --enable-multilib
-extra_configure_switches += --disable-libssp
-extra_configure_switches += --with-arch=armv7-a
-extra_configure_switches += --with-tune=cortex-a8
-extra_configure_switches += --with-fpu=neon
-extra_configure_switches += --with-abi=aapcs-linux
-endif
-
-ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_OMAP543X_GLIBC)),)
-extra_configure_switches += --enable-interwork
-extra_configure_switches += --enable-multilib
-extra_configure_switches += --disable-libssp
-extra_configure_switches += --with-arch=armv7ve
-extra_configure_switches += --with-tune=cortex-a15
-extra_configure_switches += --with-fpu=neon-vfpv4
-extra_configure_switches += --with-abi=aapcs-linux
-endif
-
-ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_JZ47XX_GLIBC)),)
-extra_configure_switches += --enable-multilib
-extra_configure_switches += --disable-libssp
-extra_configure_switches += --with-arch-32=mips32r2
-extra_configure_switches += --with-arch-64=mips64r2
-extra_configure_switches += --with-float=hard
-extra_configure_switches += --enable-werror=no
-endif
-
-ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_P5600_GLIBC)),)
-extra_configure_switches += --enable-multilib
-extra_configure_switches += --disable-libssp
-extra_configure_switches += --with-arch=mips32r5
-extra_configure_switches += --with-tune=p5600
-extra_configure_switches += --with-float=hard
-extra_configure_switches += --enable-werror=no
-endif
-
-ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_M1000_GLIBC)),)
-extra_configure_switches += --disable-multilib
-extra_configure_switches += --with-arch=armv8-a
-extra_configure_switches += --with-cpu=cortex-a57
-extra_configure_switches += --with-fpu=neon-fp-armv8
-extra_configure_switches += --with-abi=lp64
-endif
-
-ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_POWER8_GLIBC)),)
-extra_configure_switches += --with-multilib-list=m64,m32
-extra_configure_switches += --with-cpu=power8
-extra_configure_switches += --with-tune=power8
-endif
-
-ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_POWER8LE_GLIBC)),)
-extra_configure_switches += --disable-multilib
-extra_configure_switches += --with-cpu=power8
-extra_configure_switches += --with-tune=power8
-endif
-
-ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_POWER9_GLIBC)),)
-extra_configure_switches += --with-multilib-list=m64,m32
-extra_configure_switches += --with-cpu=power9
-extra_configure_switches += --with-tune=power9
-endif
-
-ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_POWER9LE_GLIBC)),)
-extra_configure_switches += --disable-multilib
-extra_configure_switches += --with-cpu=power9
-extra_configure_switches += --with-tune=power9
-endif
-
-ifeq ($(TOOLCHAIN),$(TOOLCHAIN_RISCV64_GLIBC))
-extra_configure_switches += --disable-multilib
-extra_configure_switches += --with-abi=lp64d
-extra_configure_switches += --with-arch=rv64imafdc
-endif
-
-ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_I586_GLIBC)),)
-extra_configure_switches += --with-arch=i586
-extra_configure_switches += --with-tune=i586
-endif
-
-ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_I686_GLIBC)),)
-extra_configure_switches += --with-arch=i686
-extra_configure_switches += --with-tune=i686
-endif
-
-ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_X86_64_GLIBC)),)
-extra_configure_switches += --with-multilib-list=m64,m32
-endif
-
-
-TARGET_BIN_RPATH = /lib$(LIBSUFFIX):/usr/lib$(LIBSUFFIX)
-
-
-####### Dependencies
-
-$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
- $(UNPACK_SRC_ARCHIVE)
- $(APPLY_PATCHES)
- # ======= -Wmissing-prototypes for C and Objective-C only =======
- @( cd $(SRC_DIR) ; \
- sed -i '/^\-Wmissing\-prototypes/d' gdb/configure ; \
- sed -i '/^\-Wmissing\-prototypes/d' gdbserver/configure ; \
- sed -i '/^\-Wmissing\-prototypes/d' gdbsupport/configure ; \
- )
- @touch $@
-
-$(build_target): $(src_done)
- @mkdir -p $(build_dir)
- @cd $(build_dir) && \
- $(BUILD_ENVIRONMENT) ../$(src_dir_name)/configure \
- --prefix=/usr \
- --build=$(BUILD) \
- --host=$(TARGET) \
- --target=$(TARGET) \
- $(extra_configure_switches)
- $(BUILD_ENVIRONMENT) $(MAKE) -C $(build_dir)
- @touch $@
-
-$(install_target): $(build_target)
- @mkdir -p $(GDB_DEV_PKG)
- $(BUILD_ENVIRONMENT) $(MAKE) -j1 -C $(build_dir) install $(env_sysroot)
- # ======= None of this stuff has ever been included in this package: =======
- @rm -f $(GDB_DEV_PKG)/usr/lib$(LIBSUFFIX)/{libbfd*,libiberty*,libopcodes*}
- @rm -rf $(GDB_DEV_PKG)/usr/lib$(LIBSUFFIX)
- @rm -f $(GDB_DEV_PKG)/usr/share/info/{annotate*,bfd*,configure*,standards*}
- @rm -rf $(GDB_DEV_PKG)/usr/include
- # ======= Install Documentation =======
- @rm -f $(GDB_DEV_PKG)/usr/share/info/dir
- @gzip -9 $(GDB_DEV_PKG)/usr/share/info/*
- @if [ -d $(GDB_DEV_PKG)/usr/share/man ]; then \
- ( cd $(GDB_DEV_PKG)/usr/share/man ; \
- for manpagedir in `find . -type d -name "man*"` ; do \
- ( cd $$manpagedir ; \
- for eachpage in `find . -type l -maxdepth 1` ; do \
- ln -s `readlink $$eachpage`.gz $$eachpage.gz ; \
- rm $$eachpage ; \
- done ; \
- gzip -9 *.? ; \
- ) \
- done \
- ) \
- fi
- @mkdir -p $(GDB_DEV_PKG)/usr/doc/gdb-$(version)
- @cp -a $(SRC_DIR)/COPYING* \
- $(GDB_DEV_PKG)/usr/doc/gdb-$(version)
- @mkdir -p $(GDB_DEV_PKG)/usr/share/doc/gdb-$(version)
- @cp -a $(SRC_DIR)/COPYING* $(SRC_DIR)/MAINTAINERS $(SRC_DIR)/README* \
- $(GDB_DEV_PKG)/usr/share/doc/gdb-$(version)
- @( cd $(SRC_DIR) ; \
- if [ -r ChangeLog ]; then \
- DOCSDIR=`echo $(GDB_DEV_PKG)/usr/share/doc/$(src_dir_name)` ; \
- cat ChangeLog | head -n 1000 > $$DOCSDIR/ChangeLog ; \
- touch -r ChangeLog $$DOCSDIR/ChangeLog ; \
- fi \
- )
- # ======= Install the same to $(TARGET_DEST_DIR) =======
- $(call install-into-devenv, $(GDB_DEV_PKG))
- # ======= Strip binaries =======
- @( cd $(GDB_DEV_PKG) ; \
- find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
- )
- @touch $@
-
-$(GDB_DEV_PKG_DESCRIPTION_FILE): $(GDB_DEV_PKG_DESCRIPTION_FILE_IN)
- @cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
-
-$(pkg_certificate) : $(pkg_archive) ;
-$(pkg_signature) : $(pkg_archive) ;
-$(pkg_description) : $(pkg_archive) ;
-
-$(pkg_archive): $(install_target) $(GDB_DEV_PKG_DESCRIPTION_FILE) $(GDB_DEV_PKG_INSTALL_SCRIPT)
- @cp $(GDB_DEV_PKG_DESCRIPTION_FILE) $(GDB_DEV_PKG)/.DESCRIPTION
- @cp $(GDB_DEV_PKG_INSTALL_SCRIPT) $(GDB_DEV_PKG)/.INSTALL
- @$(BUILD_PKG_REQUIRES) $(GDB_DEV_PKG)/.REQUIRES
- @echo "pkgname=$(GDB_DEV_PKG_NAME)" > $(GDB_DEV_PKG)/.PKGINFO ; \
- echo "pkgver=$(GDB_DEV_PKG_VERSION)" >> $(GDB_DEV_PKG)/.PKGINFO ; \
- echo "arch=$(GDB_DEV_PKG_ARCH)" >> $(GDB_DEV_PKG)/.PKGINFO ; \
- echo "distroname=$(GDB_DEV_PKG_DISTRO_NAME)" >> $(GDB_DEV_PKG)/.PKGINFO ; \
- echo "distrover=$(GDB_DEV_PKG_DISTRO_VERSION)" >> $(GDB_DEV_PKG)/.PKGINFO ; \
- echo "group=$(GDB_DEV_PKG_GROUP)" >> $(GDB_DEV_PKG)/.PKGINFO ; \
- echo "short_description=\"$(GDB_DEV_PKG_SHORT_DESCRIPTION)\"" >> $(GDB_DEV_PKG)/.PKGINFO ; \
- echo "url=$(GDB_DEV_PKG_URL)" >> $(GDB_DEV_PKG)/.PKGINFO ; \
- echo "license=$(GDB_DEV_PKG_LICENSE)" >> $(GDB_DEV_PKG)/.PKGINFO
- @$(PSEUDO) sh -c "cd $(GDB_DEV_PKG) && \
- chown -R root:root . && \
- $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: 12.1/gdb-pkg-install.sh
===================================================================
--- 12.1/gdb-pkg-install.sh (revision 384)
+++ 12.1/gdb-pkg-install.sh (nonexistent)
@@ -1,73 +0,0 @@
-#!/bin/sh
-
-# Preserve new files
-install_file() {
- NEW="$1"
- OLD="`dirname $NEW`/`basename $NEW .new`"
- # If there's no file by that name, mv it over:
- if [ ! -r $OLD ]; then
- mv $NEW $OLD
- elif [ "`cat $OLD | md5sum`" = "`cat $NEW | md5sum`" ]; then # toss the redundant copy
- rm $NEW
- fi
- # Otherwise, we leave the .new copy for the admin to consider...
-}
-
-
-# arg 1: the new package version
-pre_install() {
- /bin/true
-}
-
-# arg 1: the new package version
-post_install() {
- #
- # NOTE:
- # 'install-info' can work using relative paths and we can make use build machine
- # utility during installation to the some partition and use target 'install-info'
- # during installation directly on the running target machine.
- #
- if [ -x /usr/bin/install-info ] ; then
- install-info --info-dir=usr/share/info usr/share/info/gdb.info.gz 2>/dev/null
- install-info --info-dir=usr/share/info usr/share/info/stabs.info.gz 2>/dev/null
- elif ! grep "(gdb)" usr/share/info/dir 1> /dev/null 2> /dev/null ; then
- cat << EOF >> usr/share/info/dir
-
-Software development
-* Gdb: (gdb). The GNU debugger.
-* Stabs: (stabs). The "stabs" debugging information format.
-* gdbserver: (gdb) Server. The GNU debugging server.
-EOF
- fi
-}
-
-# arg 1: the new package version
-# arg 2: the old package version
-pre_update() {
- /bin/true
-}
-
-# arg 1: the new package version
-# arg 2: the old package version
-post_update() {
- post_install
-}
-
-# arg 1: the old package version
-pre_remove() {
- if [ -x /usr/bin/install-info ] ; then
- install-info --delete --info-file=usr/share/info/stabs.info.gz --dir-file=usr/share/info/dir 2> /dev/null || /bin/true
- install-info --delete --info-file=usr/share/info/gdb.info.gz --dir-file=usr/share/info/dir 2> /dev/null || /bin/true
- fi
-}
-
-# arg 1: the old package version
-post_remove() {
- /bin/true
-}
-
-
-operation=$1
-shift
-
-$operation $*
Property changes on: 12.1/gdb-pkg-install.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: 12.1
===================================================================
--- 12.1 (revision 384)
+++ 12.1 (nonexistent)
Property changes on: 12.1
___________________________________________________________________
Deleted: svn:ignore
## -1,73 +0,0 ##
-
-# install dir
-dist
-
-# Target build dirs
-.a1x-newlib
-.a2x-newlib
-.at91sam7s-newlib
-
-.build-machine
-
-.a1x-glibc
-.a2x-glibc
-.h3-glibc
-.h5-glibc
-.i586-glibc
-.i686-glibc
-.imx6-glibc
-.jz47xx-glibc
-.makefile
-.am335x-glibc
-.omap543x-glibc
-.p5600-glibc
-.power8-glibc
-.power8le-glibc
-.power9-glibc
-.power9le-glibc
-.m1000-glibc
-.riscv64-glibc
-.rk328x-glibc
-.rk33xx-glibc
-.rk339x-glibc
-.s8xx-glibc
-.s9xx-glibc
-.x86_64-glibc
-
-# Hidden files (each file)
-.makefile
-.dist
-.rootfs
-
-# src & hw requires
-.src_requires
-.src_requires_depend
-.requires
-.requires_depend
-
-# Tarballs
-*.gz
-*.bz2
-*.lz
-*.xz
-*.tgz
-*.txz
-
-# Signatures
-*.asc
-*.sig
-*.sign
-*.sha1sum
-
-# Patches
-*.patch
-
-# Descriptions
-*.dsc
-*.txt
-
-# Default linux config files
-*.defconfig
-
-# backup copies
-*~
Index: 13.2/Makefile
===================================================================
--- 13.2/Makefile (nonexistent)
+++ 13.2/Makefile (revision 385)
@@ -0,0 +1,480 @@
+
+COMPONENT_TARGETS = $(HARDWARE_INTEL_PC32)
+COMPONENT_TARGETS += $(HARDWARE_INTEL_PC64)
+COMPONENT_TARGETS += $(HARDWARE_EBOX_3350DX2)
+COMPONENT_TARGETS += $(HARDWARE_CB1X)
+COMPONENT_TARGETS += $(HARDWARE_CB2X)
+COMPONENT_TARGETS += $(HARDWARE_CB3X)
+COMPONENT_TARGETS += $(HARDWARE_ORANGE_PP2E)
+COMPONENT_TARGETS += $(HARDWARE_NANOPI_NEO)
+COMPONENT_TARGETS += $(HARDWARE_ORANGE_PP)
+COMPONENT_TARGETS += $(HARDWARE_ORANGE_PL2)
+COMPONENT_TARGETS += $(HARDWARE_ORANGE_PI5)
+COMPONENT_TARGETS += $(HARDWARE_ORANGE_PI5B)
+COMPONENT_TARGETS += $(HARDWARE_ORANGE_PI5P)
+COMPONENT_TARGETS += $(HARDWARE_ROCK_5B)
+COMPONENT_TARGETS += $(HARDWARE_WECHIP_TX6)
+COMPONENT_TARGETS += $(HARDWARE_REPKA_PI3)
+COMPONENT_TARGETS += $(HARDWARE_FFRK3288)
+COMPONENT_TARGETS += $(HARDWARE_POIN2)
+COMPONENT_TARGETS += $(HARDWARE_RK3328_CC)
+COMPONENT_TARGETS += $(HARDWARE_KHADAS_EDGE)
+COMPONENT_TARGETS += $(HARDWARE_LEEZ_P710)
+COMPONENT_TARGETS += $(HARDWARE_M201)
+COMPONENT_TARGETS += $(HARDWARE_MXV)
+COMPONENT_TARGETS += $(HARDWARE_P201)
+COMPONENT_TARGETS += $(HARDWARE_NEXBOX_A95X)
+COMPONENT_TARGETS += $(HARDWARE_ODROID_C2)
+COMPONENT_TARGETS += $(HARDWARE_P212)
+COMPONENT_TARGETS += $(HARDWARE_KHADAS_VIM)
+COMPONENT_TARGETS += $(HARDWARE_Q201)
+COMPONENT_TARGETS += $(HARDWARE_ENYBOX_X2)
+COMPONENT_TARGETS += $(HARDWARE_KHADAS_VIM2)
+COMPONENT_TARGETS += $(HARDWARE_NIT6Q)
+COMPONENT_TARGETS += $(HARDWARE_OKMX6DL_C)
+COMPONENT_TARGETS += $(HARDWARE_OKMX6Q_C)
+COMPONENT_TARGETS += $(HARDWARE_BONE_BLACK)
+COMPONENT_TARGETS += $(HARDWARE_OMAP5UEVM)
+COMPONENT_TARGETS += $(HARDWARE_DRA7XXEVM)
+COMPONENT_TARGETS += $(HARDWARE_CI20)
+COMPONENT_TARGETS += $(HARDWARE_BAIKAL_T1)
+COMPONENT_TARGETS += $(HARDWARE_BAIKAL_M1)
+COMPONENT_TARGETS += $(HARDWARE_S824L)
+COMPONENT_TARGETS += $(HARDWARE_VESNIN)
+COMPONENT_TARGETS += $(HARDWARE_S824L_LSB)
+COMPONENT_TARGETS += $(HARDWARE_VESNIN_LSB)
+COMPONENT_TARGETS += $(HARDWARE_TL2WK2)
+COMPONENT_TARGETS += $(HARDWARE_TL2SV2)
+COMPONENT_TARGETS += $(HARDWARE_TL2WK2_LSB)
+COMPONENT_TARGETS += $(HARDWARE_TL2SV2_LSB)
+COMPONENT_TARGETS += $(HARDWARE_VISIONFIVE2)
+COMPONENT_TARGETS += $(HARDWARE_SIFIVE_U740)
+
+
+NEED_ABS_PATH = true
+COMPONENT_IS_3PP = true
+
+
+include ../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES = sources/GNU/gdb
+
+REQUIRES = dev/binutils/2.40
+REQUIRES += dev/guile/3.0.5
+REQUIRES += libs/readline/8.2
+REQUIRES += libs/zlib/1.2.13
+REQUIRES += libs/isl/0.25
+REQUIRES += libs/mpc/1.2.1
+REQUIRES += app/xz/5.2.7
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version = 13.2
+tar_xz_archive = $(SRC_PACKAGE_PATH)/GNU/gdb/gdb-$(version).tar.xz
+SRC_ARCHIVE = $(tar_xz_archive)
+SRC_DIR = $(TARGET_BUILD_DIR)/gdb-$(version)
+src_dir_name = gdb-$(version)
+src_done = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_dir = $(TARGET_BUILD_DIR)/build
+build_target = $(TARGET_BUILD_DIR)/.build_done
+install_target = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = dev
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+GDB_DEV_PKG_NAME = gdb
+GDB_DEV_PKG_VERSION = 13.2
+GDB_DEV_PKG_ARCH = $(PKGARCH)
+GDB_DEV_PKG_DISTRO_NAME = $(DISTRO_NAME)
+GDB_DEV_PKG_DISTRO_VERSION = $(DISTRO_VERSION)
+GDB_DEV_PKG_GROUP = $(PKG_GROUP)
+### |---handy-ruler-------------------------------|
+GDB_DEV_PKG_SHORT_DESCRIPTION = GNU binary development tools
+GDB_DEV_PKG_URL = $(BUG_URL)
+GDB_DEV_PKG_LICENSE = GPLv2
+GDB_DEV_PKG_DESCRIPTION_FILE = $(TARGET_BUILD_DIR)/$(GDB_DEV_PKG_NAME)-pkg-description
+GDB_DEV_PKG_DESCRIPTION_FILE_IN = $(GDB_DEV_PKG_NAME)-pkg-description.in
+GDB_DEV_PKG_INSTALL_SCRIPT = $(GDB_DEV_PKG_NAME)-pkg-install.sh
+
+GDB_DEV_PKG = $(CURDIR)/$(TARGET_BUILD_DIR)/$(GDB_DEV_PKG_NAME)-package
+
+pkg_basename = $(GDB_DEV_PKG_NAME)-$(GDB_DEV_PKG_VERSION)-$(GDB_DEV_PKG_ARCH)-$(GDB_DEV_PKG_DISTRO_NAME)-$(GDB_DEV_PKG_DISTRO_VERSION)
+
+pkg_archive = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
+pkg_certificate = $(call cert-name,$(pkg_archive))
+pkg_signature = $(call sign-name,$(pkg_archive))
+pkg_description = $(call desc-name,$(pkg_archive))
+products = $(call pkg-files,$(pkg_archive))
+
+BUILD_TARGETS = $(build_target)
+BUILD_TARGETS += $(install_target)
+
+PRODUCT_TARGETS = $(products)
+
+ROOTFS_TARGETS = $(pkg_archive)
+
+
+include ../../../build-system/core.mk
+
+
+#
+# NOTE: BUILD_MULTILIB_SUFFIX related to bulld machine
+# (slacware64 - lib; ubuntu64 - lib32) see $(BUILDSYSTEM)/targets.mk
+#
+export CC_FOR_BUILD = gcc
+export CXX_FOR_BUILD = g++
+export LD_FOR_BUILD = ld
+export AR_FOR_BUILD = ar
+export AS_FOR_BUILD = as
+export NM_FOR_BUILD = nm
+export CFLAGS_FOR_BUILD = -I/usr/include
+export CXXFLAGS_FOR_BUILD = -I/usr/include
+export CPPFLAGS_FOR_BUILD = -I/usr/include
+export LDFLAGS_FOR_BUILD = -L/usr/lib$(BUILD_MULTILIB_SUFFIX)
+
+
+env_sysroot = DESTDIR=$(GDB_DEV_PKG)
+
+
+#
+# Common controls for components:
+#
+extra_configure_switches = --disable-dependency-tracking
+extra_configure_switches += --libdir=/usr/lib$(LIBSUFFIX)
+extra_configure_switches += --mandir=/usr/share/man
+extra_configure_switches += --infodir=/usr/share/info
+extra_configure_switches += --docdir=/usr/share/doc
+extra_configure_switches += --datadir=/usr/share
+
+extra_configure_switches += --with-system-readline
+extra_configure_switches += --with-system-zlib
+extra_configure_switches += --with-gmp=$(TARGET_DEST_DIR)/usr
+extra_configure_switches += --with-mpc=$(TARGET_DEST_DIR)/usr
+extra_configure_switches += --with-mpfr=$(TARGET_DEST_DIR)/usr
+extra_configure_switches += --with-isl=$(TARGET_DEST_DIR)/usr
+
+extra_configure_switches += --with-libexpat-type=shared
+extra_configure_switches += --with-libexpat-prefix=$(TARGET_DEST_DIR)/usr
+extra_configure_switches += --with-libgmp-type=shared
+extra_configure_switches += --with-libgmp-prefix=$(TARGET_DEST_DIR)/usr
+extra_configure_switches += --with-libmpfr-type=shared
+extra_configure_switches += --with-libmpfr-prefix=$(TARGET_DEST_DIR)/usr
+extra_configure_switches += --with-liblzma-type=shared
+extra_configure_switches += --with-liblzma-prefix=$(TARGET_DEST_DIR)/usr
+
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_A1X_GLIBC)),)
+extra_configure_switches += --enable-interwork
+extra_configure_switches += --enable-multilib
+extra_configure_switches += --disable-libssp
+extra_configure_switches += --with-arch=armv7-a
+extra_configure_switches += --with-tune=cortex-a8
+extra_configure_switches += --with-fpu=neon
+extra_configure_switches += --with-abi=aapcs-linux
+endif
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_A2X_GLIBC)),)
+extra_configure_switches += --enable-interwork
+extra_configure_switches += --enable-multilib
+extra_configure_switches += --disable-libssp
+extra_configure_switches += --with-arch=armv7ve
+extra_configure_switches += --with-tune=cortex-a7
+extra_configure_switches += --with-fpu=neon-vfpv4
+extra_configure_switches += --with-abi=aapcs-linux
+endif
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_H3_GLIBC)),)
+extra_configure_switches += --enable-interwork
+extra_configure_switches += --enable-multilib
+extra_configure_switches += --disable-libssp
+extra_configure_switches += --with-arch=armv7ve
+extra_configure_switches += --with-tune=cortex-a7
+extra_configure_switches += --with-fpu=neon-vfpv4
+extra_configure_switches += --with-abi=aapcs-linux
+endif
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_H5_GLIBC)),)
+extra_configure_switches += --disable-multilib
+extra_configure_switches += --with-arch=armv8-a
+extra_configure_switches += --with-cpu=cortex-a53
+extra_configure_switches += --with-fpu=neon-fp-armv8
+extra_configure_switches += --with-abi=lp64
+endif
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_RK328X_GLIBC)),)
+extra_configure_switches += --enable-interwork
+extra_configure_switches += --enable-multilib
+extra_configure_switches += --disable-libssp
+extra_configure_switches += --with-arch=armv7ve
+extra_configure_switches += --with-tune=cortex-a17
+extra_configure_switches += --with-fpu=neon-vfpv4
+extra_configure_switches += --with-abi=aapcs-linux
+endif
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_RK33XX_GLIBC)),)
+extra_configure_switches += --disable-multilib
+extra_configure_switches += --with-arch=armv8-a
+extra_configure_switches += --with-cpu=cortex-a53
+extra_configure_switches += --with-fpu=neon-fp-armv8
+extra_configure_switches += --with-abi=lp64
+endif
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_RK339X_GLIBC)),)
+extra_configure_switches += --disable-multilib
+extra_configure_switches += --with-arch=armv8-a
+extra_configure_switches += --with-cpu=cortex-a53
+extra_configure_switches += --with-fpu=neon-fp-armv8
+extra_configure_switches += --with-abi=lp64
+endif
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_RK358X_GLIBC)),)
+extra_configure_switches += --disable-multilib
+extra_configure_switches += --with-arch=armv8.2-a
+extra_configure_switches += --with-cpu=cortex-a75
+extra_configure_switches += --with-fpu=neon-fp-armv8
+extra_configure_switches += --with-abi=lp64
+endif
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_S8XX_GLIBC)),)
+extra_configure_switches += --enable-interwork
+extra_configure_switches += --enable-multilib
+extra_configure_switches += --disable-libssp
+extra_configure_switches += --with-arch=armv7-a
+extra_configure_switches += --with-tune=cortex-a5
+extra_configure_switches += --with-fpu=neon
+extra_configure_switches += --with-abi=aapcs-linux
+endif
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_S9XX_GLIBC)),)
+extra_configure_switches += --disable-multilib
+extra_configure_switches += --with-arch=armv8-a
+extra_configure_switches += --with-cpu=cortex-a53
+extra_configure_switches += --with-fpu=neon-fp-armv8
+extra_configure_switches += --with-abi=lp64
+endif
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_A311X_GLIBC)),)
+extra_configure_switches += --disable-multilib
+extra_configure_switches += --with-arch=armv8-a
+extra_configure_switches += --with-cpu=cortex-a53
+extra_configure_switches += --with-fpu=neon-fp-armv8
+extra_configure_switches += --with-abi=lp64
+endif
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_IMX6_GLIBC)),)
+extra_configure_switches += --enable-interwork
+extra_configure_switches += --enable-multilib
+extra_configure_switches += --disable-libssp
+extra_configure_switches += --with-arch=armv7-a
+extra_configure_switches += --with-tune=cortex-a9
+extra_configure_switches += --with-fpu=vfpv3
+extra_configure_switches += --with-abi=aapcs-linux
+endif
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_IMX6ULL_GLIBC)),)
+extra_configure_switches += --enable-interwork
+extra_configure_switches += --enable-multilib
+extra_configure_switches += --disable-libssp
+extra_configure_switches += --with-arch=armv7-a
+extra_configure_switches += --with-tune=cortex-a7
+extra_configure_switches += --with-fpu=neon-vfpv4
+extra_configure_switches += --with-abi=aapcs-linux
+endif
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_AM335X_GLIBC)),)
+extra_configure_switches += --enable-interwork
+extra_configure_switches += --enable-multilib
+extra_configure_switches += --disable-libssp
+extra_configure_switches += --with-arch=armv7-a
+extra_configure_switches += --with-tune=cortex-a8
+extra_configure_switches += --with-fpu=neon
+extra_configure_switches += --with-abi=aapcs-linux
+endif
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_OMAP543X_GLIBC)),)
+extra_configure_switches += --enable-interwork
+extra_configure_switches += --enable-multilib
+extra_configure_switches += --disable-libssp
+extra_configure_switches += --with-arch=armv7ve
+extra_configure_switches += --with-tune=cortex-a15
+extra_configure_switches += --with-fpu=neon-vfpv4
+extra_configure_switches += --with-abi=aapcs-linux
+endif
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_JZ47XX_GLIBC)),)
+extra_configure_switches += --enable-multilib
+extra_configure_switches += --disable-libssp
+extra_configure_switches += --with-arch-32=mips32r2
+extra_configure_switches += --with-arch-64=mips64r2
+extra_configure_switches += --with-float=hard
+extra_configure_switches += --enable-werror=no
+endif
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_P5600_GLIBC)),)
+extra_configure_switches += --enable-multilib
+extra_configure_switches += --disable-libssp
+extra_configure_switches += --with-arch=mips32r5
+extra_configure_switches += --with-tune=p5600
+extra_configure_switches += --with-float=hard
+extra_configure_switches += --enable-werror=no
+endif
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_M1000_GLIBC)),)
+extra_configure_switches += --disable-multilib
+extra_configure_switches += --with-arch=armv8-a
+extra_configure_switches += --with-cpu=cortex-a57
+extra_configure_switches += --with-fpu=neon-fp-armv8
+extra_configure_switches += --with-abi=lp64
+endif
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_POWER8_GLIBC)),)
+extra_configure_switches += --with-multilib-list=m64,m32
+extra_configure_switches += --with-cpu=power8
+extra_configure_switches += --with-tune=power8
+endif
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_POWER8LE_GLIBC)),)
+extra_configure_switches += --disable-multilib
+extra_configure_switches += --with-cpu=power8
+extra_configure_switches += --with-tune=power8
+endif
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_POWER9_GLIBC)),)
+extra_configure_switches += --with-multilib-list=m64,m32
+extra_configure_switches += --with-cpu=power9
+extra_configure_switches += --with-tune=power9
+endif
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_POWER9LE_GLIBC)),)
+extra_configure_switches += --disable-multilib
+extra_configure_switches += --with-cpu=power9
+extra_configure_switches += --with-tune=power9
+endif
+
+ifeq ($(TOOLCHAIN),$(TOOLCHAIN_RISCV64_GLIBC))
+extra_configure_switches += --disable-multilib
+extra_configure_switches += --with-abi=lp64d
+extra_configure_switches += --with-arch=rv64imafdc
+endif
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_I586_GLIBC)),)
+extra_configure_switches += --with-arch=i586
+extra_configure_switches += --with-tune=i586
+endif
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_I686_GLIBC)),)
+extra_configure_switches += --with-arch=i686
+extra_configure_switches += --with-tune=i686
+endif
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_X86_64_GLIBC)),)
+extra_configure_switches += --with-multilib-list=m64,m32
+endif
+
+
+TARGET_BIN_RPATH = /lib$(LIBSUFFIX):/usr/lib$(LIBSUFFIX)
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+ $(UNPACK_SRC_ARCHIVE)
+ $(APPLY_PATCHES)
+ # ======= -Wmissing-prototypes for C and Objective-C only =======
+ @( cd $(SRC_DIR) ; \
+ sed -i '/^\-Wmissing\-prototypes/d' gdb/configure ; \
+ sed -i '/^\-Wmissing\-prototypes/d' gdbserver/configure ; \
+ sed -i '/^\-Wmissing\-prototypes/d' gdbsupport/configure ; \
+ )
+ @touch $@
+
+$(build_target): $(src_done)
+ @mkdir -p $(build_dir)
+ @cd $(build_dir) && \
+ $(BUILD_ENVIRONMENT) ../$(src_dir_name)/configure \
+ --prefix=/usr \
+ --build=$(BUILD) \
+ --host=$(TARGET) \
+ --target=$(TARGET) \
+ $(extra_configure_switches)
+ $(BUILD_ENVIRONMENT) $(MAKE) -C $(build_dir)
+ @touch $@
+
+$(install_target): $(build_target)
+ @mkdir -p $(GDB_DEV_PKG)
+ $(BUILD_ENVIRONMENT) $(MAKE) -j1 -C $(build_dir) install $(env_sysroot)
+ # ======= None of this stuff has ever been included in this package: =======
+ @rm -f $(GDB_DEV_PKG)/usr/lib$(LIBSUFFIX)/{libbfd*,libiberty*,libopcodes*}
+ @rm -rf $(GDB_DEV_PKG)/usr/lib$(LIBSUFFIX)
+ @rm -f $(GDB_DEV_PKG)/usr/share/info/{annotate*,bfd*,configure*,standards*}
+ @rm -rf $(GDB_DEV_PKG)/usr/include
+ # ======= Install Documentation =======
+ @rm -f $(GDB_DEV_PKG)/usr/share/info/dir
+ @gzip -9 $(GDB_DEV_PKG)/usr/share/info/*
+ @if [ -d $(GDB_DEV_PKG)/usr/share/man ]; then \
+ ( cd $(GDB_DEV_PKG)/usr/share/man ; \
+ for manpagedir in `find . -type d -name "man*"` ; do \
+ ( cd $$manpagedir ; \
+ for eachpage in `find . -type l -maxdepth 1` ; do \
+ ln -s `readlink $$eachpage`.gz $$eachpage.gz ; \
+ rm $$eachpage ; \
+ done ; \
+ gzip -9 *.? ; \
+ ) \
+ done \
+ ) \
+ fi
+ @mkdir -p $(GDB_DEV_PKG)/usr/doc/gdb-$(version)
+ @cp -a $(SRC_DIR)/COPYING* \
+ $(GDB_DEV_PKG)/usr/doc/gdb-$(version)
+ @mkdir -p $(GDB_DEV_PKG)/usr/share/doc/gdb-$(version)
+ @cp -a $(SRC_DIR)/COPYING* $(SRC_DIR)/MAINTAINERS $(SRC_DIR)/README* \
+ $(GDB_DEV_PKG)/usr/share/doc/gdb-$(version)
+ @( cd $(SRC_DIR) ; \
+ if [ -r ChangeLog ]; then \
+ DOCSDIR=`echo $(GDB_DEV_PKG)/usr/share/doc/$(src_dir_name)` ; \
+ cat ChangeLog | head -n 1000 > $$DOCSDIR/ChangeLog ; \
+ touch -r ChangeLog $$DOCSDIR/ChangeLog ; \
+ fi \
+ )
+ # ======= Install the same to $(TARGET_DEST_DIR) =======
+ $(call install-into-devenv, $(GDB_DEV_PKG))
+ # ======= Strip binaries =======
+ @( cd $(GDB_DEV_PKG) ; \
+ find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+ )
+ @touch $@
+
+$(GDB_DEV_PKG_DESCRIPTION_FILE): $(GDB_DEV_PKG_DESCRIPTION_FILE_IN)
+ @cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(pkg_certificate) : $(pkg_archive) ;
+$(pkg_signature) : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(GDB_DEV_PKG_DESCRIPTION_FILE) $(GDB_DEV_PKG_INSTALL_SCRIPT)
+ @cp $(GDB_DEV_PKG_DESCRIPTION_FILE) $(GDB_DEV_PKG)/.DESCRIPTION
+ @cp $(GDB_DEV_PKG_INSTALL_SCRIPT) $(GDB_DEV_PKG)/.INSTALL
+ @$(BUILD_PKG_REQUIRES) $(GDB_DEV_PKG)/.REQUIRES
+ @echo "pkgname=$(GDB_DEV_PKG_NAME)" > $(GDB_DEV_PKG)/.PKGINFO ; \
+ echo "pkgver=$(GDB_DEV_PKG_VERSION)" >> $(GDB_DEV_PKG)/.PKGINFO ; \
+ echo "arch=$(GDB_DEV_PKG_ARCH)" >> $(GDB_DEV_PKG)/.PKGINFO ; \
+ echo "distroname=$(GDB_DEV_PKG_DISTRO_NAME)" >> $(GDB_DEV_PKG)/.PKGINFO ; \
+ echo "distrover=$(GDB_DEV_PKG_DISTRO_VERSION)" >> $(GDB_DEV_PKG)/.PKGINFO ; \
+ echo "group=$(GDB_DEV_PKG_GROUP)" >> $(GDB_DEV_PKG)/.PKGINFO ; \
+ echo "short_description=\"$(GDB_DEV_PKG_SHORT_DESCRIPTION)\"" >> $(GDB_DEV_PKG)/.PKGINFO ; \
+ echo "url=$(GDB_DEV_PKG_URL)" >> $(GDB_DEV_PKG)/.PKGINFO ; \
+ echo "license=$(GDB_DEV_PKG_LICENSE)" >> $(GDB_DEV_PKG)/.PKGINFO
+ @$(PSEUDO) sh -c "cd $(GDB_DEV_PKG) && \
+ chown -R root:root . && \
+ $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: 13.2/PATCHES
===================================================================
Index: 13.2/gdb-pkg-description.in
===================================================================
--- 13.2/gdb-pkg-description.in (nonexistent)
+++ 13.2/gdb-pkg-description.in (revision 385)
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description. Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in. You must
+# make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':'.
+
+ |-----handy-ruler------------------------------------------------------|
+gdb: GNU gdb @VERSION@ (GNU symbolic debugger)
+gdb:
+gdb: GDB, the GNU Project debugger, allows you to see what is going on
+gdb: inside another program while it executes - or what another program
+gdb: was doing at the moment it crashed.
+gdb:
+gdb: The program being debugged can be written in Ada, C, C++,
+gdb: Objective-C, Pascal and many other languages.
+gdb:
+gdb:
+gdb:
Index: 13.2/gdb-pkg-install.sh
===================================================================
--- 13.2/gdb-pkg-install.sh (nonexistent)
+++ 13.2/gdb-pkg-install.sh (revision 385)
@@ -0,0 +1,73 @@
+#!/bin/sh
+
+# Preserve new files
+install_file() {
+ NEW="$1"
+ OLD="`dirname $NEW`/`basename $NEW .new`"
+ # If there's no file by that name, mv it over:
+ if [ ! -r $OLD ]; then
+ mv $NEW $OLD
+ elif [ "`cat $OLD | md5sum`" = "`cat $NEW | md5sum`" ]; then # toss the redundant copy
+ rm $NEW
+ fi
+ # Otherwise, we leave the .new copy for the admin to consider...
+}
+
+
+# arg 1: the new package version
+pre_install() {
+ /bin/true
+}
+
+# arg 1: the new package version
+post_install() {
+ #
+ # NOTE:
+ # 'install-info' can work using relative paths and we can make use build machine
+ # utility during installation to the some partition and use target 'install-info'
+ # during installation directly on the running target machine.
+ #
+ if [ -x /usr/bin/install-info ] ; then
+ install-info --info-dir=usr/share/info usr/share/info/gdb.info.gz 2>/dev/null
+ install-info --info-dir=usr/share/info usr/share/info/stabs.info.gz 2>/dev/null
+ elif ! grep "(gdb)" usr/share/info/dir 1> /dev/null 2> /dev/null ; then
+ cat << EOF >> usr/share/info/dir
+
+Software development
+* Gdb: (gdb). The GNU debugger.
+* Stabs: (stabs). The "stabs" debugging information format.
+* gdbserver: (gdb) Server. The GNU debugging server.
+EOF
+ fi
+}
+
+# arg 1: the new package version
+# arg 2: the old package version
+pre_update() {
+ /bin/true
+}
+
+# arg 1: the new package version
+# arg 2: the old package version
+post_update() {
+ post_install
+}
+
+# arg 1: the old package version
+pre_remove() {
+ if [ -x /usr/bin/install-info ] ; then
+ install-info --delete --info-file=usr/share/info/stabs.info.gz --dir-file=usr/share/info/dir 2> /dev/null || /bin/true
+ install-info --delete --info-file=usr/share/info/gdb.info.gz --dir-file=usr/share/info/dir 2> /dev/null || /bin/true
+ fi
+}
+
+# arg 1: the old package version
+post_remove() {
+ /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*
Property changes on: 13.2/gdb-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: 13.2
===================================================================
--- 13.2 (nonexistent)
+++ 13.2 (revision 385)
Property changes on: 13.2
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,74 ##
+
+# install dir
+dist
+
+# Target build dirs
+.a1x-newlib
+.a2x-newlib
+.at91sam7s-newlib
+
+.build-machine
+
+.a1x-glibc
+.a2x-glibc
+.h3-glibc
+.h5-glibc
+.i586-glibc
+.i686-glibc
+.imx6-glibc
+.jz47xx-glibc
+.makefile
+.am335x-glibc
+.omap543x-glibc
+.p5600-glibc
+.power8-glibc
+.power8le-glibc
+.power9-glibc
+.power9le-glibc
+.m1000-glibc
+.riscv64-glibc
+.rk328x-glibc
+.rk33xx-glibc
+.rk339x-glibc
+.rk358x-glibc
+.s8xx-glibc
+.s9xx-glibc
+.x86_64-glibc
+
+# Hidden files (each file)
+.makefile
+.dist
+.rootfs
+
+# src & hw requires
+.src_requires
+.src_requires_depend
+.requires
+.requires_depend
+
+# Tarballs
+*.gz
+*.bz2
+*.lz
+*.xz
+*.tgz
+*.txz
+
+# Signatures
+*.asc
+*.sig
+*.sign
+*.sha1sum
+
+# Patches
+*.patch
+
+# Descriptions
+*.dsc
+*.txt
+
+# Default linux config files
+*.defconfig
+
+# backup copies
+*~