package petalinux tools into docker image
If you feel this is helpful for you, please star me right now :)
make sure you have pre-installed docker. If not, https://get.docker.com/ may be helpful.
curl -fsSL https://get.docker.com -o get-docker.sh
sh get-docker.sh
source settings.sh
has already been done in bashrc- the default working directory is
/home/plnx/project
, you can mount a host directory to persist your data. - the whole docker image is about 8GB, so make sure your network works in the right way.
docker run -ti -v `pwd`:/home/plnx/project sonnyhcl/petalinux
petalinux -t project -s <path-to-bsp> -n <project-name>
cd <project-name>
petalinux-build # this will take a long time
- https://hub.docker.com/r/sonnyhcl/petalinux/tags/
- base image: ubuntu 16.04
- petalinux version:2018.2
./build-docker-image.sh <petalinux_run_dir> <version>
./build-docker-image.sh `pwd` 2018.2