change instruction to ver 1.2

This commit is contained in:
acosail 2023-08-24 21:26:16 +08:00
parent c816862f7b
commit 6884051e16

View File

@ -6,7 +6,7 @@ And testing the program inside the Docker without a real ARM64 hardware.
# How to build Docker
~~~bash
sudo docker build -t acosail_v2_cross:1.0 .
sudo docker build -t acosail_v2_cross:1.2 .
~~~
# How to RUN this docker for crossbuild
@ -14,7 +14,7 @@ Of cause you need have some crossbuild experience before you using this tool.
You can learn crossbuild on google/github and maybe CSDN.
~~~bash
export PROJECT_DIR
sudo docker run -it --rm --privileged -v ${PROJECT_DIR}:/app acosail_v2_cross:1.0
sudo docker run -it --rm --privileged -v ${PROJECT_DIR}:/app acosail_v2_cross:1.2
# Do what ever you want to build an arm64 C/C++ cli program;
# Don't forget to make sure your have set FLAGS -isysroot=/rootfs;
~~~
@ -31,7 +31,7 @@ apt update
# How to RUN this docker for QEMU arm64 native & VERY SLOW build
~~~bash
export PROJECT_DIR
sudo docker run -it --rm --privileged -v ${PROJECT_DIR}:/rootfs/app acosail_v2_cross:1.0
sudo docker run -it --rm --privileged -v ${PROJECT_DIR}:/rootfs/app acosail_v2_cross:1.2
#Inside docker
chroot /rootfs/app
# Do what you want to build a native arm64 program;
@ -42,7 +42,7 @@ chroot /rootfs/app
We suppose you have build your progarms already.
~~~bash
export PROJECT_DIR
sudo docker run -it --rm --privileged -v ${PROJECT_DIR}:/rootfs/app acosail_v2_cross:1.0
sudo docker run -it --rm --privileged -v ${PROJECT_DIR}:/rootfs/app acosail_v2_cross:1.2
#Insdile docker
chroot /rootfs/app
# Do anything you like to run a native program