Introduce rootfs for cross-compilation#747
Conversation
A script, i.e. build-rootfs.sh, is introduced to setup rootfs. The rootfs will be used for cross-building corehost in core-setup. You can setup ARM rootfs by "./build-rootfs.sh arm". You can setup ARM softfp rootfs by "./build-rootfs.sh arm-softfp". Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com>
|
Hi @hqueue, I'm your friendly neighborhood .NET Foundation Pull Request Bot (You can call me DNFBOT). Thanks for your contribution! The agreement was validated by .NET Foundation and real humans are currently evaluating your PR. TTYL, DNFBOT; |
|
CC @schellap @ramarag @janvorli @gkhanna79 @kouvel PTAL Related issue: #729 |
I was thinking about this. Since there is work going on to bring Linux for x86 (https://github.com/dotnet/coreclr/issues/8188), you may just want to keep the x86 support as well (but do not need to test it). Aside from this, LGTM. |
rootfs for x86 is added as suggested. Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com>
|
CC @gkhanna79 @schellap @ramarag @janvorli I've added x86 rootfs as suggested. |
|
LGTM - assuming you have validated it, right? |
|
@gkhanna79 Yes. For ARM, we built corehost for ARM after appling this PR #747 and PR #749 together and rootfs for x86 is built with this PR #747. |
skip ci please
Introduce rootfs for cross compilation. I've added scripts for ARM and ARM softfp.
Tested it with
sudo ./cross/build-rootfs.sh armandsudo ./cross/build-rootfs.sh arm-softfpas documented in https://github.com/dotnet/coreclr/blob/master/Documentation/building/cross-building.md to keep consistency with CoreCLR and CoreFX.Basically the code has been imported from CoreCLR and remove x86 and arm64.
rootfs is exactly same with CoreCLR, i.e. we can also build CoreCLR with this rootfs too.
Later we can refine rootfs to reduce size only with required packages if necessary.
BTW CoreFX has a different configuration.