Advertisement
Guest User

Untitled

a guest
Nov 15th, 2018
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.07 KB | None | 0 0
  1. ## need to switch java version..
  2.  
  3.  
  4. #~/Desktop/Parallels Shared Folders/sciaps-device/xrf/hardwareservice
  5.  
  6. # Build Android Firmware XRF
  7. cd /opt/aosp \
  8. && . build/envsetup.sh \
  9. && lunch full_phenix-eng \
  10. && rm -rf /opt/aosp/out/target/product \
  11. && rm -rf root* \
  12. && rm -rf out/target/product/phenix/rootfs_staging \
  13. && m \
  14. && m root.ubi \
  15. && cp /opt/aosp/root.ubifs /media/psf/Dropbox/Documents/freelance/SciAps/binaries/xrf_SciAps_Ubuntu_Android_17/ \
  16. && cp /opt/aosp/root.ubi /media/psf/Dropbox/Documents/freelance/SciAps/binaries/xrf_SciAps_Ubuntu_Android_17/
  17. # Build Linux Kernel for XRF (make sure to switch to the dev branch)
  18. cd /opt/aosp \
  19. && . build/envsetup.sh \
  20. && lunch full_phenix-eng \
  21. && m cleankernel \
  22. && m kernel \
  23. && cp /opt/aosp/kernel/sciaps/phenix/arch/arm/boot/uImage ~/Documents
  24.  
  25.  
  26.  
  27.  
  28. # Build FastFP
  29. cd /opt/aosp/vendor/sciaps/ \
  30. && rm -rf /opt/aosp/vendor/sciaps/FastFP \
  31. && cp -R /media/psf/Home/Dropbox/Documents/freelance/SciAps/github/FastFP /opt/aosp/vendor/sciaps \
  32. && cd /opt/aosp/vendor/sciaps/FastFP \
  33. && make native-build android-build android-strip archive \
  34. && cp build/android/out/lib/libFastFP.so /media/psf/Home/Dropbox/Documents/freelance/SciAps/misc/scripts/Install_XRF_FastFP/ \
  35. && cd /media/psf/Home/Dropbox/Documents/freelance/SciAps/misc/scripts/Install_XRF_FastFP/ \
  36. && zip -r Install_XRF_FastFP.sup . \
  37. && cd /opt/aosp/vendor/sciaps/FastFP
  38.  
  39. # Full Install XRF Service
  40. # && rm -rf out/target/product/phenix/ \
  41. cd /opt/aosp/ \
  42. && rm -rf out/target/product/phenix/ \
  43. && cd /opt/aosp/ \
  44. && rm -rf /opt/aosp/device/sciaps/ \
  45. && cp -R "/home/timnuwin/Desktop/Parallels Shared Folders/sciaps-device" /opt/aosp/device/sciaps \
  46. && . build/envsetup.sh \
  47. && lunch full_phenix-eng \
  48. && m XRFService \
  49. XRFComputeService \
  50. com.sciaps.xrfhardware \
  51. libXRFService_jni \
  52. libXRoadsSci \
  53. && cp out/target/product/phenix/system/bin/XRFService ~/Documents/xrfservice/ \
  54. && cp out/target/product/phenix/system/bin/XRFComputeService ~/Documents/xrfservice/ \
  55. && cp out/target/product/phenix/system/lib/libusb1.0.so ~/Documents/xrfservice/ \
  56. && cp out/target/product/phenix/system/lib/libXRoadsSci.so ~/Documents/xrfservice/ \
  57. && cp out/target/product/phenix/system/lib/libXRFService_jni.so ~/Documents/xrfservice/ \
  58. && cp out/target/product/phenix/system/framework/com.sciaps.xrfhardware.jar ~/Documents/xrfservice/ \
  59. && cd ~/Documents/xrfservice/ \
  60. && zip -r Install_XRFService.sup . \
  61. && cd /opt/aosp
  62.  
  63.  
  64. # Quick Install XRF Service
  65. cd /opt/aosp/ \
  66. && cd /opt/aosp/ \
  67. && rm -rf /opt/aosp/device/sciaps/ \
  68. && cp -R "/home/timnuwin/Desktop/Parallels Shared Folders/sciaps-device" /opt/aosp/device/sciaps \
  69. && . build/envsetup.sh \
  70. && lunch full_phenix-eng \
  71. && m XRFService \
  72. XRFComputeService \
  73. com.sciaps.xrfhardware \
  74. libXRFService_jni \
  75. libXRoadsSci \
  76. && cp out/target/product/phenix/system/bin/XRFService ~/Documents/xrfservice/ \
  77. && cp out/target/product/phenix/system/bin/XRFComputeService ~/Documents/xrfservice/ \
  78. && cp out/target/product/phenix/system/lib/libusb1.0.so ~/Documents/xrfservice/ \
  79. && cp out/target/product/phenix/system/lib/libXRoadsSci.so ~/Documents/xrfservice/ \
  80. && cp out/target/product/phenix/system/lib/libXRFService_jni.so ~/Documents/xrfservice/ \
  81. && cp out/target/product/phenix/system/framework/com.sciaps.xrfhardware.jar ~/Documents/xrfservice/ \
  82. && cd ~/Documents/xrfservice/ \
  83. && zip -r Install_XRFService.sup . \
  84. && cd /opt/aosp
  85.  
  86.  
  87. #/opt/aosp/device/sciaps
  88.  
  89.  
  90. ##### ONLY JARRING IT UP...
  91.  
  92. cd /opt/aosp/ \
  93. && cd /opt/aosp/ \
  94. && rm -rf /opt/aosp/device/sciaps/ \
  95. && cp -R "/home/timnuwin/Desktop/Parallels Shared Folders/sciaps-device" /opt/aosp/device/sciaps \
  96. && . build/envsetup.sh \
  97. && lunch full_phenix-eng \
  98. && m com.sciaps.xrfhardware \
  99. && cp out/target/product/phenix/system/framework/com.sciaps.xrfhardware.jar ~/Documents/xrfservice/ \
  100. && cd /opt/aosp
  101.  
  102.  
  103.  
  104. ##### BUILD JAR w/ classes exposed...
  105.  
  106. cd /opt/aosp/device/sciaps/xrf/hardwareservice/
  107. ./gradlew clean build
  108.  
  109. cp /opt/aosp/device/sciaps/xrf/hardwareservice/build/libs/xrfhardware-2.0.3.jar /home/timnuwin/Documents/xrfservice_hardware_for_android/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement