* [Buildroot] [PATCH] wpa_supplicant: adjust make environment for pkg-config call
@ 2009-10-05 8:30 Sven Neumann
2009-10-05 8:45 ` Peter Korsgaard
2009-10-05 9:10 ` Peter Korsgaard
0 siblings, 2 replies; 5+ messages in thread
From: Sven Neumann @ 2009-10-05 8:30 UTC (permalink / raw)
To: buildroot
In case that wpa_supplicant is configured with DBus interface,
it calls pkg-config to find the dbus headers and libraries.
Adjust the make environment so that it will use the right
pkg-config search paths.
Signed-off-by: Sven Neumann <s.neumann@raumfeld.com>
---
package/wpa_supplicant/wpa_supplicant.mk | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/package/wpa_supplicant/wpa_supplicant.mk b/package/wpa_supplicant/wpa_supplicant.mk
index 4195b1c..5d78573 100644
--- a/package/wpa_supplicant/wpa_supplicant.mk
+++ b/package/wpa_supplicant/wpa_supplicant.mk
@@ -19,7 +19,10 @@ ifeq ($(BR2_PACKAGE_WPA_SUPPLICANT_OPENSSL),y)
WPA_SUPPLICANT_DEPENDENCIES += openssl
endif
ifeq ($(BR2_PACKAGE_DBUS),y)
- WPA_SUPPLICANT_DEPENDENCIES += dbus
+ WPA_SUPPLICANT_DEPENDENCIES += host-pkgconfig dbus
+ WPA_SUPPLICANT_MAKE_ENV = \
+ PKG_CONFIG_SYSROOT_DIR="$(STAGING_DIR)" \
+ PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig"
endif
$(eval $(call AUTOTARGETS,package,wpa_supplicant))
--
1.6.0.4
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH] wpa_supplicant: adjust make environment for pkg-config call
2009-10-05 8:30 [Buildroot] [PATCH] wpa_supplicant: adjust make environment for pkg-config call Sven Neumann
@ 2009-10-05 8:45 ` Peter Korsgaard
2009-10-05 9:00 ` Sven Neumann
2009-10-05 9:10 ` Peter Korsgaard
1 sibling, 1 reply; 5+ messages in thread
From: Peter Korsgaard @ 2009-10-05 8:45 UTC (permalink / raw)
To: buildroot
>>>>> "Sven" == Sven Neumann <s.neumann@raumfeld.com> writes:
Hi,
Sven> In case that wpa_supplicant is configured with DBus interface,
Sven> it calls pkg-config to find the dbus headers and libraries.
Sven> Adjust the make environment so that it will use the right
Sven> pkg-config search paths.
Sven> ifeq ($(BR2_PACKAGE_DBUS),y)
Sven> - WPA_SUPPLICANT_DEPENDENCIES += dbus
Sven> + WPA_SUPPLICANT_DEPENDENCIES += host-pkgconfig dbus
Sven> + WPA_SUPPLICANT_MAKE_ENV = \
Sven> + PKG_CONFIG_SYSROOT_DIR="$(STAGING_DIR)" \
Sven> + PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig"
Won't this pick up /usr/bin/pkg-config instead of the one in HOST_DIR? I
would prefer to simply use TARGET_CONFIGURE_OPTS here so the path gets
set and we only have the pkgconfig magic one place.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH] wpa_supplicant: adjust make environment for pkg-config call
2009-10-05 8:45 ` Peter Korsgaard
@ 2009-10-05 9:00 ` Sven Neumann
2009-10-05 9:10 ` Peter Korsgaard
0 siblings, 1 reply; 5+ messages in thread
From: Sven Neumann @ 2009-10-05 9:00 UTC (permalink / raw)
To: buildroot
On Mon, 2009-10-05 at 10:45 +0200, Peter Korsgaard wrote:
> >>>>> "Sven" == Sven Neumann <s.neumann@raumfeld.com> writes:
>
> Hi,
>
> Sven> In case that wpa_supplicant is configured with DBus interface,
> Sven> it calls pkg-config to find the dbus headers and libraries.
> Sven> Adjust the make environment so that it will use the right
> Sven> pkg-config search paths.
>
> Sven> ifeq ($(BR2_PACKAGE_DBUS),y)
> Sven> - WPA_SUPPLICANT_DEPENDENCIES += dbus
> Sven> + WPA_SUPPLICANT_DEPENDENCIES += host-pkgconfig dbus
> Sven> + WPA_SUPPLICANT_MAKE_ENV = \
> Sven> + PKG_CONFIG_SYSROOT_DIR="$(STAGING_DIR)" \
> Sven> + PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig"
>
> Won't this pick up /usr/bin/pkg-config instead of the one in HOST_DIR? I
> would prefer to simply use TARGET_CONFIGURE_OPTS here so the path gets
> set and we only have the pkgconfig magic one place.
The PATH is already set. Here's the relevant line from our log (with
this change applied):
PATH="/tmp/build/build/toolchain_build_arm/bin:/tmp/build/build/build_arm/host_dir/bin:/tmp/build/build/build_arm/host_dir/usr/bin:/tmp/build/build/build_arm/staging_dir/bin:/tmp/build/build/build_arm/staging_dir/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/games" PKG_CONFIG_SYSROOT_DIR="/tmp/build/build/build_arm/staging_dir" PKG_CONFIG_PATH="/tmp/build/build/build_arm/staging_dir/usr/lib/pkgconfig" /usr/bin/make -j4 -C /tmp/build/build/build_arm/wpa_supplicant-0.6.9/wpa_supplicant
But if you can come up with a cleaner solution, then please go ahead and
commit it instead of my patch.
Sven
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH] wpa_supplicant: adjust make environment for pkg-config call
2009-10-05 9:00 ` Sven Neumann
@ 2009-10-05 9:10 ` Peter Korsgaard
0 siblings, 0 replies; 5+ messages in thread
From: Peter Korsgaard @ 2009-10-05 9:10 UTC (permalink / raw)
To: buildroot
>>>>> "Sven" == Sven Neumann <s.neumann@raumfeld.com> writes:
Hi,
>> Won't this pick up /usr/bin/pkg-config instead of the one in HOST_DIR? I
>> would prefer to simply use TARGET_CONFIGURE_OPTS here so the path gets
>> set and we only have the pkgconfig magic one place.
Sven> The PATH is already set. Here's the relevant line from our log (with
Sven> this change applied):
Sven> PATH="/tmp/build/build/toolchain_build_arm/bin:/tmp/build/build/build_arm/host_dir/bin:/tmp/build/build/build_arm/host_dir/usr/bin:/tmp/build/build/build_arm/staging_dir/bin:/tmp/build/build/build_arm/staging_dir/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/games" PKG_CONFIG_SYSROOT_DIR="/tmp/build/build/build_arm/staging_dir" PKG_CONFIG_PATH="/tmp/build/build/build_arm/staging_dir/usr/lib/pkgconfig" /usr/bin/make -j4 -C /tmp/build/build/build_arm/wpa_supplicant-0.6.9/wpa_supplicant
Ahh yes, Makefile.autotools.in has:
PATH=$(TARGET_PATH) $($(PKG)_MAKE_ENV) $($(PKG)_MAKE) $($(PKG)_MAKE_OPT)
-C $(@D)/$($(PKG)_SUBDIR)
Sven> But if you can come up with a cleaner solution, then please go ahead and
Sven> commit it instead of my patch.
No - With that out of the way, then I think your patch is fine.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH] wpa_supplicant: adjust make environment for pkg-config call
2009-10-05 8:30 [Buildroot] [PATCH] wpa_supplicant: adjust make environment for pkg-config call Sven Neumann
2009-10-05 8:45 ` Peter Korsgaard
@ 2009-10-05 9:10 ` Peter Korsgaard
1 sibling, 0 replies; 5+ messages in thread
From: Peter Korsgaard @ 2009-10-05 9:10 UTC (permalink / raw)
To: buildroot
>>>>> "Sven" == Sven Neumann <s.neumann@raumfeld.com> writes:
Sven> In case that wpa_supplicant is configured with DBus interface,
Sven> it calls pkg-config to find the dbus headers and libraries.
Sven> Adjust the make environment so that it will use the right
Sven> pkg-config search paths.
Committed, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2009-10-05 9:10 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-05 8:30 [Buildroot] [PATCH] wpa_supplicant: adjust make environment for pkg-config call Sven Neumann
2009-10-05 8:45 ` Peter Korsgaard
2009-10-05 9:00 ` Sven Neumann
2009-10-05 9:10 ` Peter Korsgaard
2009-10-05 9:10 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox