summaryrefslogtreecommitdiff
path: root/src/android/mm/libhardware_stub.c
diff options
context:
space:
mode:
authorMattijs Korpershoek <mkorpershoek@baylibre.com>2023-10-12 12:20:00 +0200
committerMattijs Korpershoek <mkorpershoek@baylibre.com>2023-10-13 16:31:13 +0200
commitabe2fea38b2431edd9a18d59914aea281230f89c (patch)
treec34028d515da8accd4ebf83b038524e593471479 /src/android/mm/libhardware_stub.c
parent949336ae4c6a49bcbe20810bd000828c5e1be670 (diff)
Revert "android: mm: Stub libhardware for build tests"
The VNDK, which is included as a subproject can provide libhardware. Remove the stub and use the VNDK instead. This reverts commit b9ecd85ed1fee2e9d715368b24592ad3009131d8. Signed-off-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
Diffstat (limited to 'src/android/mm/libhardware_stub.c')
-rw-r--r--src/android/mm/libhardware_stub.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/android/mm/libhardware_stub.c b/src/android/mm/libhardware_stub.c
deleted file mode 100644
index 00f15cd9..00000000
--- a/src/android/mm/libhardware_stub.c
+++ /dev/null
@@ -1,17 +0,0 @@
-/* SPDX-License-Identifier: Apache-2.0 */
-/*
- * Copyright (C) 2023, Ideas on Board
- *
- * libhardware_stub.c - Android libhardware stub for test compilation
- */
-
-#include <errno.h>
-
-#include <hardware/hardware.h>
-
-int hw_get_module(const char *id __attribute__((__unused__)),
- const struct hw_module_t **module)
-{
- *module = NULL;
- return -ENOTSUP;
-}