From owner-svn-src-head@freebsd.org Wed Feb 14 18:21:55 2018 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 10761F14B7C; Wed, 14 Feb 2018 18:21:55 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B6AAE865C6; Wed, 14 Feb 2018 18:21:54 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id B18E1136C8; Wed, 14 Feb 2018 18:21:54 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w1EILs3n045203; Wed, 14 Feb 2018 18:21:54 GMT (envelope-from imp@FreeBSD.org) Received: (from imp@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w1EILs5U045202; Wed, 14 Feb 2018 18:21:54 GMT (envelope-from imp@FreeBSD.org) Message-Id: <201802141821.w1EILs5U045202@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: imp set sender to imp@FreeBSD.org using -f From: Warner Losh Date: Wed, 14 Feb 2018 18:21:54 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r329270 - head/tools/boot X-SVN-Group: head X-SVN-Commit-Author: imp X-SVN-Commit-Paths: head/tools/boot X-SVN-Commit-Revision: 329270 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Feb 2018 18:21:55 -0000 Author: imp Date: Wed Feb 14 18:21:54 2018 New Revision: 329270 URL: https://svnweb.freebsd.org/changeset/base/329270 Log: 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. Added: head/tools/boot/lua-img.sh (contents, props changed) Added: head/tools/boot/lua-img.sh ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/tools/boot/lua-img.sh Wed Feb 14 18:21:54 2018 (r329270) @@ -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