Commit 7414dca 1 parent 5167078 commit 7414dca Copy full SHA for 7414dca
File tree 2 files changed +19
-3
lines changed
2 files changed +19
-3
lines changed Original file line number Diff line number Diff line change 1
- FROM debian:bookworm as build-stage
1
+ # Check the docker targets in ./Makefile to see how to use this.
2
+
3
+ FROM debian:bookworm AS build-stage
2
4
3
5
RUN apt-get update && apt-get install -y \
4
6
build-essential flex bison cmake texinfo device-tree-compiler git \
@@ -16,7 +18,7 @@ RUN make install
16
18
17
19
# ------------------------------------------------------------------------------
18
20
19
- FROM debian:bookworm-slim as run-stage
21
+ FROM debian:bookworm-slim AS run-stage
20
22
21
23
RUN apt-get update && apt-get install -y \
22
24
build-essential flex bison cmake texinfo device-tree-compiler git \
Original file line number Diff line number Diff line change @@ -365,7 +365,7 @@ AR='$(MAKEFILE_DIR)rtems/$(RTEMS_VERSION)/$(ARCH)-rtems$(RTEMS_VERSION)/bin/ar'
365
365
.PHONY : blas
366
366
# H Build the BLAS-LAPACKE library.
367
367
blas :
368
- cp external/BLAS/make.inc $(SRC_BLAS )
368
+ cp external/BLAS/make.inc $(SRC_BLAS )
369
369
cd $(SRC_BLAS ) && make blaslib $(BLAS_TOOLS )
370
370
cd $(SRC_BLAS ) && make cblaslib $(BLAS_TOOLS )
371
371
cd $(SRC_BLAS ) && make lapacklib $(BLAS_TOOLS )
@@ -404,3 +404,17 @@ shell:
404
404
package :
405
405
mkdir -p " ${PACKAGE_DIR} "
406
406
cd " ${PREFIX} " && tar -czf " ../../${PACKAGE_DIR} /${PACKAGE_PREFIX} _${OS_NAME} _${OS_VERSION} _${GRISP_TOOLCHAIN_REVISION} .tar.gz" *
407
+
408
+ .PHONY : docker-build
409
+ # H Build the toolchain with tag 'local'
410
+ docker-build :
411
+ docker build -t grisp/grisp2-rtems-toolchain:local .
412
+
413
+ .PHONY : docker-build-push
414
+ # H Build the toolchain with the given tag and push it, for example 'make docker-build-push TAG=latest'
415
+ docker-build-push :
416
+ @if [ -z " $( TAG) " ]; then \
417
+ echo " Error: TAG is not set. Usage: make docker-build-push TAG=<tag>" ; \
418
+ exit 1; \
419
+ fi
420
+ docker build -t grisp/grisp2-rtems-toolchain:$(TAG ) --push .
You can’t perform that action at this time.
0 commit comments