Guest User

Untitled

a guest
Jul 29th, 2019
70
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [vince@dozer droid-configs]$ git diff @~
  2. diff --git a/rpm/droid-config-f5121.spec b/rpm/droid-config-f5121.spec
  3. index f425623..8bd2909 100644
  4. --- a/rpm/droid-config-f5121.spec
  5. +++ b/rpm/droid-config-f5121.spec
  6. @@ -8,3 +8,8 @@
  7. %define community_adaptation 1
  8.  
  9. %include droid-configs-device/droid-configs.inc
  10. +
  11. +%post
  12. +if [ $1 == 1 ]; then
  13. + ln -s /var/lib/flash-partition/device-info.%{rpm_device} /var/lib/flash-partition/device-info
  14. +fi
  15. diff --git a/rpm/droid-config-f5122.spec b/rpm/droid-config-f5122.spec
  16. index 9331215..4ed6ad2 100644
  17. --- a/rpm/droid-config-f5122.spec
  18. +++ b/rpm/droid-config-f5122.spec
  19. @@ -8,3 +8,8 @@
  20. %define community_adaptation 1
  21.  
  22. %include droid-configs-device/droid-configs.inc
  23. +
  24. +%post
  25. +if [ $1 == 1 ]; then
  26. + ln -s /var/lib/flash-partition/device-info.%{rpm_device} /var/lib/flash-partition/device-info
  27. +fi
  28. diff --git a/rpm/droid-config-f5321.spec b/rpm/droid-config-f5321.spec
  29. index 3c04951..7b6d093 100644
  30. --- a/rpm/droid-config-f5321.spec
  31. +++ b/rpm/droid-config-f5321.spec
  32. @@ -8,3 +8,8 @@
  33. %define community_adaptation 1
  34.  
  35. %include droid-configs-device/droid-configs.inc
  36. +
  37. +%post
  38. +if [ $1 == 1 ]; then
  39. + ln -s /var/lib/flash-partition/device-info.%{rpm_device} /var/lib/flash-partition/device-info
  40. +fi
  41. diff --git a/sparse/var/lib/flash-partition/device-info b/sparse/var/lib/flash-partition/device-info.f5121
  42. similarity index 100%
  43. rename from sparse/var/lib/flash-partition/device-info
  44. rename to sparse/var/lib/flash-partition/device-info.f5121
  45. diff --git a/sparse/var/lib/flash-partition/device-info.f5122 b/sparse/var/lib/flash-partition/device-info.f5122
  46. new file mode 120000
  47. index 0000000..e22b9ce
  48. --- /dev/null
  49. +++ b/sparse/var/lib/flash-partition/device-info.f5122
  50. @@ -0,0 +1 @@
  51. +device-info.f5121
  52. \ No newline at end of file
  53. diff --git a/sparse/var/lib/flash-partition/device-info.f5321 b/sparse/var/lib/flash-partition/device-info.f5321
  54. new file mode 100644
  55. index 0000000..830f38d
  56. --- /dev/null
  57. +++ b/sparse/var/lib/flash-partition/device-info.f5321
  58. @@ -0,0 +1,19 @@
  59. +CPUCHECK_STRING="Qualcomm Technologies, Inc MSM8956"
  60. +
  61. +# Because of flash-partition checks 1 needs to be defined
  62. +# Others can go with parition numbers
  63. +PART_1="modem"
  64. +PART_11="aboot"
  65. +PART_32="splash"
  66. +PART_33="boot"
  67. +PART_35="cache"
  68. +PART_52="system"
  69. +
  70. +PART_REAL_1="mmcblk0p24"
  71. +PART_REAL_11="mmcblk0p11"
  72. +PART_REAL_32="mmcblk0p32"
  73. +PART_REAL_33="mmcblk0p33"
  74. +PART_REAL_35="mmcblk0p35"
  75. +PART_REAL_52="mmcblk0p52"
  76. +
  77. +PART_I="1 11 32 33 35 52"
  78. [vince@dozer droid-configs]$
RAW Paste Data