Fixes to allow veriexecgen to be built as a host tool.
This commit is contained in:
parent
39568acf5e
commit
06c3bf82f1
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: verified_exec.h,v 1.45 2006/11/30 16:53:47 elad Exp $ */
|
||||
/* $NetBSD: verified_exec.h,v 1.46 2006/12/20 22:03:20 agc Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright 2005 Elad Efrat <elad@NetBSD.org>
|
||||
@ -36,7 +36,7 @@
|
||||
#include <sys/param.h>
|
||||
#include <sys/ioctl.h>
|
||||
|
||||
#ifdef _KERNEL
|
||||
#if defined(_KERNEL) && !defined(HAVE_NBTOOL_CONFIG_H)
|
||||
#include <sys/malloc.h>
|
||||
#include <uvm/uvm_extern.h>
|
||||
#include <uvm/uvm_pglist.h>
|
||||
@ -81,7 +81,7 @@ typedef void (*veriexec_fpop_init_t)(void *);
|
||||
typedef void (*veriexec_fpop_update_t)(void *, u_char *, u_int);
|
||||
typedef void (*veriexec_fpop_final_t)(u_char *, void *);
|
||||
|
||||
#ifdef _KERNEL
|
||||
#if defined(_KERNEL) && !defined(HAVE_NBTOOL_CONFIG_H)
|
||||
MALLOC_DECLARE(M_VERIEXEC);
|
||||
|
||||
struct veriexec_file_entry;
|
||||
|
3
tools/compat/sys/verified_exec.h
Normal file
3
tools/compat/sys/verified_exec.h
Normal file
@ -0,0 +1,3 @@
|
||||
/* $NetBSD: verified_exec.h,v 1.1 2006/12/20 22:03:20 agc Exp $ */
|
||||
|
||||
#include "../../sys/sys/verified_exec.h"
|
@ -1,9 +1,10 @@
|
||||
# $NetBSD: Makefile,v 1.1 2006/12/19 21:23:18 agc Exp $
|
||||
# $NetBSD: Makefile,v 1.2 2006/12/20 22:03:20 agc Exp $
|
||||
|
||||
HOSTPROGNAME= ${_TOOL_PREFIX}veriexecgen
|
||||
HOST_SRCDIR= usr.sbin/veriexecgen
|
||||
|
||||
HOST_CPPFLAGS+= -I${TOOLDIR}/include/nbinclude
|
||||
HOST_CPPFLAGS+= -I${.CURDIR}/../compat
|
||||
HOST_CPPFLAGS+= -I${.CURDIR}/../compat/sys
|
||||
|
||||
.include "${.CURDIR}/../Makefile.disklabel"
|
||||
.include "${.CURDIR}/../Makefile.host"
|
||||
|
Loading…
Reference in New Issue
Block a user