Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 34af50a7 authored by Steven Moreland's avatar Steven Moreland
Browse files

Update base files script works anywhere.

Test: update-base-files.sh
Change-Id: I8a7e935cc685c8d389a46b28e33ea20c61bcc1ac
parent 26a0bb27
Loading
Loading
Loading
Loading
+8 −8
Original line number Original line Diff line number Diff line
#!/bin/bash
#!/bin/bash


if [ ! -d hardware/interfaces ] ; then
if [ ! -d $ANDROID_BUILD_TOP/hardware/interfaces ] ; then
  echo "Where is hardware/interfaces?";
  echo "Where is hardware/interfaces?";
  exit 1;
  exit 1;
fi
fi


if [ ! -d system/libhidl/transport ] ; then
if [ ! -d $ANDROID_BUILD_TOP/system/libhidl/transport ] ; then
  echo "Where is system/libhidl/transport?";
  echo "Where is system/libhidl/transport?";
  exit 1;
  exit 1;
fi
fi
@@ -20,24 +20,24 @@ options="-Lexport-header \


# hardware/libhardware
# hardware/libhardware
hidl-gen $options \
hidl-gen $options \
         -o hardware/libhardware/include/hardware/sensors-base.h \
         -o $ANDROID_BUILD_TOP/hardware/libhardware/include/hardware/sensors-base.h \
         android.hardware.sensors@1.0
         android.hardware.sensors@1.0
hidl-gen $options \
hidl-gen $options \
         -o hardware/libhardware/include/hardware/nfc-base.h \
         -o $ANDROID_BUILD_TOP/hardware/libhardware/include/hardware/nfc-base.h \
         android.hardware.nfc@1.0
         android.hardware.nfc@1.0
hidl-gen $options \
hidl-gen $options \
         -o hardware/libhardware/include/hardware/gnss-base.h \
         -o $ANDROID_BUILD_TOP/hardware/libhardware/include/hardware/gnss-base.h \
         android.hardware.gnss@1.0
         android.hardware.gnss@1.0


# system/core
# system/core
hidl-gen $options \
hidl-gen $options \
         -o system/core/include/system/graphics-base.h \
         -o $ANDROID_BUILD_TOP/system/core/include/system/graphics-base.h \
         android.hardware.graphics.common@1.0
         android.hardware.graphics.common@1.0


# system/media
# system/media
hidl-gen $options \
hidl-gen $options \
         -o system/media/audio/include/system/audio-base.h \
         -o $ANDROID_BUILD_TOP/system/media/audio/include/system/audio-base.h \
         android.hardware.audio.common@2.0
         android.hardware.audio.common@2.0
hidl-gen $options \
hidl-gen $options \
         -o system/media/audio/include/system/audio_effect-base.h \
         -o $ANDROID_BUILD_TOP/system/media/audio/include/system/audio_effect-base.h \
         android.hardware.audio.effect@2.0
         android.hardware.audio.effect@2.0