Skip to content

Commit

Permalink
libmemtrack : convert Android.mk to Android.bp
Browse files Browse the repository at this point in the history
  • Loading branch information
peyo-hd committed May 26, 2019
1 parent ec48f03 commit 386e001
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 33 deletions.
7 changes: 7 additions & 0 deletions libmemtrack/Android.bp
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
cc_library_shared {
name: "memtrack.rpi3",
relative_install_path: "hw",
proprietary: true,
srcs: ["memtrack_rpi.c"],
cflags: ["-Wconversion", "-Wall", "-Werror"],
}
30 changes: 0 additions & 30 deletions libmemtrack/Android.mk

This file was deleted.

6 changes: 3 additions & 3 deletions libmemtrack/memtrack_hikey.c → libmemtrack/memtrack_rpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

#include <hardware/memtrack.h>

int hikey_memtrack_init(const struct memtrack_module *module)
int rpi_memtrack_init(const struct memtrack_module *module)
{
if (!module)
return -1;
Expand All @@ -36,10 +36,10 @@ struct memtrack_module HAL_MODULE_INFO_SYM = {
.module_api_version = MEMTRACK_MODULE_API_VERSION_0_1,
.hal_api_version = HARDWARE_HAL_API_VERSION,
.id = MEMTRACK_HARDWARE_MODULE_ID,
.name = "HiKey Memory Tracker HAL",
.name = "Raspberry Pi Memory Tracker HAL",
.author = "The Android Open Source Project",
.methods = &memtrack_module_methods,
},

.init = hikey_memtrack_init,
.init = rpi_memtrack_init,
};

0 comments on commit 386e001

Please sign in to comment.