mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
xsm: Reduce compiler command line clutter
Move the preprocessor definitions for all FLASK parameters other than the enable flag off the compiler command line and into config.h, which is the preferred location for such definitions. Signed-off-by: Daniel De Graaf <dgdegra@tycho.nsa.gov> Reviewed-by: Jan Beulich <jbeulich@suse.com> Acked-by: Keir Fraser <keir@xen.org>
This commit is contained in:
1 parent
2788cd4e32
commit
98bef9974d
2 files changed
+11
-2
No files matched your search
+1
-2
@@ -47,8 +47,7 @@ CFLAGS += -pipe -g -D__XEN__ -include $(BASEDIR)/include/xen/config.h
|
||||
CFLAGS += -nostdinc
|
||||
|
||||
CFLAGS-$(XSM_ENABLE) += -DXSM_ENABLE
|
||||
CFLAGS-$(FLASK_ENABLE) += -DFLASK_ENABLE -DXSM_MAGIC=0xf97cff8c
|
||||
CFLAGS-$(FLASK_ENABLE) += -DFLASK_DEVELOP -DFLASK_BOOTPARAM -DFLASK_AVC_STATS
|
||||
CFLAGS-$(FLASK_ENABLE) += -DFLASK_ENABLE
|
||||
CFLAGS-$(verbose) += -DVERBOSE
|
||||
CFLAGS-$(crash_debug) += -DCRASH_DEBUG
|
||||
CFLAGS-$(perfc) += -DPERF_COUNTERS
|
||||
|
||||
@@ -98,4 +98,14 @@
|
||||
#define __cpuinitdata
|
||||
#define __cpuinit
|
||||
|
||||
#ifdef FLASK_ENABLE
|
||||
#define XSM_MAGIC 0xf97cff8c
|
||||
/* Enable permissive mode (xl setenforce or flask_enforcing parameter) */
|
||||
#define FLASK_DEVELOP 1
|
||||
/* Allow runtime disabling of FLASK via the flask_enable parameter */
|
||||
#define FLASK_BOOTPARAM 1
|
||||
/* Maintain statistics on the access vector cache */
|
||||
#define FLASK_AVC_STATS 1
|
||||
#endif
|
||||
|
||||
#endif /* __XEN_CONFIG_H__ */
|
||||