Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
l4v/spec/cspec/c/Makefile
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
39 lines (26 sloc)
917 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Copyright 2020, Data61, CSIRO (ABN 41 687 119 230) | |
# | |
# SPDX-License-Identifier: GPL-2.0-only | |
# | |
# For kernel builds (CSpec and binary verificaiton): | |
KERNEL_BUILD_ROOT := build/${L4V_ARCH} | |
# For building configuration headers only (not used in CSpec): | |
KERNEL_CONFIG_ROOT := config-build/${L4V_ARCH} | |
# Death to recursively-expanded variables. | |
KERNEL_CMAKE_EXTRA_OPTIONS := ${KERNEL_CMAKE_EXTRA_OPTIONS} | |
ifdef SORRY_BITFIELD_PROOFS | |
KERNEL_CMAKE_EXTRA_OPTIONS += -DSORRY_BITFIELD_PROOFS=${SORRY_BITFIELD_PROOFS} | |
endif | |
include kernel.mk | |
# called by ../../Makefile | |
cspec: ${UMM_TYPES} ${KERNEL_BUILD_ROOT}/kernel_all.c_pp | |
cd ${KERNEL_BUILD_ROOT} && ninja kernel_theories | |
CONFIG_THY := ../../machine/${L4V_ARCH}/Kernel_Config.thy | |
# called by ../../Makefile | |
config: ${CONFIG_THY} | |
${CONFIG_THY}: ${KERNEL_CONFIG_ROOT}/.cmake_done | |
./gen-config-thy.py | |
clean: | |
rm -rf ${KERNEL_BUILD_ROOT} | |
.PHONY: cspec clean |