Commit e8a465dc authored by Enrico Scholz's avatar Enrico Scholz

workspace: added buildvars mk helpers

Signed-off-by: Enrico Scholz's avatarEnrico Scholz <enrico.scholz@sigma-chemnitz.de>
parent 89a5b33a
Pipeline #138 passed with stages
in 49 seconds
# --*- makefile -*--
WORKSPACE_DIR := $(abspath $(dir $(lastword $(MAKEFILE_LIST))))
DEPLOY_DIR ?= ${WORKSPACE_DIR}/../build/tmp/deploy
MACHINE ?= phyboard-polaris-imx8m-2
_BUILDVAR_STYLE ?= _generic_
IMAGE_RECIPE = vm016-mx8m-image
include ${DEPLOY_DIR}/buildvars/${MACHINE}/$R.mk
ifneq (${IMAGE_RECIPE},)
IMAGE_ROOTFS ?= $(shell ${MAKE} -f '${BUILDVAR_BUILDVARS_DEPLOY_DIR}/${IMAGE_RECIPE}.mk' --eval 'emit-rootfs:;@echo $${BUILDVAR_IMAGE_ROOTFS}' emit-rootfs)
else
IMAGE_ROOTFS ?= ${BUILDVAR_WORKDIR}/rootfs
endif
export DESTDIR = ${IMAGE_ROOTFS}
export CC = ${BUILDVAR_CC}
export CFLAGS = ${BUILDVAR_CFLAGS}
%:
${MAKE} $@
# --*- makefile -*--
WORKSPACE_DIR := $(abspath $(dir $(lastword $(MAKEFILE_LIST))))
DEPLOY_DIR ?= ${WORKSPACE_DIR}/../build/tmp/deploy
MACHINE ?= phyboard-polaris-imx8m-2
_BUILDVAR_STYLE := kernel
IMAGE_RECIPE = vm016-mx8m-image
HAVE_NFSROOT=1
include ${WORKSPACE_DIR}/../sources/de.sigma-chemnitz.core/mk/nfs-opt.mk
include ${DEPLOY_DIR}/buildvars/${MACHINE}/linux-imx.mk
tftp: all modules_install
cat arch/arm64/boot/Image > ${KERNEL_TFTP_IMAGE}
modules_install: all
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment