Browse Source

create bin/ subdirectories in BUILD, add BUILD qrun command to boot current kernel with utils/QRUN

Change-Id: I714cd60650846378753a192ca7e62a4bf3840902
Aki Nyrhinen 8 years ago
parent
commit
1b132b569e
1 changed files with 10 additions and 0 deletions
  1. 10 0
      BUILD

+ 10 - 0
BUILD

@@ -113,6 +113,7 @@ show_help()
 	printf "  cmd <cmdname>\tBuild cmd named <cmdname>\n"
 	printf "  cleancmd   \tClean the cmds\n"
 	printf "  kernel     \tBuild kernel\n"
+	printf "  qrun       \tRun kernel using utils/QRUN\n"
 	printf "  cleankernel\tClean kernel\n"
 	printf "\nFLAGS:\n"
 	printf "  -g        \tCompile with debugs flags\n"
@@ -129,6 +130,10 @@ then
 else
 	# We need our binary dir
 	mkdir -p $BIN_DIR
+	for binsub in auth aux fossil ip; do
+		mkdir -p $BIN_DIR/$binsub
+	done
+	
 
 	#BUILD_DEBUG=
 	#Until we have a stable kernel, debug mode is the default.
@@ -184,6 +189,11 @@ else
 			"kernel")
 					build_kernel
 					;;
+			"qrun")
+					cd sys/src/9/k10
+					sh ../../../../util/QRUN 
+					exit 0
+					;;
 			*)
 				echo "Invalid option <$1>"
 				exit 1