wpa_supplicant: define BINDIR for systemd/dbus service files
authorGustavo Zacarias <gustavo@zacarias.com.ar>
Thu, 28 Nov 2013 17:39:00 +0000 (14:39 -0300)
committerPeter Korsgaard <peter@korsgaard.com>
Thu, 28 Nov 2013 19:01:50 +0000 (20:01 +0100)
BINDIR is used to point systemd/dbus service files to the correct binary
path where wpa_supplicant resides.
So define it to avoid the default /usr/local path that doesn't work.
Solves bug #6704

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/wpa_supplicant/wpa_supplicant.mk

index 450e10f540aff0807fb9664f68c89ef68cd79e41..4ae41c10f780cb3cc6ecf425a56d142b2efe379d 100644 (file)
@@ -137,7 +137,7 @@ endef
 
 define WPA_SUPPLICANT_BUILD_CMDS
        $(TARGET_MAKE_ENV) CFLAGS="$(WPA_SUPPLICANT_CFLAGS)" \
-               LDFLAGS="$(TARGET_LDFLAGS)" \
+               LDFLAGS="$(TARGET_LDFLAGS)" BINDIR=/usr/sbin \
                $(MAKE) CC="$(TARGET_CC)" -C $(@D)/$(WPA_SUPPLICANT_SUBDIR)
 endef