<commit_before>#!/bin/sh

# Script to build "userspace".  Note, not "consumer-grade" yet!
#
# first run buildrump.sh with:
#   ./buildrump.sh -s ${APPSTACK_SRC} -V MKPIC=no -V RUMP_KERNEL_IS_LIBC=1 \
#      -V RUMP_CURLWP=hypercall -k -N -H kernelheaders fullbuild

: ${APPSTACK_SRC:=/home/pooka/src/src-netbsd-appstack}
: ${BUILDRUMP_SH:=/home/pooka/src/buildrump.sh}

MORELIBS="external/bsd/flex/lib
        crypto/external/bsd/openssl/lib/libcrypto
        crypto/external/bsd/openssl/lib/libdes
        crypto/external/bsd/openssl/lib/libssl
        external/bsd/libpcap/lib"
LIBS="${APPSTACK_SRC}/lib/lib*"
for lib in ${MORELIBS}; do
        LIBS="${LIBS} ${APPSTACK_SRC}/${lib}"
done

RUMPMAKE=${BUILDRUMP_SH}/obj/tooldir/rumpmake

. ${BUILDRUMP_SH}/subr.sh

usermtree ${BUILDRUMP_SH}/rump
userincludes ${RUMPMAKE} ${APPSTACK_SRC} ${LIBS}

for lib in ${LIBS}; do
        makeuserlib ${RUMPMAKE} ${lib}
done

APPSTACK_LIBS=$(${RUMPMAKE} -f ${APPSTACK_SRC}/sys/rump/dev/Makefile.rumpdevcomp -V '${RUMPPCIDEVS}')

for lib in ${APPSTACK_LIBS}; do
		( cd ${APPSTACK_SRC}/sys/rump/dev/lib/lib${lib}
			${RUMPMAKE} obj
			${RUMPMAKE} dependall
			${RUMPMAKE} install
		)
done<commit_msg>build PCI with iospace support<commit_after>#!/bin/sh

# Script to build "userspace".  Note, not "consumer-grade" yet!
#
# first run buildrump.sh with:
#   ./buildrump.sh -s ${APPSTACK_SRC} -V MKPIC=no -V RUMP_KERNEL_IS_LIBC=1 \
#      -V RUMP_CURLWP=hypercall -k -N -H kernelheaders fullbuild

: ${APPSTACK_SRC:=/home/pooka/src/src-netbsd-appstack}
: ${BUILDRUMP_SH:=/home/pooka/src/buildrump.sh}

MORELIBS="external/bsd/flex/lib
        crypto/external/bsd/openssl/lib/libcrypto
        crypto/external/bsd/openssl/lib/libdes
        crypto/external/bsd/openssl/lib/libssl
        external/bsd/libpcap/lib"
LIBS="${APPSTACK_SRC}/lib/lib*"
for lib in ${MORELIBS}; do
        LIBS="${LIBS} ${APPSTACK_SRC}/${lib}"
done

RUMPMAKE=${BUILDRUMP_SH}/obj/tooldir/rumpmake

. ${BUILDRUMP_SH}/subr.sh

usermtree ${BUILDRUMP_SH}/rump
userincludes ${RUMPMAKE} ${APPSTACK_SRC} ${LIBS}

for lib in ${LIBS}; do
        makeuserlib ${RUMPMAKE} ${lib}
done

APPSTACK_LIBS=$(${RUMPMAKE} -f ${APPSTACK_SRC}/sys/rump/dev/Makefile.rumpdevcomp -V '${RUMPPCIDEVS}')

for lib in ${APPSTACK_LIBS}; do
		( cd ${APPSTACK_SRC}/sys/rump/dev/lib/lib${lib}
			${RUMPMAKE} obj
			${RUMPMAKE} RUMP_PCI_IOSPACE=yes dependall
			${RUMPMAKE} install
		)
done
{'fraction_non_alphanumeric': 0.16307053941908714, 'fraction_numerical': 0.0008298755186721991, 'mean_word_length': 4.022916666666666, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2514329', 'n_tokens_mistral': 1083, 'n_tokens_neox': 998, 'n_words': 162}