Skip to contentSkip to conversation

gpsd: disallow profiling support with uClibc toolchain

PATCH New spdawson at gmail.com 1 participant 1 message Jul 24, 2012

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 gpsd: disallow profiling support with uClibc toolchain

From: Simon Dawson <[email protected]>

The following problem was reported by Thomas Petazzoni.

If BR2_PACKAGE_GPSD_PROFILING is enabled with a uClibc-based toolchain, then gpsd fails to build. See the following for details.

http://autobuild.buildroot.org/results/be707893f4bf0e7e964d183e4a655c5bb72d1889/build-end.log
http://autobuild.buildroot.org/results/be707893f4bf0e7e964d183e4a655c5bb72d1889/defconfig.

The issue is that uClibc lacks the necessary infrastructure to support profiling. This patch disallows selection of the gpsd profiling feature when a uClibc-based toolchain is selected.

---
v2: Correct logic to handle all uClibc-based toolchains.

 package/gpsd/Config.in |    4 ++++
 1 file changed, 4 insertions(+)
package/gpsd/Config.in +4 -0
index 18e21e5..db6bec2 100644
@@ -31,6 +31,10 @@ config BR2_PACKAGE_GPSD_OLDSTYLE
 
 config BR2_PACKAGE_GPSD_PROFILING
 	bool "profiling support"
+	depends on !BR2_TOOLCHAIN_BUILDROOT && !BR2_TOOLCHAIN_CTNG_uClibc && !BR2_TOOLCHAIN_EXTERNAL_UCLIBC
+
+comment "profiling support not available with uClibc-based toolchain"
+	depends on BR2_TOOLCHAIN_BUILDROOT || BR2_TOOLCHAIN_CTNG_uClibc || BR2_TOOLCHAIN_EXTERNAL_UCLIBC
 
 config BR2_PACKAGE_GPSD_NTP_SHM
 	bool "NTP time hinting support"
Signature · 1 line
1.7.9.5