Add simple rebuild command

main
alexis 2023-01-03 10:34:03 -07:00
parent d9f1c3c4ce
commit d9a2bdccad
2 changed files with 13 additions and 3 deletions

View File

@ -1,6 +1,6 @@
.PHONY: \
all gdb \
lall lgdb \
all rb gdb \
lall lrb lgdb \
clean flash openocd shell wipe
DOCKER_IMAGE ?= riscv-ubuntu
@ -29,6 +29,14 @@ lall: ${MESON_DIR}
${MESON_DIR}: ${MESON_FILE} ${MESON_CROSS}
meson setup $@ --cross-file ${MESON_CROSS}
rb: .have_docker
${DOCKER_CMD} ${DOCKER_IMAGE} make lrb
${TRANSLATE_COMPILE_COMMANDS}
lrb: ${MESON_DIR}
meson compile -C ${MESON_DIR} --clean
meson compile -C ${MESON_DIR}
clean:
rm -rf ${MESON_DIR}
rm -f .have_docker

View File

@ -20,9 +20,11 @@ Everything else is downloaded into the Docker container.
- Building in Docker:
- `make` (`make all`) — full build. Will create the docker image
(expect 10-30min) if needed.
- `make wipe` — full clean and rebuild.
- `make rb` — clean and rebuild of just the build, not the docker image
- `make wipe` — full clean and rebuild including the docker image
- Building locally, if you have your own toolchain already:
- `make lall` ("local all")
- `make lrb` ("local rebuild")
- `make clean lall` (equivalent to `make wipe`)
- To flash:
- `make flash`