PERFORCE change 80413 for review

soc-saturnero soc-saturnero at FreeBSD.org
Sun Jul 17 22:32:40 GMT 2005


http://perforce.freebsd.org/chv.cgi?CH=80413

Change 80413 by soc-saturnero at soc-saturnero_sberta on 2005/07/17 22:32:26

	Adding buildkernel

Affected files ...

.. //depot/projects/soc2005/freesbie/Makefile#3 edit
.. //depot/projects/soc2005/freesbie/conf/freesbie.defaults.conf#4 edit
.. //depot/projects/soc2005/freesbie/scripts/buildkernel.sh#1 add
.. //depot/projects/soc2005/freesbie/scripts/buildworld.sh#2 edit
.. //depot/projects/soc2005/freesbie/scripts/launch.sh#3 edit

Differences ...

==== //depot/projects/soc2005/freesbie/Makefile#3 (text+ko) ====

@@ -5,7 +5,7 @@
 #
 # $FreeBSD$
 
-all: buildworld
+all: buildworld buildkernel
 
 buildworld: .done_buildworld
 .done_buildworld:
@@ -14,5 +14,13 @@
 	@sh ./scripts/launch.sh buildworld .tmp_buildworld
 	@mv .tmp_buildworld .done_buildworld
 
+buildkernel: .done_buildworld .done_buildkernel
+.done_buildkernel:
+	@-rm -f .tmp_buildkernel
+	@touch .tmp_buildkernel
+	@sh ./scripts/launch.sh buildkernel .tmp_buildkernel
+	@mv .tmp_buildkernel .done_buildkernel
+
+
 clean:
-	@-rm -rf .tmp* .done* > /dev/null 2>&1
+	@-rm -f .tmp* .done* > /dev/null 2>&1

==== //depot/projects/soc2005/freesbie/conf/freesbie.defaults.conf#4 (text+ko) ====

@@ -52,9 +52,9 @@
 #
 #NO_BUILDWORLD=YES
 
-# Define NO_BUILDKERNEL to avoid rebuilding kernel. If
-# ${MAKEOBJDIRPREFIX}/src/ssys/${KERNCONF} doesn't exist, the kernel
-# is built anyway.
+# Define NO_BUILDKERNEL to avoid rebuilding kernel. Be sure you know
+# what you're doing, you should have an already compiled kernel 
+#
 #NO_BUILDKERNEL=YES
 
 

==== //depot/projects/soc2005/freesbie/scripts/buildworld.sh#2 (text+ko) ====

@@ -29,8 +29,7 @@
 fi
 
 cd $SRCDIR
-{ 
-script -aq $LOGFILE make ${MAKEOPT:-} buildworld __MAKE_CONF=${MAKE_CONF} || print_error; 
-} | grep '^>>>'
+ 
+(script -aq $LOGFILE make ${MAKEOPT:-} buildworld __MAKE_CONF=${MAKE_CONF} TARGET_ARCH=${ARCH} || print_error;) | grep '^>>>'
 
 cd $LOCALDIR

==== //depot/projects/soc2005/freesbie/scripts/launch.sh#3 (text+ko) ====

@@ -46,8 +46,7 @@
     echo "Something went wrong, check errors!" >&2
     [ -n "${LOGFILE:-}" ] && \
 	echo "Log saved on ${LOGFILE}" >&2
-#    kill $$ # XXX exit 1 won't work.
-    exit 1
+    kill $$ # XXX exit 1 won't work.
 }
 
 if [ -f "${LOCALDIR}/scripts/${ARCH}/${TARGET}.sh" ]; then


More information about the p4-projects mailing list