Advertisement
Guest User

Maserati

a guest
Jul 24th, 2016
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.00 KB | None | 0 0
  1. MerSDK MerSDK t5500@t5500-Precision-WorkStation-T5500:~$ hadk
  2. Env setup for maserati
  3. MerSDK MerSDK t5500@t5500-Precision-WorkStation-T5500:~$ cd $HOME
  4. MerSDK MerSDK t5500@t5500-Precision-WorkStation-T5500:~$ SFE_SB2_TARGET=$MER_ROOT/targets/$VENDOR-$DEVICE-$PORT_ARCH
  5. MerSDK MerSDK t5500@t5500-Precision-WorkStation-T5500:~$ TARBALL_URL=http://releases.sailfishos.org/sdk/latest/targets/targets.json
  6. MerSDK MerSDK t5500@t5500-Precision-WorkStation-T5500:~$ TARBALL=$(curl $TARBALL_URL | grep "$PORT_ARCH.tar.bz2" | cut -d\" -f4)
  7. % Total % Received % Xferd Average Speed Time Time Time Current
  8. Dload Upload Total Spent Left Speed
  9. 100 503 100 503 0 0 1547 0 --:--:-- --:--:-- --:--:-- 7984
  10. MerSDK MerSDK t5500@t5500-Precision-WorkStation-T5500:~$ curl -O $TARBALL
  11. % Total % Received % Xferd Average Speed Time Time Time Current
  12. Dload Upload Total Spent Left Speed
  13. 100 183M 100 183M 0 0 2263k 0 0:01:23 0:01:23 --:--:-- 2319k
  14. MerSDK MerSDK t5500@t5500-Precision-WorkStation-T5500:~$ sudo mkdir -p $SFE_SB2_TARGET
  15. MerSDK MerSDK t5500@t5500-Precision-WorkStation-T5500:~$ sudo tar --numeric-owner -pxjf $(basename $TARBALL) -C $SFE_SB2_TARGET
  16. MerSDK MerSDK t5500@t5500-Precision-WorkStation-T5500:~$ sudo chown -R $USER $SFE_SB2_TARGET
  17. MerSDK MerSDK t5500@t5500-Precision-WorkStation-T5500:~$ cd $SFE_SB2_TARGET
  18. MerSDK MerSDK t5500@t5500-Precision-WorkStation-T5500:~/mer/targets/motorola-maserati-armv7hl$ grep :$(id -u): /etc/passwd >> etc/passwd
  19. MerSDK MerSDK t5500@t5500-Precision-WorkStation-T5500:~/mer/targets/motorola-maserati-armv7hl$ grep :$(id -g): /etc/group >> etc/group
  20. MerSDK MerSDK t5500@t5500-Precision-WorkStation-T5500:~/mer/targets/motorola-maserati-armv7hl$ sb2-init -d -L "--sysroot=/" -C "--sysroot=/" \
  21. > -c /usr/bin/qemu-arm-dynamic -m sdk-build \
  22. > -n -N -t / $VENDOR-$DEVICE-$PORT_ARCH \
  23. > /opt/cross/bin/$PORT_ARCH-meego-linux-gnueabi-gcc
  24. Using /opt/cross/bin/armv7hl-meego-linux-gnueabi-gcc to detect target architecture:
  25. collect2: cannot find 'ld'
  26. Finished writing sb2.gcc.config
  27. gcc configured.
  28. sb2-init: Target architecture is 'armv7hl'
  29. sb2-init: Host architecture is 'i[3456]86'
  30. No targets found, create some with sb2-init!
  31. Finished writing sb2.config
  32. sb2-init: Creating Debian build system settings for this target:
  33. MerSDK MerSDK t5500@t5500-Precision-WorkStation-T5500:~/mer/targets/motorola-maserati-armv7hl$ sb2 -t $VENDOR-$DEVICE-$PORT_ARCH -m sdk-install -R rpm --rebuilddb
  34. MerSDK MerSDK t5500@t5500-Precision-WorkStation-T5500:~/mer/targets/motorola-maserati-armv7hl$ sb2 -t $VENDOR-$DEVICE-$PORT_ARCH -m sdk-install -R zypper ar \
  35. > -G http://repo.merproject.org/releases/mer-tools/rolling/builds/$PORT_ARCH/packages/ \
  36. > mer-tools-rolling
  37. Adding repository 'mer-tools-rolling' .............................................................[done]
  38. Repository 'mer-tools-rolling' successfully added
  39. Enabled: Yes
  40. Autorefresh: No
  41. GPG check: No
  42. URI: http://repo.merproject.org/releases/mer-tools/rolling/builds/armv7hl/packages/
  43.  
  44. MerSDK MerSDK t5500@t5500-Precision-WorkStation-T5500:~/mer/targets/motorola-maserati-armv7hl$ sb2 -t $VENDOR-$DEVICE-$PORT_ARCH -m sdk-install -R zypper ref --force
  45. Forcing raw metadata refresh
  46. Retrieving repository 'hotfixes' metadata ------------------------------------------------------------[\]
  47. Download (curl) error for 'https://releases.jolla.com/releases/2.0.1.11/hotfixes/armv7hl/repodata/repomd.xml':
  48. Error code: Unrecognized error
  49. Error message: SSL certificate problem: unable to get local issuer certificate
  50.  
  51. Abort, retry, ignore? [a/r/i/?] (a): i
  52. Retrieving repository 'hotfixes' metadata ........................................................[error]
  53. Repository 'hotfixes' is invalid.
  54. [|] Valid metadata not found at specified URL(s)
  55. Please check if the URIs defined for this repository are pointing to a valid repository.
  56. Skipping repository 'hotfixes' because of the above error.
  57. Forcing raw metadata refresh
  58. Retrieving repository 'jolla' metadata ---------------------------------------------------------------[|]
  59. Download (curl) error for 'https://releases.jolla.com/releases/2.0.1.11/jolla/armv7hl/repodata/repomd.xml':
  60. Error code: Unrecognized error
  61. Error message: SSL certificate problem: unable to get local issuer certificate
  62.  
  63. Abort, retry, ignore? [a/r/i/?] (a): i
  64. Retrieving repository 'jolla' metadata ...........................................................[error]
  65. Repository 'jolla' is invalid.
  66. [|] Valid metadata not found at specified URL(s)
  67. Please check if the URIs defined for this repository are pointing to a valid repository.
  68. Skipping repository 'jolla' because of the above error.
  69. Forcing raw metadata refresh
  70. Retrieving repository 'mer-tools' metadata -----------------------------------------------------------[/]
  71. Download (curl) error for 'https://releases.jolla.com/releases/2.0.1.11/mer-tools/builds/armv7hl/packages/repodata/repomd.xml':
  72. Error code: Unrecognized error
  73. Error message: SSL certificate problem: unable to get local issuer certificate
  74.  
  75. Abort, retry, ignore? [a/r/i/?] (a): i
  76. Retrieving repository 'mer-tools' metadata .......................................................[error]
  77. Repository 'mer-tools' is invalid.
  78. [|] Valid metadata not found at specified URL(s)
  79. Please check if the URIs defined for this repository are pointing to a valid repository.
  80. Skipping repository 'mer-tools' because of the above error.
  81. Forcing raw metadata refresh
  82. Retrieving repository 'mer-tools-rolling' metadata ................................................[done]
  83. Forcing building of repository cache
  84. Building repository 'mer-tools-rolling' cache .....................................................[done]
  85. Forcing raw metadata refresh
  86. Retrieving repository 'sdk' metadata -----------------------------------------------------------------[-]
  87. Download (curl) error for 'https://releases.jolla.com/releases/2.0.1.11/sdk/armv7hl/repodata/repomd.xml':
  88. Error code: Unrecognized error
  89. Error message: SSL certificate problem: unable to get local issuer certificate
  90.  
  91. Abort, retry, ignore? [a/r/i/?] (a): i
  92. Retrieving repository 'sdk' metadata .............................................................[error]
  93. Repository 'sdk' is invalid.
  94. [|] Valid metadata not found at specified URL(s)
  95. Please check if the URIs defined for this repository are pointing to a valid repository.
  96. Skipping repository 'sdk' because of the above error.
  97. Some of the repositories have not been refreshed because of an error.
  98. MerSDK MerSDK t5500@t5500-Precision-WorkStation-T5500:~/mer/targets/motorola-maserati-armv7hl$
  99. MerSDK MerSDK t5500@t5500-Precision-WorkStation-T5500:~/mer/targets/motorola-maserati-armv7hl$
  100. MerSDK MerSDK t5500@t5500-Precision-WorkStation-T5500:~/mer/targets/motorola-maserati-armv7hl$
  101. MerSDK MerSDK t5500@t5500-Precision-WorkStation-T5500:~/mer/targets/motorola-maserati-armv7hl$
  102. MerSDK MerSDK t5500@t5500-Precision-WorkStation-T5500:~/mer/targets/motorola-maserati-armv7hl$
  103. MerSDK MerSDK t5500@t5500-Precision-WorkStation-T5500:~/mer/targets/motorola-maserati-armv7hl$
  104. MerSDK MerSDK t5500@t5500-Precision-WorkStation-T5500:~/mer/targets/motorola-maserati-armv7hl$
  105. MerSDK MerSDK t5500@t5500-Precision-WorkStation-T5500:~/mer/targets/motorola-maserati-armv7hl$
  106. MerSDK MerSDK t5500@t5500-Precision-WorkStation-T5500:~/mer/targets/motorola-maserati-armv7hl$
  107. MerSDK MerSDK t5500@t5500-Precision-WorkStation-T5500:~/mer/targets/motorola-maserati-armv7hl$ cat > main.c << EOF
  108. > int main(void) {
  109. > printf("Hello, world!\n");
  110. > return EXIT_SUCCESS;
  111. > }
  112. > EOF
  113. MerSDK MerSDK t5500@t5500-Precision-WorkStation-T5500:~/mer/targets/motorola-maserati-armv7hl$ sb2 -t $VENDOR-$DEVICE-$PORT_ARCH gcc main.c -o test
  114. main.c: In function 'main':
  115. main.c:2:1: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
  116. main.c:3:8: error: 'EXIT_SUCCESS' undeclared (first use in this function)
  117. main.c:3:8: note: each undeclared identifier is reported only once for each function it appears in
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement