Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Fix armel tests build #24678

Merged
merged 6 commits into from
Jun 3, 2019
Merged

Fix armel tests build #24678

merged 6 commits into from
Jun 3, 2019

Conversation

gbalykov
Copy link
Member

@gbalykov gbalykov commented May 21, 2019

After this PR System.Private.CoreLib.dll is copied to bin dir if -skipcrossgen is passed to build.sh, and build-test.sh successfully finishes for armel cross build.

Also, cross build is fixed if ROOTFS_DIR is not passed explicitly.

cc @alpencolt @alexander-aksenov

build-test.sh Outdated
@@ -317,7 +317,10 @@ build_Tests()
fi

if [ $__SkipNative != 1 ]; then
export CROSSCOMPILEREAL=${CROSSCOMPILE}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What are these being used for?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CROSSCOMPILEREAL is used to just temporarily save value of CROSSCOMPILE. Logic here is now the same as in build.sh, where CROSSCOMPILE is set to 0 before build_native

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am confused why we would unset crosscompile here for the native build. It seems like that is where it is actually needed.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You were right, this was an incorrect change. Correct fix was to properly setup portable build parameter. I've updated PR.

build.sh Show resolved Hide resolved
build.sh Show resolved Hide resolved
build.sh Show resolved Hide resolved
@jashook jashook requested a review from sbomer May 22, 2019 15:32
build-test.sh Outdated
@@ -948,6 +948,15 @@ if [[ $__ClangMajorVersion == 0 && $__ClangMinorVersion == 0 ]]; then
fi
fi

if [[ "$__BuildArch" == "armel" ]]; then
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you hoist this decision out of build-test and put it in init-distro-rid.sh

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've updated build.sh and build-test.sh. Also, I've fixed armel build for priority1 tests.

@gbalykov
Copy link
Member Author

gbalykov commented Jun 3, 2019

@jashook could you, please, take a look

Copy link

@jashook jashook left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm thanks for the changes!

@jashook jashook merged commit 2e28c81 into dotnet:master Jun 3, 2019
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
* Fix build-tests script for cross build and fix tests for armel

* Handle case of -skipcrossgen for cross builds

* Fix build error in case of cross builds when ROOTFS_DIR is not passed explicitly

* Fix portable build parameter setup for armel tests build

* Move force of non-portable build for armel from build.sh/build-test.sh to init-distro-rid.sh

* Fix priority1 tests build for armel


Commit migrated from dotnet/coreclr@2e28c81
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants