Refactored ksecprintf -> secprintf. Secure code is now all in common libtest161.

This library gets linked in by default in userland, and the common files are
included in the kernel.
This commit is contained in:
Scott Haseley
2016-02-23 15:31:37 -05:00
parent 2e74764d49
commit 1b99c0e18f
22 changed files with 241 additions and 139 deletions

View File

@@ -12,6 +12,7 @@ INCLUDES=\
include include \
include/sys include/sys \
include/test include/test \
include/test161 include/test161 \
include/types include/types
INCLUDELINKS=\

View File

@@ -0,0 +1,6 @@
#ifndef _TEST161_H_
#define _TEST161_H_
#include <kern/test161.h>
#endif // _TEST161_H

View File

@@ -8,6 +8,6 @@
TOP=../..
.include "$(TOP)/mk/os161.config.mk"
SUBDIRS=crt0 libc libtest hostcompat
SUBDIRS=crt0 libc libtest libtest161 hostcompat
.include "$(TOP)/mk/os161.subdir.mk"

View File

@@ -13,11 +13,6 @@ SRCS+=\
$(COMMON)/printf/snprintf.c \
$(COMMON)/printf/tprintf.c
# secure
SRCS+=\
$(COMMON)/secure/secure.c \
$(COMMON)/secure/sha256.c \
# stdio
SRCS+=\
stdio/__puts.c \

View File

@@ -0,0 +1,17 @@
#
# libtest - library of common test support code
#
TOP=../../..
.include "$(TOP)/mk/os161.config.mk"
COMMON=$(TOP)/common/libtest161
SRCS+=\
$(COMMON)/secure.c \
$(COMMON)/sha256.c \
$(COMMON)/test161.c \
LIB=test161
.include "$(TOP)/mk/os161.lib.mk"