mirror of
https://git.yoctoproject.org/poky
synced 2026-06-03 13:49:49 +00:00
gdb: Add gdb-cross-sdk, factor out code into .inc files
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2202 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
@@ -0,0 +1,7 @@
|
|||||||
|
require gdb-cross.inc
|
||||||
|
|
||||||
|
inherit sdk
|
||||||
|
|
||||||
|
do_stage() {
|
||||||
|
:
|
||||||
|
}
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
require gdb.inc
|
||||||
|
|
||||||
|
DEPENDS = "ncurses-native"
|
||||||
|
|
||||||
|
SRC_URI += "file://sim-install-6.6.patch;patch=1"
|
||||||
|
|
||||||
|
EXTRA_OEMAKE = "'SUBDIRS=intl mmalloc libiberty opcodes bfd sim gdb etc utils' LDFLAGS='${BUILD_LDFLAGS}'"
|
||||||
|
|
||||||
|
EXTRA_OECONF = "--with-curses --with-readline"
|
||||||
|
|
||||||
|
do_configure () {
|
||||||
|
# override this function to avoid the autoconf/automake/aclocal/autoheader
|
||||||
|
# calls for now
|
||||||
|
(cd ${S} && gnu-configize) || die "failure in running gnu-configize"
|
||||||
|
oe_runconf
|
||||||
|
}
|
||||||
|
|
||||||
|
do_stage() {
|
||||||
|
oe_runmake install
|
||||||
|
}
|
||||||
@@ -1,35 +1,3 @@
|
|||||||
LICENSE = "GPL"
|
require gdb-cross.inc
|
||||||
DESCRIPTION = "gdb - GNU debugger"
|
|
||||||
SECTION = "base"
|
|
||||||
PRIORITY = "optional"
|
|
||||||
DEPENDS = "ncurses-native"
|
|
||||||
|
|
||||||
inherit autotools cross
|
inherit cross
|
||||||
|
|
||||||
S = "${WORKDIR}/gdb-${PV}"
|
|
||||||
SRC_URI = "${GNU_MIRROR}/gdb/gdb-${PV}.tar.gz \
|
|
||||||
file://sim-install-6.6.patch;patch=1"
|
|
||||||
|
|
||||||
FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/gdb-${PV}"
|
|
||||||
|
|
||||||
export CC_FOR_BUILD = "${BUILD_CC}"
|
|
||||||
export CXX_FOR_BUILD = "${BUILD_CXX}"
|
|
||||||
export CPP_FOR_BUILD = "${BUILD_CPP}"
|
|
||||||
export CFLAGS_FOR_BUILD = "${BUILD_CFLAGS}"
|
|
||||||
export CXXFLAGS_FOR_BUILD = "${BUILD_CXXFLAGS}"
|
|
||||||
export CPPFLAGS_FOR_BUILD = "${BUILD_CPPFLAGS}"
|
|
||||||
|
|
||||||
EXTRA_OEMAKE = "'SUBDIRS=intl mmalloc libiberty opcodes bfd sim gdb etc utils' LDFLAGS='${BUILD_LDFLAGS}'"
|
|
||||||
|
|
||||||
EXTRA_OECONF = "--with-curses --with-readline"
|
|
||||||
|
|
||||||
do_configure () {
|
|
||||||
# override this function to avoid the autoconf/automake/aclocal/autoheader
|
|
||||||
# calls for now
|
|
||||||
gnu-configize
|
|
||||||
oe_runconf
|
|
||||||
}
|
|
||||||
|
|
||||||
do_stage() {
|
|
||||||
oe_runmake install
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -0,0 +1,22 @@
|
|||||||
|
DESCRIPTION = "gdb - GNU debugger"
|
||||||
|
HOMEPAGE = "http://www.gnu.org/software/gdb/"
|
||||||
|
LICENSE="GPL"
|
||||||
|
SECTION = "devel"
|
||||||
|
PRIORITY = "optional"
|
||||||
|
|
||||||
|
inherit autotools
|
||||||
|
|
||||||
|
SRC_URI = "${GNU_MIRROR}/gdb/gdb-${PV}.tar.gz"
|
||||||
|
|
||||||
|
FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/gdb-${PV}"
|
||||||
|
|
||||||
|
export CC_FOR_BUILD = "${BUILD_CC}"
|
||||||
|
export CXX_FOR_BUILD = "${BUILD_CXX}"
|
||||||
|
export CPP_FOR_BUILD = "${BUILD_CPP}"
|
||||||
|
export CFLAGS_FOR_BUILD = "${BUILD_CFLAGS}"
|
||||||
|
export CXXFLAGS_FOR_BUILD = "${BUILD_CXXFLAGS}"
|
||||||
|
export CPPFLAGS_FOR_BUILD = "${BUILD_CPPFLAGS}"
|
||||||
|
|
||||||
|
S = "${WORKDIR}/gdb-${PV}"
|
||||||
|
B = "${WORKDIR}/build-${TARGET_SYS}"
|
||||||
|
|
||||||
@@ -1,8 +1,5 @@
|
|||||||
DESCRIPTION = "gdb - GNU debugger"
|
require gdb.inc
|
||||||
HOMEPAGE = "http://www.gnu.org/software/gdb/"
|
|
||||||
LICENSE="GPL"
|
|
||||||
SECTION = "devel"
|
|
||||||
PRIORITY = "optional"
|
|
||||||
DEPENDS = "ncurses readline"
|
DEPENDS = "ncurses readline"
|
||||||
PR = "r0"
|
PR = "r0"
|
||||||
|
|
||||||
@@ -11,30 +8,21 @@ FILES_gdbserver = '${bindir}/gdbserver'
|
|||||||
|
|
||||||
RRECOMMENDS_gdb = "glibc-thread-db"
|
RRECOMMENDS_gdb = "glibc-thread-db"
|
||||||
|
|
||||||
inherit autotools gettext
|
inherit gettext
|
||||||
|
|
||||||
SRC_URI = "${GNU_MIRROR}/gdb/gdb-${PV}.tar.gz \
|
SRC_URI += file://kill_arm_map_symbols.patch;patch=1 \
|
||||||
#FIXME file://uclibc.patch;patch=1 \
|
#FIXME file://uclibc.patch;patch=1 \
|
||||||
file://kill_arm_map_symbols.patch;patch=1 \
|
|
||||||
file://gdbserver-cflags-last.diff;patch=1;pnum=0"
|
file://gdbserver-cflags-last.diff;patch=1;pnum=0"
|
||||||
|
|
||||||
LDFLAGS_append = " -s"
|
LDFLAGS_append = " -s"
|
||||||
export CC_FOR_BUILD = "${BUILD_CC}"
|
|
||||||
export CXX_FOR_BUILD = "${BUILD_CXX}"
|
|
||||||
export CPP_FOR_BUILD = "${BUILD_CPP}"
|
|
||||||
export CFLAGS_FOR_BUILD = "${BUILD_CFLAGS}"
|
|
||||||
export CXXFLAGS_FOR_BUILD = "${BUILD_CXXFLAGS}"
|
|
||||||
export CPPFLAGS_FOR_BUILD = "${BUILD_CPPFLAGS}"
|
|
||||||
export CFLAGS_append=" -L${STAGING_LIBDIR}"
|
export CFLAGS_append=" -L${STAGING_LIBDIR}"
|
||||||
|
|
||||||
EXTRA_OEMAKE = "'SUBDIRS=intl mmalloc libiberty opcodes bfd sim gdb etc utils'"
|
EXTRA_OEMAKE = "'SUBDIRS=intl mmalloc libiberty opcodes bfd sim gdb etc utils'"
|
||||||
|
|
||||||
EXTRA_OECONF = "--disable-gdbtk --disable-tui --disable-x \
|
EXTRA_OECONF = "--disable-gdbtk --disable-tui --disable-x \
|
||||||
--with-curses --disable-multilib --with-readline --disable-sim \
|
--with-curses --disable-multilib --with-readline --disable-sim \
|
||||||
--program-prefix=''"
|
--program-prefix=''"
|
||||||
|
|
||||||
S = "${WORKDIR}/gdb-${PV}"
|
|
||||||
B = "${WORKDIR}/build-${TARGET_SYS}"
|
|
||||||
|
|
||||||
do_configure () {
|
do_configure () {
|
||||||
# override this function to avoid the autoconf/automake/aclocal/autoheader
|
# override this function to avoid the autoconf/automake/aclocal/autoheader
|
||||||
# calls for now
|
# calls for now
|
||||||
|
|||||||
Reference in New Issue
Block a user