From 20bc64cd6911989dc2a2a60596b4612f466bed8f Mon Sep 17 00:00:00 2001 From: Ciro Santilli Date: Tue, 19 Jul 2022 20:21:19 +0000 Subject: [PATCH] docs: create virtualenv Newer Ubuntu does not allow global package installs, it is so annoying! --- .gitignore | 1 + README.adoc | 57 +++++++++++++++++++++-------------------------------- setup | 2 +- 3 files changed, 24 insertions(+), 36 deletions(-) diff --git a/.gitignore b/.gitignore index 04677c69..2af1d438 100644 --- a/.gitignore +++ b/.gitignore @@ -21,6 +21,7 @@ gitignore.* # Python trash. *.pyc __pycache__ +.venv # Accidents. /core diff --git a/README.adoc b/README.adoc index 7009441e..2e97664a 100644 --- a/README.adoc +++ b/README.adoc @@ -37,6 +37,8 @@ toc::[] The most important functionality of this repository is the `--china` option, sample usage: .... +python3 -m venv .venv +. .venv/bin/activate ./setup ./run --china > index.html firefox index.html @@ -121,6 +123,8 @@ Reserve 12Gb of disk and run: .... git clone https://github.com/cirosantilli/linux-kernel-module-cheat cd linux-kernel-module-cheat +python3 -m venv .venv +. .venv/bin/activate ./setup ./build --download-dependencies qemu-buildroot ./run @@ -177,6 +181,8 @@ All available modules can be found in the link:kernel_modules[] directory. It is super easy to build for different <>, just use the `--arch` option: .... +python3 -m venv .venv +. .venv/bin/activate ./setup ./build --arch aarch64 --download-dependencies qemu-buildroot ./run --arch aarch64 @@ -660,6 +666,8 @@ For the most part, if you just add the `--emulator gem5` option or `*-gem5` suff If you haven't built Buildroot yet for <>, you can build from the beginning with: .... +python3 -m venv .venv +. .venv/bin/activate ./setup ./build --download-dependencies gem5-buildroot ./run --emulator gem5 @@ -726,6 +734,8 @@ For example, to do a <> inside Docker, run: .... sudo apt-get install docker +python3 -m venv .venv +. .venv/bin/activate ./setup ./run-docker create && \ ./run-docker sh -- ./build --download-dependencies qemu-buildroot @@ -877,6 +887,8 @@ Or to run a baremetal example instead: Be saner and use our custom built QEMU instead: .... +python3 -m venv .venv +. .venv/bin/activate ./setup ./build --download-dependencies qemu ./run @@ -1134,6 +1146,8 @@ You can install those libraries with: .... cd linux-kernel-module-cheat +python3 -m venv .venv +. .venv/bin/activate ./setup ./build --download-dependencies userland-host .... @@ -1313,6 +1327,8 @@ Every `.c` file inside link:baremetal/[] and `.S` file inside `baremetal/arch/