mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-30 17:23:35 +00:00
Simple script to image a small test area from a built tree. Build with
'cd stand; make MK_FORTH=no MK_LOADER_LUA=yes' then run this script. You can then test with lua-test.sh with the same parameter.
This commit is contained in:
parent
3283c08f3e
commit
f52add1296
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=329270
25
tools/boot/lua-img.sh
Normal file
25
tools/boot/lua-img.sh
Normal file
@ -0,0 +1,25 @@
|
||||
#!/bin/sh
|
||||
# $FreeBSD$
|
||||
|
||||
# Quick script to build a suitable /boot dir somewhere in the tree for testing.
|
||||
|
||||
die() {
|
||||
echo $*
|
||||
exit 1
|
||||
}
|
||||
|
||||
dir=$1
|
||||
cd $(make -V SRCTOP)
|
||||
|
||||
[ -n "$dir" ] || die "No directory specified"
|
||||
|
||||
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 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
|
Loading…
Reference in New Issue
Block a user