Initial commit
This commit is contained in:
41
makefile
Normal file
41
makefile
Normal file
@@ -0,0 +1,41 @@
|
||||
include build.env
|
||||
export
|
||||
|
||||
TAG ?= dev
|
||||
|
||||
build-base:
|
||||
docker build \
|
||||
-f docker/build-base.Dockerfile \
|
||||
--build-arg TAG=$(TAG) \
|
||||
-t $(DOCKER_IMAGE_ROOT)/build-base:$(TAG) .
|
||||
|
||||
kernel-build: build-base
|
||||
docker build \
|
||||
-f docker/kernel-build.Dockerfile \
|
||||
--build-arg DOCKER_IMAGE_ROOT=$(DOCKER_IMAGE_ROOT) \
|
||||
--build-arg TAG=$(TAG) \
|
||||
--build-arg ARCH=$(ARCH) \
|
||||
--build-arg CROSS_COMPILE=$(CROSS_COMPILE) \
|
||||
--build-arg NXP_VERSION=$(NXP_VERSION) \
|
||||
--build-arg DTB_TARGET=$(DTB_TARGET) \
|
||||
-t $(DOCKER_IMAGE_ROOT)/kernel-build:$(TAG) .
|
||||
|
||||
fit-build: build-base
|
||||
docker build \
|
||||
-f docker/fit-build.Dockerfile \
|
||||
--build-arg DOCKER_IMAGE_ROOT=$(DOCKER_IMAGE_ROOT) \
|
||||
--build-arg TAG=$(TAG) \
|
||||
--build-arg ARCH=$(ARCH) \
|
||||
--build-arg CROSS_COMPILE=$(CROSS_COMPILE) \
|
||||
--build-arg BUSYBOX_VERSION=$(BUSYBOX_VERSION) \
|
||||
-t $(DOCKER_IMAGE_ROOT)/fit-build:$(TAG) .
|
||||
|
||||
itb: fit-build kernel-build
|
||||
docker build \
|
||||
-f docker/itb.Dockerfile \
|
||||
--build-arg DOCKER_IMAGE_ROOT=$(DOCKER_IMAGE_ROOT) \
|
||||
--build-arg TAG=$(TAG) \
|
||||
--build-arg ARCH=$(ARCH) \
|
||||
--build-arg DTB_TARGET=$(DTB_TARGET) \
|
||||
--output type=local,dest=./out \
|
||||
-t $(DOCKER_IMAGE_ROOT)/itb:$(TAG) .
|
||||
Reference in New Issue
Block a user