Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- MerSDK MerSDK t5500@t5500-Precision-WorkStation-T5500:~$ hadk
- Env setup for maserati
- MerSDK MerSDK t5500@t5500-Precision-WorkStation-T5500:~$ cd $HOME
- MerSDK MerSDK t5500@t5500-Precision-WorkStation-T5500:~$ SFE_SB2_TARGET=$MER_ROOT/targets/$VENDOR-$DEVICE-$PORT_ARCH
- MerSDK MerSDK t5500@t5500-Precision-WorkStation-T5500:~$ TARBALL_URL=http://releases.sailfishos.org/sdk/latest/targets/targets.json
- MerSDK MerSDK t5500@t5500-Precision-WorkStation-T5500:~$ TARBALL=$(curl $TARBALL_URL | grep "$PORT_ARCH.tar.bz2" | cut -d\" -f4)
- % Total % Received % Xferd Average Speed Time Time Time Current
- Dload Upload Total Spent Left Speed
- 100 503 100 503 0 0 1547 0 --:--:-- --:--:-- --:--:-- 7984
- MerSDK MerSDK t5500@t5500-Precision-WorkStation-T5500:~$ curl -O $TARBALL
- % Total % Received % Xferd Average Speed Time Time Time Current
- Dload Upload Total Spent Left Speed
- 100 183M 100 183M 0 0 2263k 0 0:01:23 0:01:23 --:--:-- 2319k
- MerSDK MerSDK t5500@t5500-Precision-WorkStation-T5500:~$ sudo mkdir -p $SFE_SB2_TARGET
- MerSDK MerSDK t5500@t5500-Precision-WorkStation-T5500:~$ sudo tar --numeric-owner -pxjf $(basename $TARBALL) -C $SFE_SB2_TARGET
- MerSDK MerSDK t5500@t5500-Precision-WorkStation-T5500:~$ sudo chown -R $USER $SFE_SB2_TARGET
- MerSDK MerSDK t5500@t5500-Precision-WorkStation-T5500:~$ cd $SFE_SB2_TARGET
- MerSDK MerSDK t5500@t5500-Precision-WorkStation-T5500:~/mer/targets/motorola-maserati-armv7hl$ grep :$(id -u): /etc/passwd >> etc/passwd
- MerSDK MerSDK t5500@t5500-Precision-WorkStation-T5500:~/mer/targets/motorola-maserati-armv7hl$ grep :$(id -g): /etc/group >> etc/group
- MerSDK MerSDK t5500@t5500-Precision-WorkStation-T5500:~/mer/targets/motorola-maserati-armv7hl$ sb2-init -d -L "--sysroot=/" -C "--sysroot=/" \
- > -c /usr/bin/qemu-arm-dynamic -m sdk-build \
- > -n -N -t / $VENDOR-$DEVICE-$PORT_ARCH \
- > /opt/cross/bin/$PORT_ARCH-meego-linux-gnueabi-gcc
- Using /opt/cross/bin/armv7hl-meego-linux-gnueabi-gcc to detect target architecture:
- collect2: cannot find 'ld'
- Finished writing sb2.gcc.config
- gcc configured.
- sb2-init: Target architecture is 'armv7hl'
- sb2-init: Host architecture is 'i[3456]86'
- No targets found, create some with sb2-init!
- Finished writing sb2.config
- sb2-init: Creating Debian build system settings for this target:
- MerSDK MerSDK t5500@t5500-Precision-WorkStation-T5500:~/mer/targets/motorola-maserati-armv7hl$ sb2 -t $VENDOR-$DEVICE-$PORT_ARCH -m sdk-install -R rpm --rebuilddb
- MerSDK MerSDK t5500@t5500-Precision-WorkStation-T5500:~/mer/targets/motorola-maserati-armv7hl$ sb2 -t $VENDOR-$DEVICE-$PORT_ARCH -m sdk-install -R zypper ar \
- > -G http://repo.merproject.org/releases/mer-tools/rolling/builds/$PORT_ARCH/packages/ \
- > mer-tools-rolling
- Adding repository 'mer-tools-rolling' .............................................................[done]
- Repository 'mer-tools-rolling' successfully added
- Enabled: Yes
- Autorefresh: No
- GPG check: No
- URI: http://repo.merproject.org/releases/mer-tools/rolling/builds/armv7hl/packages/
- 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
- Forcing raw metadata refresh
- Retrieving repository 'hotfixes' metadata ------------------------------------------------------------[\]
- Download (curl) error for 'https://releases.jolla.com/releases/2.0.1.11/hotfixes/armv7hl/repodata/repomd.xml':
- Error code: Unrecognized error
- Error message: SSL certificate problem: unable to get local issuer certificate
- Abort, retry, ignore? [a/r/i/?] (a): i
- Retrieving repository 'hotfixes' metadata ........................................................[error]
- Repository 'hotfixes' is invalid.
- [|] Valid metadata not found at specified URL(s)
- Please check if the URIs defined for this repository are pointing to a valid repository.
- Skipping repository 'hotfixes' because of the above error.
- Forcing raw metadata refresh
- Retrieving repository 'jolla' metadata ---------------------------------------------------------------[|]
- Download (curl) error for 'https://releases.jolla.com/releases/2.0.1.11/jolla/armv7hl/repodata/repomd.xml':
- Error code: Unrecognized error
- Error message: SSL certificate problem: unable to get local issuer certificate
- Abort, retry, ignore? [a/r/i/?] (a): i
- Retrieving repository 'jolla' metadata ...........................................................[error]
- Repository 'jolla' is invalid.
- [|] Valid metadata not found at specified URL(s)
- Please check if the URIs defined for this repository are pointing to a valid repository.
- Skipping repository 'jolla' because of the above error.
- Forcing raw metadata refresh
- Retrieving repository 'mer-tools' metadata -----------------------------------------------------------[/]
- Download (curl) error for 'https://releases.jolla.com/releases/2.0.1.11/mer-tools/builds/armv7hl/packages/repodata/repomd.xml':
- Error code: Unrecognized error
- Error message: SSL certificate problem: unable to get local issuer certificate
- Abort, retry, ignore? [a/r/i/?] (a): i
- Retrieving repository 'mer-tools' metadata .......................................................[error]
- Repository 'mer-tools' is invalid.
- [|] Valid metadata not found at specified URL(s)
- Please check if the URIs defined for this repository are pointing to a valid repository.
- Skipping repository 'mer-tools' because of the above error.
- Forcing raw metadata refresh
- Retrieving repository 'mer-tools-rolling' metadata ................................................[done]
- Forcing building of repository cache
- Building repository 'mer-tools-rolling' cache .....................................................[done]
- Forcing raw metadata refresh
- Retrieving repository 'sdk' metadata -----------------------------------------------------------------[-]
- Download (curl) error for 'https://releases.jolla.com/releases/2.0.1.11/sdk/armv7hl/repodata/repomd.xml':
- Error code: Unrecognized error
- Error message: SSL certificate problem: unable to get local issuer certificate
- Abort, retry, ignore? [a/r/i/?] (a): i
- Retrieving repository 'sdk' metadata .............................................................[error]
- Repository 'sdk' is invalid.
- [|] Valid metadata not found at specified URL(s)
- Please check if the URIs defined for this repository are pointing to a valid repository.
- Skipping repository 'sdk' because of the above error.
- Some of the repositories have not been refreshed because of an error.
- MerSDK MerSDK t5500@t5500-Precision-WorkStation-T5500:~/mer/targets/motorola-maserati-armv7hl$
- MerSDK MerSDK t5500@t5500-Precision-WorkStation-T5500:~/mer/targets/motorola-maserati-armv7hl$
- MerSDK MerSDK t5500@t5500-Precision-WorkStation-T5500:~/mer/targets/motorola-maserati-armv7hl$
- MerSDK MerSDK t5500@t5500-Precision-WorkStation-T5500:~/mer/targets/motorola-maserati-armv7hl$
- MerSDK MerSDK t5500@t5500-Precision-WorkStation-T5500:~/mer/targets/motorola-maserati-armv7hl$
- MerSDK MerSDK t5500@t5500-Precision-WorkStation-T5500:~/mer/targets/motorola-maserati-armv7hl$
- MerSDK MerSDK t5500@t5500-Precision-WorkStation-T5500:~/mer/targets/motorola-maserati-armv7hl$
- MerSDK MerSDK t5500@t5500-Precision-WorkStation-T5500:~/mer/targets/motorola-maserati-armv7hl$
- MerSDK MerSDK t5500@t5500-Precision-WorkStation-T5500:~/mer/targets/motorola-maserati-armv7hl$
- MerSDK MerSDK t5500@t5500-Precision-WorkStation-T5500:~/mer/targets/motorola-maserati-armv7hl$ cat > main.c << EOF
- > int main(void) {
- > printf("Hello, world!\n");
- > return EXIT_SUCCESS;
- > }
- > EOF
- MerSDK MerSDK t5500@t5500-Precision-WorkStation-T5500:~/mer/targets/motorola-maserati-armv7hl$ sb2 -t $VENDOR-$DEVICE-$PORT_ARCH gcc main.c -o test
- main.c: In function 'main':
- main.c:2:1: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
- main.c:3:8: error: 'EXIT_SUCCESS' undeclared (first use in this function)
- 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