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:
@@ -12,6 +12,7 @@ INCLUDES=\
|
||||
include include \
|
||||
include/sys include/sys \
|
||||
include/test include/test \
|
||||
include/test161 include/test161 \
|
||||
include/types include/types
|
||||
|
||||
INCLUDELINKS=\
|
||||
|
6
userland/include/test161/test161.h
Normal file
6
userland/include/test161/test161.h
Normal file
@@ -0,0 +1,6 @@
|
||||
#ifndef _TEST161_H_
|
||||
#define _TEST161_H_
|
||||
|
||||
#include <kern/test161.h>
|
||||
|
||||
#endif // _TEST161_H
|
@@ -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"
|
||||
|
@@ -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 \
|
||||
|
17
userland/lib/libtest161/Makefile
Normal file
17
userland/lib/libtest161/Makefile
Normal 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"
|
Reference in New Issue
Block a user