cpuhotplug: add method to check uevents in userspace
- This util reads the NETLINK socket to receive messages from the kernel.
For both ubuntu and android uevent_reader can be used to receive events.
- bug : 1304251
Signed-off-by: Sanjay Singh Rawat <sanjay.rawat@linaro.org>
diff --git a/Test.mk b/Test.mk
index 19d7346..7c2e0e0 100644
--- a/Test.mk
+++ b/Test.mk
@@ -20,7 +20,7 @@
# Contributors:
# Daniel Lezcano <daniel.lezcano@linaro.org> (IBM Corporation)
# - initial API and implementation
-#
+
SNT=$(wildcard *sanity.sh)
TST=$(wildcard *[^(sanity)].sh)
LOG=$(TST:.sh=.log)
@@ -29,7 +29,10 @@
SRC=$(wildcard *.c)
EXEC=$(SRC:%.c=%)
-check: run_tests
+check: build_utils run_tests
+
+build_utils:
+ gcc ../utils/uevent_reader.c -o ../utils/uevent_reader
SANITY_STATUS:= $(shell if test $(SNT) && test -f $(SNT); then \
./$(SNT); if test "$$?" -eq 0; then echo 0; else \