From 6f658c277c31ae356af205b34412b37d3acb58b0 Mon Sep 17 00:00:00 2001 From: brl Date: Tue, 13 Feb 2018 10:32:31 -0500 Subject: [PATCH] added a makefile target to update git submodules --- Makefile | 5 ++++- README.md | 5 +++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 53f7dd4..4eb192d 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY: help docker-image docker-shell citadel-image citadel-kernel user-rootfs +.PHONY: help docker-image docker-shell citadel-image citadel-kernel user-rootfs update-submodules BASE_DIR = $(shell pwd) BASE_BINDMOUNT = type=bind,source=$(BASE_DIR),target=/home/builder/citadel @@ -27,3 +27,6 @@ citadel-kernel: ## Build citadel-kernel with bitbake user-rootfs: ## Build user-rootfs tarball with debootstrap and configuration scripts mkdir -p build/debootstrap $(DOCKER_RUN_PRIV) sudo scripts/build-user-rootfs-stage-one | tee build/debootstrap/build-user-rootfs.log + +update-submodules: ## Retrieve or update submodule projects + git submodule update --init diff --git a/README.md b/README.md index 30c2f6c..d38d650 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,11 @@ A user with access to the docker group can easily escalate privileges to root wh A `Makefile` is provided which only contains a couple of simple targets that execute docker commands to set up and run the builder container. +The project uses git submodules to track openembedded layers it depends upon. After cloning this repository you will need to +retrieve the dependent submodules with the following command: + + $ make update-submodules + To create the builder docker image use the following command. You only need to do this one time, but if you run it again Docker will realize that the Dockerfile has not changed and do nothing.