27e87715f2
* Update dependencies from https://github.com/dotnet/arcade build 20221208.2 Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.Build.Tasks.Installers , Microsoft.DotNet.CMake.Sdk From Version 8.0.0-beta.22606.1 -> To Version 8.0.0-beta.22608.2 Dependency coherency updates Microsoft.DotNet.XliffTasks From Version 1.0.0-beta.22605.1 -> To Version 1.0.0-beta.22607.1 (parent: Microsoft.DotNet.Arcade.Sdk * Update dependencies from https://github.com/dotnet/arcade build 20221209.3 Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.Build.Tasks.Installers , Microsoft.DotNet.CMake.Sdk From Version 8.0.0-beta.22606.1 -> To Version 8.0.0-beta.22609.3 Dependency coherency updates Microsoft.DotNet.XliffTasks From Version 1.0.0-beta.22605.1 -> To Version 1.0.0-beta.22607.1 (parent: Microsoft.DotNet.Arcade.Sdk * Update dependencies from https://github.com/dotnet/arcade build 20221212.4 Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.Build.Tasks.Installers , Microsoft.DotNet.CMake.Sdk From Version 8.0.0-beta.22606.1 -> To Version 8.0.0-beta.22612.4 Dependency coherency updates Microsoft.DotNet.XliffTasks From Version 1.0.0-beta.22605.1 -> To Version 1.0.0-beta.22611.1 (parent: Microsoft.DotNet.Arcade.Sdk Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
61 lines
1.3 KiB
Bash
61 lines
1.3 KiB
Bash
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
ARCH=$1
|
|
LINK_ARCH=$ARCH
|
|
|
|
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
|
|
|
|
__CrossDir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
|
|
__TIZEN_CROSSDIR="$__CrossDir/${ARCH}/tizen"
|
|
|
|
if [[ -z "$ROOTFS_DIR" ]]; then
|
|
echo "ROOTFS_DIR is not defined."
|
|
exit 1;
|
|
fi
|
|
|
|
TIZEN_TMP_DIR=$ROOTFS_DIR/tizen_tmp
|
|
mkdir -p $TIZEN_TMP_DIR
|
|
|
|
# Download files
|
|
echo ">>Start downloading files"
|
|
VERBOSE=1 $__CrossDir/tizen-fetch.sh $TIZEN_TMP_DIR $TIZEN_ARCH
|
|
echo "<<Finish downloading files"
|
|
|
|
echo ">>Start constructing Tizen rootfs"
|
|
TIZEN_RPM_FILES=`ls $TIZEN_TMP_DIR/*.rpm`
|
|
cd $ROOTFS_DIR
|
|
for f in $TIZEN_RPM_FILES; do
|
|
rpm2cpio $f | cpio -idm --quiet
|
|
done
|
|
echo "<<Finish constructing Tizen rootfs"
|
|
|
|
# Cleanup tmp
|
|
rm -rf $TIZEN_TMP_DIR
|
|
|
|
# Configure Tizen rootfs
|
|
echo ">>Start configuring Tizen rootfs"
|
|
ln -sfn asm-${LINK_ARCH} ./usr/include/asm
|
|
patch -p1 < $__TIZEN_CROSSDIR/tizen.patch
|
|
echo "<<Finish configuring Tizen rootfs"
|