Update of /cvsroot/blob/blob/utils/build
In directory usw-pr-cvs1:/tmp/cvs-serv14601/utils/build
Modified Files:
Makefile.am README build_Makefile build_all
Log Message:
a couple of scripts that allow developers to build blob for all architectures.
also kick the version number to 2.0.4
Index: Makefile.am
===================================================================
RCS file: /cvsroot/blob/blob/utils/build/Makefile.am,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- Makefile.am 2001/08/29 20:43:25 1.1
+++ Makefile.am 2001/08/29 21:08:51 1.2
@@ -0,0 +1,11 @@
+# Process this file with automake to produce Makefile.in -*- makefile -*-
+#
+# $Id$
+#
+
+CLEANFILES = *~
+
+EXTRA_DIST = \
+ README \
+ build_Makefile \
+ build_all
Index: README
===================================================================
RCS file: /cvsroot/blob/blob/utils/build/README,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- README 2001/08/29 20:43:25 1.1
+++ README 2001/08/29 21:08:51 1.2
@@ -0,0 +1,22 @@
+README for the "utils/build" directory
+
+This directory contains two little scripts that allow developers to configure
+and build blob for all supported architectures.
+
+Usage:
+- make a directory that will contain all build directories:
+ mkdir ~/blob-build
+- copy build_Makefile and build_all to that directory:
+ cp build_Makefile ~/blob-build/Makefile
+ cp build_all ~/blob-build/
+- cd to the build directory:
+ cd ~/blob-build/
+- edit build_all and change linux_prefix and blob_src so they reflect your
+ system
+- run "./build_all" and watch how all architectures get automatically
+ configured
+- run "make" and all architectures are build
+- run "make clean" to clean up all architectures
+
+Note: the blob source directory should not be configured or otherwise this
+trick won't work
Index: build_Makefile
===================================================================
RCS file: /cvsroot/blob/blob/utils/build/build_Makefile,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- build_Makefile 2001/08/29 20:43:25 1.1
+++ build_Makefile 2001/08/29 21:08:51 1.2
@@ -0,0 +1,31 @@
+# -*- makefile -*-
+#
+# utils/build/build_Makefile: make all blob architectures with a single
+# makefile
+#
+# Copyright (C) 2001, Erik Mouw <J.A...@it...>
+#
+# $Id$
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License version 2 as
+# published by the Free Software Foundation.
+#
+
+archs = assabet brutus creditlart lart nesa pleb shannon
+debug-archs = $(foreach a, $(archs), $(a)-debug)
+all-archs = $(archs) $(debug-archs)
+
+all-archs-clean = $(foreach a, $(all-archs), $(a)-clean)
+
+.PHONY: all clean $(all-archs) $(all-archs-clean)
+
+all: $(all-archs)
+
+clean: $(all-archs-clean)
+
+$(all-archs):
+ $(MAKE) -C $@
+
+$(all-archs-clean):
+ $(MAKE) -C $(subst -clean,,$@) clean
Index: build_all
===================================================================
RCS file: /cvsroot/blob/blob/utils/build/build_all,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- build_all 2001/08/29 20:43:25 1.1
+++ build_all 2001/08/29 21:08:51 1.2
@@ -0,0 +1,30 @@
+#! /bin/sh
+#
+# utils/build/build_all: configure all blob architectures with a single
+# script
+#
+# Copyright (C) 2001, Erik Mouw <J.A...@it...>
+#
+# $Id$
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License version 2 as
+# published by the Free Software Foundation.
+#
+
+archs="assabet brutus creditlart lart nesa pleb shannon"
+linux_prefix=~/LART/build/linux/elinux
+blob_src=~/src/sourceforge/blob
+
+export CC=arm-linux-gcc
+
+for i in $archs ; do
+ rm -rf "$i"*
+ mkdir "$i" "$i"-debug
+ cd $i
+ $blob_src/configure --enable-maintainer-mode --with-board=$i -with-linux-prefix=$linux_prefix arm-unknown-linux-gnu
+ cd ../"$i"-debug
+ $blob_src/configure --enable-maintainer-mode --with-board=$i -with-linux-prefix=$linux_prefix --enable-blob-debug arm-unknown-linux-gnu
+ cd ..
+done
+
|