Skip to content

Add Linux ARM64 build support - #8016

Merged
Aditya Patwardhan (adityapatwardhan) merged 3 commits into
PowerShell:masterfrom
slide:master
Dec 5, 2018
Merged

Add Linux ARM64 build support#8016
Aditya Patwardhan (adityapatwardhan) merged 3 commits into
PowerShell:masterfrom
slide:master

Conversation

@slide

Copy link
Copy Markdown
Contributor

PR Summary

This adds an additional flag to allow building for linux-arm64.

PR Checklist

  • [PR has a meaningful title]
  • [Summarized changes]
  • [Change is not breaking]
  • [Make sure all .h, .cpp, .cs, .ps1 and .psm1 files have the correct copyright header]
  • This PR is ready to merge and is not [Work in Progress]
  • User-facing changes
    • Not Applicable
  • Testing - New and feature
    • Not Applicable or can only be tested interactively

@slide

Copy link
Copy Markdown
Contributor Author

Related to #7330

@TravisEz13 Travis Plunk (TravisEz13) added WG-Maintainers-Build specific to affecting the build Documentation Needed in this repo Documentation is needed in this repo labels Oct 12, 2018
@TravisEz13

Copy link
Copy Markdown
Member

Alex Earl (@slide) Did you do any testing of the build?

@TravisEz13

Copy link
Copy Markdown
Member

Is ARM64 also Raspbian? Should we update this doc to say both architectures of Raspbian?
https://docs.microsoft.com/en-us/powershell/scripting/powershell-core-support?view=powershell-6

@TravisEz13

Travis Plunk (TravisEz13) commented Oct 12, 2018

Copy link
Copy Markdown
Member

You also need to do some work if you want us to release a package (you could just file an issue for this, if that wasn't your intent.)

The packaging module needs to be updated to be able to package TarArm64

} elseif ($Type -eq "tar-arm") {


Needs to be updated with a TarArm64 option

And it needs to be called here:

"BuildCommand": "/PowerShellPackage.ps1 -location _RepoDestinationPath_ -destination _DockerVolume_ -ReleaseTag _ReleaseTag_ -TarX64 -TarArm",

@slide

Copy link
Copy Markdown
Contributor Author

Yes, I tested on my RockPro64 board. I was using it to build ironpython on that board. I will also update the packaging, I was looking for that and didn't know where it was.

@slide

Copy link
Copy Markdown
Contributor Author

My board is running Ubuntu 18.04 Bionic, not Raspian.

@slide

Copy link
Copy Markdown
Contributor Author

How do I run the packaging stuff locally to test it out?

@TravisEz13

Travis Plunk (TravisEz13) commented Oct 13, 2018

Copy link
Copy Markdown
Member

run start-psbuild -configuration 'release' -crossgen -psmodulerestore
then import the packaging module Import-module .\tools\packaging -force
then run packaging start-pspackaging -Type tar-arm64

I did this from memory and start-pspackaging might tell you, that you need to skip release checks... It's fine to do that for development.

If you only change the packaging code, you can just re-import the packaging module, and rerun the packaging step (this is why I separated the modules.)

@iSazonov

Copy link
Copy Markdown
Collaborator

Alex Earl (@slide) What is status of the PR? Do you want to continue?

@slide

Copy link
Copy Markdown
Contributor Author

Yes, I do, I just need to get back to it again. I'll try and do it this next week.

@TravisEz13

Copy link
Copy Markdown
Member

restarted linux CI due to a connectivity issue

@slide

Copy link
Copy Markdown
Contributor Author

I do still plan on getting back to this, if it needs to be closed for now for some reason, I can reopen at a later date if desired.

@slide

Copy link
Copy Markdown
Contributor Author

I will not have time to get back to this for some time. Trying to get a local build of the package stuff has not been easy.

@SteveL-MSFT

Copy link
Copy Markdown
Member

Alex Earl (@slide) Thanks for starting this, I'll submit a new PR with the packaging work along with the changes you've made for the build

@SteveL-MSFT

Copy link
Copy Markdown
Member

I'll just re-use this PR

update packaging to support tar-arm64
@adityapatwardhan

Copy link
Copy Markdown
Member

Steve Lee (@SteveL-MSFT) - You need to add items suggest by comment #8016 (comment)

address Travis' feedback
@SteveL-MSFT

Copy link
Copy Markdown
Member

Aditya Patwardhan (@adityapatwardhan) latest commit should address the rest of Travis Plunk (@TravisEz13) 's feedback

@adityapatwardhan
Aditya Patwardhan (adityapatwardhan) merged commit 74de391 into PowerShell:master Dec 5, 2018
@adityapatwardhan

Copy link
Copy Markdown
Member

Alex Earl (@slide) Thank you for your contribution!

Thatgfsj (Thatgfsj) pushed a commit to Thatgfsj/PowerShell that referenced this pull request Aug 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CL-BuildPackaging Indicates that a PR should be marked as a build or packaging change in the Change Log WG-Maintainers-Build specific to affecting the build

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants