Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

tools: lib: thermal: use pkg-config to locate libnl3

To make libthermal more cross compile friendly use pkg-config to locate
libnl3. Only if that fails fall back to hardcoded /usr/include/libnl3.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

authored by

Sascha Hauer and committed by
Rafael J. Wysocki
b31f7f72 e649c366

+6 -1
+6 -1
tools/lib/thermal/Makefile
··· 46 46 CFLAGS := -g -Wall 47 47 endif 48 48 49 + NL3_CFLAGS = $(shell pkg-config --cflags libnl-3.0 2>/dev/null) 50 + ifeq ($(NL3_CFLAGS),) 51 + NL3_CFLAGS = -I/usr/include/libnl3 52 + endif 53 + 49 54 INCLUDES = \ 50 - -I/usr/include/libnl3 \ 51 55 -I$(srctree)/tools/lib/thermal/include \ 52 56 -I$(srctree)/tools/lib/ \ 53 57 -I$(srctree)/tools/include \ ··· 63 59 override CFLAGS += $(EXTRA_WARNINGS) 64 60 override CFLAGS += -Werror -Wall 65 61 override CFLAGS += -fPIC 62 + override CFLAGS += $(NL3_CFLAGS) 66 63 override CFLAGS += $(INCLUDES) 67 64 override CFLAGS += -fvisibility=hidden 68 65 override CFGLAS += -Wl,-L.