Skip to contentSkip to conversation

gpsd: disallow profiling support with Buildroot toolchain

PATCH New spdawson at gmail.com 2 participants 3 messages Jul 24, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gpsd: disallow profiling support with Buildroot toolchain

From: Simon Dawson <[email protected]>

The following problem was reported by Thomas Petazzoni.

If BR2_PACKAGE_GPSD_PROFILING is enabled with a Buildroot 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 the Buildroot toolchain is selected.

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

PATCH 1/1 gpsd: disallow profiling support with Buildroot toolchain

Le Tue, 24 Jul 2012 09:42:17 +0100,
spdawson at gmail.com a ?crit :

package/gpsd/Config.in config BR2_PACKAGE_GPSD_OLDSTYLE · line 37

Quoted 2 lines
package/gpsd/Config.in +2 -0
+comment "profiling support not available with Buildroot toolchain"
+	depends on BR2_TOOLCHAIN_BUILDROOT

Is the problem Buildroot-toolchain related, or uClibc related? If it's uClibc related, it will also show up with uClibc-based external toolchains and uClibc-based toolchains generated by the Crosstool-NG backend.

Thomas

Signature · 4 lines
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
#2 lore raw

PATCH 1/1 gpsd: disallow profiling support with Buildroot toolchain

Quoted 10 lines · Thomas Petazzoni

Le Tue, 24 Jul 2012 09:42:17 +0100,
spdawson at gmail.com a ?crit :

package/gpsd/Config.in config BR2_PACKAGE_GPSD_OLDSTYLE · line 37

Quoted 2 lines
package/gpsd/Config.in +2 -0
+comment "profiling support not available with Buildroot toolchain"
+     depends on BR2_TOOLCHAIN_BUILDROOT

Is the problem Buildroot-toolchain related, or uClibc related? If it's uClibc related, it will also show up with uClibc-based external toolchains and uClibc-based toolchains generated by the Crosstool-NG backend.

Okay, thanks Thomas. I'll fix and resubmit.

Simon.