Loading

Paste #pikoyxe9y

  1. diff --git a/droid-hal-device.inc b/droid-hal-device.inc
  2. index 7ac063c..4b870e4 100644
  3. --- a/droid-hal-device.inc
  4. +++ b/droid-hal-device.inc
  5. @@ -513,14 +513,17 @@ sed -i -e '/^[[:space:]]*mkdir[[:space:]]\/tmp[[:space:]]*/s/^/# Removed during
  6.  
  7. if [ $ANDROID_VERSION_MAJOR -ge "7" ]; then
  8. mkdir -p $RPM_BUILD_ROOT%{_libexecdir}/droid-hybris/system/etc/init
  9. +mkdir $RPM_BUILD_ROOT%{_libexecdir}/droid-hybris/vendor/
  10. cp -a %{android_root}/out/target/product/%{device}/system/etc/init/servicemanager.rc $RPM_BUILD_ROOT%{_libexecdir}/droid-hybris/system/etc/init/
  11. echo "%{_libexecdir}/droid-hybris/system/etc/init/servicemanager.rc" > tmp/droid-hal.files
  12. else
  13. echo "" > tmp/droid-hal.files
  14. fi
  15. cp -a %{android_root}/out/target/product/%{device}/system/{bin,lib} $RPM_BUILD_ROOT%{_libexecdir}/droid-hybris/system/.
  16. +cp -a %{android_root}/out/target/product/%{device}/vendor/{bin,lib} $RPM_BUILD_ROOT%{_libexecdir}/droid-hybris/vendor/.
  17. %if 0%{?droid_target_aarch64:1}
  18. cp -a %{android_root}/out/target/product/%{device}/system/lib64 $RPM_BUILD_ROOT%{_libexecdir}/droid-hybris/system/.
  19. +cp -a %{android_root}/out/target/product/%{device}/vendor/lib64 $RPM_BUILD_ROOT%{_libexecdir}/droid-hybris/vendor/.
  20. %endif
  21. # Remove kernel modules if installed under /system/lib/modules
  22. rm -rf $RPM_BUILD_ROOT%{_libexecdir}/droid-hybris/system/lib/modules