Files
linux-kernel-module-cheat/rootfs_post_build_script
Ciro Santilli 7b08433840 9p mount the output directory.
This is in preparation for moving parsec to 9p once we get it working on gem5.

We'll document it then when everything is working.
2018-03-11 22:00:55 +00:00

25 lines
489 B
Bash
Executable File

#!/usr/bin/env bash
# This is run as part of:
# make target-finalize
# which gets called by the default target.
# To test it out, arguments can be passed with:
# make BR2_ROOTFS_POST_SCRIPT_ARGS="asdf qwer"
target_dir="$1"
shift
net=true
while getopts 'n' OPT; do
case "$OPT" in
n)
net=false
;;
esac
done
shift $(($OPTIND - 1))
if ! "$net"; then
rm -f "${target_dir}/etc/init.d/"S*network
fi
mkdir -p \
"${target_dir}/mnt/9p" \
"${target_dir}/mnt/out" \
;