Add tizen x64 rootfs and cross build support#11832
Conversation
|
These are the fifth copies of
|
|
@am11 Thanks, I agree. It's time to unify these scripts. |
4f9860f to
35d14be
Compare
|
I've unified scripts |
| if [ "$ARCH" == "arm" ]; then | ||
| TIZEN_ARCH="armv7hl" | ||
| elif [ "$ARCH" == "armel" ]; then | ||
| TIZEN_ARCH="armv7l" | ||
| LINK_ARCH="arm" | ||
| elif [ "$ARCH" == "arm64" ]; then | ||
| TIZEN_ARCH="aarch64" | ||
| elif [ "$ARCH" == "x86" ]; then | ||
| TIZEN_ARCH="i686" | ||
| elif [ "$ARCH" == "x64" ]; then | ||
| TIZEN_ARCH="x86_64" | ||
| LINK_ARCH="x86" | ||
| else | ||
| echo "Unsupported architecture for tizen: $ARCH" | ||
| exit 1 | ||
| fi |
There was a problem hiding this comment.
nit: align style with build-rootfs.sh (4 spaces indentation, case-esac for switching etc.)
| if [ "$ARCH" == "arm" ]; then | |
| TIZEN_ARCH="armv7hl" | |
| elif [ "$ARCH" == "armel" ]; then | |
| TIZEN_ARCH="armv7l" | |
| LINK_ARCH="arm" | |
| elif [ "$ARCH" == "arm64" ]; then | |
| TIZEN_ARCH="aarch64" | |
| elif [ "$ARCH" == "x86" ]; then | |
| TIZEN_ARCH="i686" | |
| elif [ "$ARCH" == "x64" ]; then | |
| TIZEN_ARCH="x86_64" | |
| LINK_ARCH="x86" | |
| else | |
| echo "Unsupported architecture for tizen: $ARCH" | |
| exit 1 | |
| fi | |
| case "$ARCH" in | |
| arm) | |
| TIZEN_ARCH="armv7hl" | |
| ;; | |
| armel) | |
| TIZEN_ARCH="armv7l" | |
| LINK_ARCH="arm" | |
| ;; | |
| arm64) | |
| TIZEN_ARCH="aarch64" | |
| ;; | |
| x86) | |
| TIZEN_ARCH="i686" | |
| ;; | |
| x64) | |
| TIZEN_ARCH="x86_64" | |
| LINK_ARCH="x86" | |
| ;; | |
| *) | |
| echo "Unsupported architecture for tizen: $ARCH" | |
| exit 1 | |
| esac |
eng/common/cross/tizen-fetch.sh
Outdated
| @@ -51,6 +51,8 @@ if [ ! -d $TMPDIR ]; then | |||
| mkdir -p $TMPDIR | |||
There was a problem hiding this comment.
nit: 4 space indentation in this file.
am11
left a comment
There was a problem hiding this comment.
LGTM, thank you for the consolidation!
(we can wireup build-rootfs-android the same way some day 💡)
|
cc @jkotas |
|
Thank you |
Change similar to #8609
cc @alpencolt