forked from brl/citadel
added a makefile target to update git submodules
This commit is contained in:
parent
31f863d91e
commit
6f658c277c
5
Makefile
5
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_DIR = $(shell pwd)
|
||||||
BASE_BINDMOUNT = type=bind,source=$(BASE_DIR),target=/home/builder/citadel
|
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
|
user-rootfs: ## Build user-rootfs tarball with debootstrap and configuration scripts
|
||||||
mkdir -p build/debootstrap
|
mkdir -p build/debootstrap
|
||||||
$(DOCKER_RUN_PRIV) sudo scripts/build-user-rootfs-stage-one | tee build/debootstrap/build-user-rootfs.log
|
$(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
|
||||||
|
@ -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
|
A `Makefile` is provided which only contains a couple of simple targets that execute docker commands to set up and run the
|
||||||
builder container.
|
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
|
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.
|
Docker will realize that the Dockerfile has not changed and do nothing.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user