From efbac9bae0555aed1bbc5140a10ee2e0e9d6c58f Mon Sep 17 00:00:00 2001 From: Demon000 Date: Sun, 15 Oct 2017 11:36:30 +0300 Subject: 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 --- biometrics/Android.bp | 3 ++- biometrics/fingerprint/Android.bp | 3 --- camera/Android.bp | 1 + nfc/Android.bp | 1 + update-makefiles.sh | 8 ++++++++ 5 files changed, 12 insertions(+), 4 deletions(-) delete mode 100644 biometrics/fingerprint/Android.bp create mode 100755 update-makefiles.sh 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" -- cgit v1.2.3