Skip to content

Latest commit

 

History

History
40 lines (37 loc) · 1.32 KB

build.md

File metadata and controls

40 lines (37 loc) · 1.32 KB

it contains the steps to build arm/arm64 vm for .net core debugging.

  1. Setup wsl2 + ubuntu distribution on winddows 10

  2. Install the following prerequired softwares on wsl2 + ubuntu

    • make
    • unzip
    • gcc
    • g++
    • libncurses-dev
    • liblttng-ust-dev
sudo apt-get update
sudo apt install make unzip gcc g++ libncurses-dev liblttng-ust-dev
  1. Clone buildroot and 4dotnet to your home folder.
    git clone https://github.com/oldzhu/buildroot.git 
    git clone https://github.com/oldzhu/4dotnet.git
  1. Run the below commands to update the default config to build vm.

for arm:

    cd buildroot
    make distclean
    make BR2_EXTERNAL=~/4dotnet defconfig BR2_DEFCONFIG=~/4dotnet/savedconfigs/arm/br2.defconfig

for arm64:

    cd buildroot
    make distclean
    make BR2_EXTERNAL=~/4dotnet defconfig BR2_DEFCONFIG=~/4dotnet/savedconfigs/arm64/br2.defconfig
  1. Run the below make command to begin the build. It could take serveral housrs or even days depends on your system power.
    export PATH=`echo $PATH|tr -d ' '`
    make
  1. Done and now you can go to Using the arm VM to debug or Using the arm64 VM to debug to enjoy a .netcore app debugging.