From 9d231d4aa7b79d08040140d2c92ccd80276fdb5d Mon Sep 17 00:00:00 2001 From: "warren.toomey" Date: Wed, 7 May 2008 02:55:32 +0000 Subject: [PATCH] Added nopatch command line arg so we can re-assemble without repatching. --- tools/assemv2 | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/tools/assemv2 b/tools/assemv2 index c2997fc..cd45c47 100755 --- a/tools/assemv2 +++ b/tools/assemv2 @@ -23,9 +23,14 @@ APOUT=../tools/apout/apout APOUT_ROOT=../fs/root export APOUT_ROOT -# build sources from pages and generate patched sources in "build" -# if "cold" is passed in, the "cold" option will be patched on. -tools/rebuild "$@" +# Build sources from pages and generate patched sources in "build". +# Any command-line args are names of patch files in patches/, but without +# the trailing .patch. If "nopatch" is the first command-line argument, +# then no patches will be applied, and build/ is expected to already have +# the patched kernel code. +if [ ! "$1" = "nopatch" ] +then tools/rebuild "$@" +fi # assemble the kernel from patched sources and generate symbols # and build a simh loadable file.