Skip to content

Commit

Permalink
Makefile: add more targets
Browse files Browse the repository at this point in the history
Signed-off-by: Kornilios Kourtis <[email protected]>
  • Loading branch information
kkourt committed Aug 4, 2022
1 parent b7e2482 commit e83dfbd
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ KERNEL_VERSIONS=4.19 5.4 5.10 bpf-next
.PHONY: all
all:
@echo "Available targets:"
@echo " images_builder: build root fs builder images"
@echo " kernels_builder: build root kernel builder images"
@echo " images: build root fs images"
@echo " kernels: build root kernel images"
@echo " quay-dockerfiles: create dockerfiles for quay builder"
Expand All @@ -24,14 +26,20 @@ quay-dockerfiles:
done


.PHONY: images
images:
.PHONY: images_builder
images_builder:
$(DOCKER) build -f dockerfiles/root-builder -t $(ROOT_BUILDER) .

.PHONY: images
images: images_builder
$(DOCKER) build -f dockerfiles/root-images -t $(ROOT_IMAGES) .

.PHONY: kernels
kernels:
.PHONY: kernels_builder
kernels_builder:
$(DOCKER) build -f dockerfiles/kernel-builder -t $(KERNEL_BUILDER) .

.PHONY: kernels
kernels: kernels_builder
for v in $(KERNEL_VERSIONS) ; do \
$(DOCKER) build --build-arg KERNEL_VER=$$v -f dockerfiles/kernel-image -t $(KERNEL_IMAGES):$$v . ; \
done

0 comments on commit e83dfbd

Please sign in to comment.