Skip to content

Commit

Permalink
[ARM] Update rootfs for Tizen armel (dotnet/core-setup#2163)
Browse files Browse the repository at this point in the history
* [ARM] Update cross rootfs for armel Tizen

Update cross rootfs for armel Tizen

Signed-off-by: Hyung-Kyu Choi <[email protected]>

* [ARM] Update Tizen armel CI

Tizen armel CI make use of embedded rootfs as Ubuntu arm does.

Signed-off-by: Hyung-Kyu Choi <[email protected]>


Commit migrated from dotnet/core-setup@083d1d5
  • Loading branch information
hqueue authored and gkhanna79 committed May 2, 2017
1 parent 3ee26ac commit 7987d3a
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 39 deletions.
46 changes: 24 additions & 22 deletions src/installer/cross/armel/tizen-fetch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ if [ ! -d $TMPDIR ]; then
mkdir -p $TMPDIR
fi

TIZEN_URL=http://download.tizen.org/releases/weekly/tizen
TIZEN_URL=http://download.tizen.org/releases/daily/tizen
BUILD_XML=build.xml
REPOMD_XML=repomd.xml
PRIMARY_XML=primary.xml
Expand Down Expand Up @@ -120,19 +120,21 @@ fetch_tizen_pkgs_init()

fetch_tizen_pkgs()
{
PROFILE=$1
PACKAGE_XPATH_TPL='string(//*[local-name()="metadata"]/*[local-name()="package"][*[local-name()="name"][text()="_PKG_"]]/*[local-name()="location"]/@href)'
ARCH=$1
PACKAGE_XPATH_TPL='string(//*[local-name()="metadata"]/*[local-name()="package"][*[local-name()="name"][text()="_PKG_"]][*[local-name()="arch"][text()="_ARCH_"]]/*[local-name()="location"]/@href)'

PACKAGE_CHECKSUM_XPATH_TPL='string(//*[local-name()="metadata"]/*[local-name()="package"][*[local-name()="name"][text()="_PKG_"]]/*[local-name()="checksum"]/text())'
PACKAGE_CHECKSUM_XPATH_TPL='string(//*[local-name()="metadata"]/*[local-name()="package"][*[local-name()="name"][text()="_PKG_"]][*[local-name()="arch"][text()="_ARCH_"]]/*[local-name()="checksum"]/text())'

for pkg in ${@:2}
do
Inform "Fetching... $pkg"
XPATH=${PACKAGE_XPATH_TPL/_PKG_/$pkg}
XPATH=${XPATH/_ARCH_/$ARCH}
Xpath_get $XPATH $TMP_PRIMARY
PKG_PATH=$XPATH_RESULT

XPATH=${PACKAGE_CHECKSUM_XPATH_TPL/_PKG_/$pkg}
XPATH=${XPATH/_ARCH_/$ARCH}
Xpath_get $XPATH $TMP_PRIMARY
CHECKSUM=$XPATH_RESULT

Expand All @@ -142,33 +144,33 @@ fetch_tizen_pkgs()

Debug "Download $PKG_URL to $PKG_PATH"
Fetch $PKG_URL $PKG_PATH true

echo "$CHECKSUM $PKG_PATH" | sha256sum -c - > /dev/null
if [ $? -ne 0 ]; then
Error "Fail to fetch $PKG_URL to $PKG_PATH"
Debug "Checksum = $CHECKSUM"
exit 1
fi

done
}

Inform "Initialize arm base"
Inform "Initialize base"
fetch_tizen_pkgs_init arm base
Inform "fetch base common packages"
fetch_tizen_pkgs base gcc glibc glibc-devel linux-glibc-devel
Inform "fetch base coreclr packages"
fetch_tizen_pkgs base lldb lldb-devel libuuid libuuid-devel libgcc libstdc++ libstdc++-devel
Inform "fetch base corefx packages"
fetch_tizen_pkgs base libcom_err libcom_err-devel zlib zlib-devel libopenssl libopenssl-devel

Inform "initialize arm mobile"
fetch_tizen_pkgs_init arm-wayland mobile
Inform "fetch mobile common packages"
fetch_tizen_pkgs mobile libicu-devel
Inform "fetch mobile coreclr packages"
fetch_tizen_pkgs mobile libunwind libunwind-devel tizen-release
Inform "fetch mobile corefx packages"
fetch_tizen_pkgs mobile gssdp gssdp-devel krb5 krb5-devel libcurl libcurl-devel
Inform "fetch common packages"
fetch_tizen_pkgs armv7l gcc glibc glibc-devel
fetch_tizen_pkgs noarch linux-glibc-devel
Inform "fetch coreclr packages"
fetch_tizen_pkgs armv7l lldb lldb-devel libuuid libuuid-devel libgcc libstdc++ libstdc++-devel libunwind libunwind-devel
Inform "fetch corefx packages"
fetch_tizen_pkgs armv7l libcom_err libcom_err-devel zlib zlib-devel libopenssl libopenssl-devel

Inform "Initialize unified"
fetch_tizen_pkgs_init standard unified
Inform "fetch common packages"
fetch_tizen_pkgs armv7l libicu-devel
Inform "fetch coreclr packages"
fetch_tizen_pkgs armv7l tizen-release
Inform "fetch corefx packages"
fetch_tizen_pkgs armv7l gssdp gssdp-devel krb5 krb5-devel libcurl libcurl-devel


15 changes: 0 additions & 15 deletions src/installer/cross/armel/tizen/tizen.patch
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,3 @@ diff -u -r a/usr/lib/libpthread.so b/usr/lib/libpthread.so
OUTPUT_FORMAT(elf32-littlearm)
-GROUP ( /lib/libpthread.so.0 /usr/lib/libpthread_nonshared.a )
+GROUP ( libpthread.so.0 libpthread_nonshared.a )
diff -u -r a/usr/lib/libpthread.so b/usr/lib/libpthread.so
--- a/etc/os-release 2016-10-17 23:39:36.000000000 +0900
+++ b/etc/os-release 2017-01-05 14:34:39.099867682 +0900
@@ -1,7 +1,7 @@
NAME=Tizen
-VERSION="3.0.0 (Tizen3/Mobile)"
+VERSION="4.0.0 (Tizen4/Mobile)"
ID=tizen
-VERSION_ID=3.0.0
-PRETTY_NAME="Tizen 3.0.0 (Tizen3/Mobile)"
+VERSION_ID=4.0.0
+PRETTY_NAME="Tizen 4.0.0 (Tizen4/Mobile)"
ANSI_COLOR="0;36"
-CPE_NAME="cpe:/o:tizen:tizen:3.0.0"
+CPE_NAME="cpe:/o:tizen:tizen:4.0.0"
2 changes: 1 addition & 1 deletion src/installer/cross/armel/toolchain.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ set(CROSS_LINK_FLAGS "${CROSS_LINK_FLAGS} -target ${TOOLCHAIN}")
set(CROSS_LINK_FLAGS "${CROSS_LINK_FLAGS} --sysroot=${CROSS_ROOTFS}")

if("$ENV{__CrossToolChainTargetRID}" MATCHES "tizen.*")
set(TIZEN_TOOLCHAIN "armv7l-tizen-linux-gnueabi/4.9.2")
set(TIZEN_TOOLCHAIN "armv7l-tizen-linux-gnueabi/6.2.1")
include_directories(${CROSS_ROOTFS}/usr/lib/gcc/${TIZEN_TOOLCHAIN}/include/c++/)
include_directories(${CROSS_ROOTFS}/usr/lib/gcc/${TIZEN_TOOLCHAIN}/include/c++/armv7l-tizen-linux-gnueabi)
add_compile_options(-Wno-deprecated-declarations) # compile-time option
Expand Down
4 changes: 3 additions & 1 deletion tools-local/scripts/arm32_ci_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ function cross_build_core_setup_with_docker {
# For armel Tizen, we are going to construct RootFS on the fly.
case $__linuxCodeName in
tizen)
__dockerImage=" t2wish/dotnetcore:ubuntu1404_cross_prereqs_v4"
__dockerImage=" hqueue/dotnetcore:ubuntu1404_cross_prereqs_v4-tizen_rootfs"
__runtimeOS="tizen.4.0.0"
;;
*)
Expand Down Expand Up @@ -264,6 +264,8 @@ do
--armel)
__ARMRootfsImageBase="rootfs-t30.ext4"
__buildArch="armel"
__skipRootFS=1
__rootfsDir="/crossrootfs/armel.tizen.build"
__linuxCodeName="tizen"
;;
--linuxCodeName=*)
Expand Down

0 comments on commit 7987d3a

Please sign in to comment.