aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuro Bystricky <juro.bystricky@intel.com>2015-08-20 13:56:46 -0700
committerJuro Bystricky <juro.bystricky@intel.com>2015-08-20 13:56:46 -0700
commit3643df3ccaa109e8b030be486c22c9cfb09ef0da (patch)
tree9dbc6dfd5285260b2010887dafb8193173aaf8dd
parentc2ff6c51391ff55aa2617bab111808f64d121a7c (diff)
downloadmeta-darwin-contrib-juro/dizzy/gdb.tar.gz
meta-darwin-contrib-juro/dizzy/gdb.tar.bz2
meta-darwin-contrib-juro/dizzy/gdb.zip
gdb: Support for Darwinjuro/dizzy/gdb
Unlike Linux and mingw, cross-canadian-gdb for Darwin was not part of the SDK. This patch/recipe makes it possible to build cross-canadian-gdb for OSX. Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
-rw-r--r--recipes-core/packagegroups/packagegroup-cross-canadian.bbappend1
-rw-r--r--recipes-devtools/gdb/gdb-cross-canadian_7.7.1.bbappend26
2 files changed, 27 insertions, 0 deletions
diff --git a/recipes-core/packagegroups/packagegroup-cross-canadian.bbappend b/recipes-core/packagegroups/packagegroup-cross-canadian.bbappend
index 928f9a5..0173ed9 100644
--- a/recipes-core/packagegroups/packagegroup-cross-canadian.bbappend
+++ b/recipes-core/packagegroups/packagegroup-cross-canadian.bbappend
@@ -1,5 +1,6 @@
RDEPENDS_${PN}_darwinsdk = "\
binutils-cross-canadian-${TRANSLATED_TARGET_ARCH} \
gcc-cross-canadian-${TRANSLATED_TARGET_ARCH} \
+ gdb-cross-canadian-${TRANSLATED_TARGET_ARCH} \
meta-environment-${MACHINE} \
"
diff --git a/recipes-devtools/gdb/gdb-cross-canadian_7.7.1.bbappend b/recipes-devtools/gdb/gdb-cross-canadian_7.7.1.bbappend
new file mode 100644
index 0000000..41a1620
--- /dev/null
+++ b/recipes-devtools/gdb/gdb-cross-canadian_7.7.1.bbappend
@@ -0,0 +1,26 @@
+
+EXTRA_OECONF_remove_darwinsdk = "--with-curses"
+EXTRA_OECONF_append_darwinsdk = " --without-curses"
+DEPENDS_remove_darwinsdk = "nativesdk-ncurses"
+
+EXTRA_OECONF_remove_darwinsdk = "--with-system-readline"
+EXTRA_OECONF_append_darwinsdk = " --without-system-readline"
+DEPENDS_remove_darwinsdk = "nativesdk-readline"
+
+EXTRA_OECONF_remove_darwinsdk = "--with-python=${WORKDIR}/python"
+EXTRA_OECONF_append_darwinsdk = " --with-python=no"
+
+DEPENDS_remove_darwinsdk = "nativesdk-python"
+DEPENDS_remove_darwinsdk = "nativesdk-python"
+DEPENDS_remove_darwinsdk = "python-native"
+
+RDEPENDS_${PN}_remove_darwinsdk = "nativesdk-python-core"
+RDEPENDS_${PN}_remove_darwinsdk = "nativesdk-python-lang"
+RDEPENDS_${PN}_remove_darwinsdk = "nativesdk-python-re"
+RDEPENDS_${PN}_remove_darwinsdk = "nativesdk-python-codecs"
+RDEPENDS_${PN}_remove_darwinsdk = "nativesdk-python-netclient"
+
+RDEPENDS_${PN}_append_darwinsdk = " nativesdk-expat"
+LDFLAGS_remove_darwinsdk = "-Wl,-rpath-link,${STAGING_DIR_HOST}${libdir}/.."
+
+