Search Linux Wireless

Re: [PATCH] iw: add libnl-3.0 support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Apr 28, 2011 at 9:48 AM, Yegor Yefremov
<yegor_sub1@xxxxxxxxxxxxxxxx> wrote:
> Extend Makefile to find and use libnl-3.0
>
> Signed-off-by: Yegor Yefremov <yegorslists@xxxxxxxxxxxxxx>
> ---
> ÂMakefile | Â 10 ++++++++++
> Â1 file changed, 10 insertions(+)
>
> Index: b/Makefile
> ===================================================================
> --- a/Makefile
> +++ b/Makefile
> @@ -24,6 +24,7 @@
>
> ÂNL1FOUND := $(shell $(PKG_CONFIG) --atleast-version=1 libnl-1 && echo Y)
> ÂNL2FOUND := $(shell $(PKG_CONFIG) --atleast-version=2 libnl-2.0 && echo Y)
> +NL3FOUND := $(shell $(PKG_CONFIG) --atleast-version=3 libnl-3.0 && echo Y)
>
> Âifeq ($(NL1FOUND),Y)
> ÂNLLIBNAME = libnl-1
> @@ -35,6 +36,12 @@
> ÂNLLIBNAME = libnl-2.0
> Âendif
>
> +ifeq ($(NL3FOUND),Y)
> +CFLAGS += -DCONFIG_LIBNL20
> +LIBS += -lnl-genl
> +NLLIBNAME = libnl-3.0
> +endif
> +

Is this intended -DCONFIG_LIBNL**2**0 and NLLIBNAME = libnl-**3**.0?

- Sedat -

> Âifeq ($(NLLIBNAME),)
> Â$(error Cannot find development files for any supported version of libnl)
> Âendif
> @@ -53,6 +60,8 @@
> Âall: version_check $(ALL)
>
> Âversion_check:
> +ifeq ($(NL3FOUND),Y)
> +else
> Âifeq ($(NL2FOUND),Y)
> Âelse
> Âifeq ($(NL1FOUND),Y)
> @@ -60,6 +69,7 @@
> Â Â Â Â$(error No libnl found)
> Âendif
> Âendif
> +endif
>
>
> ÂVERSION_OBJS := $(filter-out version.o, $(OBJS))
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at Âhttp://vger.kernel.org/majordomo-info.html
>
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux