summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDemon000 <demonsingur@gmail.com>2017-10-15 11:36:30 +0300
committerDemon000 <demonsingur@gmail.com>2017-10-16 19:31:02 +0300
commitefbac9bae0555aed1bbc5140a10ee2e0e9d6c58f (patch)
tree85e8883f2d3a397dc750b9b32598d0566e9e3048
parenta2c99c65e50f219500a549bd7406e9b39cecf78a (diff)
downloadhardware_lineage_interfaces-efbac9bae0555aed1bbc5140a10ee2e0e9d6c58f.tar.gz
hardware_lineage_interfaces-efbac9bae0555aed1bbc5140a10ee2e0e9d6c58f.tar.bz2
hardware_lineage_interfaces-efbac9bae0555aed1bbc5140a10ee2e0e9d6c58f.zip
lineage/interfaces: add update-makefiles.sh script
Generates the makefile/blueprint structure inside hardware/lineage/interfaces. Package names need to start with vendor.lineage, for example, vendor.lineage.vibrator@1.0, else hidl-gen will fail. Usage: ./hardware/lineage/interfaces/update-makefiles.sh If the script finds a *.hal file, it will create Android.bp and Android.mk files inside the respective directory that turn those files into an interface. Also, regenerate blueprints using the script. Change-Id: Id169bd74e76cd83d4572e14cebf91db7629640cc
-rw-r--r--biometrics/Android.bp3
-rw-r--r--biometrics/fingerprint/Android.bp3
-rw-r--r--camera/Android.bp1
-rw-r--r--nfc/Android.bp1
-rwxr-xr-xupdate-makefiles.sh8
5 files changed, 12 insertions, 4 deletions
diff --git a/biometrics/Android.bp b/biometrics/Android.bp
index 55a6de1..696ef6b 100644
--- a/biometrics/Android.bp
+++ b/biometrics/Android.bp
@@ -1,3 +1,4 @@
+// This is an autogenerated file, do not edit.
subdirs = [
- "fingerprint",
+ "fingerprint/2.0",
]
diff --git a/biometrics/fingerprint/Android.bp b/biometrics/fingerprint/Android.bp
deleted file mode 100644
index 5f8a18f..0000000
--- a/biometrics/fingerprint/Android.bp
+++ /dev/null
@@ -1,3 +0,0 @@
-subdirs = [
- "2.0",
-]
diff --git a/camera/Android.bp b/camera/Android.bp
index f5dfcce..2778448 100644
--- a/camera/Android.bp
+++ b/camera/Android.bp
@@ -1,3 +1,4 @@
+// This is an autogenerated file, do not edit.
subdirs = [
"device/1.0-legacy",
"provider/2.4-legacy",
diff --git a/nfc/Android.bp b/nfc/Android.bp
index bb37fae..1751493 100644
--- a/nfc/Android.bp
+++ b/nfc/Android.bp
@@ -1,3 +1,4 @@
+// This is an autogenerated file, do not edit.
subdirs = [
"1.0-bcm",
]
diff --git a/update-makefiles.sh b/update-makefiles.sh
new file mode 100755
index 0000000..d1528db
--- /dev/null
+++ b/update-makefiles.sh
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+source system/tools/hidl/update-makefiles-helper.sh
+
+do_makefiles_update \
+ "vendor.lineage:hardware/lineage/interfaces" \
+ "android.hardware:hardware/interfaces" \
+ "android.hidl:system/libhidl/transport"