Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add instructions on ARM64 target build for Json Generation Layer #10

Merged
merged 3 commits into from
Nov 9, 2023
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 33 additions & 1 deletion BUILD.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,36 @@ additional Qt dependencies:
```
sudo apt-get install qt5-default
```
#### Linux ARM64 Additional System Requirements
This repo also supports the Linux ARM64 build.
Ubuntu 20.04 AMD64 (Host) and Ubuntu 20.04 ARM64 (target) have been tested with this repo.

- Run the following instructions on the Host machine.
- Download Ubuntu 20.04 ARM64 file system image [here](http://cloud-images.ubuntu.com/focal/current/) and extract it to the Host machine.
- Install and Setup Qemu:
```
# Install the Qemu on Ubuntu Host
sudo apt-get install qemu-user-static

# Copy qemu-aarch64-static and qemu-arm-static to target file system
export TARGET_ROOFS=<Root directory of target file system>
sudo -E cp /usr/bin/qemu-aarch64-static ${TARGET_ROOFS}/usr/bin/
sudo -E cp /usr/bin/qemu-arm-static ${TARGET_ROOFS}/usr/bin/

# Mount the chroot points
sudo -E mount /sys ${TARGET_ROOFS}/sys -o bind
sudo -E mount /proc ${TARGET_ROOFS}/proc -o bind
sudo -E mount /dev ${TARGET_ROOFS}/dev -o bind

# Setup resolv.conf for DNS server
sudo -E mv ${TARGET_ROOFS}/etc/resolv.conf ${TARGET_ROOFS}/etc/resolv.conf.saved
sudo -E cp /etc/resolv.conf ${TARGET_ROOFS}/etc
```
- Log in to Linux ARM64 sandbox:
```
# Run chroot to target system sandbox
sudo LC_ALL=C chroot ${TARGET_ROOFS} /bin/bash
```

### Fedora Core System Requirements

Expand Down Expand Up @@ -176,7 +206,8 @@ ctest -C Debug --output-on-failure --parallel 16
ctest -C Release --output-on-failure --parallel 16
```

### Linux and macOS Build
### Linux AMD64, Linux ARM64 and macOS Build
For Linux ARM64 build, run the following commands in [chroot sandbox environment](BUILD.md#linux-arm64-additional-system-requirements).
kaizhangNV marked this conversation as resolved.
Show resolved Hide resolved
```
git clone --recurse-submodules git@github.com:KhronosGroup/VulkanTools-ForSC.git
cd VulkanTools
Expand Down Expand Up @@ -232,6 +263,7 @@ To use, simply push it to the device and run it. The resulting json file will b
/sdcard/Android/<output>.json
```


dgkoch marked this conversation as resolved.
Show resolved Hide resolved
## The VulkanTools repository

### Cloning the repository and updaing subcomponents
Expand Down
Loading