2021-06-25 20:50:25 +00:00
|
|
|
.PHONY: firmware flash firmware_docker case pcb
|
2021-06-19 14:42:38 +00:00
|
|
|
|
2023-02-19 12:36:53 +00:00
|
|
|
all: peripherals firmware case pcb
|
|
|
|
|
|
|
|
peripherals:
|
|
|
|
+@make all -C peripherals/cc48x6
|
2021-06-19 14:42:38 +00:00
|
|
|
|
|
|
|
firmware:
|
2021-07-18 23:25:27 +00:00
|
|
|
+@make -C firmware html all
|
2021-06-19 14:42:38 +00:00
|
|
|
|
|
|
|
flash:
|
2023-02-19 12:36:53 +00:00
|
|
|
+@make flash -C firmware
|
|
|
|
+@make flash -C peripherals/cc48x6
|
2021-06-19 14:42:38 +00:00
|
|
|
|
|
|
|
case:
|
|
|
|
+@make -C case all
|
|
|
|
|
|
|
|
pcb:
|
|
|
|
+@make -C pcb all
|
2021-07-12 18:51:38 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
+@make -C firmware clean
|
|
|
|
+@make -C pcb clean
|
|
|
|
|
2023-02-12 07:54:29 +00:00
|
|
|
flash_docker:
|
|
|
|
sh -c "docker build -t fiatlux_firmware_env docker/firmware"
|
|
|
|
sh -c "docker run --volume "$$(pwd)"/firmware:/app/firmware --device=/dev/ttyUSB0 fiatlux_firmware_env make -C firmware flash"
|
|
|
|
|
|
|
|
|
2021-07-12 18:51:38 +00:00
|
|
|
firmware_docker:
|
|
|
|
sh -c "docker build -t fiatlux_firmware_env docker/firmware"
|
2021-09-09 00:35:15 +00:00
|
|
|
sh -c "docker run --volume "$$(pwd)"/firmware:/app/firmware fiatlux_firmware_env make -C firmware html all"
|
2021-07-12 18:51:38 +00:00
|
|
|
|
|
|
|
pcb_docker:
|
|
|
|
sh -c "docker build -t fiatlux_pcb_env docker/pcb"
|
|
|
|
sh -c "docker run --volume "$$(pwd)"/pcb:/app/pcb fiatlux_pcb_env make -C pcb all"
|
|
|
|
|
|
|
|
clean_docker:
|
|
|
|
sh -c "docker build -t fiatlux_firmware_env docker/firmware"
|
|
|
|
sh -c "docker build -t fiatlux_pcb_env docker/pcb"
|
|
|
|
sh -c "docker run --volume "$$(pwd)"/firmware:/app/firmware fiatlux_firmware_env make -C firmware clean"
|
|
|
|
sh -c "docker run --volume "$$(pwd)"/pcb:/app/pcb fiatlux_pcb_env make -C pcb clean"
|
|
|
|
|