From: Jan Kiszka <jan.kis...@siemens.com> Helps while developing: Call build-images --shell, you will fall into a kas shell in the docker container so that bitbake can be called manually.
Rename the repo mount point at this chance to the official project name. Signed-off-by: Jan Kiszka <jan.kis...@siemens.com> --- build-images.sh | 29 ++++++++++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/build-images.sh b/build-images.sh index 79f2bd1..baf3a58 100755 --- a/build-images.sh +++ b/build-images.sh @@ -10,13 +10,36 @@ # SPDX-License-Identifier: GPL-2.0 # +usage() +{ + echo "Usage: $0 [OPTIONS]" + echo -e "\nOptions:" + echo -e "--shell\t\tDrop into a shell to issue bitbake commands" \ + "manually." + exit 1 +} + +CMD="build" + +while [ $# -gt 0 ]; do + case "$1" in + --shell) + CMD="shell" + shift 1 + ;; + *) + usage + ;; + esac +done + mkdir -p out -docker run -v $(pwd):/isar-jailhouse:ro -v $(pwd)/out:/out:rw \ - -e USER_ID=$(id -u) --rm -t -i \ +docker run -v $(pwd):/jailhouse-images:ro -v $(pwd)/out:/out:rw \ + -e USER_ID=$(id -u) -e SHELL=${SHELL} --rm -t -i \ --cap-add=SYS_ADMIN --cap-add=MKNOD --privileged \ --device $(/sbin/losetup -f) \ -e http_proxy=$http_proxy -e https_proxy=$https_proxy \ -e no_proxy=$no_proxy \ kasproject/kas-isar sh -c " cd /out; - kas build /isar-jailhouse/kas.yml" + kas ${CMD} /jailhouse-images/kas.yml" -- 2.13.6 -- You received this message because you are subscribed to the Google Groups "Jailhouse" group. To unsubscribe from this group and stop receiving emails from it, send an email to jailhouse-dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.