-
Notifications
You must be signed in to change notification settings - Fork 108
/
Makefile
39 lines (26 loc) · 898 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#
# 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}: ${CONFIG_DONE}
./gen-config-thy.py
clean:
rm -rf ${KERNEL_BUILD_ROOT}
.PHONY: cspec clean