You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
1.0 KiB
Makefile
29 lines
1.0 KiB
Makefile
2 months ago
|
LIBERO_IMAGE := "libero"
|
||
|
MICROCHIP_TOOLS_NETWORK := "microchip_tools_network"
|
||
|
MICROCHIP_TOOLS_POD := "microchip_tools_pod"
|
||
|
LIBERO_CONTAINER ::= "localhost/$(LIBERO_IMAGE):latest"
|
||
|
|
||
|
C_RED= \033[0;31m
|
||
|
C_YELLOW= \033[0;33m
|
||
|
C_GREEN= \033[0;32m
|
||
|
C_END= \033[0m
|
||
|
|
||
|
build:
|
||
|
podman build . -t libero --volume="${PWD}/installers:/opt/microchip/installers"
|
||
|
|
||
|
daemon:
|
||
|
podman run -dt --rm --replace --name libero \
|
||
|
--volume="/etc/localtime:/etc/localtime" --volume="${PWD}/licenses:/opt/microchip/licenses" \
|
||
|
${LIBERO_LICENSER_CONTAINER} /opt/microchip/scripts/entrypoint
|
||
|
|
||
|
# launch a bash shell in the libero container
|
||
|
debug:
|
||
|
podman exec -it --volume="/etc/localtime:/etc/localtime" \
|
||
|
-v "${XAUTHORITY}:${XAUTHORITY}:ro" -v /tmp/.X11-unix:/tmp/.X11-unix:ro \
|
||
|
-e "DISPLAY" --security-opt label=type:container_runtime_t ${LIBERO_CONTAINER}
|
||
|
|
||
|
run:
|
||
|
podman exec -it --volume="/etc/localtime:/etc/localtime" \
|
||
|
-v "${XAUTHORITY}:${XAUTHORITY}:ro" -v /tmp/.X11-unix:/tmp/.X11-unix:ro \
|
||
|
-e "DISPLAY" --security-opt label=type:container_runtime_t ${LIBERO_CONTAINER} libero
|