mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-28 00:22:48 +00:00
d0b2dbfa0e
Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
26 lines
583 B
Bash
Executable File
26 lines
583 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Quick script to build a suitable /boot dir somewhere in the tree for testing.
|
|
# dir may be passed in, will default to /tmp/loadertest if not specified
|
|
|
|
die() {
|
|
echo $*
|
|
exit 1
|
|
}
|
|
|
|
dir=$1
|
|
cd $(make -V SRCTOP)
|
|
|
|
[ -n "$dir" ] || dir=/tmp/loadertest
|
|
|
|
set -e
|
|
|
|
rm -rf ${dir}
|
|
mkdir -p ${dir}
|
|
mtree -deUW -f etc/mtree/BSD.root.dist -p ${dir}
|
|
mtree -deUW -f etc/mtree/BSD.usr.dist -p ${dir}/usr
|
|
cd stand
|
|
make -j4 all install DESTDIR=${dir} NO_ROOT=t MK_LOADER_LUA=yes MK_FORTH=no MK_INSTALL_AS_USER=yes
|
|
mkdir -p ${dir}/boot/kernel
|
|
cp /boot/kernel/kernel ${dir}/boot/kernel
|