Rename blk_shred to block_shred, package
This commit is contained in:
31
recipes/src/block_shred/content.mk
Normal file
31
recipes/src/block_shred/content.mk
Normal file
@@ -0,0 +1,31 @@
|
||||
PORT_DIR = $(call port_dir,$(GENODE_DIR)/repos/libports/ports/pcg-c)
|
||||
|
||||
pcg_srcs = $(notdir $(wildcard $(PORT_DIR)/src/lib/pcg-c/src/*-$(1).c))
|
||||
|
||||
MIRROR_FROM_PORT_DIR := $(addprefix src/lib/pcg-c/src/,\
|
||||
$(call pcg_srcs,8) \
|
||||
$(call pcg_srcs,16) \
|
||||
$(call pcg_srcs,32) \
|
||||
$(call pcg_srcs,64) \
|
||||
$(call pcg_srcs,128) ) \
|
||||
include/pcg-c/pcg_variants.h
|
||||
|
||||
MIRROR_FROM_REP_DIR = include/world/rdrand.h
|
||||
|
||||
content: $(MIRROR_FROM_PORT_DIR) $(MIRROR_FROM_REP_DIR)
|
||||
|
||||
$(MIRROR_FROM_PORT_DIR):
|
||||
mkdir -p $(dir $@)
|
||||
cp -r $(PORT_DIR)/$@ $@
|
||||
|
||||
content:
|
||||
mkdir -p lib/mk lib/import include/pcg-c
|
||||
cp $(GENODE_DIR)/repos/libports/lib/mk/libpcg_random.mk lib/mk
|
||||
cp $(GENODE_DIR)/repos/libports/lib/import/import-libpcg_random.mk lib/import
|
||||
cp $(GENODE_DIR)/repos/libports/include/pcg-c/genode_inttypes.h include/pcg-c
|
||||
|
||||
$(MIRROR_FROM_REP_DIR):
|
||||
$(mirror_from_rep_dir)
|
||||
|
||||
SRC_DIR = src/app/block_shred
|
||||
include $(GENODE_DIR)/repos/base/recipes/src/content.inc
|
||||
1
recipes/src/block_shred/hash
Normal file
1
recipes/src/block_shred/hash
Normal file
@@ -0,0 +1 @@
|
||||
2019-03-31-d f5989b68c9898c5ca053529e84968a55817a5e02
|
||||
4
recipes/src/block_shred/used_apis
Normal file
4
recipes/src/block_shred/used_apis
Normal file
@@ -0,0 +1,4 @@
|
||||
base
|
||||
os
|
||||
block_session
|
||||
jitterentropy
|
||||
@@ -44,12 +44,15 @@ namespace Blk_shred {
|
||||
PKT_BUF_SIZE = PKT_SIZE*2 + (32<<10)
|
||||
};
|
||||
|
||||
uint64_t pcg_init[2] = PCG32_INITIALIZER;
|
||||
uint64_t pcg_init[2] PCG32_INITIALIZER;
|
||||
}
|
||||
|
||||
|
||||
struct Blk_shred::Main
|
||||
{
|
||||
Main(Main const &);
|
||||
Main &operator = (Main const &);
|
||||
|
||||
Genode::Env &env;
|
||||
|
||||
Timer::Connection timer { env };
|
||||
@@ -66,8 +69,8 @@ struct Blk_shred::Main
|
||||
size_t blk_size = 0;
|
||||
Block::sector_t blk_total= 0;
|
||||
|
||||
rand_data *jent;
|
||||
pcg32_random_t pcg;
|
||||
rand_data *jent { nullptr };
|
||||
pcg32_random_t pcg PCG32_INITIALIZER;
|
||||
|
||||
template <typename... ARGS>
|
||||
void die(ARGS &&... args)
|
||||
@@ -1,5 +1,3 @@
|
||||
TARGET = blk_shred
|
||||
TARGET = block_shred
|
||||
LIBS = base jitterentropy libpcg_random
|
||||
SRC_CC = main.cc
|
||||
|
||||
CC_CXX_WARN_STRICT =
|
||||
Reference in New Issue
Block a user