Комментарии (0)
Нет комментариев. Ваш будет первым!
ubu-chroot -r $MER_ROOT/sdks/ubuntu cd $ANDROID_ROOT hadk source build/envsetup.sh breakfast $DEVICE make libaudioflingerglue miniafservice
fold=audioflingerglue-0.0.1 rm -rf $fold mkdir $fold mkdir -p $fold/out/target/product/${DEVICE}/system/lib mkdir -p $fold/out/target/product/${DEVICE}/system/bin mkdir -p $fold/external/audioflingerglue cp ./out/target/product/${DEVICE}/system/lib/libaudioflingerglue.so $fold/out/target/product/${DEVICE}/system/lib/ cp ./out/target/product/${DEVICE}/system/bin/miniafservice $fold/out/target/product/${DEVICE}/system/bin/ cp ./external/audioflingerglue/*.h $fold/external/audioflingerglue/ cp ./external/audioflingerglue/hybris.c $fold/external/audioflingerglue/ tar -cjvf ${fold}.tgz $fold
chmod +x $ANDROID_ROOT/pack_source_af.sh
touch $ANDROID_ROOT/audioflingerglue.spec
%define strip /bin/true %define __requires_exclude ^.*$ %define __find_requires %{nil} %global debug_package %{nil} %define __provides_exclude_from ^.*$ %define device_rpm_architecture_string armv7hl %define _target_cpu %{device_rpm_architecture_string} Name: audioflingerglue Summary: Android AudioFlinger glue library Version: 0.0.1 Release: 1 Group: System/Libraries License: ASL 2.0 Source0: %{name}-%{version}.tgz AutoReqProv: no %description %{summary} %package devel Summary: audioflingerglue development headers Group: System/Libraries Requires: audioflingerglue = %{version}-%{release} BuildArch: noarch %description devel %{summary} %prep %if %{?device_rpm_architecture_string:0}%{!?device_rpm_architecture_string:1} echo "device_rpm_architecture_string is not defined" exit -1 %endif %setup %build pwd ls tar -xvf %name-%version.tgz %install mkdir -p $RPM_BUILD_ROOT/%{_libexecdir}/droid-hybris/system/lib/ mkdir -p $RPM_BUILD_ROOT/%{_libexecdir}/droid-hybris/system/bin/ mkdir -p $RPM_BUILD_ROOT/%{_includedir}/audioflingerglue/ mkdir -p $RPM_BUILD_ROOT/%{_datadir}/audioflingerglue/ pushd %name-%version cp out/target/product/*/system/lib/libaudioflingerglue.so $RPM_BUILD_ROOT/%{_libexecdir}/droid-hybris/system/lib/ cp out/target/product/*/system/bin/miniafservice $RPM_BUILD_ROOT/%{_libexecdir}/droid-hybris/system/bin/ cp external/audioflingerglue/audioflingerglue.h $RPM_BUILD_ROOT/%{_includedir}/audioflingerglue/ cp external/audioflingerglue/hybris.c $RPM_BUILD_ROOT/%{_datadir}/audioflingerglue/ popd %files %defattr(-,root,root,-) %{_libexecdir}/droid-hybris/system/lib/libaudioflingerglue.so %{_libexecdir}/droid-hybris/system/bin/miniafservice %files devel %defattr(-,root,root,-) %{_includedir}/audioflingerglue/*.h %{_datadir}/audioflingerglue/hybris.c
mb2 -s audioflingerglue.spec -t $VENDOR-$DEVICE-$PORT_ARCH build mv RPMS/*.rpm $ANDROID_ROOT/droid-local-repo/$DEVICE/ createrepo $ANDROID_ROOT/droid-local-repo/$DEVICE sb2 -t $VENDOR-$DEVICE-$PORT_ARCH -R -msdk-install zypper ref
rm out/target/product/$DEVICE/system/bin/miniafservice rm out/target/product/$DEVICE/system/lib/libaudioflingerglue.so
mkdir -p $MER_ROOT/devel/mer-hybris cd $MER_ROOT/devel/mer-hybris PKG=pulseaudio-modules-droid-glue rm -rf $PKG git clone https://github.com/mer-hybris/pulseaudio-modules-droid-glue.git cd $PKG curl http://pastebin.com/raw/H8U5nSNm -o pulseaudio-modules-droid-glue.patch patch -p1 < pulseaudio-modules-droid-glue.patch mb2 -s rpm/$PKG.spec -t $VENDOR-$DEVICE-$PORT_ARCH build mkdir -p $ANDROID_ROOT/droid-local-repo/$DEVICE/$PKG/ rm -f $ANDROID_ROOT/droid-local-repo/$DEVICE/$PKG/*.rpm mv RPMS/*.rpm $ANDROID_ROOT/droid-local-repo/$DEVICE/$PKG createrepo $ANDROID_ROOT/droid-local-repo/$DEVICE sb2 -t $VENDOR-$DEVICE-$PORT_ARCH -R -m sdk-install zypper ref
Нет комментариев. Ваш будет первым!
Ну и где доказательства про 18 запусков у маска в 2018 году? Или ты предпочтешь и тут...