From 7ba05735b3c0b79e98d3a9168c73857ec48b430f Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Thu, 30 Jun 2005 09:48:23 +0000 Subject: initial nslu2-linux infrastructure checkin --- .mtn-ignore | 7 +++ .mtn2git_empty | 0 Makefile | 74 ++++++++++++++++++++++++++++++ openslug/.mt-ignore | 4 ++ openslug/.mtn2git_empty | 0 openslug/Makefile | 48 ++++++++++++++++++++ openslug/conf/.mt-ignore | 1 + openslug/conf/.mtn2git_empty | 0 openslug/conf/local.conf.template | 96 +++++++++++++++++++++++++++++++++++++++ unslung/.mt-ignore | 4 ++ unslung/.mtn2git_empty | 0 unslung/Makefile | 48 ++++++++++++++++++++ unslung/conf/.mt-ignore | 1 + unslung/conf/.mtn2git_empty | 0 unslung/conf/local.conf.template | 59 ++++++++++++++++++++++++ 15 files changed, 342 insertions(+) create mode 100644 .mtn-ignore create mode 100644 .mtn2git_empty create mode 100644 Makefile create mode 100644 openslug/.mt-ignore create mode 100644 openslug/.mtn2git_empty create mode 100644 openslug/Makefile create mode 100644 openslug/conf/.mt-ignore create mode 100644 openslug/conf/.mtn2git_empty create mode 100644 openslug/conf/local.conf.template create mode 100644 unslung/.mt-ignore create mode 100644 unslung/.mtn2git_empty create mode 100644 unslung/Makefile create mode 100644 unslung/conf/.mt-ignore create mode 100644 unslung/conf/.mtn2git_empty create mode 100644 unslung/conf/local.conf.template diff --git a/.mtn-ignore b/.mtn-ignore new file mode 100644 index 0000000000..170b9c14e8 --- /dev/null +++ b/.mtn-ignore @@ -0,0 +1,7 @@ +bitbake +downloads +monotone +oe-symlinks +openembedded +optware + diff --git a/.mtn2git_empty b/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 diff --git a/Makefile b/Makefile new file mode 100644 index 0000000000..c56fcbc417 --- /dev/null +++ b/Makefile @@ -0,0 +1,74 @@ +# Makefile for the NSLU2 Linux development system +# Licensed under the GPL v2 or later + +all: update build + +build: unslung-build openslug-build optware-build + +setup: monotone-setup bitbake-setup openembedded-setup oe-symlinks-setup optware-setup + +update: monotone-update bitbake-update openembedded-update oe-symlinks-update optware-update + +clobber: optware-clobber oe-symlinks-clobber openembedded-clobber bitbake-clobber + +unslung-build: + ( cd unslung ; make ) + +openslug-build: + ( cd openslug ; make ) + +optware-build: + ( cd optware ; make ) + +monotone-setup monotone/nslu2-linux.db unslung/Makefile openslug/Makefile: + [ -e monotone/nslu2-linux.db ] || ( mkdir -p monotone && monotone -d monotone/nslu2-linux.db db init ) + ( monotone -d monotone/nslu2-linux.db pull ewi546.ewi.utwente.nl org.openembedded ) + ( monotone -d monotone/nslu2-linux.db unset database default-server ) + ( monotone -d monotone/nslu2-linux.db unset database default-collection ) + ( monotone -d monotone/nslu2-linux.db pull mtn.nslu2-linux.org org ) + [ -e MT ] || ( monotone -d monotone/nslu2-linux.db co -b org.nslu2-linux.dev . ) + [ -e downloads ] || mkdir -p downloads + [ -e unslung/downloads ] || ( cd unslung ; ln -s ../downloads . ) + [ -e openslug/downloads ] || ( cd openslug ; ln -s ../downloads . ) + +monotone-update: monotone/nslu2-linux.db + monotone pull && monotone update + +bitbake-setup bitbake/bin/bitbake: + [ -e bitbake/bin/bitbake ] || ( svn co svn://svn.berlios.de/bitbake/trunk/bitbake ) + +bitbake-update: bitbake/bin/bitbake + ( cd bitbake ; svn update ) + +bitbake-clobber: + rm -rf bitbake + +openembedded-setup openembedded/conf/machine/nslu2.conf: + [ -e openembedded/conf/machine/nslu2.conf ] || monotone co -b org.openembedded.nslu2-linux openembedded + +openembedded-update: openembedded/conf/machine/nslu2.conf + ( cd openembedded ; monotone update ) + +openembedded-clobber: + rm -rf openembedded + +oe-symlinks-setup oe-symlinks/packages: + [ -e oe-symlinks/packages ] || ( svn co svn://svn.berlios.de/openslug/trunk/openslug/nslu2-linux oe-symlinks ) + +oe-symlinks-update: oe-symlinks/packages + ( cd oe-symlinks ; svn update ) + +oe-symlinks-clobber: + rm -rf oe-symlinks + +optware-setup optware/Makefile: + [ -e optware/Makefile ] || ( cvs -d :pserver:anonymous@cvs.sf.net:/cvsroot/nslu co -d optware unslung ) + [ -e optware/downloads ] || ( cd optware ; ln -s ../downloads . ) + +optware-update: optware/Makefile + ( cd optware ; cvs update -d -P ) + +optware-clobber: + rm -rf optware + +# End of Makefile diff --git a/openslug/.mt-ignore b/openslug/.mt-ignore new file mode 100644 index 0000000000..dd5df82133 --- /dev/null +++ b/openslug/.mt-ignore @@ -0,0 +1,4 @@ +downloads +openslug-source.tar.gz +setup-env +tmp diff --git a/openslug/.mtn2git_empty b/openslug/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 diff --git a/openslug/Makefile b/openslug/Makefile new file mode 100644 index 0000000000..a0c0ec1e72 --- /dev/null +++ b/openslug/Makefile @@ -0,0 +1,48 @@ +# Makefile for OpenSlug +# Licensed under the GPL v2 or later + +openslug-firmware: setup-env conf/local.conf + ( source setup-env ; bitbake openslug-packages ) + +# This does the same thing but with a clean environment +# The HOME setting prevents user environment settings +# from changing the build. CCACHE_DIR is necessary to +# prevent ccache (if installed) attempting to use a +# .cache in the home directory. +openslug-firmware-safe: setup-env conf/local.conf + env -i CCACHE_DISABLE=1 CCACHE_DIR="`pwd`/tmp/ccache" HOME=/dev/null \ + sh -c 'source setup-env; bitbake openslug-packages' + +setup-env: + [ -e bitbake ] || ( ln -s ../bitbake . ) + [ -e downloads ] || ( ln -s ../downloads . ) + [ -e openembedded ] || ( ln -s ../openembedded . ) + [ -e oe-symlinks ] || ( ln -s ../oe-symlinks . ) + echo 'OEROOT='`pwd` > setup-env + echo 'OESYS=$$OEROOT/bitbake/' >> setup-env + echo 'PKGDIR=$$OEROOT/openembedded/' >> setup-env + echo 'OEBUILD=$$OEROOT' >> setup-env + echo 'export PYTHONPATH=$$OESYS/lib' >>setup-env + echo 'export BBPATH=$$OEBUILD:$$PKGDIR:$$OESYS' >> setup-env + echo 'export PATH=$$OESYS/bin/:$$PATH' >> setup-env + echo 'export LD_LIBRARY_PATH=' >> setup-env + echo 'export LANG=C' >> setup-env + echo 'unset LC_CTYPE' >> setup-env + echo 'unset CC' >> setup-env + echo 'unset CXX' >> setup-env + echo 'alias bb=bitbake' >> setup-env + echo 'echo Environment set up for OpenSlug development.' >> setup-env + +conf/local.conf: + sed -e "s|%%%OEROOT%%%|`pwd`|" conf/local.conf.template > conf/local.conf + +clobber: + rm -rf tmp + +openslug-source: + tar zcvf openslug-source.tar.gz --exclude=MT Makefile bitbake conf openembedded oe-symlinks + +distclean: clobber + rm -rf setup-env conf/local.conf bitbake downloads openembedded oe-symlinks + +# End of Makefile diff --git a/openslug/conf/.mt-ignore b/openslug/conf/.mt-ignore new file mode 100644 index 0000000000..f21e1b217b --- /dev/null +++ b/openslug/conf/.mt-ignore @@ -0,0 +1 @@ +local.conf diff --git a/openslug/conf/.mtn2git_empty b/openslug/conf/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 diff --git a/openslug/conf/local.conf.template b/openslug/conf/local.conf.template new file mode 100644 index 0000000000..f5095c54c5 --- /dev/null +++ b/openslug/conf/local.conf.template @@ -0,0 +1,96 @@ +OEROOT = "%%%OEROOT%%%" + +# Use this to specify where OE should place the downloaded sources into +DL_DIR = "${OEROOT}/downloads" + +# Delete the line below. Then specify which .oe files to consider for +# your build. Typically this will be something like OEFILES = "/path/to/packages/*/*.oe" +# BBFILES := "/home/slug/openembedded/packages/*/*.bb" +BBFILES := "${OEROOT}/oe-symlinks/packages/*/*.bb" + +# Use the OEMASK below to instruct OE to _NOT_ consider some .oe files +# This is a regulary expression, so be sure to get your parenthesis balanced. +OEMASK = "" + +# Uncomment this if you want to use a prebuilt toolchain. You will need to +# provide packages for toolchain and additional libraries yourself. You also +# have to set PATH in your environment to make sure OE finds additional binaries. +# Note: You will definitely need to say: +# ASSUME_PROVIDED = "virtual/arm-linux-gcc-2.95" +# to build any of two Linux 2.4 Embedix kernels, +# i.e. openzaurus-sa-2.4.18 and openzaurus-pxa-2.4.18 - and don't forget +# to rename the binaries as instructed in the Wiki. +# ASSUME_PROVIDED = "virtual/${TARGET_PREFIX}gcc virtual/libc" + +# Select between multiple alternative providers, if more than one is eligible. +PREFERRED_PROVIDERS += " virtual/${TARGET_PREFIX}gcc-initial:gcc-cross-initial" +PREFERRED_PROVIDERS += " virtual/${TARGET_PREFIX}gcc:gcc-cross" +PREFERRED_PROVIDERS += " virtual/${TARGET_PREFIX}g++:gcc-cross" + +# Uncomment this to specify where OE should create its temporary files. +# Note that a full build of everything in OE will take GigaBytes of hard +# disk space, so make sure to free enough space. The default TMPDIR is +# /tmp +TMPDIR = ${OEROOT}/tmp + +# Uncomment this to specify a machine to build for. See the conf directory +# for machines currently known to OpenEmbedded. +MACHINE = "nslu2" + +# Uncomment this to select a distribution policy. See the conf directory +# for distributions currently known to OpenEmbedded. +DISTRO = "openslug" + +# Add to this any extra projects (packages) to be built with the image +# (look in openembedded/packages/openslug-packages.bb for a list of +# packages known to build with openslug.) +OPENSLUG_EXTRA_DEPENDS = "" + +# Add to this specific built .ipk package names to add to the image. +# These will be included in the root flash file system stored on the +# NSLU2. Be careful not to fill the file system, OpenSlug will not +# boot if the file system is close to full. +OPENSLUG_EXTRA_RDEPENDS = "" + +# Support for a variety of file systems is built in to the openslug +# image, programs to format disks with these file systems may be +# added or removed. By default ext2. ext3 and reiserfs supported +# is included by the following lines. +# +# These lines add support for formatting ext2 and ext3 file systems +# on a hard disk attached to the NSLU2. ext3 is the standard Linux +# file system. (OPENSLUG_EXT2_PROGS is defined in +# openembedded/conf/distro/openslug.conf) +OPENSLUG_EXTRA_DEPENDS += "e2fsprogs" +OPENSLUG_EXTRA_RDEPENDS += "${OPENSLUG_EXT2_PROGS}" + +# These lines add support for formatting reiserfs file systems on +# a hard disk. +OPENSLUG_EXTRA_DEPENDS += "reiserfsprogs" +OPENSLUG_EXTRA_RDEPENDS += "reiserfsprogs" + +# These lines add a build of the 'upslug' program which may be +# used to download the final image to an NSLU2. The program can +# be found within the tmp/work/upslug-native* directory. +OPENSLUG_EXTRA_DEPENDS += "upslug-native" + +# These lines add support for an X/Y/ZModem package called lrzsz +# (this is of use for people with modified NSLU2 hardware which +# supports a serial port.) +OPENSLUG_EXTRA_DEPENDS += "lrzsz" +OPENSLUG_EXTRA_RDEPENDS += "lrzsz" + + +# Uncomment this to disable the parse cache (not recommended). +CACHE = "${OEROOT}/tmp/cache" + +# Uncomment this if you want OE to emit the log if a build fails. +OEINCLUDELOGS = "yes" + +# Specifies a location to search for pre-generated tarballs when fetching +# a cvs:// URI. Uncomment this, if you not want to pull directly from CVS. +CVS_TARBALL_STASH = "http://www.oesources.org/source/current/" + +# INHERIT += "src_distribute_local pkg_distribute" + +# EDIT THIS FILE and then remove the line below before using! diff --git a/unslung/.mt-ignore b/unslung/.mt-ignore new file mode 100644 index 0000000000..2cf465fead --- /dev/null +++ b/unslung/.mt-ignore @@ -0,0 +1,4 @@ +downloads +unslung-source.tar.gz +setup-env +tmp diff --git a/unslung/.mtn2git_empty b/unslung/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 diff --git a/unslung/Makefile b/unslung/Makefile new file mode 100644 index 0000000000..b64453007b --- /dev/null +++ b/unslung/Makefile @@ -0,0 +1,48 @@ +# Makefile for Unslung +# Licensed under the GPL v2 or later + +unslung-firmware: setup-env conf/local.conf + (source setup-env ; bitbake unslung-packages) + +# This does the same thing but with a clean environment +# The HOME setting prevents user environment settings +# from changing the build. CCACHE_DIR is necessary to +# prevent ccache (if installed) attempting to use a +# .cache in the home directory. +unslung-firmware-safe: setup-env conf/local.conf + env -i CCACHE_DISABLE=1 CCACHE_DIR="`pwd`/tmp/ccache" HOME=/dev/null \ + sh -c 'source setup-env; bitbake unslung-packages' + +setup-env: + [ -e bitbake ] || ( ln -s ../bitbake . ) + [ -e downloads ] || ( ln -s ../downloads . ) + [ -e openembedded ] || ( ln -s ../openembedded . ) + [ -e oe-symlinks ] || ( ln -s ../oe-symlinks . ) + echo 'OEROOT='`pwd` > setup-env + echo 'OESYS=$$OEROOT/bitbake/' >> setup-env + echo 'PKGDIR=$$OEROOT/openembedded/' >> setup-env + echo 'OEBUILD=$$OEROOT' >> setup-env + echo 'BBPATH=$$OEBUILD:$$PKGDIR:$$OESYS' >> setup-env + echo 'PATH=$$OESYS/bin/:$$PATH' >> setup-env + echo 'LD_LIBRARY_PATH=' >> setup-env + echo 'export PATH LD_LIBRARY_PATH BBPATH' >> setup-env + echo 'export LANG=C' >> setup-env + echo 'unset LC_CTYPE' >> setup-env + echo 'unset CC' >> setup-env + echo 'unset CXX' >> setup-env + echo 'alias bb=bitbake' >> setup-env + echo 'echo Environment set up for Unslung development.' >> setup-env + +conf/local.conf: + sed -e "s|%%%OEROOT%%%|`pwd`|" conf/local.conf.template > conf/local.conf + +clobber: + rm -rf tmp + +unslung-source: + tar zcvf unslung-source.tar.gz --exclude=MT Makefile bitbake conf openembedded oe-symlinks + +distclean: clobber + rm -f setup-env conf/local.conf bitbake downloads openembedded oe-symlinks + +# End of Makefile diff --git a/unslung/conf/.mt-ignore b/unslung/conf/.mt-ignore new file mode 100644 index 0000000000..f21e1b217b --- /dev/null +++ b/unslung/conf/.mt-ignore @@ -0,0 +1 @@ +local.conf diff --git a/unslung/conf/.mtn2git_empty b/unslung/conf/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 diff --git a/unslung/conf/local.conf.template b/unslung/conf/local.conf.template new file mode 100644 index 0000000000..a13923f749 --- /dev/null +++ b/unslung/conf/local.conf.template @@ -0,0 +1,59 @@ +OEROOT = "%%%OEROOT%%%" + +# Use this to specify where OE should place the downloaded sources into +DL_DIR = "${OEROOT}/downloads" + +# Delete the line below. Then specify which .oe files to consider for +# your build. Typically this will be something like OEFILES = "/path/to/packages/*/*.oe" +# BBFILES := "/home/slug/openembedded/packages/*/*.bb" +BBFILES := "${OEROOT}/oe-symlinks/packages/*/*.bb" + +# Use the OEMASK below to instruct OE to _NOT_ consider some .oe files +# This is a regulary expression, so be sure to get your parenthesis balanced. +OEMASK = "" + +# Uncomment this if you want to use a prebuilt toolchain. You will need to +# provide packages for toolchain and additional libraries yourself. You also +# have to set PATH in your environment to make sure OE finds additional binaries. +# Note: You will definitely need to say: +# ASSUME_PROVIDED = "virtual/arm-linux-gcc-2.95" +# to build any of two Linux 2.4 Embedix kernels, +# i.e. openzaurus-sa-2.4.18 and openzaurus-pxa-2.4.18 - and don't forget +# to rename the binaries as instructed in the Wiki. +# ASSUME_PROVIDED = "virtual/${TARGET_PREFIX}gcc virtual/libc" + +# Select between multiple alternative providers, if more than one is eligible. +PREFERRED_PROVIDERS += " virtual/${TARGET_PREFIX}gcc-initial:gcc-cross-initial" +PREFERRED_PROVIDERS += " virtual/${TARGET_PREFIX}gcc:gcc-cross" +PREFERRED_PROVIDERS += " virtual/${TARGET_PREFIX}g++:gcc-cross" + +# Uncomment this to specify where OE should create its temporary files. +# Note that a full build of everything in OE will take GigaBytes of hard +# disk space, so make sure to free enough space. The default TMPDIR is +# /tmp +TMPDIR = ${OEROOT}/tmp + +# Uncomment this to specify a machine to build for. See the conf directory +# for machines currently known to OpenEmbedded. +MACHINE = "nslu2" + +# Uncomment this to select a distribution policy. See the conf directory +# for distributions currently known to OpenEmbedded. +DISTRO = "unslung" + +OPENSLUG_EXTRA_DEPENDS = "" +OPENSLUG_EXTRA_RDEPENDS = "" + +# Uncomment this to disable the parse cache (not recommended). +CACHE = "${OEROOT}/tmp/cache" + +# Uncomment this if you want OE to emit the log if a build fails. +OEINCLUDELOGS = "yes" + +# Specifies a location to search for pre-generated tarballs when fetching +# a cvs:// URI. Uncomment this, if you not want to pull directly from CVS. +CVS_TARBALL_STASH = "http://www.oesources.org/source/current/" + +# INHERIT += "src_distribute_local pkg_distribute" + +# EDIT THIS FILE and then remove the line below before using! -- cgit v1.2.3 From fbf9d621ed0b800a47c2eacb01414ce50dec37b9 Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Thu, 30 Jun 2005 09:56:22 +0000 Subject: Updated Makefile for new repository location --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index c56fcbc417..2cb86072b8 100644 --- a/Makefile +++ b/Makefile @@ -22,10 +22,10 @@ optware-build: monotone-setup monotone/nslu2-linux.db unslung/Makefile openslug/Makefile: [ -e monotone/nslu2-linux.db ] || ( mkdir -p monotone && monotone -d monotone/nslu2-linux.db db init ) - ( monotone -d monotone/nslu2-linux.db pull ewi546.ewi.utwente.nl org.openembedded ) + ( monotone -d monotone/nslu2-linux.db pull monotone.vanille.de org.openembedded ) ( monotone -d monotone/nslu2-linux.db unset database default-server ) ( monotone -d monotone/nslu2-linux.db unset database default-collection ) - ( monotone -d monotone/nslu2-linux.db pull mtn.nslu2-linux.org org ) + ( monotone -d monotone/nslu2-linux.db pull monotone.nslu2-linux.org org ) [ -e MT ] || ( monotone -d monotone/nslu2-linux.db co -b org.nslu2-linux.dev . ) [ -e downloads ] || mkdir -p downloads [ -e unslung/downloads ] || ( cd unslung ; ln -s ../downloads . ) -- cgit v1.2.3 From 68e56dca371c4f1cc0ad409e2759c68ea7961774 Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Sat, 2 Jul 2005 07:43:52 +0000 Subject: Renamed most targets to be active voice, and added PHONY declarations. --- Makefile | 94 +++++++++++++++++++++++++++++++++++++++++----------------------- 1 file changed, 61 insertions(+), 33 deletions(-) diff --git a/Makefile b/Makefile index 2cb86072b8..b602b15fff 100644 --- a/Makefile +++ b/Makefile @@ -1,26 +1,35 @@ # Makefile for the NSLU2 Linux development system # Licensed under the GPL v2 or later +.PHONY: all all: update build -build: unslung-build openslug-build optware-build +.PHONY: build +build: build-unslung build-openslug build-optware -setup: monotone-setup bitbake-setup openembedded-setup oe-symlinks-setup optware-setup +.PHONY: setup +setup: setup-master setup-bitbake setup-openembedded setup-oe-symlinks setup-optware -update: monotone-update bitbake-update openembedded-update oe-symlinks-update optware-update +.PHONY: update +update: update-master update-bitbake update-openembedded update-oe-symlinks update-optware -clobber: optware-clobber oe-symlinks-clobber openembedded-clobber bitbake-clobber +.PHONY: clobber +clobber: clobber-optware clobber-oe-symlinks clobber-openembedded clobber-bitbake -unslung-build: +.PHONY: unslung build-unslung +unslung build-unslung: unslung/Makefile bitbake/bin/bitbake openembedded/conf/machine/nslu2.conf oe-symlinks/packages ( cd unslung ; make ) -openslug-build: +.PHONY: openslug build-openslug +openslug build-openslug: openslug/Makefile bitbake/bin/bitbake openembedded/conf/machine/nslu2.conf oe-symlinks/packages ( cd openslug ; make ) -optware-build: +.PHONY: optware build-optware +optware build-optware: optware/Makefile ( cd optware ; make ) -monotone-setup monotone/nslu2-linux.db unslung/Makefile openslug/Makefile: +.PHONY: setup-master +setup-master monotone/nslu2-linux.db unslung/Makefile openslug/Makefile: [ -e monotone/nslu2-linux.db ] || ( mkdir -p monotone && monotone -d monotone/nslu2-linux.db db init ) ( monotone -d monotone/nslu2-linux.db pull monotone.vanille.de org.openembedded ) ( monotone -d monotone/nslu2-linux.db unset database default-server ) @@ -31,44 +40,63 @@ monotone-setup monotone/nslu2-linux.db unslung/Makefile openslug/Makefile: [ -e unslung/downloads ] || ( cd unslung ; ln -s ../downloads . ) [ -e openslug/downloads ] || ( cd openslug ; ln -s ../downloads . ) -monotone-update: monotone/nslu2-linux.db - monotone pull && monotone update - -bitbake-setup bitbake/bin/bitbake: +.PHONY: setup-bitbake +setup-bitbake bitbake/bin/bitbake: [ -e bitbake/bin/bitbake ] || ( svn co svn://svn.berlios.de/bitbake/trunk/bitbake ) -bitbake-update: bitbake/bin/bitbake - ( cd bitbake ; svn update ) +.PHONY: setup-openembedded +setup-openembedded openembedded/conf/machine/nslu2.conf: monotone/nslu2-linux.db + [ -e openembedded/conf/machine/nslu2.conf ] || monotone co -b org.openembedded.nslu2-linux openembedded -bitbake-clobber: - rm -rf bitbake +.PHONY: setup-oe-symlinks +setup-oe-symlinks oe-symlinks/packages: + [ -e oe-symlinks/packages ] || ( svn co svn://svn.berlios.de/openslug/trunk/openslug/nslu2-linux oe-symlinks ) -openembedded-setup openembedded/conf/machine/nslu2.conf: - [ -e openembedded/conf/machine/nslu2.conf ] || monotone co -b org.openembedded.nslu2-linux openembedded +.PHONY: setup-optware +setup-optware optware/Makefile: + [ -e optware/Makefile ] || ( cvs -d :pserver:anonymous@cvs.sf.net:/cvsroot/nslu co -d optware unslung ) + [ -e optware/downloads ] || ( cd optware ; ln -s ../downloads . ) -openembedded-update: openembedded/conf/machine/nslu2.conf - ( cd openembedded ; monotone update ) +.PHONY: update-master +update-master: monotone/nslu2-linux.db + monotone pull && monotone update -openembedded-clobber: - rm -rf openembedded +.PHONY: update-bitbake +update-bitbake: bitbake/bin/bitbake + ( cd bitbake ; svn update ) -oe-symlinks-setup oe-symlinks/packages: - [ -e oe-symlinks/packages ] || ( svn co svn://svn.berlios.de/openslug/trunk/openslug/nslu2-linux oe-symlinks ) +.PHONY: update-openembedded +update-openembedded: openembedded/conf/machine/nslu2.conf + ( cd openembedded ; monotone pull && monotone update ) -oe-symlinks-update: oe-symlinks/packages +.PHONY: update-oe-symlinks +update-oe-symlinks: oe-symlinks/packages ( cd oe-symlinks ; svn update ) -oe-symlinks-clobber: - rm -rf oe-symlinks +.PHONY: update-optware +update-optware: optware/Makefile + ( cd optware ; cvs update -d -P ) -optware-setup optware/Makefile: - [ -e optware/Makefile ] || ( cvs -d :pserver:anonymous@cvs.sf.net:/cvsroot/nslu co -d optware unslung ) - [ -e optware/downloads ] || ( cd optware ; ln -s ../downloads . ) +.PHONY: clobber-bitbake +clobber-bitbake: + rm -rf bitbake -optware-update: optware/Makefile - ( cd optware ; cvs update -d -P ) +.PHONY: clobber-openembedded +clobber-openembedded: + rm -rf openembedded + +.PHONY: clobber-oe-symlinks +clobber-oe-symlinks: + rm -rf oe-symlinks -optware-clobber: +.PHONY: clobber-optware +clobber-optware: rm -rf optware +# Deprecated targets + +unslung-build : build-unslung +openslug-build : build-openslug +optware-build : build-optware + # End of Makefile -- cgit v1.2.3 From 454bea1b24e121d12495506a163b44d440077a8a Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Sat, 2 Jul 2005 07:46:58 +0000 Subject: Added the push-master and upload-master targets. --- Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Makefile b/Makefile index b602b15fff..2602b22e21 100644 --- a/Makefile +++ b/Makefile @@ -77,6 +77,14 @@ update-oe-symlinks: oe-symlinks/packages update-optware: optware/Makefile ( cd optware ; cvs update -d -P ) +.PHONY: push-master +push-master: monotone/nslu2-linux.db + monotone merge && monotone push + +.PHONY: upload-master +upload-master: monotone/nslu2-linux.db + scp Makefile www.nslu2-linux.org:/home/nslu2/public_html/Makefile + .PHONY: clobber-bitbake clobber-bitbake: rm -rf bitbake -- cgit v1.2.3 From 2757d7a41136a94c14b5f0ee1c2003ad10e9e482 Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Sat, 2 Jul 2005 07:49:56 +0000 Subject: Fixed the upload-master target. --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 2602b22e21..f36e168f2e 100644 --- a/Makefile +++ b/Makefile @@ -79,11 +79,11 @@ update-optware: optware/Makefile .PHONY: push-master push-master: monotone/nslu2-linux.db - monotone merge && monotone push + monotone push .PHONY: upload-master -upload-master: monotone/nslu2-linux.db - scp Makefile www.nslu2-linux.org:/home/nslu2/public_html/Makefile +upload-master: push-master + scp Makefile www.nslu2-linux.org:/home/nslu/public_html/Makefile .PHONY: clobber-bitbake clobber-bitbake: -- cgit v1.2.3 From f52bde10a6e08665afdae9d371a4fffc0ba05a38 Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Sat, 2 Jul 2005 09:01:55 +0000 Subject: Added a number of administrative targets --- Makefile | 62 +++++++++++++++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 55 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index f36e168f2e..4b410fd0e2 100644 --- a/Makefile +++ b/Makefile @@ -28,14 +28,19 @@ openslug build-openslug: openslug/Makefile bitbake/bin/bitbake openembedded/conf optware build-optware: optware/Makefile ( cd optware ; make ) -.PHONY: setup-master -setup-master monotone/nslu2-linux.db unslung/Makefile openslug/Makefile: +.PHONY: setup-monotone +setup-monotone monotone/nslu2-linux.db: [ -e monotone/nslu2-linux.db ] || ( mkdir -p monotone && monotone -d monotone/nslu2-linux.db db init ) ( monotone -d monotone/nslu2-linux.db pull monotone.vanille.de org.openembedded ) ( monotone -d monotone/nslu2-linux.db unset database default-server ) ( monotone -d monotone/nslu2-linux.db unset database default-collection ) ( monotone -d monotone/nslu2-linux.db pull monotone.nslu2-linux.org org ) + +unslung/Makefile openslug/Makefile: monotone/nslu2-linux.db [ -e MT ] || ( monotone -d monotone/nslu2-linux.db co -b org.nslu2-linux.dev . ) + +.PHONY: setup-master +setup-master: setup-monotone unslung/Makefile openslug/Makefile [ -e downloads ] || mkdir -p downloads [ -e unslung/downloads ] || ( cd unslung ; ln -s ../downloads . ) [ -e openslug/downloads ] || ( cd openslug ; ln -s ../downloads . ) @@ -59,7 +64,11 @@ setup-optware optware/Makefile: .PHONY: update-master update-master: monotone/nslu2-linux.db - monotone pull && monotone update + monotone pull + monotone update + if [ `monotone automate heads org.nslu2-linux.dev | wc -l` != "1" ] ; then \ + monotone merge -b org.nslu2-linux.dev ; \ + fi .PHONY: update-bitbake update-bitbake: bitbake/bin/bitbake @@ -67,7 +76,11 @@ update-bitbake: bitbake/bin/bitbake .PHONY: update-openembedded update-openembedded: openembedded/conf/machine/nslu2.conf - ( cd openembedded ; monotone pull && monotone update ) + monotone pull + ( cd openembedded ; monotone update ) + if [ `monotone automate heads org.openembedded.nslu2-linux | wc -l` != "1" ] ; then \ + monotone merge -b org.openembedded.nslu2-linux ; \ + fi .PHONY: update-oe-symlinks update-oe-symlinks: oe-symlinks/packages @@ -81,9 +94,9 @@ update-optware: optware/Makefile push-master: monotone/nslu2-linux.db monotone push -.PHONY: upload-master -upload-master: push-master - scp Makefile www.nslu2-linux.org:/home/nslu/public_html/Makefile +.PHONY: push-openembedded +push-openembedded: openembedded/conf/machine/nslu2.conf + ( cd openembedded ; monotone push ) .PHONY: clobber-bitbake clobber-bitbake: @@ -107,4 +120,39 @@ unslung-build : build-unslung openslug-build : build-openslug optware-build : build-optware +# Core team use only targets + +.PHONY: publish-master +publish-master: push-master + scp Makefile www.nslu2-linux.org:/home/nslu/public_html/Makefile + +.PHONY: import-openembedded +import-openembedded: openembedded/conf/machine/nslu2.conf + monotone pull monotone.vanille.de org.openembedded + if [ `monotone automate heads org.openembedded.dev | wc -l` != "1" ] ; then \ + monotone merge -b org.openembedded.dev ; \ + fi + +.PHONY: propagate-from-oe +propagate-from-oe: + monotone propagate org.openembedded.dev org.openembedded.nslu2-linux + if [ `monotone automate heads org.openembedded.nslu2-linux | wc -l` != "1" ] ; then \ + monotone merge -b org.openembedded.nslu2-linux ; \ + fi + +.PHONY: propagate-to-oe +propagate-to-oe: + monotone propagate org.openembedded.nslu2-linux org.openembedded.dev + if [ `monotone automate heads org.openembedded.dev | wc -l` != "1" ] ; then \ + monotone merge -b org.openembedded.dev ; \ + fi + +.PHONY: export-openembedded +export-openembedded: openembedded/conf/machine/nslu2.conf + monotone push monotone.vanille.de org.openembedded + +.PHONY: publish-openembedded +publish-openembedded: import-openembedded propagate-from-oe update-openembedded \ + propagate-to-oe push-openembedded export-openembedded + # End of Makefile -- cgit v1.2.3 From bf2b82d94119212d670f69be3a985bdb01cca984 Mon Sep 17 00:00:00 2001 From: John Bowler Date: Sat, 2 Jul 2005 21:15:14 +0000 Subject: Fix first build so that 'make' (no args) works. --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 4b410fd0e2..71bff95691 100644 --- a/Makefile +++ b/Makefile @@ -36,8 +36,8 @@ setup-monotone monotone/nslu2-linux.db: ( monotone -d monotone/nslu2-linux.db unset database default-collection ) ( monotone -d monotone/nslu2-linux.db pull monotone.nslu2-linux.org org ) -unslung/Makefile openslug/Makefile: monotone/nslu2-linux.db - [ -e MT ] || ( monotone -d monotone/nslu2-linux.db co -b org.nslu2-linux.dev . ) +unslung/Makefile openslug/Makefile MT/revision: monotone/nslu2-linux.db + [ -e MT/revision ] || ( monotone -d monotone/nslu2-linux.db co -b org.nslu2-linux.dev . ) .PHONY: setup-master setup-master: setup-monotone unslung/Makefile openslug/Makefile @@ -50,7 +50,7 @@ setup-bitbake bitbake/bin/bitbake: [ -e bitbake/bin/bitbake ] || ( svn co svn://svn.berlios.de/bitbake/trunk/bitbake ) .PHONY: setup-openembedded -setup-openembedded openembedded/conf/machine/nslu2.conf: monotone/nslu2-linux.db +setup-openembedded openembedded/conf/machine/nslu2.conf: MT/revision [ -e openembedded/conf/machine/nslu2.conf ] || monotone co -b org.openembedded.nslu2-linux openembedded .PHONY: setup-oe-symlinks @@ -63,7 +63,7 @@ setup-optware optware/Makefile: [ -e optware/downloads ] || ( cd optware ; ln -s ../downloads . ) .PHONY: update-master -update-master: monotone/nslu2-linux.db +update-master: MT/revision monotone pull monotone update if [ `monotone automate heads org.nslu2-linux.dev | wc -l` != "1" ] ; then \ -- cgit v1.2.3 From 9bb59f9294687dfda51dd8832166de5d303b036f Mon Sep 17 00:00:00 2001 From: John Bowler Date: Sun, 3 Jul 2005 16:54:15 +0000 Subject: Fix creation of downloads directory in absence of make setup --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 71bff95691..14968fe97a 100644 --- a/Makefile +++ b/Makefile @@ -17,11 +17,11 @@ update: update-master update-bitbake update-openembedded update-oe-symlinks upda clobber: clobber-optware clobber-oe-symlinks clobber-openembedded clobber-bitbake .PHONY: unslung build-unslung -unslung build-unslung: unslung/Makefile bitbake/bin/bitbake openembedded/conf/machine/nslu2.conf oe-symlinks/packages +unslung build-unslung: unslung/Makefile downloads bitbake/bin/bitbake openembedded/conf/machine/nslu2.conf oe-symlinks/packages ( cd unslung ; make ) .PHONY: openslug build-openslug -openslug build-openslug: openslug/Makefile bitbake/bin/bitbake openembedded/conf/machine/nslu2.conf oe-symlinks/packages +openslug build-openslug: openslug/Makefile downloads bitbake/bin/bitbake openembedded/conf/machine/nslu2.conf oe-symlinks/packages ( cd openslug ; make ) .PHONY: optware build-optware @@ -40,7 +40,7 @@ unslung/Makefile openslug/Makefile MT/revision: monotone/nslu2-linux.db [ -e MT/revision ] || ( monotone -d monotone/nslu2-linux.db co -b org.nslu2-linux.dev . ) .PHONY: setup-master -setup-master: setup-monotone unslung/Makefile openslug/Makefile +setup-master downloads: setup-monotone unslung/Makefile openslug/Makefile [ -e downloads ] || mkdir -p downloads [ -e unslung/downloads ] || ( cd unslung ; ln -s ../downloads . ) [ -e openslug/downloads ] || ( cd openslug ; ln -s ../downloads . ) @@ -87,7 +87,7 @@ update-oe-symlinks: oe-symlinks/packages ( cd oe-symlinks ; svn update ) .PHONY: update-optware -update-optware: optware/Makefile +update-optware: optware/Makefile downloads ( cd optware ; cvs update -d -P ) .PHONY: push-master -- cgit v1.2.3 From ee3c72cd0baa112c221a3e9175c190f58fdde1e2 Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Sun, 3 Jul 2005 20:46:05 +0000 Subject: Added upload-openslug-cross admin target --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 4b410fd0e2..22858e6abe 100644 --- a/Makefile +++ b/Makefile @@ -126,6 +126,10 @@ optware-build : build-optware publish-master: push-master scp Makefile www.nslu2-linux.org:/home/nslu/public_html/Makefile +.PHONY: upload-openembedded-cross +upload-openslug-cross: openslug/Makefile + rsync -avr openslug/tmp/deploy/ipk/ unslung@nslu.sf.net:nslu/feeds/openslug/unstable/ + .PHONY: import-openembedded import-openembedded: openembedded/conf/machine/nslu2.conf monotone pull monotone.vanille.de org.openembedded -- cgit v1.2.3 From 8aee402b8b06dda6a228cb48de7c9f111c614baf Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Sat, 9 Jul 2005 08:38:40 +0000 Subject: Fixed the update-openembedded target so that it could handle multiple heads --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 7d0b05ca15..302d404aec 100644 --- a/Makefile +++ b/Makefile @@ -77,10 +77,10 @@ update-bitbake: bitbake/bin/bitbake .PHONY: update-openembedded update-openembedded: openembedded/conf/machine/nslu2.conf monotone pull - ( cd openembedded ; monotone update ) if [ `monotone automate heads org.openembedded.nslu2-linux | wc -l` != "1" ] ; then \ monotone merge -b org.openembedded.nslu2-linux ; \ fi + ( cd openembedded ; monotone update ) .PHONY: update-oe-symlinks update-oe-symlinks: oe-symlinks/packages -- cgit v1.2.3 From 2332977c51f23f37d3bb9b80f2ba4ba4cbbbec70 Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Sat, 9 Jul 2005 18:40:02 +0000 Subject: Added new targets for non-core write access --- Makefile | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/Makefile b/Makefile index 302d404aec..7aaf2e43e6 100644 --- a/Makefile +++ b/Makefile @@ -90,14 +90,6 @@ update-oe-symlinks: oe-symlinks/packages update-optware: optware/Makefile downloads ( cd optware ; cvs update -d -P ) -.PHONY: push-master -push-master: monotone/nslu2-linux.db - monotone push - -.PHONY: push-openembedded -push-openembedded: openembedded/conf/machine/nslu2.conf - ( cd openembedded ; monotone push ) - .PHONY: clobber-bitbake clobber-bitbake: rm -rf bitbake @@ -114,13 +106,17 @@ clobber-oe-symlinks: clobber-optware: rm -rf optware -# Deprecated targets +# Targets for use by those with write access to the repositories -unslung-build : build-unslung -openslug-build : build-openslug -optware-build : build-optware +.PHONY: push-master +push-master: monotone/nslu2-linux.db + monotone push + +.PHONY: push-openembedded +push-openembedded: openembedded/conf/machine/nslu2.conf + ( cd openembedded ; monotone push ) -# Core team use only targets +# Targets for use by core team members only .PHONY: publish-master publish-master: push-master -- cgit v1.2.3 From b8f86a084abbe3356eab61744906291feb5c37d3 Mon Sep 17 00:00:00 2001 From: Oyvind Repvik Date: Sun, 10 Jul 2005 00:36:16 +0000 Subject: lock Bitbake to 269 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 7d0b05ca15..a022147238 100644 --- a/Makefile +++ b/Makefile @@ -47,7 +47,7 @@ setup-master downloads: setup-monotone unslung/Makefile openslug/Makefile .PHONY: setup-bitbake setup-bitbake bitbake/bin/bitbake: - [ -e bitbake/bin/bitbake ] || ( svn co svn://svn.berlios.de/bitbake/trunk/bitbake ) + [ -e bitbake/bin/bitbake ] || ( svn co -r 269 svn://svn.berlios.de/bitbake/trunk/bitbake ) .PHONY: setup-openembedded setup-openembedded openembedded/conf/machine/nslu2.conf: MT/revision -- cgit v1.2.3 From 80fba26bf889f60e9460773f88e2e9354159811a Mon Sep 17 00:00:00 2001 From: Derek Young Date: Sun, 10 Jul 2005 02:35:32 +0000 Subject: Add developer targets --- Makefile | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Makefile b/Makefile index 2c02e6ee37..8370dd86bb 100644 --- a/Makefile +++ b/Makefile @@ -10,6 +10,9 @@ build: build-unslung build-openslug build-optware .PHONY: setup setup: setup-master setup-bitbake setup-openembedded setup-oe-symlinks setup-optware +.PHONY: setup-developer +setup: setup-master setup-bitbake setup-openembedded setup-oe-symlinks-developer setup-optware-developer + .PHONY: update update: update-master update-bitbake update-openembedded update-oe-symlinks update-optware @@ -62,6 +65,15 @@ setup-optware optware/Makefile: [ -e optware/Makefile ] || ( cvs -d :pserver:anonymous@cvs.sf.net:/cvsroot/nslu co -d optware unslung ) [ -e optware/downloads ] || ( cd optware ; ln -s ../downloads . ) +.PHONY: setup-oe-symlinks-developer +setup-oe-symlinks-developer oe-symlinks/packages: + [ -e oe-symlinks/packages ] || ( svn co svn+ssh://${SVN_USER}@svn.berlios.de/svnroot/repos/openslug/trunk/openslug/nslu2-linux oe-symlinks ) + +.PHONY: setup-optware-developer +setup-optware-developer optware/Makefile: + [ -e optware/Makefile ] || ( cvs -d :ext:${CVS_USER}@cvs.sf.net:/cvsroot/nslu co -d optware unslung ) + [ -e optware/downloads ] || ( cd optware ; ln -s ../downloads . ) + .PHONY: update-master update-master: MT/revision monotone pull -- cgit v1.2.3 From 3d46b5f67b46567411c9e2b1cf442b0a5df31db7 Mon Sep 17 00:00:00 2001 From: Oyvind Repvik Date: Sun, 10 Jul 2005 23:41:34 +0000 Subject: lock update-bitbake to rev. 269 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 2c02e6ee37..c93e5371b2 100644 --- a/Makefile +++ b/Makefile @@ -72,7 +72,7 @@ update-master: MT/revision .PHONY: update-bitbake update-bitbake: bitbake/bin/bitbake - ( cd bitbake ; svn update ) + ( cd bitbake ; svn -r 269 update ) .PHONY: update-openembedded update-openembedded: openembedded/conf/machine/nslu2.conf -- cgit v1.2.3 From 9902dcdddb760757cb3aaba80432f7ef2aa8d0c1 Mon Sep 17 00:00:00 2001 From: Oyvind Repvik Date: Sun, 10 Jul 2005 23:45:47 +0000 Subject: Make BITBAKE_REVISION change --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 8206c0fe2e..82b69856d9 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,8 @@ # Makefile for the NSLU2 Linux development system # Licensed under the GPL v2 or later +BITBAKE_REVISION="-r 269" # Fetch this revision of BitBake. Unset this to fetch bleeding edge. + .PHONY: all all: update build @@ -50,7 +52,7 @@ setup-master downloads: setup-monotone unslung/Makefile openslug/Makefile .PHONY: setup-bitbake setup-bitbake bitbake/bin/bitbake: - [ -e bitbake/bin/bitbake ] || ( svn co -r 269 svn://svn.berlios.de/bitbake/trunk/bitbake ) + [ -e bitbake/bin/bitbake ] || ( svn co ${BITBAKE_REVISION} svn://svn.berlios.de/bitbake/trunk/bitbake ) .PHONY: setup-openembedded setup-openembedded openembedded/conf/machine/nslu2.conf: MT/revision @@ -84,7 +86,7 @@ update-master: MT/revision .PHONY: update-bitbake update-bitbake: bitbake/bin/bitbake - ( cd bitbake ; svn -r 269 update ) + ( cd bitbake ; svn ${BITBAKE_REVISION} update ) .PHONY: update-openembedded update-openembedded: openembedded/conf/machine/nslu2.conf -- cgit v1.2.3 From ba81c9cff919b82fa35e8856907cb8d03a884068 Mon Sep 17 00:00:00 2001 From: Derek Young Date: Mon, 11 Jul 2005 08:30:27 +0000 Subject: Fix the bitbake fixing line --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 82b69856d9..aeb50a51b3 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,8 @@ # Makefile for the NSLU2 Linux development system # Licensed under the GPL v2 or later -BITBAKE_REVISION="-r 269" # Fetch this revision of BitBake. Unset this to fetch bleeding edge. +# Fetch this revision of BitBake. Unset this to fetch bleeding edge. +BITBAKE_REVISION=-r 269 .PHONY: all all: update build -- cgit v1.2.3 From d7a7f84a93a6d1e2383a008858d9e9e078028836 Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Mon, 11 Jul 2005 08:35:03 +0000 Subject: Fixed the setup-developer targets --- Makefile | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index aeb50a51b3..7490209719 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,12 @@ # Makefile for the NSLU2 Linux development system # Licensed under the GPL v2 or later +# Change these if you are unfortunate enough to have a split net personality. +SVN_USER ?= ${USER} +CVS_USER ?= ${USER} + # Fetch this revision of BitBake. Unset this to fetch bleeding edge. -BITBAKE_REVISION=-r 269 +BITBAKE_REVISION = -r 269 .PHONY: all all: update build @@ -14,7 +18,7 @@ build: build-unslung build-openslug build-optware setup: setup-master setup-bitbake setup-openembedded setup-oe-symlinks setup-optware .PHONY: setup-developer -setup: setup-master setup-bitbake setup-openembedded setup-oe-symlinks-developer setup-optware-developer +setup-developer: setup-master setup-bitbake setup-openembedded setup-oe-symlinks-developer setup-optware-developer .PHONY: update update: update-master update-bitbake update-openembedded update-oe-symlinks update-optware @@ -63,18 +67,20 @@ setup-openembedded openembedded/conf/machine/nslu2.conf: MT/revision setup-oe-symlinks oe-symlinks/packages: [ -e oe-symlinks/packages ] || ( svn co svn://svn.berlios.de/openslug/trunk/openslug/nslu2-linux oe-symlinks ) +.PHONY: setup-oe-symlinks-developer +setup-oe-symlinks-developer: + [ -e oe-symlinks ] && ( mv oe-symlinks oe-symlinks-user ) + svn co svn+ssh://${SVN_USER}@svn.berlios.de/svnroot/repos/openslug/trunk/openslug/nslu2-linux oe-symlinks + .PHONY: setup-optware setup-optware optware/Makefile: [ -e optware/Makefile ] || ( cvs -d :pserver:anonymous@cvs.sf.net:/cvsroot/nslu co -d optware unslung ) [ -e optware/downloads ] || ( cd optware ; ln -s ../downloads . ) -.PHONY: setup-oe-symlinks-developer -setup-oe-symlinks-developer oe-symlinks/packages: - [ -e oe-symlinks/packages ] || ( svn co svn+ssh://${SVN_USER}@svn.berlios.de/svnroot/repos/openslug/trunk/openslug/nslu2-linux oe-symlinks ) - .PHONY: setup-optware-developer -setup-optware-developer optware/Makefile: - [ -e optware/Makefile ] || ( cvs -d :ext:${CVS_USER}@cvs.sf.net:/cvsroot/nslu co -d optware unslung ) +setup-optware-developer: + [ -e optware ] && ( mv optware optware-user ) + cvs -d :ext:${CVS_USER}@cvs.sf.net:/cvsroot/nslu co -d optware unslung [ -e optware/downloads ] || ( cd optware ; ln -s ../downloads . ) .PHONY: update-master -- cgit v1.2.3 From 28267edfc5685c5b433df0b7392178702a900185 Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Mon, 11 Jul 2005 09:32:19 +0000 Subject: Broke some superfluous dependencies --- Makefile | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index 7490209719..f4b3139e3f 100644 --- a/Makefile +++ b/Makefile @@ -27,11 +27,11 @@ update: update-master update-bitbake update-openembedded update-oe-symlinks upda clobber: clobber-optware clobber-oe-symlinks clobber-openembedded clobber-bitbake .PHONY: unslung build-unslung -unslung build-unslung: unslung/Makefile downloads bitbake/bin/bitbake openembedded/conf/machine/nslu2.conf oe-symlinks/packages +unslung build-unslung: unslung/Makefile bitbake/bin/bitbake openembedded/conf/machine/nslu2.conf oe-symlinks/packages ( cd unslung ; make ) .PHONY: openslug build-openslug -openslug build-openslug: openslug/Makefile downloads bitbake/bin/bitbake openembedded/conf/machine/nslu2.conf oe-symlinks/packages +openslug build-openslug: openslug/Makefile bitbake/bin/bitbake openembedded/conf/machine/nslu2.conf oe-symlinks/packages ( cd openslug ; make ) .PHONY: optware build-optware @@ -46,12 +46,16 @@ setup-monotone monotone/nslu2-linux.db: ( monotone -d monotone/nslu2-linux.db unset database default-collection ) ( monotone -d monotone/nslu2-linux.db pull monotone.nslu2-linux.org org ) -unslung/Makefile openslug/Makefile MT/revision: monotone/nslu2-linux.db +downloads: + [ -e downloads ] || mkdir -p downloads + +unslung/Makefile openslug/Makefile MT/revision: + ${MAKE} downloads + [ -e monotone/nslu2-linux.db ] || ( ${MAKE} monotone/nslu2-linux.db ) [ -e MT/revision ] || ( monotone -d monotone/nslu2-linux.db co -b org.nslu2-linux.dev . ) .PHONY: setup-master -setup-master downloads: setup-monotone unslung/Makefile openslug/Makefile - [ -e downloads ] || mkdir -p downloads +setup-master: setup-monotone unslung/Makefile openslug/Makefile [ -e unslung/downloads ] || ( cd unslung ; ln -s ../downloads . ) [ -e openslug/downloads ] || ( cd openslug ; ln -s ../downloads . ) @@ -60,7 +64,8 @@ setup-bitbake bitbake/bin/bitbake: [ -e bitbake/bin/bitbake ] || ( svn co ${BITBAKE_REVISION} svn://svn.berlios.de/bitbake/trunk/bitbake ) .PHONY: setup-openembedded -setup-openembedded openembedded/conf/machine/nslu2.conf: MT/revision +setup-openembedded openembedded/conf/machine/nslu2.conf: + ${MAKE} MT/revision [ -e openembedded/conf/machine/nslu2.conf ] || monotone co -b org.openembedded.nslu2-linux openembedded .PHONY: setup-oe-symlinks @@ -74,11 +79,13 @@ setup-oe-symlinks-developer: .PHONY: setup-optware setup-optware optware/Makefile: + ${MAKE} downloads [ -e optware/Makefile ] || ( cvs -d :pserver:anonymous@cvs.sf.net:/cvsroot/nslu co -d optware unslung ) [ -e optware/downloads ] || ( cd optware ; ln -s ../downloads . ) .PHONY: setup-optware-developer setup-optware-developer: + ${MAKE} downloads [ -e optware ] && ( mv optware optware-user ) cvs -d :ext:${CVS_USER}@cvs.sf.net:/cvsroot/nslu co -d optware unslung [ -e optware/downloads ] || ( cd optware ; ln -s ../downloads . ) @@ -108,7 +115,7 @@ update-oe-symlinks: oe-symlinks/packages ( cd oe-symlinks ; svn update ) .PHONY: update-optware -update-optware: optware/Makefile downloads +update-optware: optware/Makefile ( cd optware ; cvs update -d -P ) .PHONY: clobber-bitbake @@ -130,7 +137,7 @@ clobber-optware: # Targets for use by those with write access to the repositories .PHONY: push-master -push-master: monotone/nslu2-linux.db +push-master: MT/revision monotone push .PHONY: push-openembedded -- cgit v1.2.3 From bb37e057dd1f4ccde852d619a179d7e7014938f6 Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Mon, 11 Jul 2005 19:12:50 +0000 Subject: Made the push targets do an update (and required merge) first --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index f4b3139e3f..464ed3f904 100644 --- a/Makefile +++ b/Makefile @@ -137,11 +137,11 @@ clobber-optware: # Targets for use by those with write access to the repositories .PHONY: push-master -push-master: MT/revision +push-master: update-master monotone push .PHONY: push-openembedded -push-openembedded: openembedded/conf/machine/nslu2.conf +push-openembedded: update-openembedded ( cd openembedded ; monotone push ) # Targets for use by core team members only -- cgit v1.2.3 From aa65bc56715198981fbae3d85b6498da95c79301 Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Mon, 11 Jul 2005 19:54:07 +0000 Subject: Added the developer push target --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index 464ed3f904..5798604670 100644 --- a/Makefile +++ b/Makefile @@ -136,6 +136,9 @@ clobber-optware: # Targets for use by those with write access to the repositories +.PHONY: push +push: push-master push-openembedded + .PHONY: push-master push-master: update-master monotone push -- cgit v1.2.3 From 2a45b8e3189c9d18afeffb7c09a7e58645a8b942 Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Thu, 14 Jul 2005 16:31:17 +0000 Subject: Added unset MFLAGS and unset MAKEFLAGS to the generation of setup-env in openslug/Makefile --- openslug/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openslug/Makefile b/openslug/Makefile index a0c0ec1e72..e037ddf63c 100644 --- a/openslug/Makefile +++ b/openslug/Makefile @@ -30,6 +30,8 @@ setup-env: echo 'unset LC_CTYPE' >> setup-env echo 'unset CC' >> setup-env echo 'unset CXX' >> setup-env + echo 'unset MFLAGS' >> setup-env + echo 'unset MAKEFLAGS' >> setup-env echo 'alias bb=bitbake' >> setup-env echo 'echo Environment set up for OpenSlug development.' >> setup-env -- cgit v1.2.3 From 69742294e28c27ddc29052c591fe6272284e4065 Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Fri, 15 Jul 2005 07:46:59 +0000 Subject: Updated for monotone 0.20 --- Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 5798604670..293c44dc8d 100644 --- a/Makefile +++ b/Makefile @@ -41,10 +41,10 @@ optware build-optware: optware/Makefile .PHONY: setup-monotone setup-monotone monotone/nslu2-linux.db: [ -e monotone/nslu2-linux.db ] || ( mkdir -p monotone && monotone -d monotone/nslu2-linux.db db init ) - ( monotone -d monotone/nslu2-linux.db pull monotone.vanille.de org.openembedded ) + ( monotone -d monotone/nslu2-linux.db pull monotone.vanille.de org.openembedded.* ) ( monotone -d monotone/nslu2-linux.db unset database default-server ) - ( monotone -d monotone/nslu2-linux.db unset database default-collection ) - ( monotone -d monotone/nslu2-linux.db pull monotone.nslu2-linux.org org ) + ( monotone -d monotone/nslu2-linux.db unset database default-include-pattern ) + ( monotone -d monotone/nslu2-linux.db pull monotone.nslu2-linux.org org.openembedded.* org.nslu2-linux.* ) downloads: [ -e downloads ] || mkdir -p downloads @@ -159,7 +159,7 @@ upload-openslug-cross: openslug/Makefile .PHONY: import-openembedded import-openembedded: openembedded/conf/machine/nslu2.conf - monotone pull monotone.vanille.de org.openembedded + monotone pull monotone.vanille.de org.openembedded.* if [ `monotone automate heads org.openembedded.dev | wc -l` != "1" ] ; then \ monotone merge -b org.openembedded.dev ; \ fi @@ -180,7 +180,7 @@ propagate-to-oe: .PHONY: export-openembedded export-openembedded: openembedded/conf/machine/nslu2.conf - monotone push monotone.vanille.de org.openembedded + monotone push monotone.vanille.de org.openembedded.* .PHONY: publish-openembedded publish-openembedded: import-openembedded propagate-from-oe update-openembedded \ -- cgit v1.2.3 From 8cce149673e503259d9bf0b505ed10c65849fa92 Mon Sep 17 00:00:00 2001 From: Derek Young Date: Mon, 18 Jul 2005 10:01:25 +0000 Subject: Add misc other developer related targets --- Makefile | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Makefile b/Makefile index 293c44dc8d..a952875bc6 100644 --- a/Makefile +++ b/Makefile @@ -90,6 +90,18 @@ setup-optware-developer: cvs -d :ext:${CVS_USER}@cvs.sf.net:/cvsroot/nslu co -d optware unslung [ -e optware/downloads ] || ( cd optware ; ln -s ../downloads . ) +.PHONY: setup-slugimage-developer +setup-slugimage-developer: + cvs -d :ext:${CVS_USER}@cvs.sf.net:/cvsroot/nslu co slugimage + +.PHONY: setup-upslug-developer +setup-upslug-developer: + cvs -d :ext:${CVS_USER}@cvs.sf.net:/cvsroot/nslu co upslug + +.PHONY: setup-sluggo-developer +setup-sluggo-developer: + cvs -d :ext:${CVS_USER}@cvs.sf.net:/cvsroot/nslu co sluggo + .PHONY: update-master update-master: MT/revision monotone pull -- cgit v1.2.3 From 553637753b10aceac657087f04ce79db7a0b57b0 Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Tue, 19 Jul 2005 18:35:27 +0000 Subject: Added the setup-apex-developer target --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index a952875bc6..be1786f0be 100644 --- a/Makefile +++ b/Makefile @@ -102,6 +102,10 @@ setup-upslug-developer: setup-sluggo-developer: cvs -d :ext:${CVS_USER}@cvs.sf.net:/cvsroot/nslu co sluggo +.PHONY: setup-apex-developer +setup-apex-developer: + cvs -d :ext:${CVS_USER}@cvs.sf.net:/cvsroot/nslu co apex + .PHONY: update-master update-master: MT/revision monotone pull -- cgit v1.2.3 From 1c4141b07e17a72af33f82c3ca99c59de8894b33 Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Tue, 19 Jul 2005 18:43:09 +0000 Subject: Added the build-apex target --- Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Makefile b/Makefile index be1786f0be..bee271d0d7 100644 --- a/Makefile +++ b/Makefile @@ -38,6 +38,10 @@ openslug build-openslug: openslug/Makefile bitbake/bin/bitbake openembedded/conf optware build-optware: optware/Makefile ( cd optware ; make ) +.PHONY: apex build-apex +apex build-apex: apex/Makefile + ( cd apex ; make nslu2_config ; make oldconfig ; make CROSS_COMPILE=../openslug/tmp/cross/bin/armeb-linux- ) + .PHONY: setup-monotone setup-monotone monotone/nslu2-linux.db: [ -e monotone/nslu2-linux.db ] || ( mkdir -p monotone && monotone -d monotone/nslu2-linux.db db init ) @@ -102,6 +106,10 @@ setup-upslug-developer: setup-sluggo-developer: cvs -d :ext:${CVS_USER}@cvs.sf.net:/cvsroot/nslu co sluggo +.PHONY: setup-apex +setup-apex apex/Makefile: + cvs -d :pserver:anonymous@cvs.sf.net:/cvsroot/nslu co apex + .PHONY: setup-apex-developer setup-apex-developer: cvs -d :ext:${CVS_USER}@cvs.sf.net:/cvsroot/nslu co apex -- cgit v1.2.3 From eb61b33bf6fffddf7972e99ac51df1dff3cbd4f7 Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Tue, 19 Jul 2005 23:30:26 +0000 Subject: Removed build-apex target, as it is now in OpenEmbedded instead. --- Makefile | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Makefile b/Makefile index bee271d0d7..f9d7946f0f 100644 --- a/Makefile +++ b/Makefile @@ -38,10 +38,6 @@ openslug build-openslug: openslug/Makefile bitbake/bin/bitbake openembedded/conf optware build-optware: optware/Makefile ( cd optware ; make ) -.PHONY: apex build-apex -apex build-apex: apex/Makefile - ( cd apex ; make nslu2_config ; make oldconfig ; make CROSS_COMPILE=../openslug/tmp/cross/bin/armeb-linux- ) - .PHONY: setup-monotone setup-monotone monotone/nslu2-linux.db: [ -e monotone/nslu2-linux.db ] || ( mkdir -p monotone && monotone -d monotone/nslu2-linux.db db init ) -- cgit v1.2.3 From 1aaf58e549fa73565afd4f9fc86b1a288d0139c4 Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Fri, 22 Jul 2005 05:25:03 +0000 Subject: Migrated bitbake from the unstable and three-day-downtime berlios.de SVN to our well-maintained nslu2-linux.org monotone repository --- Makefile | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index f9d7946f0f..13c1fb5e38 100644 --- a/Makefile +++ b/Makefile @@ -5,9 +5,6 @@ SVN_USER ?= ${USER} CVS_USER ?= ${USER} -# Fetch this revision of BitBake. Unset this to fetch bleeding edge. -BITBAKE_REVISION = -r 269 - .PHONY: all all: update build @@ -61,7 +58,8 @@ setup-master: setup-monotone unslung/Makefile openslug/Makefile .PHONY: setup-bitbake setup-bitbake bitbake/bin/bitbake: - [ -e bitbake/bin/bitbake ] || ( svn co ${BITBAKE_REVISION} svn://svn.berlios.de/bitbake/trunk/bitbake ) + ${MAKE} MT/revision + [ -e bitbake/bin/bitbake ] || monotone co -b org.nslu2-linux.bitbake bitbake .PHONY: setup-openembedded setup-openembedded openembedded/conf/machine/nslu2.conf: @@ -113,6 +111,9 @@ setup-apex-developer: .PHONY: update-master update-master: MT/revision monotone pull + if [ `monotone automate heads org.nslu2-linux.dev | wc -l` != "1" ] ; then \ + monotone merge -b org.nslu2-linux.dev ; \ + fi monotone update if [ `monotone automate heads org.nslu2-linux.dev | wc -l` != "1" ] ; then \ monotone merge -b org.nslu2-linux.dev ; \ @@ -120,7 +121,14 @@ update-master: MT/revision .PHONY: update-bitbake update-bitbake: bitbake/bin/bitbake - ( cd bitbake ; svn ${BITBAKE_REVISION} update ) + monotone pull + if [ `monotone automate heads org.nslu2-linux.bitbake | wc -l` != "1" ] ; then \ + monotone merge -b org.nslu2-linux.bitbake ; \ + fi + ( cd bitbake ; monotone update ) + if [ `monotone automate heads org.nslu2-linux.bitbake | wc -l` != "1" ] ; then \ + monotone merge -b org.nslu2-linux.bitbake ; \ + fi .PHONY: update-openembedded update-openembedded: openembedded/conf/machine/nslu2.conf @@ -129,6 +137,9 @@ update-openembedded: openembedded/conf/machine/nslu2.conf monotone merge -b org.openembedded.nslu2-linux ; \ fi ( cd openembedded ; monotone update ) + if [ `monotone automate heads org.openembedded.nslu2-linux | wc -l` != "1" ] ; then \ + monotone merge -b org.openembedded.nslu2-linux ; \ + fi .PHONY: update-oe-symlinks update-oe-symlinks: oe-symlinks/packages -- cgit v1.2.3 From cb97f2a5f236414f4a6257171cd2f09aa4472ac5 Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Mon, 25 Jul 2005 22:23:45 +0000 Subject: Changed 'source' to '.' in the OpenSlug makefile --- openslug/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openslug/Makefile b/openslug/Makefile index e037ddf63c..2d8bf76463 100644 --- a/openslug/Makefile +++ b/openslug/Makefile @@ -2,7 +2,7 @@ # Licensed under the GPL v2 or later openslug-firmware: setup-env conf/local.conf - ( source setup-env ; bitbake openslug-packages ) + ( . setup-env ; bitbake openslug-packages ) # This does the same thing but with a clean environment # The HOME setting prevents user environment settings @@ -11,7 +11,7 @@ openslug-firmware: setup-env conf/local.conf # .cache in the home directory. openslug-firmware-safe: setup-env conf/local.conf env -i CCACHE_DISABLE=1 CCACHE_DIR="`pwd`/tmp/ccache" HOME=/dev/null \ - sh -c 'source setup-env; bitbake openslug-packages' + sh -c '. setup-env; bitbake openslug-packages' setup-env: [ -e bitbake ] || ( ln -s ../bitbake . ) -- cgit v1.2.3 From c889b78359d96c4a0c770f653c1e49c964190376 Mon Sep 17 00:00:00 2001 From: John Bowler Date: Tue, 26 Jul 2005 01:59:25 +0000 Subject: Remove the update of oe-symlinks from the update target so that it will run again (this is an intermediate step in the removal of oe-symlinks). --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 13c1fb5e38..f9586cd2af 100644 --- a/Makefile +++ b/Makefile @@ -18,7 +18,7 @@ setup: setup-master setup-bitbake setup-openembedded setup-oe-symlinks setup-opt setup-developer: setup-master setup-bitbake setup-openembedded setup-oe-symlinks-developer setup-optware-developer .PHONY: update -update: update-master update-bitbake update-openembedded update-oe-symlinks update-optware +update: update-master update-bitbake update-openembedded update-optware .PHONY: clobber clobber: clobber-optware clobber-oe-symlinks clobber-openembedded clobber-bitbake -- cgit v1.2.3 From 693809b03d2e7367cafa7660af147d839f752fe3 Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Tue, 26 Jul 2005 06:18:21 +0000 Subject: Removed all traces of oe-symlinks from the master makefiles --- Makefile | 27 +++++---------------------- openslug/Makefile | 7 +++---- unslung/Makefile | 9 +++++---- 3 files changed, 13 insertions(+), 30 deletions(-) diff --git a/Makefile b/Makefile index f9586cd2af..4774d8e1d5 100644 --- a/Makefile +++ b/Makefile @@ -12,23 +12,23 @@ all: update build build: build-unslung build-openslug build-optware .PHONY: setup -setup: setup-master setup-bitbake setup-openembedded setup-oe-symlinks setup-optware +setup: setup-master setup-bitbake setup-openembedded setup-optware .PHONY: setup-developer -setup-developer: setup-master setup-bitbake setup-openembedded setup-oe-symlinks-developer setup-optware-developer +setup-developer: setup-master setup-bitbake setup-openembedded setup-optware-developer .PHONY: update update: update-master update-bitbake update-openembedded update-optware .PHONY: clobber -clobber: clobber-optware clobber-oe-symlinks clobber-openembedded clobber-bitbake +clobber: clobber-optware clobber-openembedded clobber-bitbake .PHONY: unslung build-unslung -unslung build-unslung: unslung/Makefile bitbake/bin/bitbake openembedded/conf/machine/nslu2.conf oe-symlinks/packages +unslung build-unslung: unslung/Makefile bitbake/bin/bitbake openembedded/conf/machine/nslu2.conf ( cd unslung ; make ) .PHONY: openslug build-openslug -openslug build-openslug: openslug/Makefile bitbake/bin/bitbake openembedded/conf/machine/nslu2.conf oe-symlinks/packages +openslug build-openslug: openslug/Makefile bitbake/bin/bitbake openembedded/conf/machine/nslu2.conf ( cd openslug ; make ) .PHONY: optware build-optware @@ -66,15 +66,6 @@ setup-openembedded openembedded/conf/machine/nslu2.conf: ${MAKE} MT/revision [ -e openembedded/conf/machine/nslu2.conf ] || monotone co -b org.openembedded.nslu2-linux openembedded -.PHONY: setup-oe-symlinks -setup-oe-symlinks oe-symlinks/packages: - [ -e oe-symlinks/packages ] || ( svn co svn://svn.berlios.de/openslug/trunk/openslug/nslu2-linux oe-symlinks ) - -.PHONY: setup-oe-symlinks-developer -setup-oe-symlinks-developer: - [ -e oe-symlinks ] && ( mv oe-symlinks oe-symlinks-user ) - svn co svn+ssh://${SVN_USER}@svn.berlios.de/svnroot/repos/openslug/trunk/openslug/nslu2-linux oe-symlinks - .PHONY: setup-optware setup-optware optware/Makefile: ${MAKE} downloads @@ -141,10 +132,6 @@ update-openembedded: openembedded/conf/machine/nslu2.conf monotone merge -b org.openembedded.nslu2-linux ; \ fi -.PHONY: update-oe-symlinks -update-oe-symlinks: oe-symlinks/packages - ( cd oe-symlinks ; svn update ) - .PHONY: update-optware update-optware: optware/Makefile ( cd optware ; cvs update -d -P ) @@ -157,10 +144,6 @@ clobber-bitbake: clobber-openembedded: rm -rf openembedded -.PHONY: clobber-oe-symlinks -clobber-oe-symlinks: - rm -rf oe-symlinks - .PHONY: clobber-optware clobber-optware: rm -rf optware diff --git a/openslug/Makefile b/openslug/Makefile index 2d8bf76463..6a8caf8c92 100644 --- a/openslug/Makefile +++ b/openslug/Makefile @@ -17,10 +17,9 @@ setup-env: [ -e bitbake ] || ( ln -s ../bitbake . ) [ -e downloads ] || ( ln -s ../downloads . ) [ -e openembedded ] || ( ln -s ../openembedded . ) - [ -e oe-symlinks ] || ( ln -s ../oe-symlinks . ) echo 'OEROOT='`pwd` > setup-env echo 'OESYS=$$OEROOT/bitbake/' >> setup-env - echo 'PKGDIR=$$OEROOT/openembedded/' >> setup-env + echo 'export PKGDIR=$$OEROOT/openembedded/' >> setup-env echo 'OEBUILD=$$OEROOT' >> setup-env echo 'export PYTHONPATH=$$OESYS/lib' >>setup-env echo 'export BBPATH=$$OEBUILD:$$PKGDIR:$$OESYS' >> setup-env @@ -42,9 +41,9 @@ clobber: rm -rf tmp openslug-source: - tar zcvf openslug-source.tar.gz --exclude=MT Makefile bitbake conf openembedded oe-symlinks + tar zcvf openslug-source.tar.gz --exclude=MT Makefile bitbake conf openembedded distclean: clobber - rm -rf setup-env conf/local.conf bitbake downloads openembedded oe-symlinks + rm -rf setup-env conf/local.conf bitbake downloads openembedded # End of Makefile diff --git a/unslung/Makefile b/unslung/Makefile index b64453007b..aecf3abe7c 100644 --- a/unslung/Makefile +++ b/unslung/Makefile @@ -17,10 +17,9 @@ setup-env: [ -e bitbake ] || ( ln -s ../bitbake . ) [ -e downloads ] || ( ln -s ../downloads . ) [ -e openembedded ] || ( ln -s ../openembedded . ) - [ -e oe-symlinks ] || ( ln -s ../oe-symlinks . ) echo 'OEROOT='`pwd` > setup-env echo 'OESYS=$$OEROOT/bitbake/' >> setup-env - echo 'PKGDIR=$$OEROOT/openembedded/' >> setup-env + echo 'export PKGDIR=$$OEROOT/openembedded/' >> setup-env echo 'OEBUILD=$$OEROOT' >> setup-env echo 'BBPATH=$$OEBUILD:$$PKGDIR:$$OESYS' >> setup-env echo 'PATH=$$OESYS/bin/:$$PATH' >> setup-env @@ -30,6 +29,8 @@ setup-env: echo 'unset LC_CTYPE' >> setup-env echo 'unset CC' >> setup-env echo 'unset CXX' >> setup-env + echo 'unset MFLAGS' >> setup-env + echo 'unset MAKEFLAGS' >> setup-env echo 'alias bb=bitbake' >> setup-env echo 'echo Environment set up for Unslung development.' >> setup-env @@ -40,9 +41,9 @@ clobber: rm -rf tmp unslung-source: - tar zcvf unslung-source.tar.gz --exclude=MT Makefile bitbake conf openembedded oe-symlinks + tar zcvf unslung-source.tar.gz --exclude=MT Makefile bitbake conf openembedded distclean: clobber - rm -f setup-env conf/local.conf bitbake downloads openembedded oe-symlinks + rm -f setup-env conf/local.conf bitbake downloads openembedded # End of Makefile -- cgit v1.2.3 From 6d6928a588c05b9a01002505ebc5cfb134c9694d Mon Sep 17 00:00:00 2001 From: John Bowler Date: Tue, 26 Jul 2005 06:42:22 +0000 Subject: Better fix for PKGDIR --- openslug/Makefile | 12 ++++++------ openslug/conf/local.conf.template | 10 ++++++---- unslung/Makefile | 21 ++++++++++----------- unslung/conf/local.conf.template | 10 ++++++---- 4 files changed, 28 insertions(+), 25 deletions(-) diff --git a/openslug/Makefile b/openslug/Makefile index 6a8caf8c92..d6fc3dd8dd 100644 --- a/openslug/Makefile +++ b/openslug/Makefile @@ -2,7 +2,7 @@ # Licensed under the GPL v2 or later openslug-firmware: setup-env conf/local.conf - ( . setup-env ; bitbake openslug-packages ) + . setup-env ; bitbake openslug-packages # This does the same thing but with a clean environment # The HOME setting prevents user environment settings @@ -14,13 +14,13 @@ openslug-firmware-safe: setup-env conf/local.conf sh -c '. setup-env; bitbake openslug-packages' setup-env: - [ -e bitbake ] || ( ln -s ../bitbake . ) - [ -e downloads ] || ( ln -s ../downloads . ) - [ -e openembedded ] || ( ln -s ../openembedded . ) + [ -e bitbake ] || ln -s ../bitbake . + [ -e downloads ] || ln -s ../downloads . + [ -e openembedded ] || ln -s ../openembedded . echo 'OEROOT='`pwd` > setup-env echo 'OESYS=$$OEROOT/bitbake/' >> setup-env - echo 'export PKGDIR=$$OEROOT/openembedded/' >> setup-env echo 'OEBUILD=$$OEROOT' >> setup-env + echo 'PKGDIR=$$OEROOT/openembedded/' >> setup-env echo 'export PYTHONPATH=$$OESYS/lib' >>setup-env echo 'export BBPATH=$$OEBUILD:$$PKGDIR:$$OESYS' >> setup-env echo 'export PATH=$$OESYS/bin/:$$PATH' >> setup-env @@ -41,7 +41,7 @@ clobber: rm -rf tmp openslug-source: - tar zcvf openslug-source.tar.gz --exclude=MT Makefile bitbake conf openembedded + tar zcf openslug-source.tar.gz --exclude=MT Makefile bitbake conf openembedded distclean: clobber rm -rf setup-env conf/local.conf bitbake downloads openembedded diff --git a/openslug/conf/local.conf.template b/openslug/conf/local.conf.template index f5095c54c5..9139503e6d 100644 --- a/openslug/conf/local.conf.template +++ b/openslug/conf/local.conf.template @@ -3,10 +3,12 @@ OEROOT = "%%%OEROOT%%%" # Use this to specify where OE should place the downloaded sources into DL_DIR = "${OEROOT}/downloads" -# Delete the line below. Then specify which .oe files to consider for -# your build. Typically this will be something like OEFILES = "/path/to/packages/*/*.oe" -# BBFILES := "/home/slug/openembedded/packages/*/*.bb" -BBFILES := "${OEROOT}/oe-symlinks/packages/*/*.bb" +# BBFILES defines the list of .bb files to consider when looking for a +# way to build a package. This gets overridden in the openslug and +# unslung .conf files. PKGDIR defines where to find the 'packages' +# directory containing the package sub-directories. +PKGDIR := "${OEROOT}/openembedded" +BBFILES := "${PKGDIR}/packages/*/*.bb" # Use the OEMASK below to instruct OE to _NOT_ consider some .oe files # This is a regulary expression, so be sure to get your parenthesis balanced. diff --git a/unslung/Makefile b/unslung/Makefile index aecf3abe7c..c46569bee8 100644 --- a/unslung/Makefile +++ b/unslung/Makefile @@ -2,7 +2,7 @@ # Licensed under the GPL v2 or later unslung-firmware: setup-env conf/local.conf - (source setup-env ; bitbake unslung-packages) + . setup-env ; bitbake unslung-packages # This does the same thing but with a clean environment # The HOME setting prevents user environment settings @@ -11,20 +11,19 @@ unslung-firmware: setup-env conf/local.conf # .cache in the home directory. unslung-firmware-safe: setup-env conf/local.conf env -i CCACHE_DISABLE=1 CCACHE_DIR="`pwd`/tmp/ccache" HOME=/dev/null \ - sh -c 'source setup-env; bitbake unslung-packages' + sh -c '. setup-env; bitbake unslung-packages' setup-env: - [ -e bitbake ] || ( ln -s ../bitbake . ) - [ -e downloads ] || ( ln -s ../downloads . ) - [ -e openembedded ] || ( ln -s ../openembedded . ) + [ -e bitbake ] || ln -s ../bitbake . + [ -e downloads ] || ln -s ../downloads . + [ -e openembedded ] || ln -s ../openembedded . echo 'OEROOT='`pwd` > setup-env echo 'OESYS=$$OEROOT/bitbake/' >> setup-env - echo 'export PKGDIR=$$OEROOT/openembedded/' >> setup-env echo 'OEBUILD=$$OEROOT' >> setup-env - echo 'BBPATH=$$OEBUILD:$$PKGDIR:$$OESYS' >> setup-env - echo 'PATH=$$OESYS/bin/:$$PATH' >> setup-env - echo 'LD_LIBRARY_PATH=' >> setup-env - echo 'export PATH LD_LIBRARY_PATH BBPATH' >> setup-env + echo 'PKGDIR=$$OEROOT/openembedded/' >> setup-env + echo 'export BBPATH=$$OEBUILD:$$PKGDIR:$$OESYS' >> setup-env + echo 'export PATH=$$OESYS/bin/:$$PATH' >> setup-env + echo 'export LD_LIBRARY_PATH=' >> setup-env echo 'export LANG=C' >> setup-env echo 'unset LC_CTYPE' >> setup-env echo 'unset CC' >> setup-env @@ -41,7 +40,7 @@ clobber: rm -rf tmp unslung-source: - tar zcvf unslung-source.tar.gz --exclude=MT Makefile bitbake conf openembedded + tar zcf unslung-source.tar.gz --exclude=MT Makefile bitbake conf openembedded distclean: clobber rm -f setup-env conf/local.conf bitbake downloads openembedded diff --git a/unslung/conf/local.conf.template b/unslung/conf/local.conf.template index a13923f749..3ec09752f1 100644 --- a/unslung/conf/local.conf.template +++ b/unslung/conf/local.conf.template @@ -3,10 +3,12 @@ OEROOT = "%%%OEROOT%%%" # Use this to specify where OE should place the downloaded sources into DL_DIR = "${OEROOT}/downloads" -# Delete the line below. Then specify which .oe files to consider for -# your build. Typically this will be something like OEFILES = "/path/to/packages/*/*.oe" -# BBFILES := "/home/slug/openembedded/packages/*/*.bb" -BBFILES := "${OEROOT}/oe-symlinks/packages/*/*.bb" +# BBFILES defines the list of .bb files to consider when looking for a +# way to build a package. This gets overridden in the openslug and +# unslung .conf files. PKGDIR defines where to find the 'packages' +# directory containing the package sub-directories. +PKGDIR := "${OEROOT}/openembedded" +BBFILES := "${PKGDIR}/packages/*/*.bb" # Use the OEMASK below to instruct OE to _NOT_ consider some .oe files # This is a regulary expression, so be sure to get your parenthesis balanced. -- cgit v1.2.3 From b85a47077db333119bf52eaad6ee1e862fb163b8 Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Sun, 24 Jul 2005 09:33:47 +0000 Subject: Added the setup-host-debian target to document all required packages for an official Debian Etch build host. --- Makefile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Makefile b/Makefile index 4774d8e1d5..7421bd810f 100644 --- a/Makefile +++ b/Makefile @@ -99,6 +99,24 @@ setup-apex apex/Makefile: setup-apex-developer: cvs -d :ext:${CVS_USER}@cvs.sf.net:/cvsroot/nslu co apex +.PHONY: setup-host-debian +setup-host-debian: + sudo apt-get install \ + autoconf automake automake1.9 \ + bison \ + ccache \ + cvs \ + docbook \ + flex \ + g++ gawk gcj gettext \ + libc6-dev libglib2.0-dev libtool \ + m4 make \ + patch pkg-config \ + python python-dev python-psyco python2.4 python2.4-dev \ + sed \ + texinfo \ + unzip + .PHONY: update-master update-master: MT/revision monotone pull -- cgit v1.2.3 From f91ce343655ad93f22bd8468dbc50b8268d0f402 Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Sun, 24 Jul 2005 13:19:21 +0000 Subject: Fixed the typo in upload-openslug-cross --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 7421bd810f..86e9c3b154 100644 --- a/Makefile +++ b/Makefile @@ -185,7 +185,7 @@ push-openembedded: update-openembedded publish-master: push-master scp Makefile www.nslu2-linux.org:/home/nslu/public_html/Makefile -.PHONY: upload-openembedded-cross +.PHONY: upload-openslug-cross upload-openslug-cross: openslug/Makefile rsync -avr openslug/tmp/deploy/ipk/ unslung@nslu.sf.net:nslu/feeds/openslug/unstable/ -- cgit v1.2.3 From 11703507d1d10dc2f7e6d99142ffc10ac86d32d0 Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Mon, 25 Jul 2005 05:46:01 +0000 Subject: Split optware builds into two subdirs - nslu2 and wl500g. --- Makefile | 43 ++++++++++++++++++++++++++++++++++--------- 1 file changed, 34 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index 47755dc411..2499d8009b 100644 --- a/Makefile +++ b/Makefile @@ -32,20 +32,24 @@ openslug build-openslug: openslug/Makefile bitbake/bin/bitbake openembedded/conf ( cd openslug ; make ) .PHONY: optware build-optware -optware build-optware: optware/Makefile - ( cd optware ; unset LD_LIBRARY_PATH; make ) +optware build-optware: build-optware-nslu2 build-optware-wl500g + +.PHONY: optware-nslu2 build-optware-nslu2 +optware-nslu2 build-optware-nslu2: optware/nslu2/Makefile + ( cd optware/nslu2 ; make ) + +.PHONY: optware-wl500g build-optware-wl500g +optware-wl500g build-optware-wl500g: optware/wl500g/Makefile + ( cd optware/wl500g ; make ) .PHONY: setup-monotone setup-monotone monotone/nslu2-linux.db: - [ -e monotone/nslu2-linux.db ] || ( mkdir -p monotone && monotone -d monotone/nslu2-linux.db db init ) + [ -e monotone/nslu2-linux.db ] || \ + ( mkdir -p monotone && wget http://www.nslu2-linux.org/nslu2-linux.initial.db -O monotone/nslu2-linux.db ) ( monotone -d monotone/nslu2-linux.db pull monotone.vanille.de org.openembedded.* ) ( monotone -d monotone/nslu2-linux.db unset database default-server ) ( monotone -d monotone/nslu2-linux.db unset database default-include-pattern ) ( monotone -d monotone/nslu2-linux.db pull monotone.nslu2-linux.org org.openembedded.* org.nslu2-linux.* ) - # Above may be supplemented by following someday - # It currently *requires* monotone 0.21, or it will fail with - # a mysterious sounding database error. - # wget http://www.nslu2-linux.org/nslu2-linux.initial.db -O monotone/nslu2-linux.db downloads: [ -e downloads ] || mkdir -p downloads @@ -74,14 +78,35 @@ setup-openembedded openembedded/conf/machine/nslu2.conf: setup-optware optware/Makefile: ${MAKE} downloads [ -e optware/Makefile ] || ( cvs -d :pserver:anonymous@cvs.sf.net:/cvsroot/nslu co -d optware unslung ) - [ -e optware/downloads ] || ( cd optware ; ln -s ../downloads . ) + +optware/nslu2/Makefile : optware/Makefile + [ -e optware/nslu2/Makefile ] || ( \ + mkdir -p optware/nslu2 ; \ + echo "OPTWARE_TARGET=nslu2" > optware/nslu2/Makefile ; \ + echo "include ../Makefile" >> optware/nslu2/Makefile ; \ + ln -s ../../downloads optware/nslu2/downloads ; \ + ln -s ../make optware/nslu2/make ; \ + ln -s ../scripts optware/nslu2/scripts ; \ + ln -s ../sources optware/nslu2/sources ; \ + ) + +optware/wl500g/Makefile : optware/Makefile + [ -e optware/wl500g/Makefile ] || ( \ + mkdir -p optware/wl500g ; \ + echo "OPTWARE_TARGET=wl500g" > optware/wl500g/Makefile ; \ + echo "include ../Makefile" >> optware/wl500g/Makefile ; \ + ln -s ../../downloads optware/wl500g/downloads ; \ + ln -s ../make optware/wl500g/make ; \ + ln -s ../scripts optware/wl500g/scripts ; \ + ln -s ../sources optware/wl500g/sources ; \ + ) .PHONY: setup-optware-developer setup-optware-developer: ${MAKE} downloads [ -e optware ] && ( mv optware optware-user ) cvs -d :ext:${CVS_USER}@cvs.sf.net:/cvsroot/nslu co -d optware unslung - [ -e optware/downloads ] || ( cd optware ; ln -s ../downloads . ) + ${MAKE} optware/nslu2/Makefile optware/wl500g/Makefile .PHONY: setup-slugimage-developer setup-slugimage-developer: -- cgit v1.2.3 From 5a0ba6ded2a8493174fc4446c6c48f58eb2d4340 Mon Sep 17 00:00:00 2001 From: John Bowler Date: Tue, 26 Jul 2005 16:55:38 +0000 Subject: Add unset LD_LIBRARY_PATH before the make for the optware build, this avoids a make failure in glibc when LD_LIBRARY_PATH is set on the build system (already done for openslug-build and unslung-build). --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 86e9c3b154..a73f331afd 100644 --- a/Makefile +++ b/Makefile @@ -33,7 +33,7 @@ openslug build-openslug: openslug/Makefile bitbake/bin/bitbake openembedded/conf .PHONY: optware build-optware optware build-optware: optware/Makefile - ( cd optware ; make ) + ( cd optware ; unset LD_LIBRARY_PATH; make ) .PHONY: setup-monotone setup-monotone monotone/nslu2-linux.db: -- cgit v1.2.3 From b36ee885439367a96df407a319ef4e7224a05dc7 Mon Sep 17 00:00:00 2001 From: Oyvind Repvik Date: Tue, 26 Jul 2005 22:47:17 +0000 Subject: Make upload-openslug-cross --delete and ignore morgue --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a73f331afd..8ec9a02de4 100644 --- a/Makefile +++ b/Makefile @@ -187,7 +187,7 @@ publish-master: push-master .PHONY: upload-openslug-cross upload-openslug-cross: openslug/Makefile - rsync -avr openslug/tmp/deploy/ipk/ unslung@nslu.sf.net:nslu/feeds/openslug/unstable/ + rsync --delete -av --exclude="morgue" openslug/tmp/deploy/ipk/ unslung@nslu.sf.net:nslu/feeds/openslug/unstable/ .PHONY: import-openembedded import-openembedded: openembedded/conf/machine/nslu2.conf -- cgit v1.2.3 From 40b0f3c48b27cd5488f727e6c577169c4745ffc9 Mon Sep 17 00:00:00 2001 From: Derek Young Date: Tue, 26 Jul 2005 23:07:31 +0000 Subject: Add commented out possible solution for initial database population --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index 8ec9a02de4..9b1ad193fd 100644 --- a/Makefile +++ b/Makefile @@ -42,6 +42,8 @@ setup-monotone monotone/nslu2-linux.db: ( monotone -d monotone/nslu2-linux.db unset database default-server ) ( monotone -d monotone/nslu2-linux.db unset database default-include-pattern ) ( monotone -d monotone/nslu2-linux.db pull monotone.nslu2-linux.org org.openembedded.* org.nslu2-linux.* ) + # Above may be supplemented by following someday + # wget http://www.nslu2-linux.org/nslu2-linux.initial.db -O monotone/nslu2-linux.db downloads: [ -e downloads ] || mkdir -p downloads -- cgit v1.2.3 From 7261ef31627612bc973fc3ac4af488809b4c6fbb Mon Sep 17 00:00:00 2001 From: Oyvind Repvik Date: Tue, 26 Jul 2005 23:15:58 +0000 Subject: Make upload-openslug-cross ignore modification times. Otherwise it'll exit with an error --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 8ec9a02de4..024919dd52 100644 --- a/Makefile +++ b/Makefile @@ -187,7 +187,7 @@ publish-master: push-master .PHONY: upload-openslug-cross upload-openslug-cross: openslug/Makefile - rsync --delete -av --exclude="morgue" openslug/tmp/deploy/ipk/ unslung@nslu.sf.net:nslu/feeds/openslug/unstable/ + rsync --ignore-times --delete -av --exclude="morgue" openslug/tmp/deploy/ipk/ unslung@nslu.sf.net:nslu/feeds/openslug/unstable/ .PHONY: import-openembedded import-openembedded: openembedded/conf/machine/nslu2.conf -- cgit v1.2.3 From 4a8b8bce2a22d227020c9ce762808c3562078c5b Mon Sep 17 00:00:00 2001 From: Derek Young Date: Tue, 26 Jul 2005 23:22:42 +0000 Subject: Added some comments qualifying the usage of initial db strategy --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index 856ec5db6f..93a530b2b1 100644 --- a/Makefile +++ b/Makefile @@ -43,6 +43,8 @@ setup-monotone monotone/nslu2-linux.db: ( monotone -d monotone/nslu2-linux.db unset database default-include-pattern ) ( monotone -d monotone/nslu2-linux.db pull monotone.nslu2-linux.org org.openembedded.* org.nslu2-linux.* ) # Above may be supplemented by following someday + # It currently *requires* monotone 0.21, or it will fail with + # a mysterious sounding database error. # wget http://www.nslu2-linux.org/nslu2-linux.initial.db -O monotone/nslu2-linux.db downloads: -- cgit v1.2.3 From 0c98deb088a68faca86a96aff06d90efb1ec59dc Mon Sep 17 00:00:00 2001 From: Oyvind Repvik Date: Tue, 26 Jul 2005 23:28:42 +0000 Subject: Replace --ignore-times with --size-only in upload-openslug-cross --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 856ec5db6f..2bc265b922 100644 --- a/Makefile +++ b/Makefile @@ -189,7 +189,7 @@ publish-master: push-master .PHONY: upload-openslug-cross upload-openslug-cross: openslug/Makefile - rsync --ignore-times --delete -av --exclude="morgue" openslug/tmp/deploy/ipk/ unslung@nslu.sf.net:nslu/feeds/openslug/unstable/ + rsync --size-only --delete -av --exclude="morgue" openslug/tmp/deploy/ipk/ unslung@nslu.sf.net:nslu/feeds/openslug/unstable/ .PHONY: import-openembedded import-openembedded: openembedded/conf/machine/nslu2.conf -- cgit v1.2.3 From 9c9a3ffa105708a111932d1fb201055fae6138c0 Mon Sep 17 00:00:00 2001 From: Oyvind Repvik Date: Tue, 26 Jul 2005 23:39:00 +0000 Subject: Replace --size-only with --omit-dir-times. Now it won't fail on trying to set dir times, but will check file timestamps --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 76988d2a8f..dfd69b88d9 100644 --- a/Makefile +++ b/Makefile @@ -191,7 +191,7 @@ publish-master: push-master .PHONY: upload-openslug-cross upload-openslug-cross: openslug/Makefile - rsync --size-only --delete -av --exclude="morgue" openslug/tmp/deploy/ipk/ unslung@nslu.sf.net:nslu/feeds/openslug/unstable/ + rsync --omit-dir-times --delete -av --exclude="morgue" openslug/tmp/deploy/ipk/ unslung@nslu.sf.net:nslu/feeds/openslug/unstable/ .PHONY: import-openembedded import-openembedded: openembedded/conf/machine/nslu2.conf -- cgit v1.2.3 From 87d14d029ffcf90065c56747854b475d9beba187 Mon Sep 17 00:00:00 2001 From: jp30 Date: Wed, 27 Jul 2005 07:10:02 +0000 Subject: upload-unslung-modules target --- Makefile | 9 +++++++++ scripts/.mtn2git_empty | 0 scripts/package-strip.pl | 28 ++++++++++++++++++++++++++++ 3 files changed, 37 insertions(+) create mode 100644 scripts/.mtn2git_empty create mode 100755 scripts/package-strip.pl diff --git a/Makefile b/Makefile index a73f331afd..33e686c0fe 100644 --- a/Makefile +++ b/Makefile @@ -189,6 +189,15 @@ publish-master: push-master upload-openslug-cross: openslug/Makefile rsync -avr openslug/tmp/deploy/ipk/ unslung@nslu.sf.net:nslu/feeds/openslug/unstable/ +.PHONY: upload-unslung-modules +upload-unslung-modules: unslung/Makefile + scripts/package-strip.pl kernel-module-\* unslung/tmp/deploy/ipk/Packages unslung/tmp/deploy/ipk/Packages.new + mv unslung/tmp/deploy/ipk/Packages.new unslung/tmp/deploy/ipk/Packages + rm -f unslung/tmp/deploy/ipk/Packages.gz + gzip -c unslung/tmp/deploy/ipk/Packages >unslung/tmp/deploy/ipk/Packages.gz + rsync -avr unslung/tmp/deploy/ipk/kernel-module-* unslung@nslu.sf.net:nslu/feeds/unslung/oe/ + rsync -avr unslung/tmp/deploy/ipk/Packages* unslung@nslu.sf.net:nslu/feeds/unslung/oe/ + .PHONY: import-openembedded import-openembedded: openembedded/conf/machine/nslu2.conf monotone pull monotone.vanille.de org.openembedded.* diff --git a/scripts/.mtn2git_empty b/scripts/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 diff --git a/scripts/package-strip.pl b/scripts/package-strip.pl new file mode 100755 index 0000000000..45c64134f8 --- /dev/null +++ b/scripts/package-strip.pl @@ -0,0 +1,28 @@ +#!/usr/bin/perl + +my $pat = shift(@ARGV) || usage(1); +my $infile = shift(@ARGV) || usage(1); +my $outfile = shift(@ARGV) || "-"; +print STDERR "Package-strip processing input file $infile\n"; +print STDERR "Output to " . ($outfile ne "-" ? $outfile : "stdout") . "\n"; + +# massage the regexp to accept semi-shell-style * +$pat =~ s/\*/.*/g; + +open (I,"<$infile") || die $@; +open (O,">>$outfile") || die $@; +undef $/; +my $srctext = ; +close(I); + +my @srclist = split(/\012\012\012/,$srctext); +my @outlist = grep(/Package: $pat/,@srclist); +print O join("\012\012\012",@outlist); +print O "\012\012\012"; + +sub usage { + my $cack = shift(@_); + print STDERR "usage: Package-strip [output filename]\nRemember to escape wildcard characters for the shell."; + die if $cack; +} + -- cgit v1.2.3 From f7bd4facc21cf2b548736dc5bd4441fdd0685744 Mon Sep 17 00:00:00 2001 From: jp30 Date: Wed, 27 Jul 2005 07:20:29 +0000 Subject: set PYTHONPATH for bitbake --- unslung/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/unslung/Makefile b/unslung/Makefile index c46569bee8..a435a1121e 100644 --- a/unslung/Makefile +++ b/unslung/Makefile @@ -21,6 +21,7 @@ setup-env: echo 'OESYS=$$OEROOT/bitbake/' >> setup-env echo 'OEBUILD=$$OEROOT' >> setup-env echo 'PKGDIR=$$OEROOT/openembedded/' >> setup-env + echo 'export PYTHONPATH=$$OESYS/lib' >>setup-env echo 'export BBPATH=$$OEBUILD:$$PKGDIR:$$OESYS' >> setup-env echo 'export PATH=$$OESYS/bin/:$$PATH' >> setup-env echo 'export LD_LIBRARY_PATH=' >> setup-env -- cgit v1.2.3 From 7a9b345b465ac84850e5a11ffb3e9d049c752a0c Mon Sep 17 00:00:00 2001 From: Derek Young Date: Wed, 27 Jul 2005 09:19:51 +0000 Subject: changed the candidate source location for initial db populuation --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 47755dc411..85d6746368 100644 --- a/Makefile +++ b/Makefile @@ -45,7 +45,9 @@ setup-monotone monotone/nslu2-linux.db: # Above may be supplemented by following someday # It currently *requires* monotone 0.21, or it will fail with # a mysterious sounding database error. - # wget http://www.nslu2-linux.org/nslu2-linux.initial.db -O monotone/nslu2-linux.db + # wget http://www.nslu2-linux.org/monotone/nslu2-linux.db -O monotone/nslu2-linux.db + # or + # wget http://ipkg-us-dyoung.nslu2-linux.org/monotone/nslu2-linux.db -O monotone/nslu2-linux.db downloads: [ -e downloads ] || mkdir -p downloads -- cgit v1.2.3 From 7c1a32920f634ee58a54bd7d4dfaab8c79378333 Mon Sep 17 00:00:00 2001 From: Derek Young Date: Wed, 27 Jul 2005 09:47:55 +0000 Subject: add some comments regarding compression scheme --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 85d6746368..3fdf7b024d 100644 --- a/Makefile +++ b/Makefile @@ -45,9 +45,10 @@ setup-monotone monotone/nslu2-linux.db: # Above may be supplemented by following someday # It currently *requires* monotone 0.21, or it will fail with # a mysterious sounding database error. - # wget http://www.nslu2-linux.org/monotone/nslu2-linux.db -O monotone/nslu2-linux.db + # wget http://www.nslu2-linux.org/monotone/nslu2-linux.db -O monotone/nslu2-linux.db.gz # or - # wget http://ipkg-us-dyoung.nslu2-linux.org/monotone/nslu2-linux.db -O monotone/nslu2-linux.db + # wget http://ipkg-us-dyoung.nslu2-linux.org/monotone/nslu2-linux.db -O monotone/nslu2-linux.db.gz + # followed by decompressing it downloads: [ -e downloads ] || mkdir -p downloads -- cgit v1.2.3 From 5c7980141f1329edbb067cd0b56858a5f39a1e91 Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Mon, 25 Jul 2005 05:59:59 +0000 Subject: Fixed setup-optware-developer --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 2bbdcf1896..d5eff9ab52 100644 --- a/Makefile +++ b/Makefile @@ -110,7 +110,7 @@ optware/wl500g/Makefile : optware/Makefile .PHONY: setup-optware-developer setup-optware-developer: ${MAKE} downloads - [ -e optware ] && ( mv optware optware-user ) + [ ! -e optware ] || ( mv optware optware-user ) cvs -d :ext:${CVS_USER}@cvs.sf.net:/cvsroot/nslu co -d optware unslung ${MAKE} optware/nslu2/Makefile optware/wl500g/Makefile -- cgit v1.2.3 From d3783d8f510ad543da05e17a497e153d42d418d6 Mon Sep 17 00:00:00 2001 From: Derek Young Date: Wed, 27 Jul 2005 10:23:38 +0000 Subject: appended the correct suffix --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 2bbdcf1896..1fea88b1b6 100644 --- a/Makefile +++ b/Makefile @@ -52,9 +52,9 @@ setup-monotone monotone/nslu2-linux.db: # Above may be supplemented by following someday # It currently *requires* monotone 0.21, or it will fail with # a mysterious sounding database error. - # wget http://www.nslu2-linux.org/monotone/nslu2-linux.db -O monotone/nslu2-linux.db.gz + # wget http://www.nslu2-linux.org/monotone/nslu2-linux.db.gz -O monotone/nslu2-linux.db.gz # or - # wget http://ipkg-us-dyoung.nslu2-linux.org/monotone/nslu2-linux.db -O monotone/nslu2-linux.db.gz + # wget http://ipkg-us-dyoung.nslu2-linux.org/monotone/nslu2-linux.db.gz -O monotone/nslu2-linux.db.gz # followed by decompressing it downloads: -- cgit v1.2.3 From cb72cea8cfb33f7b58d4c28779f3867685b46a70 Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Tue, 26 Jul 2005 01:46:57 +0000 Subject: Added the push-bitbake and import-bitbake targets --- Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Makefile b/Makefile index 248eec5794..adfc70324b 100644 --- a/Makefile +++ b/Makefile @@ -210,6 +210,10 @@ push: push-master push-openembedded push-master: update-master monotone push +.PHONY: push-bitbake +push-bitbake: update-bitbake + ( cd bitbake ; monotone push ) + .PHONY: push-openembedded push-openembedded: update-openembedded ( cd openembedded ; monotone push ) @@ -240,6 +244,10 @@ import-openembedded: openembedded/conf/machine/nslu2.conf monotone merge -b org.openembedded.dev ; \ fi +.PHONY: import-bitbake +import-bitbake: bitbake/bin/bitbake + svn co svn://svn.berlios.de/bitbake/trunk/bitbake + .PHONY: propagate-from-oe propagate-from-oe: monotone propagate org.openembedded.dev org.openembedded.nslu2-linux -- cgit v1.2.3 From b4c3dfefcdf4ae84969e3209e7b813381c6808a8 Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Tue, 26 Jul 2005 02:04:48 +0000 Subject: Added the upload-optware-nslu2-cross and upload-optware-wl500g-cross targets --- Makefile | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index adfc70324b..333f822364 100644 --- a/Makefile +++ b/Makefile @@ -234,8 +234,18 @@ upload-unslung-modules: unslung/Makefile mv unslung/tmp/deploy/ipk/Packages.new unslung/tmp/deploy/ipk/Packages rm -f unslung/tmp/deploy/ipk/Packages.gz gzip -c unslung/tmp/deploy/ipk/Packages >unslung/tmp/deploy/ipk/Packages.gz - rsync -avr unslung/tmp/deploy/ipk/kernel-module-* unslung@nslu.sf.net:nslu/feeds/unslung/oe/ - rsync -avr unslung/tmp/deploy/ipk/Packages* unslung@nslu.sf.net:nslu/feeds/unslung/oe/ + rsync -vrlt unslung/tmp/deploy/ipk/kernel-module-* unslung@nslu.sf.net:nslu/feeds/unslung/oe/ + rsync -vrl unslung/tmp/deploy/ipk/Packages* unslung@nslu.sf.net:nslu/feeds/unslung/oe/ + +.PHONY: upload-optware-nslu2-cross +upload-optware-nslu2-cross: optware/nslu2/Makefile + rsync -vrlt optware/nslu2/packages/*.ipk unslung@ipkg.nslu2-linux.org:nslu/feeds/unslung/cross/ + rsync -vrl optware/nslu2/packages/ unslung@ipkg.nslu2-linux.org:nslu/feeds/unslung/cross/ + +.PHONY: upload-optware-wl500g-cross +upload-optware-wl500g-cross: optware/wl500g/Makefile + rsync -vrlt optware/wl500g/packages/*.ipk unslung@ipkg.nslu2-linux.org:nslu/feeds/unslung/wl500g/ + rsync -vrl optware/wl500g/packages/ unslung@ipkg.nslu2-linux.org:nslu/feeds/unslung/wl500g/ .PHONY: import-openembedded import-openembedded: openembedded/conf/machine/nslu2.conf -- cgit v1.2.3 From e425c59a06e14acf57533b944b46a921cbb7dfcd Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Tue, 26 Jul 2005 02:41:20 +0000 Subject: Added make autoclean to the optware builds --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 333f822364..82c64a969f 100644 --- a/Makefile +++ b/Makefile @@ -36,11 +36,11 @@ optware build-optware: build-optware-nslu2 build-optware-wl500g .PHONY: optware-nslu2 build-optware-nslu2 optware-nslu2 build-optware-nslu2: optware/nslu2/Makefile - ( cd optware/nslu2 ; make ) + ( cd optware/nslu2 ; make autoclean ; make ) .PHONY: optware-wl500g build-optware-wl500g optware-wl500g build-optware-wl500g: optware/wl500g/Makefile - ( cd optware/wl500g ; make ) + ( cd optware/wl500g ; make autoclean ; make ) .PHONY: setup-monotone setup-monotone monotone/nslu2-linux.db: -- cgit v1.2.3 From 03cbc237bbe7d5405b10be6f544f55cab60cf8dc Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Tue, 26 Jul 2005 05:18:58 +0000 Subject: Rationalised the upload targets --- Makefile | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index 82c64a969f..08796592f3 100644 --- a/Makefile +++ b/Makefile @@ -20,6 +20,9 @@ setup-developer: setup-master setup-bitbake setup-openembedded setup-optware-dev .PHONY: update update: update-master update-bitbake update-openembedded update-optware +.PHONY: upload +upload: upload-openslug-cross upload-unslung-modules upload-optware-nslu2-cross upload-optware-wl500g-cross + .PHONY: clobber clobber: clobber-optware clobber-openembedded clobber-bitbake @@ -226,26 +229,31 @@ publish-master: push-master .PHONY: upload-openslug-cross upload-openslug-cross: openslug/Makefile - rsync --omit-dir-times --delete -av --exclude="morgue" openslug/tmp/deploy/ipk/ unslung@nslu.sf.net:nslu/feeds/openslug/unstable/ + rsync -vlt openslug/tmp/deploy/ipk/*.ipk unslung@ipkg.nslu2-linux.org:nslu/feeds/openslug/unstable/ + rsync -vl openslug/tmp/deploy/ipk/Packages* unslung@ipkg.nslu2-linux.org:nslu/feeds/openslug/unstable/ + rsync -vlt --delete openslug/tmp/deploy/ipk/*.ipk unslung@ipkg.nslu2-linux.org:nslu/feeds/openslug/unstable/ .PHONY: upload-unslung-modules upload-unslung-modules: unslung/Makefile scripts/package-strip.pl kernel-module-\* unslung/tmp/deploy/ipk/Packages unslung/tmp/deploy/ipk/Packages.new mv unslung/tmp/deploy/ipk/Packages.new unslung/tmp/deploy/ipk/Packages rm -f unslung/tmp/deploy/ipk/Packages.gz - gzip -c unslung/tmp/deploy/ipk/Packages >unslung/tmp/deploy/ipk/Packages.gz - rsync -vrlt unslung/tmp/deploy/ipk/kernel-module-* unslung@nslu.sf.net:nslu/feeds/unslung/oe/ - rsync -vrl unslung/tmp/deploy/ipk/Packages* unslung@nslu.sf.net:nslu/feeds/unslung/oe/ + gzip -c unslung/tmp/deploy/ipk/Packages > unslung/tmp/deploy/ipk/Packages.gz + rsync -vlt unslung/tmp/deploy/ipk/kernel-module-* unslung@ipkg.nslu2-linux.org:nslu/feeds/unslung/oe/ + rsync -vl unslung/tmp/deploy/ipk/Packages* unslung@ipkg.nslu2-linux.org:nslu/feeds/unslung/oe/ + rsync -vlt --delete unslung/tmp/deploy/ipk/kernel-module-* unslung@ipkg.nslu2-linux.org:nslu/feeds/unslung/oe/ .PHONY: upload-optware-nslu2-cross upload-optware-nslu2-cross: optware/nslu2/Makefile - rsync -vrlt optware/nslu2/packages/*.ipk unslung@ipkg.nslu2-linux.org:nslu/feeds/unslung/cross/ - rsync -vrl optware/nslu2/packages/ unslung@ipkg.nslu2-linux.org:nslu/feeds/unslung/cross/ + rsync -vlt optware/nslu2/packages/*.ipk unslung@ipkg.nslu2-linux.org:nslu/feeds/unslung/cross/ + rsync -vl optware/nslu2/packages/Packages* unslung@ipkg.nslu2-linux.org:nslu/feeds/unslung/cross/ + rsync -vlt --delete optware/nslu2/packages/*.ipk unslung@ipkg.nslu2-linux.org:nslu/feeds/unslung/cross/ .PHONY: upload-optware-wl500g-cross upload-optware-wl500g-cross: optware/wl500g/Makefile - rsync -vrlt optware/wl500g/packages/*.ipk unslung@ipkg.nslu2-linux.org:nslu/feeds/unslung/wl500g/ - rsync -vrl optware/wl500g/packages/ unslung@ipkg.nslu2-linux.org:nslu/feeds/unslung/wl500g/ + rsync -vlt optware/wl500g/packages/*.ipk unslung@ipkg.nslu2-linux.org:nslu/feeds/unslung/wl500g/ + rsync -vl optware/wl500g/packages/Packages* unslung@ipkg.nslu2-linux.org:nslu/feeds/unslung/wl500g/ + rsync -vlt --delete optware/wl500g/packages/*.ipk unslung@ipkg.nslu2-linux.org:nslu/feeds/unslung/wl500g/ .PHONY: import-openembedded import-openembedded: openembedded/conf/machine/nslu2.conf -- cgit v1.2.3 From 309f707a1ec0f5254105452851f88faac6bedc41 Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Thu, 28 Jul 2005 15:33:15 +0000 Subject: Fixed the upload targets --- Makefile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 08796592f3..158d236a78 100644 --- a/Makefile +++ b/Makefile @@ -229,9 +229,9 @@ publish-master: push-master .PHONY: upload-openslug-cross upload-openslug-cross: openslug/Makefile - rsync -vlt openslug/tmp/deploy/ipk/*.ipk unslung@ipkg.nslu2-linux.org:nslu/feeds/openslug/unstable/ + rsync -vlrt --exclude='Packages*' openslug/tmp/deploy/ipk/ unslung@ipkg.nslu2-linux.org:nslu/feeds/openslug/unstable/ rsync -vl openslug/tmp/deploy/ipk/Packages* unslung@ipkg.nslu2-linux.org:nslu/feeds/openslug/unstable/ - rsync -vlt --delete openslug/tmp/deploy/ipk/*.ipk unslung@ipkg.nslu2-linux.org:nslu/feeds/openslug/unstable/ + rsync -vlrt --delete openslug/tmp/deploy/ipk/ unslung@ipkg.nslu2-linux.org:nslu/feeds/openslug/unstable/ .PHONY: upload-unslung-modules upload-unslung-modules: unslung/Makefile @@ -245,15 +245,15 @@ upload-unslung-modules: unslung/Makefile .PHONY: upload-optware-nslu2-cross upload-optware-nslu2-cross: optware/nslu2/Makefile - rsync -vlt optware/nslu2/packages/*.ipk unslung@ipkg.nslu2-linux.org:nslu/feeds/unslung/cross/ + rsync -vlrt --exclude='Packages*' optware/nslu2/packages/ unslung@ipkg.nslu2-linux.org:nslu/feeds/unslung/cross/ rsync -vl optware/nslu2/packages/Packages* unslung@ipkg.nslu2-linux.org:nslu/feeds/unslung/cross/ - rsync -vlt --delete optware/nslu2/packages/*.ipk unslung@ipkg.nslu2-linux.org:nslu/feeds/unslung/cross/ + rsync -vlrt --delete optware/nslu2/packages/ unslung@ipkg.nslu2-linux.org:nslu/feeds/unslung/cross/ .PHONY: upload-optware-wl500g-cross upload-optware-wl500g-cross: optware/wl500g/Makefile - rsync -vlt optware/wl500g/packages/*.ipk unslung@ipkg.nslu2-linux.org:nslu/feeds/unslung/wl500g/ + rsync -vlrt --exclude='Packages*' optware/wl500g/packages/ unslung@ipkg.nslu2-linux.org:nslu/feeds/unslung/wl500g/ rsync -vl optware/wl500g/packages/Packages* unslung@ipkg.nslu2-linux.org:nslu/feeds/unslung/wl500g/ - rsync -vlt --delete optware/wl500g/packages/*.ipk unslung@ipkg.nslu2-linux.org:nslu/feeds/unslung/wl500g/ + rsync -vlrt --delete optware/wl500g/packages/ unslung@ipkg.nslu2-linux.org:nslu/feeds/unslung/wl500g/ .PHONY: import-openembedded import-openembedded: openembedded/conf/machine/nslu2.conf -- cgit v1.2.3 From d9026a6cd8512dd335a1cde07d13edf294772581 Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Tue, 26 Jul 2005 05:49:44 +0000 Subject: Fixed the openslug unstable feed path --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 158d236a78..e301647bfe 100644 --- a/Makefile +++ b/Makefile @@ -229,9 +229,9 @@ publish-master: push-master .PHONY: upload-openslug-cross upload-openslug-cross: openslug/Makefile - rsync -vlrt --exclude='Packages*' openslug/tmp/deploy/ipk/ unslung@ipkg.nslu2-linux.org:nslu/feeds/openslug/unstable/ - rsync -vl openslug/tmp/deploy/ipk/Packages* unslung@ipkg.nslu2-linux.org:nslu/feeds/openslug/unstable/ - rsync -vlrt --delete openslug/tmp/deploy/ipk/ unslung@ipkg.nslu2-linux.org:nslu/feeds/openslug/unstable/ + rsync -vlrt --exclude='Packages*' openslug/tmp/deploy/ipk/ unslung@ipkg.nslu2-linux.org:nslu/feeds/openslug/cross/unstable/ + rsync -vl openslug/tmp/deploy/ipk/Packages* unslung@ipkg.nslu2-linux.org:nslu/feeds/openslug/cross/unstable/ + rsync -vlrt --delete openslug/tmp/deploy/ipk/ unslung@ipkg.nslu2-linux.org:nslu/feeds/openslug/cross/unstable/ .PHONY: upload-unslung-modules upload-unslung-modules: unslung/Makefile -- cgit v1.2.3 From 5e174cbd419503afd2f84a30dd176afe60985f28 Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Tue, 26 Jul 2005 06:45:31 +0000 Subject: Replaced the initial pull from vanille.de with a download of a prepared database from one of our mirrors --- Makefile | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/Makefile b/Makefile index e301647bfe..447f4d0e05 100644 --- a/Makefile +++ b/Makefile @@ -47,18 +47,12 @@ optware-wl500g build-optware-wl500g: optware/wl500g/Makefile .PHONY: setup-monotone setup-monotone monotone/nslu2-linux.db: - [ -e monotone/nslu2-linux.db ] || ( mkdir -p monotone && monotone -d monotone/nslu2-linux.db db init ) - ( monotone -d monotone/nslu2-linux.db pull monotone.vanille.de org.openembedded.* ) - ( monotone -d monotone/nslu2-linux.db unset database default-server ) - ( monotone -d monotone/nslu2-linux.db unset database default-include-pattern ) + [ -e monotone/nslu2-linux.db ] || ( mkdir -p monotone && \ + wget http://ipkg-us-dyoung.nslu2-linux.org/monotone/nslu2-linux.db.gz -O monotone/nslu2-linux.db.gz && \ + gunzip monotone/nslu2-linux.db.gz ) + - ( monotone -d monotone/nslu2-linux.db unset database default-server ) + - ( monotone -d monotone/nslu2-linux.db unset database default-include-pattern ) ( monotone -d monotone/nslu2-linux.db pull monotone.nslu2-linux.org org.openembedded.* org.nslu2-linux.* ) - # Above may be supplemented by following someday - # It currently *requires* monotone 0.21, or it will fail with - # a mysterious sounding database error. - # wget http://www.nslu2-linux.org/monotone/nslu2-linux.db.gz -O monotone/nslu2-linux.db.gz - # or - # wget http://ipkg-us-dyoung.nslu2-linux.org/monotone/nslu2-linux.db.gz -O monotone/nslu2-linux.db.gz - # followed by decompressing it downloads: [ -e downloads ] || mkdir -p downloads -- cgit v1.2.3 From fb0a1efcf6fe91a549f39affbd9ea021987453bc Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Tue, 26 Jul 2005 06:49:21 +0000 Subject: Commented out the upload line which was failing. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 447f4d0e05..ae5e9bbf0b 100644 --- a/Makefile +++ b/Makefile @@ -235,7 +235,7 @@ upload-unslung-modules: unslung/Makefile gzip -c unslung/tmp/deploy/ipk/Packages > unslung/tmp/deploy/ipk/Packages.gz rsync -vlt unslung/tmp/deploy/ipk/kernel-module-* unslung@ipkg.nslu2-linux.org:nslu/feeds/unslung/oe/ rsync -vl unslung/tmp/deploy/ipk/Packages* unslung@ipkg.nslu2-linux.org:nslu/feeds/unslung/oe/ - rsync -vlt --delete unslung/tmp/deploy/ipk/kernel-module-* unslung@ipkg.nslu2-linux.org:nslu/feeds/unslung/oe/ +# rsync -vlt --delete unslung/tmp/deploy/ipk/kernel-module-* unslung@ipkg.nslu2-linux.org:nslu/feeds/unslung/oe/ .PHONY: upload-optware-nslu2-cross upload-optware-nslu2-cross: optware/nslu2/Makefile -- cgit v1.2.3 From dde76611a8f3a2606b9ed24ea1a4c6653fde5d04 Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Tue, 26 Jul 2005 13:21:48 +0000 Subject: Small fixes to openslug and unslung Makefiles for native builds --- openslug/Makefile | 4 ++-- unslung/Makefile | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/openslug/Makefile b/openslug/Makefile index d6fc3dd8dd..657ed278f5 100644 --- a/openslug/Makefile +++ b/openslug/Makefile @@ -2,7 +2,7 @@ # Licensed under the GPL v2 or later openslug-firmware: setup-env conf/local.conf - . setup-env ; bitbake openslug-packages + . ./setup-env ; bitbake openslug-packages # This does the same thing but with a clean environment # The HOME setting prevents user environment settings @@ -11,7 +11,7 @@ openslug-firmware: setup-env conf/local.conf # .cache in the home directory. openslug-firmware-safe: setup-env conf/local.conf env -i CCACHE_DISABLE=1 CCACHE_DIR="`pwd`/tmp/ccache" HOME=/dev/null \ - sh -c '. setup-env; bitbake openslug-packages' + sh -c '. ./setup-env; bitbake openslug-packages' setup-env: [ -e bitbake ] || ln -s ../bitbake . diff --git a/unslung/Makefile b/unslung/Makefile index a435a1121e..7016538075 100644 --- a/unslung/Makefile +++ b/unslung/Makefile @@ -2,7 +2,7 @@ # Licensed under the GPL v2 or later unslung-firmware: setup-env conf/local.conf - . setup-env ; bitbake unslung-packages + . ./setup-env ; bitbake unslung-packages # This does the same thing but with a clean environment # The HOME setting prevents user environment settings @@ -11,7 +11,7 @@ unslung-firmware: setup-env conf/local.conf # .cache in the home directory. unslung-firmware-safe: setup-env conf/local.conf env -i CCACHE_DISABLE=1 CCACHE_DIR="`pwd`/tmp/ccache" HOME=/dev/null \ - sh -c '. setup-env; bitbake unslung-packages' + sh -c '. ./setup-env; bitbake unslung-packages' setup-env: [ -e bitbake ] || ln -s ../bitbake . -- cgit v1.2.3 From dd6683506b1a920bf700e44fd44d32b40e085b5b Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Fri, 29 Jul 2005 07:22:05 +0000 Subject: Improved the optware build targets --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index ae5e9bbf0b..8161753663 100644 --- a/Makefile +++ b/Makefile @@ -82,7 +82,8 @@ setup-optware optware/Makefile: ${MAKE} downloads [ -e optware/Makefile ] || ( cvs -d :pserver:anonymous@cvs.sf.net:/cvsroot/nslu co -d optware unslung ) -optware/nslu2/Makefile : optware/Makefile +optware/nslu2/Makefile: + ${MAKE} optware/Makefile [ -e optware/nslu2/Makefile ] || ( \ mkdir -p optware/nslu2 ; \ echo "OPTWARE_TARGET=nslu2" > optware/nslu2/Makefile ; \ @@ -93,7 +94,8 @@ optware/nslu2/Makefile : optware/Makefile ln -s ../sources optware/nslu2/sources ; \ ) -optware/wl500g/Makefile : optware/Makefile +optware/wl500g/Makefile: + ${MAKE} optware/Makefile [ -e optware/wl500g/Makefile ] || ( \ mkdir -p optware/wl500g ; \ echo "OPTWARE_TARGET=wl500g" > optware/wl500g/Makefile ; \ -- cgit v1.2.3 From 0933116aa8d0ae1c47f660122960cfcd31d6f3df Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Fri, 29 Jul 2005 07:27:49 +0000 Subject: Improved the OE import and export targets --- Makefile | 32 +++++++++++--------------------- 1 file changed, 11 insertions(+), 21 deletions(-) diff --git a/Makefile b/Makefile index 8161753663..9555c2b971 100644 --- a/Makefile +++ b/Makefile @@ -20,9 +20,6 @@ setup-developer: setup-master setup-bitbake setup-openembedded setup-optware-dev .PHONY: update update: update-master update-bitbake update-openembedded update-optware -.PHONY: upload -upload: upload-openslug-cross upload-unslung-modules upload-optware-nslu2-cross upload-optware-wl500g-cross - .PHONY: clobber clobber: clobber-optware clobber-openembedded clobber-bitbake @@ -203,11 +200,12 @@ clobber-optware: # Targets for use by those with write access to the repositories .PHONY: push -push: push-master push-openembedded +push: push-master push-bitbake push-openembedded .PHONY: push-master push-master: update-master monotone push + scp Makefile www.nslu2-linux.org:/home/nslu/public_html/Makefile .PHONY: push-bitbake push-bitbake: update-bitbake @@ -219,9 +217,8 @@ push-openembedded: update-openembedded # Targets for use by core team members only -.PHONY: publish-master -publish-master: push-master - scp Makefile www.nslu2-linux.org:/home/nslu/public_html/Makefile +.PHONY: upload +upload: upload-openslug-cross upload-unslung-modules upload-optware-nslu2-cross upload-optware-wl500g-cross .PHONY: upload-openslug-cross upload-openslug-cross: openslug/Makefile @@ -251,37 +248,30 @@ upload-optware-wl500g-cross: optware/wl500g/Makefile rsync -vl optware/wl500g/packages/Packages* unslung@ipkg.nslu2-linux.org:nslu/feeds/unslung/wl500g/ rsync -vlrt --delete optware/wl500g/packages/ unslung@ipkg.nslu2-linux.org:nslu/feeds/unslung/wl500g/ +.PHONY: import-bitbake +import-bitbake: bitbake/bin/bitbake + svn co svn://svn.berlios.de/bitbake/trunk/bitbake + .PHONY: import-openembedded import-openembedded: openembedded/conf/machine/nslu2.conf monotone pull monotone.vanille.de org.openembedded.* if [ `monotone automate heads org.openembedded.dev | wc -l` != "1" ] ; then \ monotone merge -b org.openembedded.dev ; \ fi - -.PHONY: import-bitbake -import-bitbake: bitbake/bin/bitbake - svn co svn://svn.berlios.de/bitbake/trunk/bitbake - -.PHONY: propagate-from-oe -propagate-from-oe: monotone propagate org.openembedded.dev org.openembedded.nslu2-linux if [ `monotone automate heads org.openembedded.nslu2-linux | wc -l` != "1" ] ; then \ monotone merge -b org.openembedded.nslu2-linux ; \ fi -.PHONY: propagate-to-oe -propagate-to-oe: +.PHONY: export-openembedded +export-openembedded: openembedded/conf/machine/nslu2.conf monotone propagate org.openembedded.nslu2-linux org.openembedded.dev if [ `monotone automate heads org.openembedded.dev | wc -l` != "1" ] ; then \ monotone merge -b org.openembedded.dev ; \ fi - -.PHONY: export-openembedded -export-openembedded: openembedded/conf/machine/nslu2.conf monotone push monotone.vanille.de org.openembedded.* .PHONY: publish-openembedded -publish-openembedded: import-openembedded propagate-from-oe update-openembedded \ - propagate-to-oe push-openembedded export-openembedded +publish-openembedded: import-openembedded update-openembedded push-openembedded export-openembedded # End of Makefile -- cgit v1.2.3 From cb37f51459f99f8f293869b4de28bd6d3f4e9b1f Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Fri, 29 Jul 2005 07:33:49 +0000 Subject: Fixed the push-master target --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 9555c2b971..861e5a609a 100644 --- a/Makefile +++ b/Makefile @@ -205,7 +205,7 @@ push: push-master push-bitbake push-openembedded .PHONY: push-master push-master: update-master monotone push - scp Makefile www.nslu2-linux.org:/home/nslu/public_html/Makefile + scp Makefile rwhitby@www.nslu2-linux.org:/home/nslu/public_html/Makefile .PHONY: push-bitbake push-bitbake: update-bitbake -- cgit v1.2.3 From f64ef92c8c405258694ed81a75f0b6bc6135f293 Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Fri, 29 Jul 2005 07:41:12 +0000 Subject: Added the upload-sources target for pushing sources to mirrors --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 861e5a609a..3723990a33 100644 --- a/Makefile +++ b/Makefile @@ -218,7 +218,7 @@ push-openembedded: update-openembedded # Targets for use by core team members only .PHONY: upload -upload: upload-openslug-cross upload-unslung-modules upload-optware-nslu2-cross upload-optware-wl500g-cross +upload: upload-openslug-cross upload-unslung-modules upload-optware-nslu2-cross upload-optware-wl500g-cross upload-sources .PHONY: upload-openslug-cross upload-openslug-cross: openslug/Makefile @@ -248,6 +248,10 @@ upload-optware-wl500g-cross: optware/wl500g/Makefile rsync -vl optware/wl500g/packages/Packages* unslung@ipkg.nslu2-linux.org:nslu/feeds/unslung/wl500g/ rsync -vlrt --delete optware/wl500g/packages/ unslung@ipkg.nslu2-linux.org:nslu/feeds/unslung/wl500g/ +.PHONY: upload-sources +upload-sources: + rsync -vlrt --exclude='ixp400*' downloads/ unslung@ipkg.nslu2-linux.org:nslu/sources/ + .PHONY: import-bitbake import-bitbake: bitbake/bin/bitbake svn co svn://svn.berlios.de/bitbake/trunk/bitbake -- cgit v1.2.3 From 63468a250c6824ae41f0b1b2f525e549f31b0d25 Mon Sep 17 00:00:00 2001 From: Derek Young Date: Fri, 29 Jul 2005 10:27:16 +0000 Subject: Added hooks for mirror syncing --- Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Makefile b/Makefile index 3723990a33..8995658022 100644 --- a/Makefile +++ b/Makefile @@ -223,8 +223,10 @@ upload: upload-openslug-cross upload-unslung-modules upload-optware-nslu2-cross .PHONY: upload-openslug-cross upload-openslug-cross: openslug/Makefile rsync -vlrt --exclude='Packages*' openslug/tmp/deploy/ipk/ unslung@ipkg.nslu2-linux.org:nslu/feeds/openslug/cross/unstable/ + ssh nslu2@ipkg-us-dyoung.nslu2-linux.org mirror/sync_ipk openslug/cross rsync -vl openslug/tmp/deploy/ipk/Packages* unslung@ipkg.nslu2-linux.org:nslu/feeds/openslug/cross/unstable/ rsync -vlrt --delete openslug/tmp/deploy/ipk/ unslung@ipkg.nslu2-linux.org:nslu/feeds/openslug/cross/unstable/ + ssh nslu2@ipkg-us-dyoung.nslu2-linux.org mirror/sync_packages_clean openslug/cross .PHONY: upload-unslung-modules upload-unslung-modules: unslung/Makefile @@ -233,20 +235,26 @@ upload-unslung-modules: unslung/Makefile rm -f unslung/tmp/deploy/ipk/Packages.gz gzip -c unslung/tmp/deploy/ipk/Packages > unslung/tmp/deploy/ipk/Packages.gz rsync -vlt unslung/tmp/deploy/ipk/kernel-module-* unslung@ipkg.nslu2-linux.org:nslu/feeds/unslung/oe/ + ssh nslu2@ipkg-us-dyoung.nslu2-linux.org mirror/sync_ipk unslung/oe rsync -vl unslung/tmp/deploy/ipk/Packages* unslung@ipkg.nslu2-linux.org:nslu/feeds/unslung/oe/ + ssh nslu2@ipkg-us-dyoung.nslu2-linux.org mirror/sync_packages_clean unslung/oe # rsync -vlt --delete unslung/tmp/deploy/ipk/kernel-module-* unslung@ipkg.nslu2-linux.org:nslu/feeds/unslung/oe/ .PHONY: upload-optware-nslu2-cross upload-optware-nslu2-cross: optware/nslu2/Makefile rsync -vlrt --exclude='Packages*' optware/nslu2/packages/ unslung@ipkg.nslu2-linux.org:nslu/feeds/unslung/cross/ + ssh nslu2@ipkg-us-dyoung.nslu2-linux.org mirror/sync_ipk unslung/cross rsync -vl optware/nslu2/packages/Packages* unslung@ipkg.nslu2-linux.org:nslu/feeds/unslung/cross/ rsync -vlrt --delete optware/nslu2/packages/ unslung@ipkg.nslu2-linux.org:nslu/feeds/unslung/cross/ + ssh nslu2@ipkg-us-dyoung.nslu2-linux.org mirror/sync_packages_clean unslung/cross .PHONY: upload-optware-wl500g-cross upload-optware-wl500g-cross: optware/wl500g/Makefile rsync -vlrt --exclude='Packages*' optware/wl500g/packages/ unslung@ipkg.nslu2-linux.org:nslu/feeds/unslung/wl500g/ + ssh nslu2@ipkg-us-dyoung.nslu2-linux.org mirror/sync_ipk unslung/wl500g rsync -vl optware/wl500g/packages/Packages* unslung@ipkg.nslu2-linux.org:nslu/feeds/unslung/wl500g/ rsync -vlrt --delete optware/wl500g/packages/ unslung@ipkg.nslu2-linux.org:nslu/feeds/unslung/wl500g/ + ssh nslu2@ipkg-us-dyoung.nslu2-linux.org mirror/sync_packages_clean unslung/wl500g .PHONY: upload-sources upload-sources: -- cgit v1.2.3 From 398c1c2678a0c9bcb6b79a812153e72879a48834 Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Wed, 27 Jul 2005 08:05:37 +0000 Subject: Added new sources.nslu2-linux.org master mirror --- Makefile | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index 8995658022..7d362c3afa 100644 --- a/Makefile +++ b/Makefile @@ -223,10 +223,10 @@ upload: upload-openslug-cross upload-unslung-modules upload-optware-nslu2-cross .PHONY: upload-openslug-cross upload-openslug-cross: openslug/Makefile rsync -vlrt --exclude='Packages*' openslug/tmp/deploy/ipk/ unslung@ipkg.nslu2-linux.org:nslu/feeds/openslug/cross/unstable/ - ssh nslu2@ipkg-us-dyoung.nslu2-linux.org mirror/sync_ipk openslug/cross + ssh nslu2@sources.nslu2-linux.org mirror/sync_ipk openslug/cross rsync -vl openslug/tmp/deploy/ipk/Packages* unslung@ipkg.nslu2-linux.org:nslu/feeds/openslug/cross/unstable/ rsync -vlrt --delete openslug/tmp/deploy/ipk/ unslung@ipkg.nslu2-linux.org:nslu/feeds/openslug/cross/unstable/ - ssh nslu2@ipkg-us-dyoung.nslu2-linux.org mirror/sync_packages_clean openslug/cross + ssh nslu2@sources.nslu2-linux.org mirror/sync_packages_clean openslug/cross .PHONY: upload-unslung-modules upload-unslung-modules: unslung/Makefile @@ -235,30 +235,30 @@ upload-unslung-modules: unslung/Makefile rm -f unslung/tmp/deploy/ipk/Packages.gz gzip -c unslung/tmp/deploy/ipk/Packages > unslung/tmp/deploy/ipk/Packages.gz rsync -vlt unslung/tmp/deploy/ipk/kernel-module-* unslung@ipkg.nslu2-linux.org:nslu/feeds/unslung/oe/ - ssh nslu2@ipkg-us-dyoung.nslu2-linux.org mirror/sync_ipk unslung/oe + ssh nslu2@sources.nslu2-linux.org mirror/sync_ipk unslung/oe rsync -vl unslung/tmp/deploy/ipk/Packages* unslung@ipkg.nslu2-linux.org:nslu/feeds/unslung/oe/ - ssh nslu2@ipkg-us-dyoung.nslu2-linux.org mirror/sync_packages_clean unslung/oe + ssh nslu2@sources.nslu2-linux.org mirror/sync_packages_clean unslung/oe # rsync -vlt --delete unslung/tmp/deploy/ipk/kernel-module-* unslung@ipkg.nslu2-linux.org:nslu/feeds/unslung/oe/ .PHONY: upload-optware-nslu2-cross upload-optware-nslu2-cross: optware/nslu2/Makefile rsync -vlrt --exclude='Packages*' optware/nslu2/packages/ unslung@ipkg.nslu2-linux.org:nslu/feeds/unslung/cross/ - ssh nslu2@ipkg-us-dyoung.nslu2-linux.org mirror/sync_ipk unslung/cross + ssh nslu2@sources.nslu2-linux.org mirror/sync_ipk unslung/cross rsync -vl optware/nslu2/packages/Packages* unslung@ipkg.nslu2-linux.org:nslu/feeds/unslung/cross/ rsync -vlrt --delete optware/nslu2/packages/ unslung@ipkg.nslu2-linux.org:nslu/feeds/unslung/cross/ - ssh nslu2@ipkg-us-dyoung.nslu2-linux.org mirror/sync_packages_clean unslung/cross + ssh nslu2@sources.nslu2-linux.org mirror/sync_packages_clean unslung/cross .PHONY: upload-optware-wl500g-cross upload-optware-wl500g-cross: optware/wl500g/Makefile rsync -vlrt --exclude='Packages*' optware/wl500g/packages/ unslung@ipkg.nslu2-linux.org:nslu/feeds/unslung/wl500g/ - ssh nslu2@ipkg-us-dyoung.nslu2-linux.org mirror/sync_ipk unslung/wl500g + ssh nslu2@sources.nslu2-linux.org mirror/sync_ipk unslung/wl500g rsync -vl optware/wl500g/packages/Packages* unslung@ipkg.nslu2-linux.org:nslu/feeds/unslung/wl500g/ rsync -vlrt --delete optware/wl500g/packages/ unslung@ipkg.nslu2-linux.org:nslu/feeds/unslung/wl500g/ - ssh nslu2@ipkg-us-dyoung.nslu2-linux.org mirror/sync_packages_clean unslung/wl500g + ssh nslu2@sources.nslu2-linux.org mirror/sync_packages_clean unslung/wl500g .PHONY: upload-sources upload-sources: - rsync -vlrt --exclude='ixp400*' downloads/ unslung@ipkg.nslu2-linux.org:nslu/sources/ + rsync -vlrt --exclude='ixp400*' downloads/ nslu2@sources.nslu2-linux.org:ipkg/sources/ .PHONY: import-bitbake import-bitbake: bitbake/bin/bitbake -- cgit v1.2.3 From c82a9e624ca21055f5067cb66ada11618cdb0769 Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Wed, 27 Jul 2005 09:40:07 +0000 Subject: Made all the cvs commands quiet --- Makefile | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index 7d362c3afa..60d3a16040 100644 --- a/Makefile +++ b/Makefile @@ -77,7 +77,7 @@ setup-openembedded openembedded/conf/machine/nslu2.conf: .PHONY: setup-optware setup-optware optware/Makefile: ${MAKE} downloads - [ -e optware/Makefile ] || ( cvs -d :pserver:anonymous@cvs.sf.net:/cvsroot/nslu co -d optware unslung ) + [ -e optware/Makefile ] || ( cvs -q -d :pserver:anonymous@cvs.sf.net:/cvsroot/nslu co -d optware unslung ) optware/nslu2/Makefile: ${MAKE} optware/Makefile @@ -107,28 +107,28 @@ optware/wl500g/Makefile: setup-optware-developer: ${MAKE} downloads [ ! -e optware ] || ( mv optware optware-user ) - cvs -d :ext:${CVS_USER}@cvs.sf.net:/cvsroot/nslu co -d optware unslung + cvs -q -d :ext:${CVS_USER}@cvs.sf.net:/cvsroot/nslu co -d optware unslung ${MAKE} optware/nslu2/Makefile optware/wl500g/Makefile .PHONY: setup-slugimage-developer setup-slugimage-developer: - cvs -d :ext:${CVS_USER}@cvs.sf.net:/cvsroot/nslu co slugimage + cvs -q -d :ext:${CVS_USER}@cvs.sf.net:/cvsroot/nslu co slugimage .PHONY: setup-upslug-developer setup-upslug-developer: - cvs -d :ext:${CVS_USER}@cvs.sf.net:/cvsroot/nslu co upslug + cvs -q -d :ext:${CVS_USER}@cvs.sf.net:/cvsroot/nslu co upslug .PHONY: setup-sluggo-developer setup-sluggo-developer: - cvs -d :ext:${CVS_USER}@cvs.sf.net:/cvsroot/nslu co sluggo + cvs -q -d :ext:${CVS_USER}@cvs.sf.net:/cvsroot/nslu co sluggo .PHONY: setup-apex setup-apex apex/Makefile: - cvs -d :pserver:anonymous@cvs.sf.net:/cvsroot/nslu co apex + cvs -q -d :pserver:anonymous@cvs.sf.net:/cvsroot/nslu co apex .PHONY: setup-apex-developer setup-apex-developer: - cvs -d :ext:${CVS_USER}@cvs.sf.net:/cvsroot/nslu co apex + cvs -q -d :ext:${CVS_USER}@cvs.sf.net:/cvsroot/nslu co apex .PHONY: setup-host-debian setup-host-debian: @@ -183,7 +183,7 @@ update-openembedded: openembedded/conf/machine/nslu2.conf .PHONY: update-optware update-optware: optware/Makefile - ( cd optware ; cvs update -d -P ) + ( cd optware ; cvs -q update -d -P ) .PHONY: clobber-bitbake clobber-bitbake: -- cgit v1.2.3 From 6a8486d842cd7b996b09430fd75d2f7b16936a9b Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Wed, 27 Jul 2005 10:08:40 +0000 Subject: Migrated to correct user for www.nslu2-linux.org --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 60d3a16040..d3aef815ae 100644 --- a/Makefile +++ b/Makefile @@ -205,7 +205,7 @@ push: push-master push-bitbake push-openembedded .PHONY: push-master push-master: update-master monotone push - scp Makefile rwhitby@www.nslu2-linux.org:/home/nslu/public_html/Makefile + scp Makefile nslu@www.nslu2-linux.org:public_html/Makefile .PHONY: push-bitbake push-bitbake: update-bitbake -- cgit v1.2.3 From f5c5871199a5d62d40175efe733fd4e6541279f2 Mon Sep 17 00:00:00 2001 From: Derek Young Date: Fri, 29 Jul 2005 13:31:02 +0000 Subject: change the source URL for initial monotone db --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 60d3a16040..ec27efa332 100644 --- a/Makefile +++ b/Makefile @@ -45,7 +45,7 @@ optware-wl500g build-optware-wl500g: optware/wl500g/Makefile .PHONY: setup-monotone setup-monotone monotone/nslu2-linux.db: [ -e monotone/nslu2-linux.db ] || ( mkdir -p monotone && \ - wget http://ipkg-us-dyoung.nslu2-linux.org/monotone/nslu2-linux.db.gz -O monotone/nslu2-linux.db.gz && \ + wget http://sources.nslu2-linux.org/monotone/nslu2-linux.db.gz -O monotone/nslu2-linux.db.gz && \ gunzip monotone/nslu2-linux.db.gz ) - ( monotone -d monotone/nslu2-linux.db unset database default-server ) - ( monotone -d monotone/nslu2-linux.db unset database default-include-pattern ) -- cgit v1.2.3 From 9978017cd5a2bf40d031dcc7bce456756892dd61 Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Wed, 27 Jul 2005 11:28:32 +0000 Subject: Remove the morgue dirs before uploading --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index fbdb72dae6..f97685759d 100644 --- a/Makefile +++ b/Makefile @@ -222,6 +222,7 @@ upload: upload-openslug-cross upload-unslung-modules upload-optware-nslu2-cross .PHONY: upload-openslug-cross upload-openslug-cross: openslug/Makefile + rm -rf openslug/tmp/deploy/ipk/morgue rsync -vlrt --exclude='Packages*' openslug/tmp/deploy/ipk/ unslung@ipkg.nslu2-linux.org:nslu/feeds/openslug/cross/unstable/ ssh nslu2@sources.nslu2-linux.org mirror/sync_ipk openslug/cross rsync -vl openslug/tmp/deploy/ipk/Packages* unslung@ipkg.nslu2-linux.org:nslu/feeds/openslug/cross/unstable/ @@ -230,6 +231,7 @@ upload-openslug-cross: openslug/Makefile .PHONY: upload-unslung-modules upload-unslung-modules: unslung/Makefile + rm -rf unslung/tmp/deploy/ipk/morgue scripts/package-strip.pl kernel-module-\* unslung/tmp/deploy/ipk/Packages unslung/tmp/deploy/ipk/Packages.new mv unslung/tmp/deploy/ipk/Packages.new unslung/tmp/deploy/ipk/Packages rm -f unslung/tmp/deploy/ipk/Packages.gz -- cgit v1.2.3 From 5ed49b042fa7311f334a61d92b0a82b47a6eb58b Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Thu, 28 Jul 2005 05:59:16 +0000 Subject: Added a naive autobuild target --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index f97685759d..df9b19dec5 100644 --- a/Makefile +++ b/Makefile @@ -217,6 +217,12 @@ push-openembedded: update-openembedded # Targets for use by core team members only +.PHONY: autobuild +autobuild: + while true ; do \ + ${MAKE} update build upload ; \ + done + .PHONY: upload upload: upload-openslug-cross upload-unslung-modules upload-optware-nslu2-cross upload-optware-wl500g-cross upload-sources -- cgit v1.2.3 From f8806e26ae6461f020879f41f0d8535daa824c95 Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Thu, 28 Jul 2005 07:50:26 +0000 Subject: Removed the CVS_TARBALL_STASH from local.conf.template, cause it is now in nslu2.conf --- openslug/conf/local.conf.template | 4 ---- unslung/conf/local.conf.template | 4 ---- 2 files changed, 8 deletions(-) diff --git a/openslug/conf/local.conf.template b/openslug/conf/local.conf.template index 9139503e6d..45fae8f0d7 100644 --- a/openslug/conf/local.conf.template +++ b/openslug/conf/local.conf.template @@ -89,10 +89,6 @@ CACHE = "${OEROOT}/tmp/cache" # Uncomment this if you want OE to emit the log if a build fails. OEINCLUDELOGS = "yes" -# Specifies a location to search for pre-generated tarballs when fetching -# a cvs:// URI. Uncomment this, if you not want to pull directly from CVS. -CVS_TARBALL_STASH = "http://www.oesources.org/source/current/" - # INHERIT += "src_distribute_local pkg_distribute" # EDIT THIS FILE and then remove the line below before using! diff --git a/unslung/conf/local.conf.template b/unslung/conf/local.conf.template index 3ec09752f1..db24fdf849 100644 --- a/unslung/conf/local.conf.template +++ b/unslung/conf/local.conf.template @@ -52,10 +52,6 @@ CACHE = "${OEROOT}/tmp/cache" # Uncomment this if you want OE to emit the log if a build fails. OEINCLUDELOGS = "yes" -# Specifies a location to search for pre-generated tarballs when fetching -# a cvs:// URI. Uncomment this, if you not want to pull directly from CVS. -CVS_TARBALL_STASH = "http://www.oesources.org/source/current/" - # INHERIT += "src_distribute_local pkg_distribute" # EDIT THIS FILE and then remove the line below before using! -- cgit v1.2.3 From 31323e038dac41ebbae0f33e0471d46ec5bd38db Mon Sep 17 00:00:00 2001 From: Derek Young Date: Sat, 30 Jul 2005 10:08:49 +0000 Subject: change names from sync_foo to sync-foo --- Makefile | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index df9b19dec5..f412c36f81 100644 --- a/Makefile +++ b/Makefile @@ -230,10 +230,10 @@ upload: upload-openslug-cross upload-unslung-modules upload-optware-nslu2-cross upload-openslug-cross: openslug/Makefile rm -rf openslug/tmp/deploy/ipk/morgue rsync -vlrt --exclude='Packages*' openslug/tmp/deploy/ipk/ unslung@ipkg.nslu2-linux.org:nslu/feeds/openslug/cross/unstable/ - ssh nslu2@sources.nslu2-linux.org mirror/sync_ipk openslug/cross + ssh nslu2@sources.nslu2-linux.org mirror/sync-ipk openslug/cross rsync -vl openslug/tmp/deploy/ipk/Packages* unslung@ipkg.nslu2-linux.org:nslu/feeds/openslug/cross/unstable/ rsync -vlrt --delete openslug/tmp/deploy/ipk/ unslung@ipkg.nslu2-linux.org:nslu/feeds/openslug/cross/unstable/ - ssh nslu2@sources.nslu2-linux.org mirror/sync_packages_clean openslug/cross + ssh nslu2@sources.nslu2-linux.org mirror/sync-packages_clean openslug/cross .PHONY: upload-unslung-modules upload-unslung-modules: unslung/Makefile @@ -243,26 +243,26 @@ upload-unslung-modules: unslung/Makefile rm -f unslung/tmp/deploy/ipk/Packages.gz gzip -c unslung/tmp/deploy/ipk/Packages > unslung/tmp/deploy/ipk/Packages.gz rsync -vlt unslung/tmp/deploy/ipk/kernel-module-* unslung@ipkg.nslu2-linux.org:nslu/feeds/unslung/oe/ - ssh nslu2@sources.nslu2-linux.org mirror/sync_ipk unslung/oe + ssh nslu2@sources.nslu2-linux.org mirror/sync-ipk unslung/oe rsync -vl unslung/tmp/deploy/ipk/Packages* unslung@ipkg.nslu2-linux.org:nslu/feeds/unslung/oe/ - ssh nslu2@sources.nslu2-linux.org mirror/sync_packages_clean unslung/oe + ssh nslu2@sources.nslu2-linux.org mirror/sync-packages_clean unslung/oe # rsync -vlt --delete unslung/tmp/deploy/ipk/kernel-module-* unslung@ipkg.nslu2-linux.org:nslu/feeds/unslung/oe/ .PHONY: upload-optware-nslu2-cross upload-optware-nslu2-cross: optware/nslu2/Makefile rsync -vlrt --exclude='Packages*' optware/nslu2/packages/ unslung@ipkg.nslu2-linux.org:nslu/feeds/unslung/cross/ - ssh nslu2@sources.nslu2-linux.org mirror/sync_ipk unslung/cross + ssh nslu2@sources.nslu2-linux.org mirror/sync-ipk unslung/cross rsync -vl optware/nslu2/packages/Packages* unslung@ipkg.nslu2-linux.org:nslu/feeds/unslung/cross/ rsync -vlrt --delete optware/nslu2/packages/ unslung@ipkg.nslu2-linux.org:nslu/feeds/unslung/cross/ - ssh nslu2@sources.nslu2-linux.org mirror/sync_packages_clean unslung/cross + ssh nslu2@sources.nslu2-linux.org mirror/sync-packages_clean unslung/cross .PHONY: upload-optware-wl500g-cross upload-optware-wl500g-cross: optware/wl500g/Makefile rsync -vlrt --exclude='Packages*' optware/wl500g/packages/ unslung@ipkg.nslu2-linux.org:nslu/feeds/unslung/wl500g/ - ssh nslu2@sources.nslu2-linux.org mirror/sync_ipk unslung/wl500g + ssh nslu2@sources.nslu2-linux.org mirror/sync-ipk unslung/wl500g rsync -vl optware/wl500g/packages/Packages* unslung@ipkg.nslu2-linux.org:nslu/feeds/unslung/wl500g/ rsync -vlrt --delete optware/wl500g/packages/ unslung@ipkg.nslu2-linux.org:nslu/feeds/unslung/wl500g/ - ssh nslu2@sources.nslu2-linux.org mirror/sync_packages_clean unslung/wl500g + ssh nslu2@sources.nslu2-linux.org mirror/sync-packages_clean unslung/wl500g .PHONY: upload-sources upload-sources: -- cgit v1.2.3 From 71fe9cf98f09abfa1d0b79bddc951793e8620afe Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Thu, 28 Jul 2005 10:07:09 +0000 Subject: More merging in publish-openembedded, and updated autobuild (to be called from cron) --- Makefile | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index f412c36f81..579f4136c8 100644 --- a/Makefile +++ b/Makefile @@ -219,9 +219,7 @@ push-openembedded: update-openembedded .PHONY: autobuild autobuild: - while true ; do \ - ${MAKE} update build upload ; \ - done + ${MAKE} update build upload .PHONY: upload upload: upload-openslug-cross upload-unslung-modules upload-optware-nslu2-cross upload-optware-wl500g-cross upload-sources @@ -278,6 +276,9 @@ import-openembedded: openembedded/conf/machine/nslu2.conf if [ `monotone automate heads org.openembedded.dev | wc -l` != "1" ] ; then \ monotone merge -b org.openembedded.dev ; \ fi + if [ `monotone automate heads org.openembedded.nslu2-linux | wc -l` != "1" ] ; then \ + monotone merge -b org.openembedded.nslu2-linux ; \ + fi monotone propagate org.openembedded.dev org.openembedded.nslu2-linux if [ `monotone automate heads org.openembedded.nslu2-linux | wc -l` != "1" ] ; then \ monotone merge -b org.openembedded.nslu2-linux ; \ @@ -285,6 +286,12 @@ import-openembedded: openembedded/conf/machine/nslu2.conf .PHONY: export-openembedded export-openembedded: openembedded/conf/machine/nslu2.conf + if [ `monotone automate heads org.openembedded.nslu2-linux | wc -l` != "1" ] ; then \ + monotone merge -b org.openembedded.nslu2-linux ; \ + fi + if [ `monotone automate heads org.openembedded.dev | wc -l` != "1" ] ; then \ + monotone merge -b org.openembedded.dev ; \ + fi monotone propagate org.openembedded.nslu2-linux org.openembedded.dev if [ `monotone automate heads org.openembedded.dev | wc -l` != "1" ] ; then \ monotone merge -b org.openembedded.dev ; \ -- cgit v1.2.3 From 3a6121158d85667d2ac7dba775280a0be72ea33b Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Thu, 28 Jul 2005 11:11:33 +0000 Subject: Fixed the sync-packages_clean script name (should be sync-packages-clean) --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 579f4136c8..10262facb4 100644 --- a/Makefile +++ b/Makefile @@ -231,7 +231,7 @@ upload-openslug-cross: openslug/Makefile ssh nslu2@sources.nslu2-linux.org mirror/sync-ipk openslug/cross rsync -vl openslug/tmp/deploy/ipk/Packages* unslung@ipkg.nslu2-linux.org:nslu/feeds/openslug/cross/unstable/ rsync -vlrt --delete openslug/tmp/deploy/ipk/ unslung@ipkg.nslu2-linux.org:nslu/feeds/openslug/cross/unstable/ - ssh nslu2@sources.nslu2-linux.org mirror/sync-packages_clean openslug/cross + ssh nslu2@sources.nslu2-linux.org mirror/sync-packages-clean openslug/cross .PHONY: upload-unslung-modules upload-unslung-modules: unslung/Makefile @@ -243,7 +243,7 @@ upload-unslung-modules: unslung/Makefile rsync -vlt unslung/tmp/deploy/ipk/kernel-module-* unslung@ipkg.nslu2-linux.org:nslu/feeds/unslung/oe/ ssh nslu2@sources.nslu2-linux.org mirror/sync-ipk unslung/oe rsync -vl unslung/tmp/deploy/ipk/Packages* unslung@ipkg.nslu2-linux.org:nslu/feeds/unslung/oe/ - ssh nslu2@sources.nslu2-linux.org mirror/sync-packages_clean unslung/oe + ssh nslu2@sources.nslu2-linux.org mirror/sync-packages-clean unslung/oe # rsync -vlt --delete unslung/tmp/deploy/ipk/kernel-module-* unslung@ipkg.nslu2-linux.org:nslu/feeds/unslung/oe/ .PHONY: upload-optware-nslu2-cross @@ -252,7 +252,7 @@ upload-optware-nslu2-cross: optware/nslu2/Makefile ssh nslu2@sources.nslu2-linux.org mirror/sync-ipk unslung/cross rsync -vl optware/nslu2/packages/Packages* unslung@ipkg.nslu2-linux.org:nslu/feeds/unslung/cross/ rsync -vlrt --delete optware/nslu2/packages/ unslung@ipkg.nslu2-linux.org:nslu/feeds/unslung/cross/ - ssh nslu2@sources.nslu2-linux.org mirror/sync-packages_clean unslung/cross + ssh nslu2@sources.nslu2-linux.org mirror/sync-packages-clean unslung/cross .PHONY: upload-optware-wl500g-cross upload-optware-wl500g-cross: optware/wl500g/Makefile @@ -260,7 +260,7 @@ upload-optware-wl500g-cross: optware/wl500g/Makefile ssh nslu2@sources.nslu2-linux.org mirror/sync-ipk unslung/wl500g rsync -vl optware/wl500g/packages/Packages* unslung@ipkg.nslu2-linux.org:nslu/feeds/unslung/wl500g/ rsync -vlrt --delete optware/wl500g/packages/ unslung@ipkg.nslu2-linux.org:nslu/feeds/unslung/wl500g/ - ssh nslu2@sources.nslu2-linux.org mirror/sync-packages_clean unslung/wl500g + ssh nslu2@sources.nslu2-linux.org mirror/sync-packages-clean unslung/wl500g .PHONY: upload-sources upload-sources: -- cgit v1.2.3 From 0353b4e219a586d5369382f41ed127ebf408348f Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Fri, 29 Jul 2005 07:27:41 +0000 Subject: Improved the import-bitbake target --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 10262facb4..50bf3e716f 100644 --- a/Makefile +++ b/Makefile @@ -268,7 +268,11 @@ upload-sources: .PHONY: import-bitbake import-bitbake: bitbake/bin/bitbake + mv bitbake bitbake.old svn co svn://svn.berlios.de/bitbake/trunk/bitbake + cp -rp bitbake.old/MT bitbake.old/.mt-attrs bitbake + rm -rf bitbake.old + ( cd bitbake ; rm -rf .svn ; monotone status ) .PHONY: import-openembedded import-openembedded: openembedded/conf/machine/nslu2.conf -- cgit v1.2.3 From 1ec4fe88982c3a15507c227d770807405d25463d Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Sat, 30 Jul 2005 03:20:44 +0000 Subject: Fixed the openslug upload targets --- Makefile | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index fd5770bcd7..716cf29be1 100644 --- a/Makefile +++ b/Makefile @@ -242,7 +242,12 @@ push-openembedded: update-openembedded .PHONY: autobuild autobuild: - ${MAKE} update build upload + ${MAKE} update + ${MAKE} build-openslug upload-openslug-cross + ${MAKE} build-unslung upload-unslung-modules + ${MAKE} build-optware-nslu2 upload-optware-nslu2-cross + ${MAKE} build-optware-wl500g upload-optware-wl500g-cross + ${MAKE} upload-sources .PHONY: upload upload: upload-openslug-cross upload-unslung-modules upload-optware-nslu2-cross upload-optware-wl500g-cross upload-sources @@ -251,10 +256,10 @@ upload: upload-openslug-cross upload-unslung-modules upload-optware-nslu2-cross upload-openslug-cross: openslug/Makefile rm -rf openslug/tmp/deploy/ipk/morgue rsync -vlrt --exclude='Packages*' openslug/tmp/deploy/ipk/ unslung@ipkg.nslu2-linux.org:nslu/feeds/openslug/cross/unstable/ - ssh nslu2@sources.nslu2-linux.org mirror/sync-ipk openslug/cross + ssh nslu2@sources.nslu2-linux.org mirror/sync-ipk openslug/cross/unstable rsync -vl openslug/tmp/deploy/ipk/Packages* unslung@ipkg.nslu2-linux.org:nslu/feeds/openslug/cross/unstable/ rsync -vlrt --delete openslug/tmp/deploy/ipk/ unslung@ipkg.nslu2-linux.org:nslu/feeds/openslug/cross/unstable/ - ssh nslu2@sources.nslu2-linux.org mirror/sync-packages-clean openslug/cross + ssh nslu2@sources.nslu2-linux.org mirror/sync-packages-clean openslug/cross/unstable .PHONY: upload-unslung-modules upload-unslung-modules: unslung/Makefile @@ -289,11 +294,10 @@ upload-optware-wl500g-cross: optware/wl500g/Makefile upload-openslug-2.3-beta-cross: rm -rf releases/OpenSlug-2.3-beta/tmp/deploy/ipk/morgue rsync -vlrt --exclude='Packages*' releases/OpenSlug-2.3-beta/tmp/deploy/ipk/ unslung@ipkg.nslu2-linux.org:nslu/feeds/openslug/cross/2.3-beta/ - ssh nslu2@sources.nslu2-linux.org mirror/sync-ipk openslug/2.3-beta + ssh nslu2@sources.nslu2-linux.org mirror/sync-ipk openslug/cross/2.3-beta rsync -vl releases/OpenSlug-2.3-beta/tmp/deploy/ipk/Packages* unslung@ipkg.nslu2-linux.org:nslu/feeds/openslug/cross/2.3-beta/ rsync -vlrt --delete releases/OpenSlug-2.3-beta/tmp/deploy/ipk/ unslung@ipkg.nslu2-linux.org:nslu/feeds/openslug/cross/2.3-beta/ - ssh nslu2@sources.nslu2-linux.org mirror/sync-packages-clean openslug/cross - + ssh nslu2@sources.nslu2-linux.org mirror/sync-packages-clean openslug/cross/2.3-beta .PHONY: upload-sources upload-sources: -- cgit v1.2.3 From 58b04ef967a582d63fb14611f5d85ba247c8fe8a Mon Sep 17 00:00:00 2001 From: Oyvind Repvik Date: Sun, 31 Jul 2005 19:05:42 +0000 Subject: Added setup-openslug-2.3-beta target --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index 50bf3e716f..ed0e0eb58b 100644 --- a/Makefile +++ b/Makefile @@ -79,6 +79,12 @@ setup-optware optware/Makefile: ${MAKE} downloads [ -e optware/Makefile ] || ( cvs -q -d :pserver:anonymous@cvs.sf.net:/cvsroot/nslu co -d optware unslung ) +.PHONY: setup-openslug-2.3-beta +setup-openslug-2.3-beta releases/OpenSlug-2.3-beta/Makefile: + [ ! -e releases/OpenSlug-2.3-beta ] || mkdir -p releases + svn checkout svn://svn.berlios.de/openslug/releases/OpenSlug-2.3-beta releases/OpenSlug-2.3-beta + cd releases/OpenSlug-2.3-beta && ${MAKE} conf/local.conf setup-env + optware/nslu2/Makefile: ${MAKE} optware/Makefile [ -e optware/nslu2/Makefile ] || ( \ -- cgit v1.2.3 From fd9d0b8353aa1f5958e55c42b94fe9f555a93a10 Mon Sep 17 00:00:00 2001 From: Oyvind Repvik Date: Sun, 31 Jul 2005 19:10:55 +0000 Subject: Added build-openslug-2.3-beta target --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index ed0e0eb58b..ae09bc79fd 100644 --- a/Makefile +++ b/Makefile @@ -42,6 +42,10 @@ optware-nslu2 build-optware-nslu2: optware/nslu2/Makefile optware-wl500g build-optware-wl500g: optware/wl500g/Makefile ( cd optware/wl500g ; make autoclean ; make ) +.PHONY: openslug-2.3-beta build-openslug-2.3-beta +openslug-2.3-beta build-openslug-2.3-beta: + ( cd releases/OpenSlug-2.3-beta ; ${MAKE} openslug-firmware ) + .PHONY: setup-monotone setup-monotone monotone/nslu2-linux.db: [ -e monotone/nslu2-linux.db ] || ( mkdir -p monotone && \ -- cgit v1.2.3 From c30ba2e3ff4548886ba605e0e0a9f3efe28320d3 Mon Sep 17 00:00:00 2001 From: Oyvind Repvik Date: Sun, 31 Jul 2005 19:12:56 +0000 Subject: Added update-openslug-2.3-beta target --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index ae09bc79fd..96c30cd90b 100644 --- a/Makefile +++ b/Makefile @@ -195,6 +195,10 @@ update-openembedded: openembedded/conf/machine/nslu2.conf update-optware: optware/Makefile ( cd optware ; cvs -q update -d -P ) +.PHONY: update-openslug-2.3-beta +update-openslug-2.3-beta: + ( cd releases/OpenSlug-2.3-beta ; svn up ) + .PHONY: clobber-bitbake clobber-bitbake: rm -rf bitbake -- cgit v1.2.3 From 6a97d9a518f1038e988ddcc6cc15bb8a7ee3a47e Mon Sep 17 00:00:00 2001 From: Oyvind Repvik Date: Sun, 31 Jul 2005 19:17:17 +0000 Subject: Added upload-openslug-2.3-beta-cross target --- Makefile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Makefile b/Makefile index 96c30cd90b..91861eb890 100644 --- a/Makefile +++ b/Makefile @@ -276,6 +276,16 @@ upload-optware-wl500g-cross: optware/wl500g/Makefile rsync -vlrt --delete optware/wl500g/packages/ unslung@ipkg.nslu2-linux.org:nslu/feeds/unslung/wl500g/ ssh nslu2@sources.nslu2-linux.org mirror/sync-packages-clean unslung/wl500g +.PHONY: upload-openslug-2.3-beta-cross +upload-openslug-2.3-beta-cross: + rm -rf releases/OpenSlug-2.3-beta/tmp/deploy/ipk/morgue + rsync -vlrt --exclude='Packages*' releases/OpenSlug-2.3-beta/tmp/deploy/ipk/ unslung@ipkg.nslu2-linux.org:nslu/feeds/openslug/cross/2.3-beta/ + ssh nslu2@sources.nslu2-linux.org mirror/sync-ipk openslug/2.3-beta + rsync -vl releases/OpenSlug-2.3-beta/tmp/deploy/ipk/Packages* unslung@ipkg.nslu2-linux.org:nslu/feeds/openslug/cross/2.3-beta/ + rsync -vlrt --delete releases/OpenSlug-2.3-beta/tmp/deploy/ipk/ unslung@ipkg.nslu2-linux.org:nslu/feeds/openslug/cross/2.3-beta/ + ssh nslu2@sources.nslu2-linux.org mirror/sync-packages-clean openslug/cross + + .PHONY: upload-sources upload-sources: rsync -vlrt --exclude='ixp400*' downloads/ nslu2@sources.nslu2-linux.org:ipkg/sources/ -- cgit v1.2.3 From 288f02466384e5f973b486db3f85fc44971aa1e2 Mon Sep 17 00:00:00 2001 From: Oyvind Repvik Date: Sun, 31 Jul 2005 19:20:48 +0000 Subject: Added setup-openslug-2.3-beta-developer target --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index 91861eb890..ccb7c26103 100644 --- a/Makefile +++ b/Makefile @@ -140,6 +140,12 @@ setup-apex apex/Makefile: setup-apex-developer: cvs -q -d :ext:${CVS_USER}@cvs.sf.net:/cvsroot/nslu co apex +.PHONY: setup-openslug-2.3-beta-developer +setup-openslug-2.3-beta-developer: + [ ! -e releases/OpenSlug-2.3-beta ] || mkdir -p releases + svn checkout svn+ssh://svn.berlios.de/openslug/releases/OpenSlug-2.3-beta releases/OpenSlug-2.3-beta + cd releases/OpenSlug-2.3-beta && ${MAKE} conf/local.conf setup-env + .PHONY: setup-host-debian setup-host-debian: sudo apt-get install \ -- cgit v1.2.3 From ec614588fd38a951177b4c268242c2b82cf6284c Mon Sep 17 00:00:00 2001 From: Oyvind Repvik Date: Sun, 31 Jul 2005 20:06:34 +0000 Subject: Set up SVN_SSH, and make setup-openslug-2.3-beta target use shared downloads --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ccb7c26103..083dfbb057 100644 --- a/Makefile +++ b/Makefile @@ -4,6 +4,7 @@ # Change these if you are unfortunate enough to have a split net personality. SVN_USER ?= ${USER} CVS_USER ?= ${USER} +SVN_SSH ?= "-l ${SVN_USER}" .PHONY: all all: update build @@ -84,10 +85,11 @@ setup-optware optware/Makefile: [ -e optware/Makefile ] || ( cvs -q -d :pserver:anonymous@cvs.sf.net:/cvsroot/nslu co -d optware unslung ) .PHONY: setup-openslug-2.3-beta -setup-openslug-2.3-beta releases/OpenSlug-2.3-beta/Makefile: +setup-openslug-2.3-beta releases/OpenSlug-2.3-beta/Makefile: downloads [ ! -e releases/OpenSlug-2.3-beta ] || mkdir -p releases svn checkout svn://svn.berlios.de/openslug/releases/OpenSlug-2.3-beta releases/OpenSlug-2.3-beta cd releases/OpenSlug-2.3-beta && ${MAKE} conf/local.conf setup-env + ln -s ../../downloads releases/OpenSlug-2.3-beta/ optware/nslu2/Makefile: ${MAKE} optware/Makefile -- cgit v1.2.3 From 4eaef3948ff20abcfd044f5c459c28c568240d82 Mon Sep 17 00:00:00 2001 From: Oyvind Repvik Date: Sun, 31 Jul 2005 20:21:49 +0000 Subject: Make "make update" update openslug-2.3-beta if it exists. --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 083dfbb057..26c87ced74 100644 --- a/Makefile +++ b/Makefile @@ -20,6 +20,7 @@ setup-developer: setup-master setup-bitbake setup-openembedded setup-optware-dev .PHONY: update update: update-master update-bitbake update-openembedded update-optware + [ ! -e releases/OpenSlug-2.3-beta/Makefile ] || ${MAKE} update-openslug-2.3-beta .PHONY: clobber clobber: clobber-optware clobber-openembedded clobber-bitbake -- cgit v1.2.3 From c29996960230d9e9a9cc09cb5834a1be2b8df24f Mon Sep 17 00:00:00 2001 From: Oyvind Repvik Date: Sun, 31 Jul 2005 20:38:22 +0000 Subject: Fix setup-openslug-2.3-beta-developer --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 26c87ced74..fd5770bcd7 100644 --- a/Makefile +++ b/Makefile @@ -146,7 +146,7 @@ setup-apex-developer: .PHONY: setup-openslug-2.3-beta-developer setup-openslug-2.3-beta-developer: [ ! -e releases/OpenSlug-2.3-beta ] || mkdir -p releases - svn checkout svn+ssh://svn.berlios.de/openslug/releases/OpenSlug-2.3-beta releases/OpenSlug-2.3-beta + svn checkout svn+ssh://svn.berlios.de/svnroot/repos/openslug/releases/OpenSlug-2.3-beta releases/OpenSlug-2.3-beta cd releases/OpenSlug-2.3-beta && ${MAKE} conf/local.conf setup-env .PHONY: setup-host-debian -- cgit v1.2.3 From cd0f59d82098ec2008c8a657542a8574721ecb94 Mon Sep 17 00:00:00 2001 From: John Bowler Date: Sun, 31 Jul 2005 23:29:37 +0000 Subject: Sufficient structure to make a buildable ucslugc (only ucslugc-safe tested so far). --- common/.mtn2git_empty | 0 common/Make.rules | 57 +++++++++++++++++++++++++++++++++++++++++++++ common/conf/.mtn2git_empty | 0 common/conf/site.conf | 43 ++++++++++++++++++++++++++++++++++ common/env | 42 +++++++++++++++++++++++++++++++++ ucslugc/.mtn2git_empty | 0 ucslugc/Makefile | 10 ++++++++ ucslugc/conf/.mtn2git_empty | 0 ucslugc/conf/auto.conf | 3 +++ 9 files changed, 155 insertions(+) create mode 100644 common/.mtn2git_empty create mode 100644 common/Make.rules create mode 100644 common/conf/.mtn2git_empty create mode 100644 common/conf/site.conf create mode 100644 common/env create mode 100644 ucslugc/.mtn2git_empty create mode 100644 ucslugc/Makefile create mode 100644 ucslugc/conf/.mtn2git_empty create mode 100644 ucslugc/conf/auto.conf diff --git a/common/.mtn2git_empty b/common/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 diff --git a/common/Make.rules b/common/Make.rules new file mode 100644 index 0000000000..8a5940af56 --- /dev/null +++ b/common/Make.rules @@ -0,0 +1,57 @@ +# Makefile for UcSlugC +# Licensed under the GPL v2 or later +# +# Define DISTRO and TARGET before including this in Makefile + +BUILD_DIRS = downloads home +REQUIRED_DIRS = bitbake openembedded common +FIRMWARE_DEPS = create-topdir $(BUILD_DIRS) $(REQUIRED_DIRS) + +# The default rule is to build the firmware in an unprotected environment. +$(DISTRO)-firmware: $(FIRMWARE_DEPS) + . common/env; exec bitbake $(TARGET) + +# This rule clobbers the environment (note that ccache uses '$HOME' by +# default, so the cache will end up there). +$(DISTRO)-safe: + env -i HOME="`pwd`/home" PATH="$${PATH}" $(MAKE) $(DISTRO)-firmware + +# topdir.conf is re-created automatically if the directory is +# moved - this will cause a full bitbake reparse +.PHONY: create-topdir +create-topdir: topdir.conf + . topdir.conf && test "`pwd`" = "$$TOPDIR" || echo "TOPDIR='`pwd`'" >topdir.conf + +topdir.conf: + echo "TOPDIR='`pwd`'" >$@ + +# rules for directories - if a symlink exists and the target does not +# exist something will go wrong in the build, therefore cause a failure +# here by the mkdir. +$(BUILD_DIRS): + test -d $@ || if test -d ../$@; then ln -s ../$@ .; else mkdir $@; fi + +# these directories must already exist - either in TOPDIR (here) or in .. +$(REQUIRED_DIRS): + test -d $@ || if test -d ../$@; then ln -s ../$@ .; else exit 1; fi + +.PHONY: clobber +clobber: + rm -rf tmp + +.PHONY: $(DISTRO)-source +$(DISTRO)-source: $(REQUIRED_DIRS) + tar zcf $@.tar.gz --exclude=MT Makefile conf/auto.conf $(REQUIRED_DIRS:=/.) + +# This target probably isn't important any longer, because the -source +# target above does the right thing +.PHONY: +distclean: clobber + rm -rf topdir.conf conf/local.conf $(BUILD_DIRS) + +# This target is mainly for testing - it is intended to put the disto directory +# back to its original state, it will destroy a source-tarball system (because +# it removes directories from the tarball). +.PHONY: +really-clean: distclean + rm -rf $(REQUIRED_DIRS) $(DISTRO)-source.tar.gz diff --git a/common/conf/.mtn2git_empty b/common/conf/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 diff --git a/common/conf/site.conf b/common/conf/site.conf new file mode 100644 index 0000000000..45451253e7 --- /dev/null +++ b/common/conf/site.conf @@ -0,0 +1,43 @@ +# NSLU2 master makefile bitbake site configuration +# It should not be necessary to alter this file! +# +# This configuration defines the location of the directories +# bitbake requires to build a particular distribution (DISTRO) +# +# Each DISTRO must create a appropriate topdir file containing +# (just) the definition of TOPDIR +include topdir.conf + +# These definitions should be the same for every DISTRO - if +# a change is necessary make it in the DISTRO auto.conf. The +# rvalues are evaluated here for safety (i.e. to prevent accidents +# if something else defines TOPDIR). +TMPDIR := "${TOPDIR}/tmp" +CACHE := "${TMPDIR}/cache" +DL_DIR := "${TOPDIR}/downloads" + +# The following is not defined or used by the standard bitbake +# configuration files, however it must be defined here for 'freeze' +# and 'unfreeze' to work correctly +PKGDIR := "${TOPDIR}/openembedded" + +# BBFILES is the list of all the .bb files bitbake looks at when +# working out how to build a package. By default this value is +# overridden later in the ${DISTRO}.conf file (when it includes +# conf/distro/freeze.conf). +BBFILES := "${PKGDIR}/packages/*/*.bb" + +# The distro must create the following directories - either by +# populating them with the required files or, in the master makefile +# environment, by symbolic links to the relevant shared directories +# (which are directories of the same name in ..) +# +# common - contains conf/site.conf - this file +# bitbake - the directory containing the bitbake program +# downloads - contains the source files downloaded from the network +# openembedded - the directory containing the OE source +# +# All these directories may be shared between multiple distros. +# The 'tmp' directory may not be shared, however bitbake will create +# it automatically when required. The 'downloads' directory will also +# be created if required by bitbake. diff --git a/common/env b/common/env new file mode 100644 index 0000000000..b41e1f4bc5 --- /dev/null +++ b/common/env @@ -0,0 +1,42 @@ +# setup up the environment for a bitbake build. This is used +# by the makefile and may also be directly sourced from an +# interactive shell. The makefile uses 'env -i' to ensure +# no variables are inherited apart from CCACHE_DISABLE and +# CCACHE_DIR +# +# topdir must exist in the directory and define TOPDIR to +# the full path name of the working directory +. ./topdir.conf +test -n "$TOPDIR" -a -d "$TOPDIR" || { + echo "environment: TOPDIR not defined" >&2 + exit 1 +} +# +# the following must match the definitions in common/conf/site.conf +export PYTHONPATH="${TOPDIR}/bitbake/lib" +export BBPATH="${TOPDIR}:${TOPDIR}/common:${TOPDIR}/openembedded:${TOPDIR}/bitbake" +export PATH="${TOPDIR}/bitbake/bin:${PATH}" +export LD_LIBRARY_PATH= +export LANG=C +#NOTE: if you add export definitions here add them below too! +# +# unset the following (unnecessary for the makefile, but safe) +unset LC_CTYPE +unset CC +unset CXX +unset MFLAGS +unset MAKEFLAGS +# +# make bb into a 'safe' bitbake +alias bb="env -i \ + CCACHE_DISABLE='${CCACHE_DISABLE}' \ + CCACHE_DIR='${CCACHE_DIR}' \ + PYTHONPATH='${PYTHONPATH}' \ + BBPATH='${BBPATH}' \ + PATH='${PATH}' \ + LD_LIBRARY_PATH='${LD_LIBRARY_PATH}' \ + LANG='${LANG}' \ + '${TOPDIR}/bitbake/bin/bitbake'" +# +# remove TOPDIR - not required +unset TOPDIR diff --git a/ucslugc/.mtn2git_empty b/ucslugc/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 diff --git a/ucslugc/Makefile b/ucslugc/Makefile new file mode 100644 index 0000000000..d210721ee2 --- /dev/null +++ b/ucslugc/Makefile @@ -0,0 +1,10 @@ +# Makefile for UcSlugC +# Licensed under the GPL v2 or later +DISTRO=ucslugc +TARGET=openslug-packages + +include common/Make.rules + +# The following is required for bootstrapping +common/Make.rules: + make -f ../common/Make.rules common diff --git a/ucslugc/conf/.mtn2git_empty b/ucslugc/conf/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 diff --git a/ucslugc/conf/auto.conf b/ucslugc/conf/auto.conf new file mode 100644 index 0000000000..0c584f449e --- /dev/null +++ b/ucslugc/conf/auto.conf @@ -0,0 +1,3 @@ +# UcSlugC bitbake configuration +DISTRO="ucslugc" +MACHINE="nslu2" -- cgit v1.2.3 From f1fa325bda1a07938f7a94f201264e0d655f5804 Mon Sep 17 00:00:00 2001 From: John Bowler Date: Mon, 1 Aug 2005 00:03:09 +0000 Subject: Add setup-env and local.conf.sample, correct the 'bb' alias and make a new one called bb-safe. --- common/Make.rules | 4 ++-- common/env | 6 +++--- ucslugc/conf/local.conf.sample | 49 ++++++++++++++++++++++++++++++++++++++++++ ucslugc/setup-env | 14 ++++++++++++ 4 files changed, 68 insertions(+), 5 deletions(-) create mode 100644 ucslugc/conf/local.conf.sample create mode 100644 ucslugc/setup-env diff --git a/common/Make.rules b/common/Make.rules index 8a5940af56..1a32b364ba 100644 --- a/common/Make.rules +++ b/common/Make.rules @@ -41,13 +41,13 @@ clobber: .PHONY: $(DISTRO)-source $(DISTRO)-source: $(REQUIRED_DIRS) - tar zcf $@.tar.gz --exclude=MT Makefile conf/auto.conf $(REQUIRED_DIRS:=/.) + tar zcf $@.tar.gz --exclude=MT Makefile conf/auto.conf conf/local.conf.sample $(REQUIRED_DIRS:=/.) # This target probably isn't important any longer, because the -source # target above does the right thing .PHONY: distclean: clobber - rm -rf topdir.conf conf/local.conf $(BUILD_DIRS) + rm -rf topdir.conf conf/local.conf common/conf/local.conf $(BUILD_DIRS) # This target is mainly for testing - it is intended to put the disto directory # back to its original state, it will destroy a source-tarball system (because diff --git a/common/env b/common/env index b41e1f4bc5..9cf757aa30 100644 --- a/common/env +++ b/common/env @@ -28,15 +28,15 @@ unset MFLAGS unset MAKEFLAGS # # make bb into a 'safe' bitbake -alias bb="env -i \ - CCACHE_DISABLE='${CCACHE_DISABLE}' \ - CCACHE_DIR='${CCACHE_DIR}' \ +alias bb-safe="env -i \ + HOME='${TOPDIR}/home' \ PYTHONPATH='${PYTHONPATH}' \ BBPATH='${BBPATH}' \ PATH='${PATH}' \ LD_LIBRARY_PATH='${LD_LIBRARY_PATH}' \ LANG='${LANG}' \ '${TOPDIR}/bitbake/bin/bitbake'" +alias bb="'${TOPDIR}/bitbake/bin/bitbake'" # # remove TOPDIR - not required unset TOPDIR diff --git a/ucslugc/conf/local.conf.sample b/ucslugc/conf/local.conf.sample new file mode 100644 index 0000000000..d94379f7ac --- /dev/null +++ b/ucslugc/conf/local.conf.sample @@ -0,0 +1,49 @@ +# Sample local configuration +# +# You do not need a 'local.conf' file, however you may use one to alter +# how the UcSlugC build proceeds and to specify bitbake options. +# +#---------------------------------------------------------------------------------- +# bitbake options +#---------------------------------------------------------------------------------- +# +#BBINCLUDELOGS = "yes" +# bitbake logs build progress to per-package log files. By default if an +# error occurs bitbake outputs the name of this file with an error message. +# If you set BBINCLUDELOGS to 'yes' then bitbake will also output the log +# file itself. +# +#BBMASK = "regular expression" +# bitbake examines all the .bb files listed in the BBFILES variable. BBMASK +# can be used to exclude some (or, indeed, all) of these files by matching +# against a regular expression. Typically you do not want to do this because +# bitbake freeze can be used to generate a minimal list for BBFILES. +# +#NOTE: you may prefer to make a global local.conf file in common/conf to specify +# these options, however if you do this it will be overridden (ignored) if you also +# specify a local.conf here. +# +#---------------------------------------------------------------------------------- +# UcSlugC options +#---------------------------------------------------------------------------------- +#FEED_URIS = "##" +# Define local feeds - should be replaced by a name which identifies +# your local feed (not a generic name!) and should be the location of +# the Packages.gz file (and, therefore, all the ipks). This is not required; +# the feed defaults to the internet one. +# +#UCLIBC_EXTRA_DEPENDS = "packages to add to the build" +# Any packages in this list will be built as depenencies of the firmware +# image, but they will not be included in the image (see below). +# +#UCLIBC_EXTRA_RDEPENDS = "packages to add to the firmware image" +# Any packages in this list will be added to the firmware image. Please do +# not distribute such images - make a new DISTRO.conf file following the +# instructions in conf/distro/ucslugc.conf +# +#UCLIBC_EXTRA_BBFILES = "paths of extra .bb files" +# Files in this list will be parsed by bitbake to find packages in addition +# to the default list of bb files in conf/distro/ucslugc-packages.conf. The +# setting of this variable is irrelevant after bb freeze has been built or if +# bb unfreeze is built (in the latter case bitbake will examine all of the +# openembedded packages). diff --git a/ucslugc/setup-env b/ucslugc/setup-env new file mode 100644 index 0000000000..56f39fbe21 --- /dev/null +++ b/ucslugc/setup-env @@ -0,0 +1,14 @@ +# set up an environment for building UcSlugC +# (it is sufficient to source common/env to do this, this +# script, which should be sourced, exists to mirror the old +# method). +test -d common || { + test -d ../common && ln -s ../common ./common +} +if test -r common/env +then + . common/env + echo 'Environment set up for UcSlugC development.' +else + echo "setup-env: 'common/env' script not found" >&2 +fi -- cgit v1.2.3 From 846b32b8001abc1608640d45c11e68c609c34b69 Mon Sep 17 00:00:00 2001 From: John Bowler Date: Mon, 1 Aug 2005 00:36:35 +0000 Subject: Add ucslugc targets --- Makefile | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index fd5770bcd7..5d9b1915de 100644 --- a/Makefile +++ b/Makefile @@ -33,6 +33,10 @@ unslung build-unslung: unslung/Makefile bitbake/bin/bitbake openembedded/conf/ma openslug build-openslug: openslug/Makefile bitbake/bin/bitbake openembedded/conf/machine/nslu2.conf ( cd openslug ; make ) +.PHONY: ucslugc build-ucslugc +ucslugc build-ucslugc: ucslugc/Makefile bitbake/bin/bitbake openembedded/conf/machine/nslu2.conf + ( cd ucslugc ; make ) + .PHONY: optware build-optware optware build-optware: build-optware-nslu2 build-optware-wl500g @@ -57,10 +61,10 @@ setup-monotone monotone/nslu2-linux.db: - ( monotone -d monotone/nslu2-linux.db unset database default-include-pattern ) ( monotone -d monotone/nslu2-linux.db pull monotone.nslu2-linux.org org.openembedded.* org.nslu2-linux.* ) -downloads: - [ -e downloads ] || mkdir -p downloads +downloads home: + [ -e $@ ] || mkdir -p $@ -unslung/Makefile openslug/Makefile MT/revision: +unslung/Makefile openslug/Makefile ucslugc/Makefile common/Make.rules MT/revision: ${MAKE} downloads [ -e monotone/nslu2-linux.db ] || ( ${MAKE} monotone/nslu2-linux.db ) [ -e MT/revision ] || ( monotone -d monotone/nslu2-linux.db co -b org.nslu2-linux.dev . ) @@ -256,6 +260,15 @@ upload-openslug-cross: openslug/Makefile rsync -vlrt --delete openslug/tmp/deploy/ipk/ unslung@ipkg.nslu2-linux.org:nslu/feeds/openslug/cross/unstable/ ssh nslu2@sources.nslu2-linux.org mirror/sync-packages-clean openslug/cross +.PHONY: upload-ucslugc-cross +upload-ucslugc-cross: ucslugc/Makefile + rm -rf ucslugc/tmp/deploy/ipk/morgue + rsync -vlrt --exclude='Packages*' ucslugc/tmp/deploy/ipk/ unslung@ipkg.nslu2-linux.org:nslu/feeds/ucslugc/cross/unstable/ + ssh nslu2@sources.nslu2-linux.org mirror/sync-ipk ucslugc/cross + rsync -vl ucslugc/tmp/deploy/ipk/Packages* unslung@ipkg.nslu2-linux.org:nslu/feeds/ucslugc/cross/unstable/ + rsync -vlrt --delete ucslugc/tmp/deploy/ipk/ unslung@ipkg.nslu2-linux.org:nslu/feeds/ucslugc/cross/unstable/ + ssh nslu2@sources.nslu2-linux.org mirror/sync-packages-clean ucslugc/cross + .PHONY: upload-unslung-modules upload-unslung-modules: unslung/Makefile rm -rf unslung/tmp/deploy/ipk/morgue -- cgit v1.2.3 From eda933d33cc7df5f3b1d5c809108a70d7c26c23f Mon Sep 17 00:00:00 2001 From: John Bowler Date: Mon, 1 Aug 2005 02:12:32 +0000 Subject: Add ucslugc to the build and upload targets --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 5d9b1915de..c5f8304c13 100644 --- a/Makefile +++ b/Makefile @@ -10,7 +10,7 @@ SVN_SSH ?= "-l ${SVN_USER}" all: update build .PHONY: build -build: build-unslung build-openslug build-optware +build: build-unslung build-openslug build-ucslugc build-optware .PHONY: setup setup: setup-master setup-bitbake setup-openembedded setup-optware @@ -249,7 +249,7 @@ autobuild: ${MAKE} update build upload .PHONY: upload -upload: upload-openslug-cross upload-unslung-modules upload-optware-nslu2-cross upload-optware-wl500g-cross upload-sources +upload: upload-openslug-cross upload-ucslugc-cross upload-unslung-modules upload-optware-nslu2-cross upload-optware-wl500g-cross upload-sources .PHONY: upload-openslug-cross upload-openslug-cross: openslug/Makefile -- cgit v1.2.3 From b9e4a2c60cfa6b2d8546820795681623527a7cec Mon Sep 17 00:00:00 2001 From: John Bowler Date: Mon, 1 Aug 2005 02:15:38 +0000 Subject: Change make to $(MAKE) --- ucslugc/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ucslugc/Makefile b/ucslugc/Makefile index d210721ee2..fdaab6fc1c 100644 --- a/ucslugc/Makefile +++ b/ucslugc/Makefile @@ -7,4 +7,4 @@ include common/Make.rules # The following is required for bootstrapping common/Make.rules: - make -f ../common/Make.rules common + $(MAKE) -f ../common/Make.rules common -- cgit v1.2.3 From 5c3ef6f2f72d4ca7b1116df3dfd6353327a710d6 Mon Sep 17 00:00:00 2001 From: John Bowler Date: Mon, 1 Aug 2005 02:21:42 +0000 Subject: Change to use ${MAKE} (not make) everywhere --- Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index c5f8304c13..86e4857e89 100644 --- a/Makefile +++ b/Makefile @@ -27,26 +27,26 @@ clobber: clobber-optware clobber-openembedded clobber-bitbake .PHONY: unslung build-unslung unslung build-unslung: unslung/Makefile bitbake/bin/bitbake openembedded/conf/machine/nslu2.conf - ( cd unslung ; make ) + ( cd unslung ; ${MAKE} ) .PHONY: openslug build-openslug openslug build-openslug: openslug/Makefile bitbake/bin/bitbake openembedded/conf/machine/nslu2.conf - ( cd openslug ; make ) + ( cd openslug ; ${MAKE} ) .PHONY: ucslugc build-ucslugc ucslugc build-ucslugc: ucslugc/Makefile bitbake/bin/bitbake openembedded/conf/machine/nslu2.conf - ( cd ucslugc ; make ) + ( cd ucslugc ; ${MAKE} ) .PHONY: optware build-optware optware build-optware: build-optware-nslu2 build-optware-wl500g .PHONY: optware-nslu2 build-optware-nslu2 optware-nslu2 build-optware-nslu2: optware/nslu2/Makefile - ( cd optware/nslu2 ; make autoclean ; make ) + ( cd optware/nslu2 ; ${MAKE} autoclean ; ${MAKE} ) .PHONY: optware-wl500g build-optware-wl500g optware-wl500g build-optware-wl500g: optware/wl500g/Makefile - ( cd optware/wl500g ; make autoclean ; make ) + ( cd optware/wl500g ; ${MAKE} autoclean ; ${MAKE} ) .PHONY: openslug-2.3-beta build-openslug-2.3-beta openslug-2.3-beta build-openslug-2.3-beta: -- cgit v1.2.3 From 0cbdc3a875de6fd1dec1ac3ebdaf056e6cd5fc5a Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Sat, 30 Jul 2005 03:33:14 +0000 Subject: Removed the creation of home. --- Makefile | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/Makefile b/Makefile index 4b6bdf2506..01e9068a23 100644 --- a/Makefile +++ b/Makefile @@ -61,7 +61,7 @@ setup-monotone monotone/nslu2-linux.db: - ( monotone -d monotone/nslu2-linux.db unset database default-include-pattern ) ( monotone -d monotone/nslu2-linux.db pull monotone.nslu2-linux.org org.openembedded.* org.nslu2-linux.* ) -downloads home: +downloads: [ -e $@ ] || mkdir -p $@ unslung/Makefile openslug/Makefile ucslugc/Makefile common/Make.rules MT/revision: @@ -263,16 +263,25 @@ upload-openslug-cross: openslug/Makefile ssh nslu2@sources.nslu2-linux.org mirror/sync-ipk openslug/cross/unstable rsync -vl openslug/tmp/deploy/ipk/Packages* unslung@ipkg.nslu2-linux.org:nslu/feeds/openslug/cross/unstable/ rsync -vlrt --delete openslug/tmp/deploy/ipk/ unslung@ipkg.nslu2-linux.org:nslu/feeds/openslug/cross/unstable/ - ssh nslu2@sources.nslu2-linux.org mirror/sync-packages-clean openslug/cross + ssh nslu2@sources.nslu2-linux.org mirror/sync-packages-clean openslug/cross/unstable + +.PHONY: upload-openslug-2.3-beta-cross +upload-openslug-2.3-beta-cross: + rm -rf releases/OpenSlug-2.3-beta/tmp/deploy/ipk/morgue + rsync -vlrt --exclude='Packages*' releases/OpenSlug-2.3-beta/tmp/deploy/ipk/ unslung@ipkg.nslu2-linux.org:nslu/feeds/openslug/cross/2.3-beta/ + ssh nslu2@sources.nslu2-linux.org mirror/sync-ipk openslug/cross/2.3-beta + rsync -vl releases/OpenSlug-2.3-beta/tmp/deploy/ipk/Packages* unslung@ipkg.nslu2-linux.org:nslu/feeds/openslug/cross/2.3-beta/ + rsync -vlrt --delete releases/OpenSlug-2.3-beta/tmp/deploy/ipk/ unslung@ipkg.nslu2-linux.org:nslu/feeds/openslug/cross/2.3-beta/ + ssh nslu2@sources.nslu2-linux.org mirror/sync-packages-clean openslug/cross/2.3-beta .PHONY: upload-ucslugc-cross upload-ucslugc-cross: ucslugc/Makefile rm -rf ucslugc/tmp/deploy/ipk/morgue rsync -vlrt --exclude='Packages*' ucslugc/tmp/deploy/ipk/ unslung@ipkg.nslu2-linux.org:nslu/feeds/ucslugc/cross/unstable/ - ssh nslu2@sources.nslu2-linux.org mirror/sync-ipk ucslugc/cross + ssh nslu2@sources.nslu2-linux.org mirror/sync-ipk ucslugc/cross/unstable rsync -vl ucslugc/tmp/deploy/ipk/Packages* unslung@ipkg.nslu2-linux.org:nslu/feeds/ucslugc/cross/unstable/ rsync -vlrt --delete ucslugc/tmp/deploy/ipk/ unslung@ipkg.nslu2-linux.org:nslu/feeds/ucslugc/cross/unstable/ - ssh nslu2@sources.nslu2-linux.org mirror/sync-packages-clean ucslugc/cross + ssh nslu2@sources.nslu2-linux.org mirror/sync-packages-clean ucslugc/cross/unstable .PHONY: upload-unslung-modules upload-unslung-modules: unslung/Makefile @@ -303,15 +312,6 @@ upload-optware-wl500g-cross: optware/wl500g/Makefile rsync -vlrt --delete optware/wl500g/packages/ unslung@ipkg.nslu2-linux.org:nslu/feeds/unslung/wl500g/ ssh nslu2@sources.nslu2-linux.org mirror/sync-packages-clean unslung/wl500g -.PHONY: upload-openslug-2.3-beta-cross -upload-openslug-2.3-beta-cross: - rm -rf releases/OpenSlug-2.3-beta/tmp/deploy/ipk/morgue - rsync -vlrt --exclude='Packages*' releases/OpenSlug-2.3-beta/tmp/deploy/ipk/ unslung@ipkg.nslu2-linux.org:nslu/feeds/openslug/cross/2.3-beta/ - ssh nslu2@sources.nslu2-linux.org mirror/sync-ipk openslug/cross/2.3-beta - rsync -vl releases/OpenSlug-2.3-beta/tmp/deploy/ipk/Packages* unslung@ipkg.nslu2-linux.org:nslu/feeds/openslug/cross/2.3-beta/ - rsync -vlrt --delete releases/OpenSlug-2.3-beta/tmp/deploy/ipk/ unslung@ipkg.nslu2-linux.org:nslu/feeds/openslug/cross/2.3-beta/ - ssh nslu2@sources.nslu2-linux.org mirror/sync-packages-clean openslug/cross/2.3-beta - .PHONY: upload-sources upload-sources: rsync -vlrt --exclude='ixp400*' downloads/ nslu2@sources.nslu2-linux.org:ipkg/sources/ -- cgit v1.2.3 From 0f267b642c029b5548de2d731e6a40ad965a55fa Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Sat, 30 Jul 2005 04:20:40 +0000 Subject: Re-enabled ucslugc builds --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 01e9068a23..169bbd6713 100644 --- a/Makefile +++ b/Makefile @@ -247,6 +247,7 @@ push-openembedded: update-openembedded .PHONY: autobuild autobuild: ${MAKE} update + ${MAKE} build-ucslugc upload-ucslugc-cross ${MAKE} build-openslug upload-openslug-cross ${MAKE} build-unslung upload-unslung-modules ${MAKE} build-optware-nslu2 upload-optware-nslu2-cross -- cgit v1.2.3 From bdbfaad29772a37cdcad61885b8ab01d0828aa68 Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Sat, 30 Jul 2005 05:07:19 +0000 Subject: Revamped the ucslugc setup process, file structure and Makefile. --- Makefile | 26 +++++++++++++++------ common/Make.rules | 57 ----------------------------------------------- common/conf/site.conf | 2 +- common/env | 42 ---------------------------------- common/openembedded.mk | 57 +++++++++++++++++++++++++++++++++++++++++++++++ common/setup-openembedded | 47 ++++++++++++++++++++++++++++++++++++++ ucslugc/Makefile | 10 --------- ucslugc/conf/auto.conf | 1 + ucslugc/setup-env | 14 ------------ 9 files changed, 125 insertions(+), 131 deletions(-) delete mode 100644 common/Make.rules delete mode 100644 common/env create mode 100644 common/openembedded.mk create mode 100644 common/setup-openembedded delete mode 100644 ucslugc/Makefile delete mode 100644 ucslugc/setup-env diff --git a/Makefile b/Makefile index 169bbd6713..6e36e75a98 100644 --- a/Makefile +++ b/Makefile @@ -64,13 +64,13 @@ setup-monotone monotone/nslu2-linux.db: downloads: [ -e $@ ] || mkdir -p $@ -unslung/Makefile openslug/Makefile ucslugc/Makefile common/Make.rules MT/revision: +unslung/Makefile openslug/Makefile common/openembedded.mk common/setup-openembedded MT/revision: ${MAKE} downloads [ -e monotone/nslu2-linux.db ] || ( ${MAKE} monotone/nslu2-linux.db ) [ -e MT/revision ] || ( monotone -d monotone/nslu2-linux.db co -b org.nslu2-linux.dev . ) .PHONY: setup-master -setup-master: setup-monotone unslung/Makefile openslug/Makefile +setup-master: setup-monotone unslung/Makefile openslug/Makefile ucslugc/Makefile [ -e unslung/downloads ] || ( cd unslung ; ln -s ../downloads . ) [ -e openslug/downloads ] || ( cd openslug ; ln -s ../downloads . ) @@ -84,11 +84,6 @@ setup-openembedded openembedded/conf/machine/nslu2.conf: ${MAKE} MT/revision [ -e openembedded/conf/machine/nslu2.conf ] || monotone co -b org.openembedded.nslu2-linux openembedded -.PHONY: setup-optware -setup-optware optware/Makefile: - ${MAKE} downloads - [ -e optware/Makefile ] || ( cvs -q -d :pserver:anonymous@cvs.sf.net:/cvsroot/nslu co -d optware unslung ) - .PHONY: setup-openslug-2.3-beta setup-openslug-2.3-beta releases/OpenSlug-2.3-beta/Makefile: downloads [ ! -e releases/OpenSlug-2.3-beta ] || mkdir -p releases @@ -96,6 +91,23 @@ setup-openslug-2.3-beta releases/OpenSlug-2.3-beta/Makefile: downloads cd releases/OpenSlug-2.3-beta && ${MAKE} conf/local.conf setup-env ln -s ../../downloads releases/OpenSlug-2.3-beta/ +.PHONY: setup-ucslugc +setup-ucslugc ucslugc/Makefile: + ${MAKE} MT/revision + [ -d ucslugc ] || ( mkdir -p ucslugc ) + [ -e ucslugc/Makefile ] || ( cd ucslugc ; ln -s ../common/openembedded.mk Makefile ) + [ -e ucslugc/setup-openembedded ] || ( cd ucslugc ; ln -s ../common/setup-openembedded . ) + [ -e ucslugc/downloads ] || ( cd ucslugc ; ln -s ../downloads . ) + [ -e ucslugc/bitbake ] || ( cd ucslugc ; ln -s ../bitbake . ) + [ -e ucslugc/openembedded ] || ( cd ucslugc ; ln -s ../openembedded . ) + [ -d ucslugc/conf ] || ( mkdir -p ucslugc/conf ) + [ -e ucslugc/conf/site.conf ] || ( cd ucslugc/conf ; ln -s ../../common/conf/site.conf . ) + +.PHONY: setup-optware +setup-optware optware/Makefile: + ${MAKE} downloads + [ -e optware/Makefile ] || ( cvs -q -d :pserver:anonymous@cvs.sf.net:/cvsroot/nslu co -d optware unslung ) + optware/nslu2/Makefile: ${MAKE} optware/Makefile [ -e optware/nslu2/Makefile ] || ( \ diff --git a/common/Make.rules b/common/Make.rules deleted file mode 100644 index 1a32b364ba..0000000000 --- a/common/Make.rules +++ /dev/null @@ -1,57 +0,0 @@ -# Makefile for UcSlugC -# Licensed under the GPL v2 or later -# -# Define DISTRO and TARGET before including this in Makefile - -BUILD_DIRS = downloads home -REQUIRED_DIRS = bitbake openembedded common -FIRMWARE_DEPS = create-topdir $(BUILD_DIRS) $(REQUIRED_DIRS) - -# The default rule is to build the firmware in an unprotected environment. -$(DISTRO)-firmware: $(FIRMWARE_DEPS) - . common/env; exec bitbake $(TARGET) - -# This rule clobbers the environment (note that ccache uses '$HOME' by -# default, so the cache will end up there). -$(DISTRO)-safe: - env -i HOME="`pwd`/home" PATH="$${PATH}" $(MAKE) $(DISTRO)-firmware - -# topdir.conf is re-created automatically if the directory is -# moved - this will cause a full bitbake reparse -.PHONY: create-topdir -create-topdir: topdir.conf - . topdir.conf && test "`pwd`" = "$$TOPDIR" || echo "TOPDIR='`pwd`'" >topdir.conf - -topdir.conf: - echo "TOPDIR='`pwd`'" >$@ - -# rules for directories - if a symlink exists and the target does not -# exist something will go wrong in the build, therefore cause a failure -# here by the mkdir. -$(BUILD_DIRS): - test -d $@ || if test -d ../$@; then ln -s ../$@ .; else mkdir $@; fi - -# these directories must already exist - either in TOPDIR (here) or in .. -$(REQUIRED_DIRS): - test -d $@ || if test -d ../$@; then ln -s ../$@ .; else exit 1; fi - -.PHONY: clobber -clobber: - rm -rf tmp - -.PHONY: $(DISTRO)-source -$(DISTRO)-source: $(REQUIRED_DIRS) - tar zcf $@.tar.gz --exclude=MT Makefile conf/auto.conf conf/local.conf.sample $(REQUIRED_DIRS:=/.) - -# This target probably isn't important any longer, because the -source -# target above does the right thing -.PHONY: -distclean: clobber - rm -rf topdir.conf conf/local.conf common/conf/local.conf $(BUILD_DIRS) - -# This target is mainly for testing - it is intended to put the disto directory -# back to its original state, it will destroy a source-tarball system (because -# it removes directories from the tarball). -.PHONY: -really-clean: distclean - rm -rf $(REQUIRED_DIRS) $(DISTRO)-source.tar.gz diff --git a/common/conf/site.conf b/common/conf/site.conf index 45451253e7..f40ae58e3d 100644 --- a/common/conf/site.conf +++ b/common/conf/site.conf @@ -6,7 +6,7 @@ # # Each DISTRO must create a appropriate topdir file containing # (just) the definition of TOPDIR -include topdir.conf +include conf/topdir.conf # These definitions should be the same for every DISTRO - if # a change is necessary make it in the DISTRO auto.conf. The diff --git a/common/env b/common/env deleted file mode 100644 index 9cf757aa30..0000000000 --- a/common/env +++ /dev/null @@ -1,42 +0,0 @@ -# setup up the environment for a bitbake build. This is used -# by the makefile and may also be directly sourced from an -# interactive shell. The makefile uses 'env -i' to ensure -# no variables are inherited apart from CCACHE_DISABLE and -# CCACHE_DIR -# -# topdir must exist in the directory and define TOPDIR to -# the full path name of the working directory -. ./topdir.conf -test -n "$TOPDIR" -a -d "$TOPDIR" || { - echo "environment: TOPDIR not defined" >&2 - exit 1 -} -# -# the following must match the definitions in common/conf/site.conf -export PYTHONPATH="${TOPDIR}/bitbake/lib" -export BBPATH="${TOPDIR}:${TOPDIR}/common:${TOPDIR}/openembedded:${TOPDIR}/bitbake" -export PATH="${TOPDIR}/bitbake/bin:${PATH}" -export LD_LIBRARY_PATH= -export LANG=C -#NOTE: if you add export definitions here add them below too! -# -# unset the following (unnecessary for the makefile, but safe) -unset LC_CTYPE -unset CC -unset CXX -unset MFLAGS -unset MAKEFLAGS -# -# make bb into a 'safe' bitbake -alias bb-safe="env -i \ - HOME='${TOPDIR}/home' \ - PYTHONPATH='${PYTHONPATH}' \ - BBPATH='${BBPATH}' \ - PATH='${PATH}' \ - LD_LIBRARY_PATH='${LD_LIBRARY_PATH}' \ - LANG='${LANG}' \ - '${TOPDIR}/bitbake/bin/bitbake'" -alias bb="'${TOPDIR}/bitbake/bin/bitbake'" -# -# remove TOPDIR - not required -unset TOPDIR diff --git a/common/openembedded.mk b/common/openembedded.mk new file mode 100644 index 0000000000..e826f6e305 --- /dev/null +++ b/common/openembedded.mk @@ -0,0 +1,57 @@ +# Makefile for UcSlugC +# Licensed under the GPL v2 or later +# + +BUILD_DIRS = downloads +REQUIRED_DIRS = bitbake openembedded +FIRMWARE_DEPS = create-topdir $(BUILD_DIRS) $(REQUIRED_DIRS) + +# The default rule is to build the firmware in an unprotected environment. +firmware: $(FIRMWARE_DEPS) + . ./setup-openembedded; exec bitbake $${MAKE_TARGET} + +# This rule clobbers the environment (note that ccache uses '$HOME' by +# default, so the cache will end up there). +firmware-safe: + env -i HOME="$${HOME}" PATH="$${PATH}" $(MAKE) firmware + +# topdir.conf is re-created automatically if the directory is +# moved - this will cause a full bitbake reparse +.PHONY: create-topdir +create-topdir: conf/topdir.conf + . conf/topdir.conf && test "`pwd`" = "$$TOPDIR" || echo "TOPDIR='`pwd`'" > conf/topdir.conf + +conf/topdir.conf: + echo "TOPDIR='`pwd`'" >$@ + +# rules for directories - if a symlink exists and the target does not +# exist something will go wrong in the build, therefore cause a failure +# here by the mkdir. +$(BUILD_DIRS): + test -d $@ || if test -d ../$@; then ln -s ../$@ .; else mkdir $@; fi + +# these directories must already exist - either in TOPDIR (here) or in .. +$(REQUIRED_DIRS): + test -d $@ || if test -d ../$@; then ln -s ../$@ .; else exit 1; fi + +.PHONY: clobber +clobber: + rm -rf tmp + +.PHONY: source +source: $(REQUIRED_DIRS) + tar zcf $${DISTRO}.tar.gz --exclude=MT Makefile setup-openembedded conf/site.conf conf/auto.conf \ + conf/local.conf.sample $(REQUIRED_DIRS:=/.) + +# This target probably isn't important any longer, because the -source +# target above does the right thing +.PHONY: +distclean: clobber + rm -rf conf/topdir.conf conf/local.conf $(BUILD_DIRS) + +# This target is mainly for testing - it is intended to put the disto directory +# back to its original state, it will destroy a source-tarball system (because +# it removes directories from the tarball). +.PHONY: +really-clean: distclean + rm -rf $(REQUIRED_DIRS) $${DISTRO}-source.tar.gz diff --git a/common/setup-openembedded b/common/setup-openembedded new file mode 100644 index 0000000000..46151e5774 --- /dev/null +++ b/common/setup-openembedded @@ -0,0 +1,47 @@ +# setup up the environment for a bitbake build. This is used +# by the makefile and may also be directly sourced from an +# interactive shell. The makefile uses 'env -i' to ensure +# no variables are inherited apart from CCACHE_DISABLE and +# CCACHE_DIR +# +# topdir must exist in the directory and define TOPDIR to +# the full path name of the working directory +. ./conf/topdir.conf +test -n "$TOPDIR" -a -d "$TOPDIR" || { + echo "environment: TOPDIR not defined" >&2 + exit 1 +} + +. ./conf/auto.conf +export DISTRO +export MAKE_TARGET + +# +# the following must match the definitions in common/conf/site.conf +export PYTHONPATH="${TOPDIR}/bitbake/lib" +export BBPATH="${TOPDIR}:${TOPDIR}/openembedded:${TOPDIR}/bitbake" +export PATH="${TOPDIR}/bitbake/bin:${PATH}" +export LD_LIBRARY_PATH= +export LANG=C +#NOTE: if you add export definitions here add them below too! +# +# unset the following (unnecessary for the makefile, but safe) +unset LC_CTYPE +unset CC +unset CXX +unset MFLAGS +unset MAKEFLAGS +# +# make bb into a 'safe' bitbake +alias bb-safe="env -i \ + HOME='${TOPDIR}/home' \ + PYTHONPATH='${PYTHONPATH}' \ + BBPATH='${BBPATH}' \ + PATH='${PATH}' \ + LD_LIBRARY_PATH='${LD_LIBRARY_PATH}' \ + LANG='${LANG}' \ + '${TOPDIR}/bitbake/bin/bitbake'" +alias bb="'${TOPDIR}/bitbake/bin/bitbake'" +# +# remove TOPDIR - not required +unset TOPDIR diff --git a/ucslugc/Makefile b/ucslugc/Makefile deleted file mode 100644 index fdaab6fc1c..0000000000 --- a/ucslugc/Makefile +++ /dev/null @@ -1,10 +0,0 @@ -# Makefile for UcSlugC -# Licensed under the GPL v2 or later -DISTRO=ucslugc -TARGET=openslug-packages - -include common/Make.rules - -# The following is required for bootstrapping -common/Make.rules: - $(MAKE) -f ../common/Make.rules common diff --git a/ucslugc/conf/auto.conf b/ucslugc/conf/auto.conf index 0c584f449e..b6a439982e 100644 --- a/ucslugc/conf/auto.conf +++ b/ucslugc/conf/auto.conf @@ -1,3 +1,4 @@ # UcSlugC bitbake configuration DISTRO="ucslugc" MACHINE="nslu2" +MAKE_TARGET="openslug-packages" \ No newline at end of file diff --git a/ucslugc/setup-env b/ucslugc/setup-env deleted file mode 100644 index 56f39fbe21..0000000000 --- a/ucslugc/setup-env +++ /dev/null @@ -1,14 +0,0 @@ -# set up an environment for building UcSlugC -# (it is sufficient to source common/env to do this, this -# script, which should be sourced, exists to mirror the old -# method). -test -d common || { - test -d ../common && ln -s ../common ./common -} -if test -r common/env -then - . common/env - echo 'Environment set up for UcSlugC development.' -else - echo "setup-env: 'common/env' script not found" >&2 -fi -- cgit v1.2.3 From 7bc1dacee9dd0e17d4a972a0dd0d14e728646905 Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Sat, 30 Jul 2005 05:10:28 +0000 Subject: Renamed common/setup-openembedded to common/setup-env due to makefile target conflict. --- Makefile | 18 +++++++++--------- common/openembedded.mk | 4 ++-- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/Makefile b/Makefile index 6e36e75a98..700ca40820 100644 --- a/Makefile +++ b/Makefile @@ -64,7 +64,7 @@ setup-monotone monotone/nslu2-linux.db: downloads: [ -e $@ ] || mkdir -p $@ -unslung/Makefile openslug/Makefile common/openembedded.mk common/setup-openembedded MT/revision: +unslung/Makefile openslug/Makefile common/openembedded.mk common/setup-env MT/revision: ${MAKE} downloads [ -e monotone/nslu2-linux.db ] || ( ${MAKE} monotone/nslu2-linux.db ) [ -e MT/revision ] || ( monotone -d monotone/nslu2-linux.db co -b org.nslu2-linux.dev . ) @@ -94,14 +94,14 @@ setup-openslug-2.3-beta releases/OpenSlug-2.3-beta/Makefile: downloads .PHONY: setup-ucslugc setup-ucslugc ucslugc/Makefile: ${MAKE} MT/revision - [ -d ucslugc ] || ( mkdir -p ucslugc ) - [ -e ucslugc/Makefile ] || ( cd ucslugc ; ln -s ../common/openembedded.mk Makefile ) - [ -e ucslugc/setup-openembedded ] || ( cd ucslugc ; ln -s ../common/setup-openembedded . ) - [ -e ucslugc/downloads ] || ( cd ucslugc ; ln -s ../downloads . ) - [ -e ucslugc/bitbake ] || ( cd ucslugc ; ln -s ../bitbake . ) - [ -e ucslugc/openembedded ] || ( cd ucslugc ; ln -s ../openembedded . ) - [ -d ucslugc/conf ] || ( mkdir -p ucslugc/conf ) - [ -e ucslugc/conf/site.conf ] || ( cd ucslugc/conf ; ln -s ../../common/conf/site.conf . ) + [ -d ucslugc ] || ( mkdir -p ucslugc ) + [ -e ucslugc/Makefile ] || ( cd ucslugc ; ln -s ../common/openembedded.mk Makefile ) + [ -e ucslugc/setup-env ] || ( cd ucslugc ; ln -s ../common/setup-env . ) + [ -e ucslugc/downloads ] || ( cd ucslugc ; ln -s ../downloads . ) + [ -e ucslugc/bitbake ] || ( cd ucslugc ; ln -s ../bitbake . ) + [ -e ucslugc/openembedded ] || ( cd ucslugc ; ln -s ../openembedded . ) + [ -d ucslugc/conf ] || ( mkdir -p ucslugc/conf ) + [ -e ucslugc/conf/site.conf ] || ( cd ucslugc/conf ; ln -s ../../common/conf/site.conf . ) .PHONY: setup-optware setup-optware optware/Makefile: diff --git a/common/openembedded.mk b/common/openembedded.mk index e826f6e305..88a143970a 100644 --- a/common/openembedded.mk +++ b/common/openembedded.mk @@ -8,7 +8,7 @@ FIRMWARE_DEPS = create-topdir $(BUILD_DIRS) $(REQUIRED_DIRS) # The default rule is to build the firmware in an unprotected environment. firmware: $(FIRMWARE_DEPS) - . ./setup-openembedded; exec bitbake $${MAKE_TARGET} + . ./setup-env; exec bitbake $${MAKE_TARGET} # This rule clobbers the environment (note that ccache uses '$HOME' by # default, so the cache will end up there). @@ -40,7 +40,7 @@ clobber: .PHONY: source source: $(REQUIRED_DIRS) - tar zcf $${DISTRO}.tar.gz --exclude=MT Makefile setup-openembedded conf/site.conf conf/auto.conf \ + tar zcf $${DISTRO}.tar.gz --exclude=MT Makefile setup-env conf/site.conf conf/auto.conf \ conf/local.conf.sample $(REQUIRED_DIRS:=/.) # This target probably isn't important any longer, because the -source -- cgit v1.2.3 From a95903817361c50782014172034cc09978819904 Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Sat, 30 Jul 2005 05:12:45 +0000 Subject: Renamed setup-openembedded to setup-env --- common/setup-env | 47 +++++++++++++++++++++++++++++++++++++++++++++++ common/setup-openembedded | 47 ----------------------------------------------- openslug/conf/auto.conf | 4 ++++ unslung/conf/auto.conf | 4 ++++ 4 files changed, 55 insertions(+), 47 deletions(-) create mode 100644 common/setup-env delete mode 100644 common/setup-openembedded create mode 100644 openslug/conf/auto.conf create mode 100644 unslung/conf/auto.conf diff --git a/common/setup-env b/common/setup-env new file mode 100644 index 0000000000..46151e5774 --- /dev/null +++ b/common/setup-env @@ -0,0 +1,47 @@ +# setup up the environment for a bitbake build. This is used +# by the makefile and may also be directly sourced from an +# interactive shell. The makefile uses 'env -i' to ensure +# no variables are inherited apart from CCACHE_DISABLE and +# CCACHE_DIR +# +# topdir must exist in the directory and define TOPDIR to +# the full path name of the working directory +. ./conf/topdir.conf +test -n "$TOPDIR" -a -d "$TOPDIR" || { + echo "environment: TOPDIR not defined" >&2 + exit 1 +} + +. ./conf/auto.conf +export DISTRO +export MAKE_TARGET + +# +# the following must match the definitions in common/conf/site.conf +export PYTHONPATH="${TOPDIR}/bitbake/lib" +export BBPATH="${TOPDIR}:${TOPDIR}/openembedded:${TOPDIR}/bitbake" +export PATH="${TOPDIR}/bitbake/bin:${PATH}" +export LD_LIBRARY_PATH= +export LANG=C +#NOTE: if you add export definitions here add them below too! +# +# unset the following (unnecessary for the makefile, but safe) +unset LC_CTYPE +unset CC +unset CXX +unset MFLAGS +unset MAKEFLAGS +# +# make bb into a 'safe' bitbake +alias bb-safe="env -i \ + HOME='${TOPDIR}/home' \ + PYTHONPATH='${PYTHONPATH}' \ + BBPATH='${BBPATH}' \ + PATH='${PATH}' \ + LD_LIBRARY_PATH='${LD_LIBRARY_PATH}' \ + LANG='${LANG}' \ + '${TOPDIR}/bitbake/bin/bitbake'" +alias bb="'${TOPDIR}/bitbake/bin/bitbake'" +# +# remove TOPDIR - not required +unset TOPDIR diff --git a/common/setup-openembedded b/common/setup-openembedded deleted file mode 100644 index 46151e5774..0000000000 --- a/common/setup-openembedded +++ /dev/null @@ -1,47 +0,0 @@ -# setup up the environment for a bitbake build. This is used -# by the makefile and may also be directly sourced from an -# interactive shell. The makefile uses 'env -i' to ensure -# no variables are inherited apart from CCACHE_DISABLE and -# CCACHE_DIR -# -# topdir must exist in the directory and define TOPDIR to -# the full path name of the working directory -. ./conf/topdir.conf -test -n "$TOPDIR" -a -d "$TOPDIR" || { - echo "environment: TOPDIR not defined" >&2 - exit 1 -} - -. ./conf/auto.conf -export DISTRO -export MAKE_TARGET - -# -# the following must match the definitions in common/conf/site.conf -export PYTHONPATH="${TOPDIR}/bitbake/lib" -export BBPATH="${TOPDIR}:${TOPDIR}/openembedded:${TOPDIR}/bitbake" -export PATH="${TOPDIR}/bitbake/bin:${PATH}" -export LD_LIBRARY_PATH= -export LANG=C -#NOTE: if you add export definitions here add them below too! -# -# unset the following (unnecessary for the makefile, but safe) -unset LC_CTYPE -unset CC -unset CXX -unset MFLAGS -unset MAKEFLAGS -# -# make bb into a 'safe' bitbake -alias bb-safe="env -i \ - HOME='${TOPDIR}/home' \ - PYTHONPATH='${PYTHONPATH}' \ - BBPATH='${BBPATH}' \ - PATH='${PATH}' \ - LD_LIBRARY_PATH='${LD_LIBRARY_PATH}' \ - LANG='${LANG}' \ - '${TOPDIR}/bitbake/bin/bitbake'" -alias bb="'${TOPDIR}/bitbake/bin/bitbake'" -# -# remove TOPDIR - not required -unset TOPDIR diff --git a/openslug/conf/auto.conf b/openslug/conf/auto.conf new file mode 100644 index 0000000000..7e2a406f79 --- /dev/null +++ b/openslug/conf/auto.conf @@ -0,0 +1,4 @@ +# OpenSlug bitbake configuration +DISTRO="openslug" +MACHINE="nslu2" +MAKE_TARGET="openslug-packages" \ No newline at end of file diff --git a/unslung/conf/auto.conf b/unslung/conf/auto.conf new file mode 100644 index 0000000000..7ec443ca0b --- /dev/null +++ b/unslung/conf/auto.conf @@ -0,0 +1,4 @@ +# Unslung bitbake configuration +DISTRO="unslung" +MACHINE="nslu2" +MAKE_TARGET="unslung-packages" \ No newline at end of file -- cgit v1.2.3 From 113ede2350b8179e06be8f1cf54832f3ea83d359 Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Sat, 30 Jul 2005 05:27:45 +0000 Subject: Migrated unslung and openslug to the new setup - type 'make setup-unslung setup-openslug' to upgrade. --- .mtn-ignore | 7 ---- Makefile | 65 +++++++++++++++++++++++++++-------- openslug/.mt-ignore | 4 --- openslug/Makefile | 90 +++++++++++++++++++++++++++---------------------- unslung/.mt-ignore | 4 --- unslung/Makefile | 90 +++++++++++++++++++++++++++---------------------- unslung/conf/.mt-ignore | 1 - 7 files changed, 149 insertions(+), 112 deletions(-) delete mode 100644 .mtn-ignore delete mode 100644 openslug/.mt-ignore delete mode 100644 unslung/.mt-ignore delete mode 100644 unslung/conf/.mt-ignore diff --git a/.mtn-ignore b/.mtn-ignore deleted file mode 100644 index 170b9c14e8..0000000000 --- a/.mtn-ignore +++ /dev/null @@ -1,7 +0,0 @@ -bitbake -downloads -monotone -oe-symlinks -openembedded -optware - diff --git a/Makefile b/Makefile index 700ca40820..d60927e191 100644 --- a/Makefile +++ b/Makefile @@ -64,7 +64,7 @@ setup-monotone monotone/nslu2-linux.db: downloads: [ -e $@ ] || mkdir -p $@ -unslung/Makefile openslug/Makefile common/openembedded.mk common/setup-env MT/revision: +MT/revision: ${MAKE} downloads [ -e monotone/nslu2-linux.db ] || ( ${MAKE} monotone/nslu2-linux.db ) [ -e MT/revision ] || ( monotone -d monotone/nslu2-linux.db co -b org.nslu2-linux.dev . ) @@ -84,25 +84,62 @@ setup-openembedded openembedded/conf/machine/nslu2.conf: ${MAKE} MT/revision [ -e openembedded/conf/machine/nslu2.conf ] || monotone co -b org.openembedded.nslu2-linux openembedded +.PHONY: setup-unslung +setup-unslung unslung/Makefile: + ${MAKE} MT/revision downloads + [ -d unslung ] || ( mkdir -p unslung ) + [ ! -f unslung/Makefile ] || ( cd unslung ; mv Makefile Makefile.delete-me) + [ -e unslung/Makefile ] || ( cd unslung ; ln -s ../common/openembedded.mk Makefile ) + [ ! -f unslung/setup-env ] || ( cd unslung ; mv setup-env setup-env.delete-me ) + [ -e unslung/setup-env ] || ( cd unslung ; ln -s ../common/setup-env . ) + [ -e unslung/downloads ] || ( cd unslung ; ln -s ../downloads . ) + [ -e unslung/bitbake ] || ( cd unslung ; ln -s ../bitbake . ) + [ -e unslung/openembedded ] || ( cd unslung ; ln -s ../openembedded . ) + [ -d unslung/conf ] || ( mkdir -p unslung/conf ) + [ ! -f unslung/conf/local.conf ] || ( cd unslung/conf ; mv local.conf local.conf.delete-me ) + [ -e unslung/conf/site.conf ] || ( cd unslung/conf ; ln -s ../../common/conf/site.conf . ) + rm -rf unslung/tmp/cache + +.PHONY: setup-openslug +setup-openslug openslug/Makefile: + ${MAKE} MT/revision downloads + [ -d openslug ] || ( mkdir -p openslug ) + [ ! -f openslug/Makefile ] || ( cd openslug ; mv Makefile Makefile.delete-me) + [ -e openslug/Makefile ] || ( cd openslug ; ln -s ../common/openembedded.mk Makefile ) + [ ! -f openslug/setup-env ] || ( cd openslug ; mv setup-env setup-env.delete-me ) + [ -e openslug/setup-env ] || ( cd openslug ; ln -s ../common/setup-env . ) + [ -e openslug/downloads ] || ( cd openslug ; ln -s ../downloads . ) + [ -e openslug/bitbake ] || ( cd openslug ; ln -s ../bitbake . ) + [ -e openslug/openembedded ] || ( cd openslug ; ln -s ../openembedded . ) + [ -d openslug/conf ] || ( mkdir -p openslug/conf ) + [ ! -f openslug/conf/local.conf ] || ( cd openslug/conf ; mv local.conf local.conf.delete-me ) + [ -e openslug/conf/site.conf ] || ( cd openslug/conf ; ln -s ../../common/conf/site.conf . ) + rm -rf openslug/tmp/cache + +.PHONY: setup-ucslugc +setup-ucslugc ucslugc/Makefile: + ${MAKE} MT/revision downloads + [ -d ucslugc ] || ( mkdir -p ucslugc ) + [ ! -f ucslugc/Makefile ] || ( cd ucslugc ; mv Makefile Makefile.delete-me) + [ -e ucslugc/Makefile ] || ( cd ucslugc ; ln -s ../common/openembedded.mk Makefile ) + [ ! -f ucslugc/setup-env ] || ( cd ucslugc ; mv setup-env setup-env.delete-me ) + [ -e ucslugc/setup-env ] || ( cd ucslugc ; ln -s ../common/setup-env . ) + [ -e ucslugc/downloads ] || ( cd ucslugc ; ln -s ../downloads . ) + [ -e ucslugc/bitbake ] || ( cd ucslugc ; ln -s ../bitbake . ) + [ -e ucslugc/openembedded ] || ( cd ucslugc ; ln -s ../openembedded . ) + [ -d ucslugc/conf ] || ( mkdir -p ucslugc/conf ) + [ ! -f ucslugc/conf/local.conf ] || ( cd ucslugc/conf ; mv local.conf local.conf.delete-me ) + [ -e ucslugc/conf/site.conf ] || ( cd ucslugc/conf ; ln -s ../../common/conf/site.conf . ) + rm -rf ucslugc/tmp/cache + .PHONY: setup-openslug-2.3-beta -setup-openslug-2.3-beta releases/OpenSlug-2.3-beta/Makefile: downloads +setup-openslug-2.3-beta releases/OpenSlug-2.3-beta/Makefile: + ${MAKE} downloads [ ! -e releases/OpenSlug-2.3-beta ] || mkdir -p releases svn checkout svn://svn.berlios.de/openslug/releases/OpenSlug-2.3-beta releases/OpenSlug-2.3-beta cd releases/OpenSlug-2.3-beta && ${MAKE} conf/local.conf setup-env ln -s ../../downloads releases/OpenSlug-2.3-beta/ -.PHONY: setup-ucslugc -setup-ucslugc ucslugc/Makefile: - ${MAKE} MT/revision - [ -d ucslugc ] || ( mkdir -p ucslugc ) - [ -e ucslugc/Makefile ] || ( cd ucslugc ; ln -s ../common/openembedded.mk Makefile ) - [ -e ucslugc/setup-env ] || ( cd ucslugc ; ln -s ../common/setup-env . ) - [ -e ucslugc/downloads ] || ( cd ucslugc ; ln -s ../downloads . ) - [ -e ucslugc/bitbake ] || ( cd ucslugc ; ln -s ../bitbake . ) - [ -e ucslugc/openembedded ] || ( cd ucslugc ; ln -s ../openembedded . ) - [ -d ucslugc/conf ] || ( mkdir -p ucslugc/conf ) - [ -e ucslugc/conf/site.conf ] || ( cd ucslugc/conf ; ln -s ../../common/conf/site.conf . ) - .PHONY: setup-optware setup-optware optware/Makefile: ${MAKE} downloads diff --git a/openslug/.mt-ignore b/openslug/.mt-ignore deleted file mode 100644 index dd5df82133..0000000000 --- a/openslug/.mt-ignore +++ /dev/null @@ -1,4 +0,0 @@ -downloads -openslug-source.tar.gz -setup-env -tmp diff --git a/openslug/Makefile b/openslug/Makefile index 657ed278f5..88a143970a 100644 --- a/openslug/Makefile +++ b/openslug/Makefile @@ -1,49 +1,57 @@ -# Makefile for OpenSlug +# Makefile for UcSlugC # Licensed under the GPL v2 or later +# -openslug-firmware: setup-env conf/local.conf - . ./setup-env ; bitbake openslug-packages - -# This does the same thing but with a clean environment -# The HOME setting prevents user environment settings -# from changing the build. CCACHE_DIR is necessary to -# prevent ccache (if installed) attempting to use a -# .cache in the home directory. -openslug-firmware-safe: setup-env conf/local.conf - env -i CCACHE_DISABLE=1 CCACHE_DIR="`pwd`/tmp/ccache" HOME=/dev/null \ - sh -c '. ./setup-env; bitbake openslug-packages' - -setup-env: - [ -e bitbake ] || ln -s ../bitbake . - [ -e downloads ] || ln -s ../downloads . - [ -e openembedded ] || ln -s ../openembedded . - echo 'OEROOT='`pwd` > setup-env - echo 'OESYS=$$OEROOT/bitbake/' >> setup-env - echo 'OEBUILD=$$OEROOT' >> setup-env - echo 'PKGDIR=$$OEROOT/openembedded/' >> setup-env - echo 'export PYTHONPATH=$$OESYS/lib' >>setup-env - echo 'export BBPATH=$$OEBUILD:$$PKGDIR:$$OESYS' >> setup-env - echo 'export PATH=$$OESYS/bin/:$$PATH' >> setup-env - echo 'export LD_LIBRARY_PATH=' >> setup-env - echo 'export LANG=C' >> setup-env - echo 'unset LC_CTYPE' >> setup-env - echo 'unset CC' >> setup-env - echo 'unset CXX' >> setup-env - echo 'unset MFLAGS' >> setup-env - echo 'unset MAKEFLAGS' >> setup-env - echo 'alias bb=bitbake' >> setup-env - echo 'echo Environment set up for OpenSlug development.' >> setup-env - -conf/local.conf: - sed -e "s|%%%OEROOT%%%|`pwd`|" conf/local.conf.template > conf/local.conf +BUILD_DIRS = downloads +REQUIRED_DIRS = bitbake openembedded +FIRMWARE_DEPS = create-topdir $(BUILD_DIRS) $(REQUIRED_DIRS) +# The default rule is to build the firmware in an unprotected environment. +firmware: $(FIRMWARE_DEPS) + . ./setup-env; exec bitbake $${MAKE_TARGET} + +# This rule clobbers the environment (note that ccache uses '$HOME' by +# default, so the cache will end up there). +firmware-safe: + env -i HOME="$${HOME}" PATH="$${PATH}" $(MAKE) firmware + +# topdir.conf is re-created automatically if the directory is +# moved - this will cause a full bitbake reparse +.PHONY: create-topdir +create-topdir: conf/topdir.conf + . conf/topdir.conf && test "`pwd`" = "$$TOPDIR" || echo "TOPDIR='`pwd`'" > conf/topdir.conf + +conf/topdir.conf: + echo "TOPDIR='`pwd`'" >$@ + +# rules for directories - if a symlink exists and the target does not +# exist something will go wrong in the build, therefore cause a failure +# here by the mkdir. +$(BUILD_DIRS): + test -d $@ || if test -d ../$@; then ln -s ../$@ .; else mkdir $@; fi + +# these directories must already exist - either in TOPDIR (here) or in .. +$(REQUIRED_DIRS): + test -d $@ || if test -d ../$@; then ln -s ../$@ .; else exit 1; fi + +.PHONY: clobber clobber: rm -rf tmp -openslug-source: - tar zcf openslug-source.tar.gz --exclude=MT Makefile bitbake conf openembedded +.PHONY: source +source: $(REQUIRED_DIRS) + tar zcf $${DISTRO}.tar.gz --exclude=MT Makefile setup-env conf/site.conf conf/auto.conf \ + conf/local.conf.sample $(REQUIRED_DIRS:=/.) +# This target probably isn't important any longer, because the -source +# target above does the right thing +.PHONY: distclean: clobber - rm -rf setup-env conf/local.conf bitbake downloads openembedded - -# End of Makefile + rm -rf conf/topdir.conf conf/local.conf $(BUILD_DIRS) + +# This target is mainly for testing - it is intended to put the disto directory +# back to its original state, it will destroy a source-tarball system (because +# it removes directories from the tarball). +.PHONY: +really-clean: distclean + rm -rf $(REQUIRED_DIRS) $${DISTRO}-source.tar.gz diff --git a/unslung/.mt-ignore b/unslung/.mt-ignore deleted file mode 100644 index 2cf465fead..0000000000 --- a/unslung/.mt-ignore +++ /dev/null @@ -1,4 +0,0 @@ -downloads -unslung-source.tar.gz -setup-env -tmp diff --git a/unslung/Makefile b/unslung/Makefile index 7016538075..88a143970a 100644 --- a/unslung/Makefile +++ b/unslung/Makefile @@ -1,49 +1,57 @@ -# Makefile for Unslung +# Makefile for UcSlugC # Licensed under the GPL v2 or later +# -unslung-firmware: setup-env conf/local.conf - . ./setup-env ; bitbake unslung-packages - -# This does the same thing but with a clean environment -# The HOME setting prevents user environment settings -# from changing the build. CCACHE_DIR is necessary to -# prevent ccache (if installed) attempting to use a -# .cache in the home directory. -unslung-firmware-safe: setup-env conf/local.conf - env -i CCACHE_DISABLE=1 CCACHE_DIR="`pwd`/tmp/ccache" HOME=/dev/null \ - sh -c '. ./setup-env; bitbake unslung-packages' - -setup-env: - [ -e bitbake ] || ln -s ../bitbake . - [ -e downloads ] || ln -s ../downloads . - [ -e openembedded ] || ln -s ../openembedded . - echo 'OEROOT='`pwd` > setup-env - echo 'OESYS=$$OEROOT/bitbake/' >> setup-env - echo 'OEBUILD=$$OEROOT' >> setup-env - echo 'PKGDIR=$$OEROOT/openembedded/' >> setup-env - echo 'export PYTHONPATH=$$OESYS/lib' >>setup-env - echo 'export BBPATH=$$OEBUILD:$$PKGDIR:$$OESYS' >> setup-env - echo 'export PATH=$$OESYS/bin/:$$PATH' >> setup-env - echo 'export LD_LIBRARY_PATH=' >> setup-env - echo 'export LANG=C' >> setup-env - echo 'unset LC_CTYPE' >> setup-env - echo 'unset CC' >> setup-env - echo 'unset CXX' >> setup-env - echo 'unset MFLAGS' >> setup-env - echo 'unset MAKEFLAGS' >> setup-env - echo 'alias bb=bitbake' >> setup-env - echo 'echo Environment set up for Unslung development.' >> setup-env - -conf/local.conf: - sed -e "s|%%%OEROOT%%%|`pwd`|" conf/local.conf.template > conf/local.conf +BUILD_DIRS = downloads +REQUIRED_DIRS = bitbake openembedded +FIRMWARE_DEPS = create-topdir $(BUILD_DIRS) $(REQUIRED_DIRS) +# The default rule is to build the firmware in an unprotected environment. +firmware: $(FIRMWARE_DEPS) + . ./setup-env; exec bitbake $${MAKE_TARGET} + +# This rule clobbers the environment (note that ccache uses '$HOME' by +# default, so the cache will end up there). +firmware-safe: + env -i HOME="$${HOME}" PATH="$${PATH}" $(MAKE) firmware + +# topdir.conf is re-created automatically if the directory is +# moved - this will cause a full bitbake reparse +.PHONY: create-topdir +create-topdir: conf/topdir.conf + . conf/topdir.conf && test "`pwd`" = "$$TOPDIR" || echo "TOPDIR='`pwd`'" > conf/topdir.conf + +conf/topdir.conf: + echo "TOPDIR='`pwd`'" >$@ + +# rules for directories - if a symlink exists and the target does not +# exist something will go wrong in the build, therefore cause a failure +# here by the mkdir. +$(BUILD_DIRS): + test -d $@ || if test -d ../$@; then ln -s ../$@ .; else mkdir $@; fi + +# these directories must already exist - either in TOPDIR (here) or in .. +$(REQUIRED_DIRS): + test -d $@ || if test -d ../$@; then ln -s ../$@ .; else exit 1; fi + +.PHONY: clobber clobber: rm -rf tmp -unslung-source: - tar zcf unslung-source.tar.gz --exclude=MT Makefile bitbake conf openembedded +.PHONY: source +source: $(REQUIRED_DIRS) + tar zcf $${DISTRO}.tar.gz --exclude=MT Makefile setup-env conf/site.conf conf/auto.conf \ + conf/local.conf.sample $(REQUIRED_DIRS:=/.) +# This target probably isn't important any longer, because the -source +# target above does the right thing +.PHONY: distclean: clobber - rm -f setup-env conf/local.conf bitbake downloads openembedded - -# End of Makefile + rm -rf conf/topdir.conf conf/local.conf $(BUILD_DIRS) + +# This target is mainly for testing - it is intended to put the disto directory +# back to its original state, it will destroy a source-tarball system (because +# it removes directories from the tarball). +.PHONY: +really-clean: distclean + rm -rf $(REQUIRED_DIRS) $${DISTRO}-source.tar.gz diff --git a/unslung/conf/.mt-ignore b/unslung/conf/.mt-ignore deleted file mode 100644 index f21e1b217b..0000000000 --- a/unslung/conf/.mt-ignore +++ /dev/null @@ -1 +0,0 @@ -local.conf -- cgit v1.2.3 From d3094ed3b03721d8b5dab9256699aa8a8f39fadd Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Sat, 30 Jul 2005 05:58:08 +0000 Subject: Added the additional setup dependencies to make setup --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index d60927e191..42cd8c6668 100644 --- a/Makefile +++ b/Makefile @@ -13,7 +13,7 @@ all: update build build: build-unslung build-openslug build-ucslugc build-optware .PHONY: setup -setup: setup-master setup-bitbake setup-openembedded setup-optware +setup: setup-master setup-bitbake setup-openembedded setup-unslung setup-openslug setup-ucslugc setup-optware .PHONY: setup-developer setup-developer: setup-master setup-bitbake setup-openembedded setup-optware-developer -- cgit v1.2.3 From 3260512bf505a9de1cecc9cb342db3a13684b201 Mon Sep 17 00:00:00 2001 From: Oyvind Repvik Date: Mon, 1 Aug 2005 13:02:12 +0000 Subject: Dropped automatically updating OpenSlug-2.3-beta target --- Makefile | 1 - 1 file changed, 1 deletion(-) diff --git a/Makefile b/Makefile index d60927e191..5d6bc105ac 100644 --- a/Makefile +++ b/Makefile @@ -20,7 +20,6 @@ setup-developer: setup-master setup-bitbake setup-openembedded setup-optware-dev .PHONY: update update: update-master update-bitbake update-openembedded update-optware - [ ! -e releases/OpenSlug-2.3-beta/Makefile ] || ${MAKE} update-openslug-2.3-beta .PHONY: clobber clobber: clobber-optware clobber-openembedded clobber-bitbake -- cgit v1.2.3 From 98d39b8f17c381bdae5e44fdb0fd0de59b9bca72 Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Sat, 30 Jul 2005 06:01:59 +0000 Subject: Changed the obselete file existence tests from '! -f' to '! -L' so that it doesn't do a second migration. --- Makefile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 200151c7c5..7bc659f998 100644 --- a/Makefile +++ b/Makefile @@ -87,9 +87,9 @@ setup-openembedded openembedded/conf/machine/nslu2.conf: setup-unslung unslung/Makefile: ${MAKE} MT/revision downloads [ -d unslung ] || ( mkdir -p unslung ) - [ ! -f unslung/Makefile ] || ( cd unslung ; mv Makefile Makefile.delete-me) + [ ! -L unslung/Makefile ] || ( cd unslung ; mv Makefile Makefile.delete-me) [ -e unslung/Makefile ] || ( cd unslung ; ln -s ../common/openembedded.mk Makefile ) - [ ! -f unslung/setup-env ] || ( cd unslung ; mv setup-env setup-env.delete-me ) + [ ! -L unslung/setup-env ] || ( cd unslung ; mv setup-env setup-env.delete-me ) [ -e unslung/setup-env ] || ( cd unslung ; ln -s ../common/setup-env . ) [ -e unslung/downloads ] || ( cd unslung ; ln -s ../downloads . ) [ -e unslung/bitbake ] || ( cd unslung ; ln -s ../bitbake . ) @@ -103,9 +103,9 @@ setup-unslung unslung/Makefile: setup-openslug openslug/Makefile: ${MAKE} MT/revision downloads [ -d openslug ] || ( mkdir -p openslug ) - [ ! -f openslug/Makefile ] || ( cd openslug ; mv Makefile Makefile.delete-me) + [ ! -L openslug/Makefile ] || ( cd openslug ; mv Makefile Makefile.delete-me) [ -e openslug/Makefile ] || ( cd openslug ; ln -s ../common/openembedded.mk Makefile ) - [ ! -f openslug/setup-env ] || ( cd openslug ; mv setup-env setup-env.delete-me ) + [ ! -L openslug/setup-env ] || ( cd openslug ; mv setup-env setup-env.delete-me ) [ -e openslug/setup-env ] || ( cd openslug ; ln -s ../common/setup-env . ) [ -e openslug/downloads ] || ( cd openslug ; ln -s ../downloads . ) [ -e openslug/bitbake ] || ( cd openslug ; ln -s ../bitbake . ) @@ -119,9 +119,9 @@ setup-openslug openslug/Makefile: setup-ucslugc ucslugc/Makefile: ${MAKE} MT/revision downloads [ -d ucslugc ] || ( mkdir -p ucslugc ) - [ ! -f ucslugc/Makefile ] || ( cd ucslugc ; mv Makefile Makefile.delete-me) + [ ! -L ucslugc/Makefile ] || ( cd ucslugc ; mv Makefile Makefile.delete-me) [ -e ucslugc/Makefile ] || ( cd ucslugc ; ln -s ../common/openembedded.mk Makefile ) - [ ! -f ucslugc/setup-env ] || ( cd ucslugc ; mv setup-env setup-env.delete-me ) + [ ! -L ucslugc/setup-env ] || ( cd ucslugc ; mv setup-env setup-env.delete-me ) [ -e ucslugc/setup-env ] || ( cd ucslugc ; ln -s ../common/setup-env . ) [ -e ucslugc/downloads ] || ( cd ucslugc ; ln -s ../downloads . ) [ -e ucslugc/bitbake ] || ( cd ucslugc ; ln -s ../bitbake . ) -- cgit v1.2.3 From a53e48f376f2448f0f55e829285b205c20f040f8 Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Sat, 30 Jul 2005 06:03:22 +0000 Subject: Actually, it should be just -L for the existence tests. --- Makefile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 7bc659f998..ed72b1989e 100644 --- a/Makefile +++ b/Makefile @@ -87,9 +87,9 @@ setup-openembedded openembedded/conf/machine/nslu2.conf: setup-unslung unslung/Makefile: ${MAKE} MT/revision downloads [ -d unslung ] || ( mkdir -p unslung ) - [ ! -L unslung/Makefile ] || ( cd unslung ; mv Makefile Makefile.delete-me) + [ -L unslung/Makefile ] || ( cd unslung ; mv Makefile Makefile.delete-me) [ -e unslung/Makefile ] || ( cd unslung ; ln -s ../common/openembedded.mk Makefile ) - [ ! -L unslung/setup-env ] || ( cd unslung ; mv setup-env setup-env.delete-me ) + [ -L unslung/setup-env ] || ( cd unslung ; mv setup-env setup-env.delete-me ) [ -e unslung/setup-env ] || ( cd unslung ; ln -s ../common/setup-env . ) [ -e unslung/downloads ] || ( cd unslung ; ln -s ../downloads . ) [ -e unslung/bitbake ] || ( cd unslung ; ln -s ../bitbake . ) @@ -103,9 +103,9 @@ setup-unslung unslung/Makefile: setup-openslug openslug/Makefile: ${MAKE} MT/revision downloads [ -d openslug ] || ( mkdir -p openslug ) - [ ! -L openslug/Makefile ] || ( cd openslug ; mv Makefile Makefile.delete-me) + [ -L openslug/Makefile ] || ( cd openslug ; mv Makefile Makefile.delete-me) [ -e openslug/Makefile ] || ( cd openslug ; ln -s ../common/openembedded.mk Makefile ) - [ ! -L openslug/setup-env ] || ( cd openslug ; mv setup-env setup-env.delete-me ) + [ -L openslug/setup-env ] || ( cd openslug ; mv setup-env setup-env.delete-me ) [ -e openslug/setup-env ] || ( cd openslug ; ln -s ../common/setup-env . ) [ -e openslug/downloads ] || ( cd openslug ; ln -s ../downloads . ) [ -e openslug/bitbake ] || ( cd openslug ; ln -s ../bitbake . ) @@ -119,9 +119,9 @@ setup-openslug openslug/Makefile: setup-ucslugc ucslugc/Makefile: ${MAKE} MT/revision downloads [ -d ucslugc ] || ( mkdir -p ucslugc ) - [ ! -L ucslugc/Makefile ] || ( cd ucslugc ; mv Makefile Makefile.delete-me) + [ -L ucslugc/Makefile ] || ( cd ucslugc ; mv Makefile Makefile.delete-me) [ -e ucslugc/Makefile ] || ( cd ucslugc ; ln -s ../common/openembedded.mk Makefile ) - [ ! -L ucslugc/setup-env ] || ( cd ucslugc ; mv setup-env setup-env.delete-me ) + [ -L ucslugc/setup-env ] || ( cd ucslugc ; mv setup-env setup-env.delete-me ) [ -e ucslugc/setup-env ] || ( cd ucslugc ; ln -s ../common/setup-env . ) [ -e ucslugc/downloads ] || ( cd ucslugc ; ln -s ../downloads . ) [ -e ucslugc/bitbake ] || ( cd ucslugc ; ln -s ../bitbake . ) -- cgit v1.2.3 From 5b3bedd039ef7a622bf04e8134d4e3d2a5c6174a Mon Sep 17 00:00:00 2001 From: John Bowler Date: Mon, 1 Aug 2005 16:17:42 +0000 Subject: Fix the renames of the obsolete files so that they no longer happen if the files do note exist. --- Makefile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index ed72b1989e..42dc7dabe5 100644 --- a/Makefile +++ b/Makefile @@ -87,9 +87,9 @@ setup-openembedded openembedded/conf/machine/nslu2.conf: setup-unslung unslung/Makefile: ${MAKE} MT/revision downloads [ -d unslung ] || ( mkdir -p unslung ) - [ -L unslung/Makefile ] || ( cd unslung ; mv Makefile Makefile.delete-me) + [ -L unslung/Makefile -o ! -e unslung/Makefile ] || ( cd unslung ; mv Makefile Makefile.delete-me) [ -e unslung/Makefile ] || ( cd unslung ; ln -s ../common/openembedded.mk Makefile ) - [ -L unslung/setup-env ] || ( cd unslung ; mv setup-env setup-env.delete-me ) + [ -L unslung/setup-env -o ! -e unslung/setup-env ] || ( cd unslung ; mv setup-env setup-env.delete-me ) [ -e unslung/setup-env ] || ( cd unslung ; ln -s ../common/setup-env . ) [ -e unslung/downloads ] || ( cd unslung ; ln -s ../downloads . ) [ -e unslung/bitbake ] || ( cd unslung ; ln -s ../bitbake . ) @@ -103,9 +103,9 @@ setup-unslung unslung/Makefile: setup-openslug openslug/Makefile: ${MAKE} MT/revision downloads [ -d openslug ] || ( mkdir -p openslug ) - [ -L openslug/Makefile ] || ( cd openslug ; mv Makefile Makefile.delete-me) + [ -L openslug/Makefile -o ! -e openslug/Makefile ] || ( cd openslug ; mv Makefile Makefile.delete-me) [ -e openslug/Makefile ] || ( cd openslug ; ln -s ../common/openembedded.mk Makefile ) - [ -L openslug/setup-env ] || ( cd openslug ; mv setup-env setup-env.delete-me ) + [ -L openslug/setup-env -o ! -e openslug/setup-env ] || ( cd openslug ; mv setup-env setup-env.delete-me ) [ -e openslug/setup-env ] || ( cd openslug ; ln -s ../common/setup-env . ) [ -e openslug/downloads ] || ( cd openslug ; ln -s ../downloads . ) [ -e openslug/bitbake ] || ( cd openslug ; ln -s ../bitbake . ) @@ -119,9 +119,9 @@ setup-openslug openslug/Makefile: setup-ucslugc ucslugc/Makefile: ${MAKE} MT/revision downloads [ -d ucslugc ] || ( mkdir -p ucslugc ) - [ -L ucslugc/Makefile ] || ( cd ucslugc ; mv Makefile Makefile.delete-me) + [ -L ucslugc/Makefile -o ! -e ucslugc/Makefile ] || ( cd ucslugc ; mv Makefile Makefile.delete-me) [ -e ucslugc/Makefile ] || ( cd ucslugc ; ln -s ../common/openembedded.mk Makefile ) - [ -L ucslugc/setup-env ] || ( cd ucslugc ; mv setup-env setup-env.delete-me ) + [ -L ucslugc/setup-env -o ! -e ucslugc/setup-env ] || ( cd ucslugc ; mv setup-env setup-env.delete-me ) [ -e ucslugc/setup-env ] || ( cd ucslugc ; ln -s ../common/setup-env . ) [ -e ucslugc/downloads ] || ( cd ucslugc ; ln -s ../downloads . ) [ -e ucslugc/bitbake ] || ( cd ucslugc ; ln -s ../bitbake . ) -- cgit v1.2.3 From e7799cc407b5d3c24d76c9950b83cb971d1b95af Mon Sep 17 00:00:00 2001 From: John Bowler Date: Mon, 1 Aug 2005 17:49:55 +0000 Subject: Prevent DISTRO, MAKE_TARGET and MACHINE getting into the environment. --- common/openembedded.mk | 19 +++++++++++++++---- common/setup-env | 9 ++++----- 2 files changed, 19 insertions(+), 9 deletions(-) diff --git a/common/openembedded.mk b/common/openembedded.mk index 88a143970a..c7eaa8e5fb 100644 --- a/common/openembedded.mk +++ b/common/openembedded.mk @@ -1,6 +1,17 @@ -# Makefile for UcSlugC +#!/bin/make +# Makefile for OpenEmbedded builds # Licensed under the GPL v2 or later # +# conf/auto.conf must exist in the same directory as the Makefile (i.e. +# the directory where Makefile is used - it may be a symbolic link to +# this file). conf/auto.conf defines: +# +# DISTRO - the OpenEmbedded 'distro' to build +# MACHINE - the OpenEmbedded build target machine +# MAKE_TARGET - the target to pass to bitbake +# +# All of these values are (should be, must be) quoted in double quotes +include conf/auto.conf BUILD_DIRS = downloads REQUIRED_DIRS = bitbake openembedded @@ -8,7 +19,7 @@ FIRMWARE_DEPS = create-topdir $(BUILD_DIRS) $(REQUIRED_DIRS) # The default rule is to build the firmware in an unprotected environment. firmware: $(FIRMWARE_DEPS) - . ./setup-env; exec bitbake $${MAKE_TARGET} + . ./setup-env; exec bitbake $(MAKE_TARGET) # This rule clobbers the environment (note that ccache uses '$HOME' by # default, so the cache will end up there). @@ -40,7 +51,7 @@ clobber: .PHONY: source source: $(REQUIRED_DIRS) - tar zcf $${DISTRO}.tar.gz --exclude=MT Makefile setup-env conf/site.conf conf/auto.conf \ + tar zcf $(DISTRO).tar.gz --exclude=MT Makefile setup-env conf/site.conf conf/auto.conf \ conf/local.conf.sample $(REQUIRED_DIRS:=/.) # This target probably isn't important any longer, because the -source @@ -54,4 +65,4 @@ distclean: clobber # it removes directories from the tarball). .PHONY: really-clean: distclean - rm -rf $(REQUIRED_DIRS) $${DISTRO}-source.tar.gz + rm -rf $(REQUIRED_DIRS) $(DISTRO)-source.tar.gz diff --git a/common/setup-env b/common/setup-env index 46151e5774..a1e0d3fbd5 100644 --- a/common/setup-env +++ b/common/setup-env @@ -12,10 +12,6 @@ test -n "$TOPDIR" -a -d "$TOPDIR" || { exit 1 } -. ./conf/auto.conf -export DISTRO -export MAKE_TARGET - # # the following must match the definitions in common/conf/site.conf export PYTHONPATH="${TOPDIR}/bitbake/lib" @@ -31,10 +27,13 @@ unset CC unset CXX unset MFLAGS unset MAKEFLAGS +unset DISTRO +unset MACHINE +unset MAKE_TARGET # # make bb into a 'safe' bitbake alias bb-safe="env -i \ - HOME='${TOPDIR}/home' \ + HOME='${HOME}' \ PYTHONPATH='${PYTHONPATH}' \ BBPATH='${BBPATH}' \ PATH='${PATH}' \ -- cgit v1.2.3 From 71666fb57251f3375af43be126f351c107c1aff6 Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Tue, 2 Aug 2005 03:45:39 +0000 Subject: Added the clobber-master target --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 42dc7dabe5..f856d4870a 100644 --- a/Makefile +++ b/Makefile @@ -22,7 +22,7 @@ setup-developer: setup-master setup-bitbake setup-openembedded setup-optware-dev update: update-master update-bitbake update-openembedded update-optware .PHONY: clobber -clobber: clobber-optware clobber-openembedded clobber-bitbake +clobber: clobber-optware clobber-openembedded clobber-bitbake clobber-master .PHONY: unslung build-unslung unslung build-unslung: unslung/Makefile bitbake/bin/bitbake openembedded/conf/machine/nslu2.conf @@ -260,6 +260,10 @@ update-optware: optware/Makefile update-openslug-2.3-beta: ( cd releases/OpenSlug-2.3-beta ; svn up ) +.PHONY: clobber-master +clobber-master: + rm -rf MT common downloads openslug scripts ucslugc unslung + .PHONY: clobber-bitbake clobber-bitbake: rm -rf bitbake -- cgit v1.2.3 From 0fad3350e7796dea30ab8d3434306b983f3f8bf0 Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Tue, 2 Aug 2005 03:50:07 +0000 Subject: Removed the old unlsung Makefile --- unslung/Makefile | 57 -------------------------------------------------------- 1 file changed, 57 deletions(-) delete mode 100644 unslung/Makefile diff --git a/unslung/Makefile b/unslung/Makefile deleted file mode 100644 index 88a143970a..0000000000 --- a/unslung/Makefile +++ /dev/null @@ -1,57 +0,0 @@ -# Makefile for UcSlugC -# Licensed under the GPL v2 or later -# - -BUILD_DIRS = downloads -REQUIRED_DIRS = bitbake openembedded -FIRMWARE_DEPS = create-topdir $(BUILD_DIRS) $(REQUIRED_DIRS) - -# The default rule is to build the firmware in an unprotected environment. -firmware: $(FIRMWARE_DEPS) - . ./setup-env; exec bitbake $${MAKE_TARGET} - -# This rule clobbers the environment (note that ccache uses '$HOME' by -# default, so the cache will end up there). -firmware-safe: - env -i HOME="$${HOME}" PATH="$${PATH}" $(MAKE) firmware - -# topdir.conf is re-created automatically if the directory is -# moved - this will cause a full bitbake reparse -.PHONY: create-topdir -create-topdir: conf/topdir.conf - . conf/topdir.conf && test "`pwd`" = "$$TOPDIR" || echo "TOPDIR='`pwd`'" > conf/topdir.conf - -conf/topdir.conf: - echo "TOPDIR='`pwd`'" >$@ - -# rules for directories - if a symlink exists and the target does not -# exist something will go wrong in the build, therefore cause a failure -# here by the mkdir. -$(BUILD_DIRS): - test -d $@ || if test -d ../$@; then ln -s ../$@ .; else mkdir $@; fi - -# these directories must already exist - either in TOPDIR (here) or in .. -$(REQUIRED_DIRS): - test -d $@ || if test -d ../$@; then ln -s ../$@ .; else exit 1; fi - -.PHONY: clobber -clobber: - rm -rf tmp - -.PHONY: source -source: $(REQUIRED_DIRS) - tar zcf $${DISTRO}.tar.gz --exclude=MT Makefile setup-env conf/site.conf conf/auto.conf \ - conf/local.conf.sample $(REQUIRED_DIRS:=/.) - -# This target probably isn't important any longer, because the -source -# target above does the right thing -.PHONY: -distclean: clobber - rm -rf conf/topdir.conf conf/local.conf $(BUILD_DIRS) - -# This target is mainly for testing - it is intended to put the disto directory -# back to its original state, it will destroy a source-tarball system (because -# it removes directories from the tarball). -.PHONY: -really-clean: distclean - rm -rf $(REQUIRED_DIRS) $${DISTRO}-source.tar.gz -- cgit v1.2.3 From b436e24637d38df828c18861a49ab48b373b8af8 Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Tue, 2 Aug 2005 03:50:39 +0000 Subject: Removed the old openslug Makefile --- openslug/Makefile | 57 ------------------------------------------------------- 1 file changed, 57 deletions(-) delete mode 100644 openslug/Makefile diff --git a/openslug/Makefile b/openslug/Makefile deleted file mode 100644 index 88a143970a..0000000000 --- a/openslug/Makefile +++ /dev/null @@ -1,57 +0,0 @@ -# Makefile for UcSlugC -# Licensed under the GPL v2 or later -# - -BUILD_DIRS = downloads -REQUIRED_DIRS = bitbake openembedded -FIRMWARE_DEPS = create-topdir $(BUILD_DIRS) $(REQUIRED_DIRS) - -# The default rule is to build the firmware in an unprotected environment. -firmware: $(FIRMWARE_DEPS) - . ./setup-env; exec bitbake $${MAKE_TARGET} - -# This rule clobbers the environment (note that ccache uses '$HOME' by -# default, so the cache will end up there). -firmware-safe: - env -i HOME="$${HOME}" PATH="$${PATH}" $(MAKE) firmware - -# topdir.conf is re-created automatically if the directory is -# moved - this will cause a full bitbake reparse -.PHONY: create-topdir -create-topdir: conf/topdir.conf - . conf/topdir.conf && test "`pwd`" = "$$TOPDIR" || echo "TOPDIR='`pwd`'" > conf/topdir.conf - -conf/topdir.conf: - echo "TOPDIR='`pwd`'" >$@ - -# rules for directories - if a symlink exists and the target does not -# exist something will go wrong in the build, therefore cause a failure -# here by the mkdir. -$(BUILD_DIRS): - test -d $@ || if test -d ../$@; then ln -s ../$@ .; else mkdir $@; fi - -# these directories must already exist - either in TOPDIR (here) or in .. -$(REQUIRED_DIRS): - test -d $@ || if test -d ../$@; then ln -s ../$@ .; else exit 1; fi - -.PHONY: clobber -clobber: - rm -rf tmp - -.PHONY: source -source: $(REQUIRED_DIRS) - tar zcf $${DISTRO}.tar.gz --exclude=MT Makefile setup-env conf/site.conf conf/auto.conf \ - conf/local.conf.sample $(REQUIRED_DIRS:=/.) - -# This target probably isn't important any longer, because the -source -# target above does the right thing -.PHONY: -distclean: clobber - rm -rf conf/topdir.conf conf/local.conf $(BUILD_DIRS) - -# This target is mainly for testing - it is intended to put the disto directory -# back to its original state, it will destroy a source-tarball system (because -# it removes directories from the tarball). -.PHONY: -really-clean: distclean - rm -rf $(REQUIRED_DIRS) $${DISTRO}-source.tar.gz -- cgit v1.2.3 From 521db5920c5fb581223026d843fb0fdf9128c84f Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Tue, 2 Aug 2005 05:14:59 +0000 Subject: Added status commands for developers to determine their changed files. --- Makefile | 83 +++++++++++++++++++++++++++++++++++----------------------------- 1 file changed, 45 insertions(+), 38 deletions(-) diff --git a/Makefile b/Makefile index f856d4870a..79ba6cceb2 100644 --- a/Makefile +++ b/Makefile @@ -21,6 +21,9 @@ setup-developer: setup-master setup-bitbake setup-openembedded setup-optware-dev .PHONY: update update: update-master update-bitbake update-openembedded update-optware +.PHONY: status +status: status-master status-bitbake status-openembedded status-optware + .PHONY: clobber clobber: clobber-optware clobber-openembedded clobber-bitbake clobber-master @@ -32,6 +35,10 @@ unslung build-unslung: unslung/Makefile bitbake/bin/bitbake openembedded/conf/ma openslug build-openslug: openslug/Makefile bitbake/bin/bitbake openembedded/conf/machine/nslu2.conf ( cd openslug ; ${MAKE} ) +.PHONY: openslug-2.3-beta build-openslug-2.3-beta +openslug-2.3-beta build-openslug-2.3-beta: releases/OpenSlug-2.3-beta/Makefile + ( cd releases/OpenSlug-2.3-beta ; ${MAKE} openslug-firmware ) + .PHONY: ucslugc build-ucslugc ucslugc build-ucslugc: ucslugc/Makefile bitbake/bin/bitbake openembedded/conf/machine/nslu2.conf ( cd ucslugc ; ${MAKE} ) @@ -47,49 +54,31 @@ optware-nslu2 build-optware-nslu2: optware/nslu2/Makefile optware-wl500g build-optware-wl500g: optware/wl500g/Makefile ( cd optware/wl500g ; ${MAKE} autoclean ; ${MAKE} ) -.PHONY: openslug-2.3-beta build-openslug-2.3-beta -openslug-2.3-beta build-openslug-2.3-beta: - ( cd releases/OpenSlug-2.3-beta ; ${MAKE} openslug-firmware ) - -.PHONY: setup-monotone -setup-monotone monotone/nslu2-linux.db: +.PHONY: setup-master +setup-master MT/revision: [ -e monotone/nslu2-linux.db ] || ( mkdir -p monotone && \ wget http://sources.nslu2-linux.org/monotone/nslu2-linux.db.gz -O monotone/nslu2-linux.db.gz && \ gunzip monotone/nslu2-linux.db.gz ) - ( monotone -d monotone/nslu2-linux.db unset database default-server ) - ( monotone -d monotone/nslu2-linux.db unset database default-include-pattern ) ( monotone -d monotone/nslu2-linux.db pull monotone.nslu2-linux.org org.openembedded.* org.nslu2-linux.* ) - -downloads: - [ -e $@ ] || mkdir -p $@ - -MT/revision: - ${MAKE} downloads - [ -e monotone/nslu2-linux.db ] || ( ${MAKE} monotone/nslu2-linux.db ) [ -e MT/revision ] || ( monotone -d monotone/nslu2-linux.db co -b org.nslu2-linux.dev . ) -.PHONY: setup-master -setup-master: setup-monotone unslung/Makefile openslug/Makefile ucslugc/Makefile - [ -e unslung/downloads ] || ( cd unslung ; ln -s ../downloads . ) - [ -e openslug/downloads ] || ( cd openslug ; ln -s ../downloads . ) - .PHONY: setup-bitbake -setup-bitbake bitbake/bin/bitbake: - ${MAKE} MT/revision +setup-bitbake bitbake/bin/bitbake: MT/revision [ -e bitbake/bin/bitbake ] || monotone co -b org.nslu2-linux.bitbake bitbake .PHONY: setup-openembedded -setup-openembedded openembedded/conf/machine/nslu2.conf: - ${MAKE} MT/revision +setup-openembedded openembedded/conf/machine/nslu2.conf: MT/revision [ -e openembedded/conf/machine/nslu2.conf ] || monotone co -b org.openembedded.nslu2-linux openembedded .PHONY: setup-unslung -setup-unslung unslung/Makefile: - ${MAKE} MT/revision downloads +setup-unslung unslung/Makefile: MT/revision [ -d unslung ] || ( mkdir -p unslung ) - [ -L unslung/Makefile -o ! -e unslung/Makefile ] || ( cd unslung ; mv Makefile Makefile.delete-me) + [ -e downloads ] || ( mkdir -p downloads ) + [ -L unslung/Makefile -o ! -e unslung/Makefile ] || ( cd unslung ; mv Makefile Makefile.delete-me) [ -e unslung/Makefile ] || ( cd unslung ; ln -s ../common/openembedded.mk Makefile ) - [ -L unslung/setup-env -o ! -e unslung/setup-env ] || ( cd unslung ; mv setup-env setup-env.delete-me ) + [ -L unslung/setup-env -o ! -e unslung/setup-env ] || ( cd unslung ; mv setup-env setup-env.delete-me ) [ -e unslung/setup-env ] || ( cd unslung ; ln -s ../common/setup-env . ) [ -e unslung/downloads ] || ( cd unslung ; ln -s ../downloads . ) [ -e unslung/bitbake ] || ( cd unslung ; ln -s ../bitbake . ) @@ -100,12 +89,12 @@ setup-unslung unslung/Makefile: rm -rf unslung/tmp/cache .PHONY: setup-openslug -setup-openslug openslug/Makefile: - ${MAKE} MT/revision downloads +setup-openslug openslug/Makefile: MT/revision [ -d openslug ] || ( mkdir -p openslug ) - [ -L openslug/Makefile -o ! -e openslug/Makefile ] || ( cd openslug ; mv Makefile Makefile.delete-me) + [ -e downloads ] || ( mkdir -p downloads ) + [ -L openslug/Makefile -o ! -e openslug/Makefile ] || ( cd openslug ; mv Makefile Makefile.delete-me) [ -e openslug/Makefile ] || ( cd openslug ; ln -s ../common/openembedded.mk Makefile ) - [ -L openslug/setup-env -o ! -e openslug/setup-env ] || ( cd openslug ; mv setup-env setup-env.delete-me ) + [ -L openslug/setup-env -o ! -e openslug/setup-env ] || ( cd openslug ; mv setup-env setup-env.delete-me ) [ -e openslug/setup-env ] || ( cd openslug ; ln -s ../common/setup-env . ) [ -e openslug/downloads ] || ( cd openslug ; ln -s ../downloads . ) [ -e openslug/bitbake ] || ( cd openslug ; ln -s ../bitbake . ) @@ -116,12 +105,12 @@ setup-openslug openslug/Makefile: rm -rf openslug/tmp/cache .PHONY: setup-ucslugc -setup-ucslugc ucslugc/Makefile: - ${MAKE} MT/revision downloads +setup-ucslugc ucslugc/Makefile: MT/revision [ -d ucslugc ] || ( mkdir -p ucslugc ) - [ -L ucslugc/Makefile -o ! -e ucslugc/Makefile ] || ( cd ucslugc ; mv Makefile Makefile.delete-me) + [ -e downloads ] || ( mkdir -p downloads ) + [ -L ucslugc/Makefile -o ! -e ucslugc/Makefile ] || ( cd ucslugc ; mv Makefile Makefile.delete-me) [ -e ucslugc/Makefile ] || ( cd ucslugc ; ln -s ../common/openembedded.mk Makefile ) - [ -L ucslugc/setup-env -o ! -e ucslugc/setup-env ] || ( cd ucslugc ; mv setup-env setup-env.delete-me ) + [ -L ucslugc/setup-env -o ! -e ucslugc/setup-env ] || ( cd ucslugc ; mv setup-env setup-env.delete-me ) [ -e ucslugc/setup-env ] || ( cd ucslugc ; ln -s ../common/setup-env . ) [ -e ucslugc/downloads ] || ( cd ucslugc ; ln -s ../downloads . ) [ -e ucslugc/bitbake ] || ( cd ucslugc ; ln -s ../bitbake . ) @@ -133,15 +122,15 @@ setup-ucslugc ucslugc/Makefile: .PHONY: setup-openslug-2.3-beta setup-openslug-2.3-beta releases/OpenSlug-2.3-beta/Makefile: - ${MAKE} downloads [ ! -e releases/OpenSlug-2.3-beta ] || mkdir -p releases svn checkout svn://svn.berlios.de/openslug/releases/OpenSlug-2.3-beta releases/OpenSlug-2.3-beta cd releases/OpenSlug-2.3-beta && ${MAKE} conf/local.conf setup-env + [ -e downloads ] || ( mkdir -p downloads ) ln -s ../../downloads releases/OpenSlug-2.3-beta/ .PHONY: setup-optware setup-optware optware/Makefile: - ${MAKE} downloads + [ -e downloads ] || ( mkdir -p downloads ) [ -e optware/Makefile ] || ( cvs -q -d :pserver:anonymous@cvs.sf.net:/cvsroot/nslu co -d optware unslung ) optware/nslu2/Makefile: @@ -170,10 +159,8 @@ optware/wl500g/Makefile: .PHONY: setup-optware-developer setup-optware-developer: - ${MAKE} downloads [ ! -e optware ] || ( mv optware optware-user ) cvs -q -d :ext:${CVS_USER}@cvs.sf.net:/cvsroot/nslu co -d optware unslung - ${MAKE} optware/nslu2/Makefile optware/wl500g/Makefile .PHONY: setup-slugimage-developer setup-slugimage-developer: @@ -260,6 +247,26 @@ update-optware: optware/Makefile update-openslug-2.3-beta: ( cd releases/OpenSlug-2.3-beta ; svn up ) +.PHONY: status-master +status-master: MT/revision + monotone status --brief + +.PHONY: status-bitbake +status-bitbake: bitbake/bin/bitbake + ( cd bitbake ; monotone status --brief ) + +.PHONY: status-openembedded +status-openembedded: openembedded/conf/machine/nslu2.conf + ( cd openembedded ; monotone status --brief ) + +.PHONY: status-optware +status-optware: optware/Makefile + ( cd optware ; cvs -q update -d -P ) + +.PHONY: status-openslug-2.3-beta +status-openslug-2.3-beta: + ( cd releases/OpenSlug-2.3-beta ; svn status ) + .PHONY: clobber-master clobber-master: rm -rf MT common downloads openslug scripts ucslugc unslung -- cgit v1.2.3 From 6407ebe80de9614bdb380f25216dbdc717d763ba Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Tue, 2 Aug 2005 06:05:37 +0000 Subject: Revamped the setup targets to use a .configured stamp file to indicate completion instead of a file that is touched on each pull and causes downstream dependencies to be out of date. --- Makefile | 117 +++++++++++++++++++++++++++++++++++---------------------------- 1 file changed, 66 insertions(+), 51 deletions(-) diff --git a/Makefile b/Makefile index 79ba6cceb2..1b1038d83f 100644 --- a/Makefile +++ b/Makefile @@ -28,34 +28,34 @@ status: status-master status-bitbake status-openembedded status-optware clobber: clobber-optware clobber-openembedded clobber-bitbake clobber-master .PHONY: unslung build-unslung -unslung build-unslung: unslung/Makefile bitbake/bin/bitbake openembedded/conf/machine/nslu2.conf +unslung build-unslung: unslung/.configured bitbake/.configured openembedded/.configured ( cd unslung ; ${MAKE} ) .PHONY: openslug build-openslug -openslug build-openslug: openslug/Makefile bitbake/bin/bitbake openembedded/conf/machine/nslu2.conf +openslug build-openslug: openslug/.configured bitbake/.configured openembedded/.configured ( cd openslug ; ${MAKE} ) -.PHONY: openslug-2.3-beta build-openslug-2.3-beta -openslug-2.3-beta build-openslug-2.3-beta: releases/OpenSlug-2.3-beta/Makefile - ( cd releases/OpenSlug-2.3-beta ; ${MAKE} openslug-firmware ) - .PHONY: ucslugc build-ucslugc -ucslugc build-ucslugc: ucslugc/Makefile bitbake/bin/bitbake openembedded/conf/machine/nslu2.conf +ucslugc build-ucslugc: ucslugc/.configured bitbake/.configured openembedded/.configured ( cd ucslugc ; ${MAKE} ) .PHONY: optware build-optware optware build-optware: build-optware-nslu2 build-optware-wl500g .PHONY: optware-nslu2 build-optware-nslu2 -optware-nslu2 build-optware-nslu2: optware/nslu2/Makefile +optware-nslu2 build-optware-nslu2: optware/nslu2/.configured ( cd optware/nslu2 ; ${MAKE} autoclean ; ${MAKE} ) .PHONY: optware-wl500g build-optware-wl500g -optware-wl500g build-optware-wl500g: optware/wl500g/Makefile +optware-wl500g build-optware-wl500g: optware/wl500g/.configured ( cd optware/wl500g ; ${MAKE} autoclean ; ${MAKE} ) +.PHONY: openslug-2.3-beta build-openslug-2.3-beta +openslug-2.3-beta build-openslug-2.3-beta: releases/OpenSlug-2.3-beta/.configured + ( cd releases/OpenSlug-2.3-beta ; ${MAKE} openslug-firmware ) + .PHONY: setup-master -setup-master MT/revision: +setup-master MT/.configured: [ -e monotone/nslu2-linux.db ] || ( mkdir -p monotone && \ wget http://sources.nslu2-linux.org/monotone/nslu2-linux.db.gz -O monotone/nslu2-linux.db.gz && \ gunzip monotone/nslu2-linux.db.gz ) @@ -63,17 +63,20 @@ setup-master MT/revision: - ( monotone -d monotone/nslu2-linux.db unset database default-include-pattern ) ( monotone -d monotone/nslu2-linux.db pull monotone.nslu2-linux.org org.openembedded.* org.nslu2-linux.* ) [ -e MT/revision ] || ( monotone -d monotone/nslu2-linux.db co -b org.nslu2-linux.dev . ) + touch MT/.configured .PHONY: setup-bitbake -setup-bitbake bitbake/bin/bitbake: MT/revision +setup-bitbake bitbake/.configured: MT/.configured [ -e bitbake/bin/bitbake ] || monotone co -b org.nslu2-linux.bitbake bitbake + touch bitbake/.configured .PHONY: setup-openembedded -setup-openembedded openembedded/conf/machine/nslu2.conf: MT/revision +setup-openembedded openembedded/.configured: MT/.configured [ -e openembedded/conf/machine/nslu2.conf ] || monotone co -b org.openembedded.nslu2-linux openembedded + touch openembedded/.configured .PHONY: setup-unslung -setup-unslung unslung/Makefile: MT/revision +setup-unslung unslung/.configured: MT/.configured [ -d unslung ] || ( mkdir -p unslung ) [ -e downloads ] || ( mkdir -p downloads ) [ -L unslung/Makefile -o ! -e unslung/Makefile ] || ( cd unslung ; mv Makefile Makefile.delete-me) @@ -87,9 +90,10 @@ setup-unslung unslung/Makefile: MT/revision [ ! -f unslung/conf/local.conf ] || ( cd unslung/conf ; mv local.conf local.conf.delete-me ) [ -e unslung/conf/site.conf ] || ( cd unslung/conf ; ln -s ../../common/conf/site.conf . ) rm -rf unslung/tmp/cache + touch unslung/.configured .PHONY: setup-openslug -setup-openslug openslug/Makefile: MT/revision +setup-openslug openslug/.configured: MT/.configured [ -d openslug ] || ( mkdir -p openslug ) [ -e downloads ] || ( mkdir -p downloads ) [ -L openslug/Makefile -o ! -e openslug/Makefile ] || ( cd openslug ; mv Makefile Makefile.delete-me) @@ -103,9 +107,10 @@ setup-openslug openslug/Makefile: MT/revision [ ! -f openslug/conf/local.conf ] || ( cd openslug/conf ; mv local.conf local.conf.delete-me ) [ -e openslug/conf/site.conf ] || ( cd openslug/conf ; ln -s ../../common/conf/site.conf . ) rm -rf openslug/tmp/cache + touch openslug/.configured .PHONY: setup-ucslugc -setup-ucslugc ucslugc/Makefile: MT/revision +setup-ucslugc ucslugc/.configured: MT/.configured [ -d ucslugc ] || ( mkdir -p ucslugc ) [ -e downloads ] || ( mkdir -p downloads ) [ -L ucslugc/Makefile -o ! -e ucslugc/Makefile ] || ( cd ucslugc ; mv Makefile Makefile.delete-me) @@ -119,23 +124,16 @@ setup-ucslugc ucslugc/Makefile: MT/revision [ ! -f ucslugc/conf/local.conf ] || ( cd ucslugc/conf ; mv local.conf local.conf.delete-me ) [ -e ucslugc/conf/site.conf ] || ( cd ucslugc/conf ; ln -s ../../common/conf/site.conf . ) rm -rf ucslugc/tmp/cache - -.PHONY: setup-openslug-2.3-beta -setup-openslug-2.3-beta releases/OpenSlug-2.3-beta/Makefile: - [ ! -e releases/OpenSlug-2.3-beta ] || mkdir -p releases - svn checkout svn://svn.berlios.de/openslug/releases/OpenSlug-2.3-beta releases/OpenSlug-2.3-beta - cd releases/OpenSlug-2.3-beta && ${MAKE} conf/local.conf setup-env - [ -e downloads ] || ( mkdir -p downloads ) - ln -s ../../downloads releases/OpenSlug-2.3-beta/ + touch ucslugc/.configured .PHONY: setup-optware -setup-optware optware/Makefile: +setup-optware optware/.configured: [ -e downloads ] || ( mkdir -p downloads ) [ -e optware/Makefile ] || ( cvs -q -d :pserver:anonymous@cvs.sf.net:/cvsroot/nslu co -d optware unslung ) + touch optware/.configured -optware/nslu2/Makefile: - ${MAKE} optware/Makefile - [ -e optware/nslu2/Makefile ] || ( \ +optware/nslu2/.configured: optware/.configured + [ -e optware/nslu2/Makefile ] || ( \ mkdir -p optware/nslu2 ; \ echo "OPTWARE_TARGET=nslu2" > optware/nslu2/Makefile ; \ echo "include ../Makefile" >> optware/nslu2/Makefile ; \ @@ -144,10 +142,10 @@ optware/nslu2/Makefile: ln -s ../scripts optware/nslu2/scripts ; \ ln -s ../sources optware/nslu2/sources ; \ ) + touch optware/nslu2/.configured -optware/wl500g/Makefile: - ${MAKE} optware/Makefile - [ -e optware/wl500g/Makefile ] || ( \ +optware/wl500g/.configured: optware/.configured + [ -e optware/wl500g/Makefile ] || ( \ mkdir -p optware/wl500g ; \ echo "OPTWARE_TARGET=wl500g" > optware/wl500g/Makefile ; \ echo "include ../Makefile" >> optware/wl500g/Makefile ; \ @@ -156,11 +154,13 @@ optware/wl500g/Makefile: ln -s ../scripts optware/wl500g/scripts ; \ ln -s ../sources optware/wl500g/sources ; \ ) + touch optware/wl500g/.configured .PHONY: setup-optware-developer setup-optware-developer: [ ! -e optware ] || ( mv optware optware-user ) cvs -q -d :ext:${CVS_USER}@cvs.sf.net:/cvsroot/nslu co -d optware unslung + ${MAKE} setup-optware .PHONY: setup-slugimage-developer setup-slugimage-developer: @@ -182,11 +182,26 @@ setup-apex apex/Makefile: setup-apex-developer: cvs -q -d :ext:${CVS_USER}@cvs.sf.net:/cvsroot/nslu co apex +.PHONY: setup-openslug-2.3-beta +setup-openslug-2.3-beta releases/OpenSlug-2.3-beta/.configured: + [ -e releases/OpenSlug-2.3-beta ] || ( \ + mkdir -p releases ; \ + svn checkout svn://svn.berlios.de/openslug/releases/OpenSlug-2.3-beta \ + releases/OpenSlug-2.3-beta \ + ) + ( cd releases/OpenSlug-2.3-beta ; ${MAKE} conf/local.conf setup-env ) + [ -e downloads ] || ( mkdir -p downloads ) + ln -s ../../downloads releases/OpenSlug-2.3-beta/ + touch releases/OpenSlug-2.3-beta/.configured + .PHONY: setup-openslug-2.3-beta-developer setup-openslug-2.3-beta-developer: - [ ! -e releases/OpenSlug-2.3-beta ] || mkdir -p releases - svn checkout svn+ssh://svn.berlios.de/svnroot/repos/openslug/releases/OpenSlug-2.3-beta releases/OpenSlug-2.3-beta - cd releases/OpenSlug-2.3-beta && ${MAKE} conf/local.conf setup-env + [ -e releases/OpenSlug-2.3-beta ] || ( \ + mkdir -p releases ; \ + svn checkout svn+ssh://svn.berlios.de/svnroot/repos/openslug/releases/OpenSlug-2.3-beta \ + releases/OpenSlug-2.3-beta \ + ) + ${MAKE} setup-openslug-2.3-beta .PHONY: setup-host-debian setup-host-debian: @@ -207,7 +222,7 @@ setup-host-debian: unzip .PHONY: update-master -update-master: MT/revision +update-master: MT/.configured monotone pull if [ `monotone automate heads org.nslu2-linux.dev | wc -l` != "1" ] ; then \ monotone merge -b org.nslu2-linux.dev ; \ @@ -218,7 +233,7 @@ update-master: MT/revision fi .PHONY: update-bitbake -update-bitbake: bitbake/bin/bitbake +update-bitbake: bitbake/.configured monotone pull if [ `monotone automate heads org.nslu2-linux.bitbake | wc -l` != "1" ] ; then \ monotone merge -b org.nslu2-linux.bitbake ; \ @@ -229,7 +244,7 @@ update-bitbake: bitbake/bin/bitbake fi .PHONY: update-openembedded -update-openembedded: openembedded/conf/machine/nslu2.conf +update-openembedded: openembedded/.configured monotone pull if [ `monotone automate heads org.openembedded.nslu2-linux | wc -l` != "1" ] ; then \ monotone merge -b org.openembedded.nslu2-linux ; \ @@ -240,27 +255,27 @@ update-openembedded: openembedded/conf/machine/nslu2.conf fi .PHONY: update-optware -update-optware: optware/Makefile +update-optware: optware/.configured ( cd optware ; cvs -q update -d -P ) .PHONY: update-openslug-2.3-beta -update-openslug-2.3-beta: +update-openslug-2.3-beta: releases/OpenSlug-2.3-beta/.configured ( cd releases/OpenSlug-2.3-beta ; svn up ) .PHONY: status-master -status-master: MT/revision +status-master: MT/.configured monotone status --brief .PHONY: status-bitbake -status-bitbake: bitbake/bin/bitbake +status-bitbake: bitbake/.configured ( cd bitbake ; monotone status --brief ) .PHONY: status-openembedded -status-openembedded: openembedded/conf/machine/nslu2.conf +status-openembedded: openembedded/.configured ( cd openembedded ; monotone status --brief ) .PHONY: status-optware -status-optware: optware/Makefile +status-optware: optware/.configured ( cd optware ; cvs -q update -d -P ) .PHONY: status-openslug-2.3-beta @@ -317,7 +332,7 @@ autobuild: upload: upload-openslug-cross upload-ucslugc-cross upload-unslung-modules upload-optware-nslu2-cross upload-optware-wl500g-cross upload-sources .PHONY: upload-openslug-cross -upload-openslug-cross: openslug/Makefile +upload-openslug-cross: openslug/.configured rm -rf openslug/tmp/deploy/ipk/morgue rsync -vlrt --exclude='Packages*' openslug/tmp/deploy/ipk/ unslung@ipkg.nslu2-linux.org:nslu/feeds/openslug/cross/unstable/ ssh nslu2@sources.nslu2-linux.org mirror/sync-ipk openslug/cross/unstable @@ -326,7 +341,7 @@ upload-openslug-cross: openslug/Makefile ssh nslu2@sources.nslu2-linux.org mirror/sync-packages-clean openslug/cross/unstable .PHONY: upload-openslug-2.3-beta-cross -upload-openslug-2.3-beta-cross: +upload-openslug-2.3-beta-cross: releases/OpenSlug-2.3-beta/.configured rm -rf releases/OpenSlug-2.3-beta/tmp/deploy/ipk/morgue rsync -vlrt --exclude='Packages*' releases/OpenSlug-2.3-beta/tmp/deploy/ipk/ unslung@ipkg.nslu2-linux.org:nslu/feeds/openslug/cross/2.3-beta/ ssh nslu2@sources.nslu2-linux.org mirror/sync-ipk openslug/cross/2.3-beta @@ -335,7 +350,7 @@ upload-openslug-2.3-beta-cross: ssh nslu2@sources.nslu2-linux.org mirror/sync-packages-clean openslug/cross/2.3-beta .PHONY: upload-ucslugc-cross -upload-ucslugc-cross: ucslugc/Makefile +upload-ucslugc-cross: ucslugc/.configured rm -rf ucslugc/tmp/deploy/ipk/morgue rsync -vlrt --exclude='Packages*' ucslugc/tmp/deploy/ipk/ unslung@ipkg.nslu2-linux.org:nslu/feeds/ucslugc/cross/unstable/ ssh nslu2@sources.nslu2-linux.org mirror/sync-ipk ucslugc/cross/unstable @@ -344,7 +359,7 @@ upload-ucslugc-cross: ucslugc/Makefile ssh nslu2@sources.nslu2-linux.org mirror/sync-packages-clean ucslugc/cross/unstable .PHONY: upload-unslung-modules -upload-unslung-modules: unslung/Makefile +upload-unslung-modules: unslung/.configured rm -rf unslung/tmp/deploy/ipk/morgue scripts/package-strip.pl kernel-module-\* unslung/tmp/deploy/ipk/Packages unslung/tmp/deploy/ipk/Packages.new mv unslung/tmp/deploy/ipk/Packages.new unslung/tmp/deploy/ipk/Packages @@ -357,7 +372,7 @@ upload-unslung-modules: unslung/Makefile # rsync -vlt --delete unslung/tmp/deploy/ipk/kernel-module-* unslung@ipkg.nslu2-linux.org:nslu/feeds/unslung/oe/ .PHONY: upload-optware-nslu2-cross -upload-optware-nslu2-cross: optware/nslu2/Makefile +upload-optware-nslu2-cross: optware/nslu2/.configured rsync -vlrt --exclude='Packages*' optware/nslu2/packages/ unslung@ipkg.nslu2-linux.org:nslu/feeds/unslung/cross/ ssh nslu2@sources.nslu2-linux.org mirror/sync-ipk unslung/cross rsync -vl optware/nslu2/packages/Packages* unslung@ipkg.nslu2-linux.org:nslu/feeds/unslung/cross/ @@ -365,7 +380,7 @@ upload-optware-nslu2-cross: optware/nslu2/Makefile ssh nslu2@sources.nslu2-linux.org mirror/sync-packages-clean unslung/cross .PHONY: upload-optware-wl500g-cross -upload-optware-wl500g-cross: optware/wl500g/Makefile +upload-optware-wl500g-cross: optware/wl500g/.configured rsync -vlrt --exclude='Packages*' optware/wl500g/packages/ unslung@ipkg.nslu2-linux.org:nslu/feeds/unslung/wl500g/ ssh nslu2@sources.nslu2-linux.org mirror/sync-ipk unslung/wl500g rsync -vl optware/wl500g/packages/Packages* unslung@ipkg.nslu2-linux.org:nslu/feeds/unslung/wl500g/ @@ -377,7 +392,7 @@ upload-sources: rsync -vlrt --exclude='ixp400*' downloads/ nslu2@sources.nslu2-linux.org:ipkg/sources/ .PHONY: import-bitbake -import-bitbake: bitbake/bin/bitbake +import-bitbake: bitbake/.configured mv bitbake bitbake.old svn co svn://svn.berlios.de/bitbake/trunk/bitbake cp -rp bitbake.old/MT bitbake.old/.mt-attrs bitbake @@ -385,7 +400,7 @@ import-bitbake: bitbake/bin/bitbake ( cd bitbake ; rm -rf .svn ; monotone status ) .PHONY: import-openembedded -import-openembedded: openembedded/conf/machine/nslu2.conf +import-openembedded: openembedded/.configured monotone pull monotone.vanille.de org.openembedded.* if [ `monotone automate heads org.openembedded.dev | wc -l` != "1" ] ; then \ monotone merge -b org.openembedded.dev ; \ @@ -399,7 +414,7 @@ import-openembedded: openembedded/conf/machine/nslu2.conf fi .PHONY: export-openembedded -export-openembedded: openembedded/conf/machine/nslu2.conf +export-openembedded: openembedded/.configured if [ `monotone automate heads org.openembedded.nslu2-linux | wc -l` != "1" ] ; then \ monotone merge -b org.openembedded.nslu2-linux ; \ fi -- cgit v1.2.3 From a504c015bca9089d0622e04ad33b24e6805a061c Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Tue, 2 Aug 2005 07:18:18 +0000 Subject: Added the clobber-releases target. --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 1b1038d83f..676953456c 100644 --- a/Makefile +++ b/Makefile @@ -25,7 +25,7 @@ update: update-master update-bitbake update-openembedded update-optware status: status-master status-bitbake status-openembedded status-optware .PHONY: clobber -clobber: clobber-optware clobber-openembedded clobber-bitbake clobber-master +clobber: clobber-master clobber-bitbake clobber-openembedded clobber-optware clobber-releases .PHONY: unslung build-unslung unslung build-unslung: unslung/.configured bitbake/.configured openembedded/.configured @@ -298,6 +298,10 @@ clobber-openembedded: clobber-optware: rm -rf optware +.PHONY: clobber-releases +clobber-releases: + rm -rf releases + # Targets for use by those with write access to the repositories .PHONY: push @@ -306,6 +310,7 @@ push: push-master push-bitbake push-openembedded .PHONY: push-master push-master: update-master monotone push + # scp Makefile slug@www.nslu2-linux.org:htdocs/www/Makefile scp Makefile nslu@www.nslu2-linux.org:public_html/Makefile .PHONY: push-bitbake -- cgit v1.2.3 From 561638d18f47647bda12787f3b16e0b137cc0423 Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Sun, 31 Jul 2005 02:22:45 +0000 Subject: Improved the autobuild target --- Makefile | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 676953456c..ce94d80e5d 100644 --- a/Makefile +++ b/Makefile @@ -325,13 +325,18 @@ push-openembedded: update-openembedded .PHONY: autobuild autobuild: - ${MAKE} update - ${MAKE} build-ucslugc upload-ucslugc-cross - ${MAKE} build-openslug upload-openslug-cross - ${MAKE} build-unslung upload-unslung-modules - ${MAKE} build-optware-nslu2 upload-optware-nslu2-cross - ${MAKE} build-optware-wl500g upload-optware-wl500g-cross - ${MAKE} upload-sources + ( set errors=0 ; \ + ${MAKE} update || errors++; \ + ${MAKE} build-openslug upload-openslug-cross || errors++ ; \ + ${MAKE} build-ucslugc upload-ucslugc-cross || errors++; \ + ${MAKE} build-unslung upload-unslung-modules || errors++ ; \ + ${MAKE} build-optware-nslu2 upload-optware-nslu2-cross || errors++; \ + ${MAKE} build-optware-wl500g upload-optware-wl500g-cross || errors++; \ + ${MAKE} upload-sources || errors++ ; \ + if [ "$errors" != "0" ] ; then \ + echo "*** Errors during autobuild: $errors ***" ; \ + fi \ + ) .PHONY: upload upload: upload-openslug-cross upload-ucslugc-cross upload-unslung-modules upload-optware-nslu2-cross upload-optware-wl500g-cross upload-sources -- cgit v1.2.3 From 1fd08029fc8d2fbf0da3b176cf53ff0000858eef Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Sun, 31 Jul 2005 12:45:59 +0000 Subject: Moved to new Makefile download location. --- Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile b/Makefile index ce94d80e5d..2f3199d38d 100644 --- a/Makefile +++ b/Makefile @@ -310,8 +310,7 @@ push: push-master push-bitbake push-openembedded .PHONY: push-master push-master: update-master monotone push - # scp Makefile slug@www.nslu2-linux.org:htdocs/www/Makefile - scp Makefile nslu@www.nslu2-linux.org:public_html/Makefile + scp Makefile slug@nugabe.nslu2-linux.org:htdocs/www/Makefile .PHONY: push-bitbake push-bitbake: update-bitbake -- cgit v1.2.3 From db6d6bdaf9ba34f267fc8b915c6dabc37c7b875f Mon Sep 17 00:00:00 2001 From: Oyvind Repvik Date: Tue, 2 Aug 2005 18:13:26 +0000 Subject: Update Makefile so it doesn't barf if there already is a symlink to ./downloads --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ce94d80e5d..ae312849d2 100644 --- a/Makefile +++ b/Makefile @@ -191,7 +191,7 @@ setup-openslug-2.3-beta releases/OpenSlug-2.3-beta/.configured: ) ( cd releases/OpenSlug-2.3-beta ; ${MAKE} conf/local.conf setup-env ) [ -e downloads ] || ( mkdir -p downloads ) - ln -s ../../downloads releases/OpenSlug-2.3-beta/ + [ -e releases/OpenSlug-2.3-beta/downloads ] || ln -s ../../downloads releases/OpenSlug-2.3-beta/ touch releases/OpenSlug-2.3-beta/.configured .PHONY: setup-openslug-2.3-beta-developer -- cgit v1.2.3 From 7816a63d18b55d6dcdc4d715261f786c6c3af44f Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Wed, 3 Aug 2005 03:06:45 +0000 Subject: Moved to new Makefile download location. --- Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile b/Makefile index ae312849d2..ad3aac44ce 100644 --- a/Makefile +++ b/Makefile @@ -310,8 +310,7 @@ push: push-master push-bitbake push-openembedded .PHONY: push-master push-master: update-master monotone push - # scp Makefile slug@www.nslu2-linux.org:htdocs/www/Makefile - scp Makefile nslu@www.nslu2-linux.org:public_html/Makefile + scp Makefile slug@nugabe.nslu2-linux.org:htdocs/www/Makefile .PHONY: push-bitbake push-bitbake: update-bitbake -- cgit v1.2.3 From 648b671fd19365f78320c73d0fbf8a3078a46c47 Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Wed, 3 Aug 2005 03:22:17 +0000 Subject: Fixed the autobuild error reporting. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index ad3aac44ce..9121220e73 100644 --- a/Makefile +++ b/Makefile @@ -332,8 +332,8 @@ autobuild: ${MAKE} build-optware-nslu2 upload-optware-nslu2-cross || errors++; \ ${MAKE} build-optware-wl500g upload-optware-wl500g-cross || errors++; \ ${MAKE} upload-sources || errors++ ; \ - if [ "$errors" != "0" ] ; then \ - echo "*** Errors during autobuild: $errors ***" ; \ + if [ "$$errors" != "0" ] ; then \ + echo "*** Errors during autobuild: $$errors ***" ; \ fi \ ) -- cgit v1.2.3 From dbfefc55d88c6bb15b6a6719d3d983d294c8df5a Mon Sep 17 00:00:00 2001 From: John Bowler Date: Wed, 3 Aug 2005 07:05:22 +0000 Subject: Change ucslugc to build it's own target - ucslugc-packages --- ucslugc/conf/auto.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ucslugc/conf/auto.conf b/ucslugc/conf/auto.conf index b6a439982e..a70e98fc7b 100644 --- a/ucslugc/conf/auto.conf +++ b/ucslugc/conf/auto.conf @@ -1,4 +1,4 @@ # UcSlugC bitbake configuration DISTRO="ucslugc" MACHINE="nslu2" -MAKE_TARGET="openslug-packages" \ No newline at end of file +MAKE_TARGET="ucslugc-packages" -- cgit v1.2.3 From 95b82c054f0a3f98096d583bb2089646e383fbc6 Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Sun, 31 Jul 2005 23:12:26 +0000 Subject: /conf/auto.conf is now generated by the Makefile --- Makefile | 93 +++++++++++++++++--------------------- common/conf/local.conf.sample | 45 +++++++++++++++++++ common/openembedded.mk | 3 +- openslug/.mtn2git_empty | 0 openslug/conf/.mt-ignore | 1 - openslug/conf/.mtn2git_empty | 0 openslug/conf/auto.conf | 4 -- openslug/conf/local.conf.template | 94 --------------------------------------- ucslugc/.mtn2git_empty | 0 ucslugc/conf/.mtn2git_empty | 0 ucslugc/conf/auto.conf | 4 -- ucslugc/conf/local.conf.sample | 49 -------------------- unslung/.mtn2git_empty | 0 unslung/conf/.mtn2git_empty | 0 unslung/conf/auto.conf | 4 -- unslung/conf/local.conf.template | 57 ------------------------ 16 files changed, 87 insertions(+), 267 deletions(-) create mode 100644 common/conf/local.conf.sample delete mode 100644 openslug/.mtn2git_empty delete mode 100644 openslug/conf/.mt-ignore delete mode 100644 openslug/conf/.mtn2git_empty delete mode 100644 openslug/conf/auto.conf delete mode 100644 openslug/conf/local.conf.template delete mode 100644 ucslugc/.mtn2git_empty delete mode 100644 ucslugc/conf/.mtn2git_empty delete mode 100644 ucslugc/conf/auto.conf delete mode 100644 ucslugc/conf/local.conf.sample delete mode 100644 unslung/.mtn2git_empty delete mode 100644 unslung/conf/.mtn2git_empty delete mode 100644 unslung/conf/auto.conf delete mode 100644 unslung/conf/local.conf.template diff --git a/Makefile b/Makefile index 9121220e73..9c50396e34 100644 --- a/Makefile +++ b/Makefile @@ -25,7 +25,8 @@ update: update-master update-bitbake update-openembedded update-optware status: status-master status-bitbake status-openembedded status-optware .PHONY: clobber -clobber: clobber-master clobber-bitbake clobber-openembedded clobber-optware clobber-releases +clobber: clobber-master clobber-bitbake clobber-openembedded \ + clobber-unslung clobber-openslug clobber-ucslugc clobber-optware clobber-releases .PHONY: unslung build-unslung unslung build-unslung: unslung/.configured bitbake/.configured openembedded/.configured @@ -75,59 +76,35 @@ setup-openembedded openembedded/.configured: MT/.configured [ -e openembedded/conf/machine/nslu2.conf ] || monotone co -b org.openembedded.nslu2-linux openembedded touch openembedded/.configured -.PHONY: setup-unslung -setup-unslung unslung/.configured: MT/.configured - [ -d unslung ] || ( mkdir -p unslung ) - [ -e downloads ] || ( mkdir -p downloads ) - [ -L unslung/Makefile -o ! -e unslung/Makefile ] || ( cd unslung ; mv Makefile Makefile.delete-me) - [ -e unslung/Makefile ] || ( cd unslung ; ln -s ../common/openembedded.mk Makefile ) - [ -L unslung/setup-env -o ! -e unslung/setup-env ] || ( cd unslung ; mv setup-env setup-env.delete-me ) - [ -e unslung/setup-env ] || ( cd unslung ; ln -s ../common/setup-env . ) - [ -e unslung/downloads ] || ( cd unslung ; ln -s ../downloads . ) - [ -e unslung/bitbake ] || ( cd unslung ; ln -s ../bitbake . ) - [ -e unslung/openembedded ] || ( cd unslung ; ln -s ../openembedded . ) - [ -d unslung/conf ] || ( mkdir -p unslung/conf ) - [ ! -f unslung/conf/local.conf ] || ( cd unslung/conf ; mv local.conf local.conf.delete-me ) - [ -e unslung/conf/site.conf ] || ( cd unslung/conf ; ln -s ../../common/conf/site.conf . ) - rm -rf unslung/tmp/cache - touch unslung/.configured - -.PHONY: setup-openslug -setup-openslug openslug/.configured: MT/.configured - [ -d openslug ] || ( mkdir -p openslug ) - [ -e downloads ] || ( mkdir -p downloads ) - [ -L openslug/Makefile -o ! -e openslug/Makefile ] || ( cd openslug ; mv Makefile Makefile.delete-me) - [ -e openslug/Makefile ] || ( cd openslug ; ln -s ../common/openembedded.mk Makefile ) - [ -L openslug/setup-env -o ! -e openslug/setup-env ] || ( cd openslug ; mv setup-env setup-env.delete-me ) - [ -e openslug/setup-env ] || ( cd openslug ; ln -s ../common/setup-env . ) - [ -e openslug/downloads ] || ( cd openslug ; ln -s ../downloads . ) - [ -e openslug/bitbake ] || ( cd openslug ; ln -s ../bitbake . ) - [ -e openslug/openembedded ] || ( cd openslug ; ln -s ../openembedded . ) - [ -d openslug/conf ] || ( mkdir -p openslug/conf ) - [ ! -f openslug/conf/local.conf ] || ( cd openslug/conf ; mv local.conf local.conf.delete-me ) - [ -e openslug/conf/site.conf ] || ( cd openslug/conf ; ln -s ../../common/conf/site.conf . ) - rm -rf openslug/tmp/cache - touch openslug/.configured - -.PHONY: setup-ucslugc -setup-ucslugc ucslugc/.configured: MT/.configured - [ -d ucslugc ] || ( mkdir -p ucslugc ) - [ -e downloads ] || ( mkdir -p downloads ) - [ -L ucslugc/Makefile -o ! -e ucslugc/Makefile ] || ( cd ucslugc ; mv Makefile Makefile.delete-me) - [ -e ucslugc/Makefile ] || ( cd ucslugc ; ln -s ../common/openembedded.mk Makefile ) - [ -L ucslugc/setup-env -o ! -e ucslugc/setup-env ] || ( cd ucslugc ; mv setup-env setup-env.delete-me ) - [ -e ucslugc/setup-env ] || ( cd ucslugc ; ln -s ../common/setup-env . ) - [ -e ucslugc/downloads ] || ( cd ucslugc ; ln -s ../downloads . ) - [ -e ucslugc/bitbake ] || ( cd ucslugc ; ln -s ../bitbake . ) - [ -e ucslugc/openembedded ] || ( cd ucslugc ; ln -s ../openembedded . ) - [ -d ucslugc/conf ] || ( mkdir -p ucslugc/conf ) - [ ! -f ucslugc/conf/local.conf ] || ( cd ucslugc/conf ; mv local.conf local.conf.delete-me ) - [ -e ucslugc/conf/site.conf ] || ( cd ucslugc/conf ; ln -s ../../common/conf/site.conf . ) - rm -rf ucslugc/tmp/cache - touch ucslugc/.configured +.PHONY: setup-unslung setup-openslug setup-ucslugc +setup-unslung setup-openslug setup-ucslugc: setup-%: MT/.configured + rm -rf $*/.configured + ${MAKE} $*/.configured + +%/.configured: MT/.configured + [ -d $* ] || ( mkdir -p $* ) + [ -e downloads ] || ( mkdir -p downloads ) + [ -L $*/Makefile -o ! -e $*/Makefile ] || ( cd $* ; mv Makefile Makefile.delete-me) + [ -e $*/Makefile ] || ( cd $* ; ln -s ../common/openembedded.mk Makefile ) + [ -L $*/setup-env -o ! -e $*/setup-env ] || ( cd $* ; mv setup-env setup-env.delete-me ) + [ -e $*/setup-env ] || ( cd $* ; ln -s ../common/setup-env . ) + [ -e $*/downloads ] || ( cd $* ; ln -s ../downloads . ) + [ -e $*/bitbake ] || ( cd $* ; ln -s ../bitbake . ) + [ -e $*/openembedded ] || ( cd $* ; ln -s ../openembedded . ) + [ -d $*/conf ] || ( mkdir -p $*/conf ) + [ ! -f $*/conf/local.conf ] || ( cd $*/conf ; mv local.conf local.conf.delete-me ) + [ -e $*/conf/local.conf.sample ] || ( cd $*/conf ; ln -s ../../common/conf/local.conf.sample . ) + [ -e $*/conf/site.conf ] || ( cd $*/conf ; ln -s ../../common/conf/site.conf . ) + [ ! -f $*/conf/auto.conf ] || ( cd $*/conf ; rm -f auto.conf ) + [ -e $*/conf/auto.conf ] || ( \ + echo "DISTRO=\"$*\"" > $*/conf/auto.conf ; \ + echo "MACHINE=\"nslu2\"" >> $*/conf/auto.conf \ + ) + rm -rf $*/tmp/cache + touch $*/.configured .PHONY: setup-optware -setup-optware optware/.configured: +setup-optware optware/.configured: MT/.configured [ -e downloads ] || ( mkdir -p downloads ) [ -e optware/Makefile ] || ( cvs -q -d :pserver:anonymous@cvs.sf.net:/cvsroot/nslu co -d optware unslung ) touch optware/.configured @@ -294,6 +271,18 @@ clobber-bitbake: clobber-openembedded: rm -rf openembedded +.PHONY: clobber-unslung +clobber-unslung: + rm -rf unslung + +.PHONY: clobber-openslug +clobber-openslug: + rm -rf openslug + +.PHONY: clobber-ucslugc +clobber-ucslugc: + rm -rf ucslugc + .PHONY: clobber-optware clobber-optware: rm -rf optware diff --git a/common/conf/local.conf.sample b/common/conf/local.conf.sample new file mode 100644 index 0000000000..c191c8ff63 --- /dev/null +++ b/common/conf/local.conf.sample @@ -0,0 +1,45 @@ +# Sample local configuration +# +# You do not need a 'local.conf' file, however you may use one to alter +# how the build proceeds and to specify bitbake options. +# +#---------------------------------------------------------------------------------- +# bitbake options +#---------------------------------------------------------------------------------- +# +#BBINCLUDELOGS = "yes" +# bitbake logs build progress to per-package log files. By default if an +# error occurs bitbake outputs the name of this file with an error message. +# If you set BBINCLUDELOGS to 'yes' then bitbake will also output the log +# file itself. +# +#BBMASK = "regular expression" +# bitbake examines all the .bb files listed in the BBFILES variable. BBMASK +# can be used to exclude some (or, indeed, all) of these files by matching +# against a regular expression. Typically you do not want to do this because +# bitbake freeze can be used to generate a minimal list for BBFILES. +# +#---------------------------------------------------------------------------------- +# OpenSlug (and derivatives) options +#---------------------------------------------------------------------------------- +#FEED_URIS = "##" +# Define local feeds - should be replaced by a name which identifies +# your local feed (not a generic name!) and should be the location of +# the Packages.gz file (and, therefore, all the ipks). This is not required; +# the feed defaults to the internet one. +# +#_EXTRA_DEPENDS = "packages to add to the build" +# Any packages in this list will be built as depenencies of the firmware +# image, but they will not be included in the image (see below). +# +#_EXTRA_RDEPENDS = "packages to add to the firmware image" +# Any packages in this list will be added to the firmware image. Please do +# not distribute such images - make a new DISTRO.conf file following the +# instructions in conf/distro/ucslugc.conf +# +#_EXTRA_BBFILES = "paths of extra .bb files" +# Files in this list will be parsed by bitbake to find packages in addition +# to the default list of bb files in conf/distro/-packages.conf. The +# setting of this variable is irrelevant after bb freeze has been built or if +# bb unfreeze is built (in the latter case bitbake will examine all of the +# openembedded packages). diff --git a/common/openembedded.mk b/common/openembedded.mk index c7eaa8e5fb..c23f206122 100644 --- a/common/openembedded.mk +++ b/common/openembedded.mk @@ -8,7 +8,6 @@ # # DISTRO - the OpenEmbedded 'distro' to build # MACHINE - the OpenEmbedded build target machine -# MAKE_TARGET - the target to pass to bitbake # # All of these values are (should be, must be) quoted in double quotes include conf/auto.conf @@ -19,7 +18,7 @@ FIRMWARE_DEPS = create-topdir $(BUILD_DIRS) $(REQUIRED_DIRS) # The default rule is to build the firmware in an unprotected environment. firmware: $(FIRMWARE_DEPS) - . ./setup-env; exec bitbake $(MAKE_TARGET) + . ./setup-env; exec bitbake $(DISTRO)-packages # This rule clobbers the environment (note that ccache uses '$HOME' by # default, so the cache will end up there). diff --git a/openslug/.mtn2git_empty b/openslug/.mtn2git_empty deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/openslug/conf/.mt-ignore b/openslug/conf/.mt-ignore deleted file mode 100644 index f21e1b217b..0000000000 --- a/openslug/conf/.mt-ignore +++ /dev/null @@ -1 +0,0 @@ -local.conf diff --git a/openslug/conf/.mtn2git_empty b/openslug/conf/.mtn2git_empty deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/openslug/conf/auto.conf b/openslug/conf/auto.conf deleted file mode 100644 index 7e2a406f79..0000000000 --- a/openslug/conf/auto.conf +++ /dev/null @@ -1,4 +0,0 @@ -# OpenSlug bitbake configuration -DISTRO="openslug" -MACHINE="nslu2" -MAKE_TARGET="openslug-packages" \ No newline at end of file diff --git a/openslug/conf/local.conf.template b/openslug/conf/local.conf.template deleted file mode 100644 index 45fae8f0d7..0000000000 --- a/openslug/conf/local.conf.template +++ /dev/null @@ -1,94 +0,0 @@ -OEROOT = "%%%OEROOT%%%" - -# Use this to specify where OE should place the downloaded sources into -DL_DIR = "${OEROOT}/downloads" - -# BBFILES defines the list of .bb files to consider when looking for a -# way to build a package. This gets overridden in the openslug and -# unslung .conf files. PKGDIR defines where to find the 'packages' -# directory containing the package sub-directories. -PKGDIR := "${OEROOT}/openembedded" -BBFILES := "${PKGDIR}/packages/*/*.bb" - -# Use the OEMASK below to instruct OE to _NOT_ consider some .oe files -# This is a regulary expression, so be sure to get your parenthesis balanced. -OEMASK = "" - -# Uncomment this if you want to use a prebuilt toolchain. You will need to -# provide packages for toolchain and additional libraries yourself. You also -# have to set PATH in your environment to make sure OE finds additional binaries. -# Note: You will definitely need to say: -# ASSUME_PROVIDED = "virtual/arm-linux-gcc-2.95" -# to build any of two Linux 2.4 Embedix kernels, -# i.e. openzaurus-sa-2.4.18 and openzaurus-pxa-2.4.18 - and don't forget -# to rename the binaries as instructed in the Wiki. -# ASSUME_PROVIDED = "virtual/${TARGET_PREFIX}gcc virtual/libc" - -# Select between multiple alternative providers, if more than one is eligible. -PREFERRED_PROVIDERS += " virtual/${TARGET_PREFIX}gcc-initial:gcc-cross-initial" -PREFERRED_PROVIDERS += " virtual/${TARGET_PREFIX}gcc:gcc-cross" -PREFERRED_PROVIDERS += " virtual/${TARGET_PREFIX}g++:gcc-cross" - -# Uncomment this to specify where OE should create its temporary files. -# Note that a full build of everything in OE will take GigaBytes of hard -# disk space, so make sure to free enough space. The default TMPDIR is -# /tmp -TMPDIR = ${OEROOT}/tmp - -# Uncomment this to specify a machine to build for. See the conf directory -# for machines currently known to OpenEmbedded. -MACHINE = "nslu2" - -# Uncomment this to select a distribution policy. See the conf directory -# for distributions currently known to OpenEmbedded. -DISTRO = "openslug" - -# Add to this any extra projects (packages) to be built with the image -# (look in openembedded/packages/openslug-packages.bb for a list of -# packages known to build with openslug.) -OPENSLUG_EXTRA_DEPENDS = "" - -# Add to this specific built .ipk package names to add to the image. -# These will be included in the root flash file system stored on the -# NSLU2. Be careful not to fill the file system, OpenSlug will not -# boot if the file system is close to full. -OPENSLUG_EXTRA_RDEPENDS = "" - -# Support for a variety of file systems is built in to the openslug -# image, programs to format disks with these file systems may be -# added or removed. By default ext2. ext3 and reiserfs supported -# is included by the following lines. -# -# These lines add support for formatting ext2 and ext3 file systems -# on a hard disk attached to the NSLU2. ext3 is the standard Linux -# file system. (OPENSLUG_EXT2_PROGS is defined in -# openembedded/conf/distro/openslug.conf) -OPENSLUG_EXTRA_DEPENDS += "e2fsprogs" -OPENSLUG_EXTRA_RDEPENDS += "${OPENSLUG_EXT2_PROGS}" - -# These lines add support for formatting reiserfs file systems on -# a hard disk. -OPENSLUG_EXTRA_DEPENDS += "reiserfsprogs" -OPENSLUG_EXTRA_RDEPENDS += "reiserfsprogs" - -# These lines add a build of the 'upslug' program which may be -# used to download the final image to an NSLU2. The program can -# be found within the tmp/work/upslug-native* directory. -OPENSLUG_EXTRA_DEPENDS += "upslug-native" - -# These lines add support for an X/Y/ZModem package called lrzsz -# (this is of use for people with modified NSLU2 hardware which -# supports a serial port.) -OPENSLUG_EXTRA_DEPENDS += "lrzsz" -OPENSLUG_EXTRA_RDEPENDS += "lrzsz" - - -# Uncomment this to disable the parse cache (not recommended). -CACHE = "${OEROOT}/tmp/cache" - -# Uncomment this if you want OE to emit the log if a build fails. -OEINCLUDELOGS = "yes" - -# INHERIT += "src_distribute_local pkg_distribute" - -# EDIT THIS FILE and then remove the line below before using! diff --git a/ucslugc/.mtn2git_empty b/ucslugc/.mtn2git_empty deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/ucslugc/conf/.mtn2git_empty b/ucslugc/conf/.mtn2git_empty deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/ucslugc/conf/auto.conf b/ucslugc/conf/auto.conf deleted file mode 100644 index a70e98fc7b..0000000000 --- a/ucslugc/conf/auto.conf +++ /dev/null @@ -1,4 +0,0 @@ -# UcSlugC bitbake configuration -DISTRO="ucslugc" -MACHINE="nslu2" -MAKE_TARGET="ucslugc-packages" diff --git a/ucslugc/conf/local.conf.sample b/ucslugc/conf/local.conf.sample deleted file mode 100644 index d94379f7ac..0000000000 --- a/ucslugc/conf/local.conf.sample +++ /dev/null @@ -1,49 +0,0 @@ -# Sample local configuration -# -# You do not need a 'local.conf' file, however you may use one to alter -# how the UcSlugC build proceeds and to specify bitbake options. -# -#---------------------------------------------------------------------------------- -# bitbake options -#---------------------------------------------------------------------------------- -# -#BBINCLUDELOGS = "yes" -# bitbake logs build progress to per-package log files. By default if an -# error occurs bitbake outputs the name of this file with an error message. -# If you set BBINCLUDELOGS to 'yes' then bitbake will also output the log -# file itself. -# -#BBMASK = "regular expression" -# bitbake examines all the .bb files listed in the BBFILES variable. BBMASK -# can be used to exclude some (or, indeed, all) of these files by matching -# against a regular expression. Typically you do not want to do this because -# bitbake freeze can be used to generate a minimal list for BBFILES. -# -#NOTE: you may prefer to make a global local.conf file in common/conf to specify -# these options, however if you do this it will be overridden (ignored) if you also -# specify a local.conf here. -# -#---------------------------------------------------------------------------------- -# UcSlugC options -#---------------------------------------------------------------------------------- -#FEED_URIS = "##" -# Define local feeds - should be replaced by a name which identifies -# your local feed (not a generic name!) and should be the location of -# the Packages.gz file (and, therefore, all the ipks). This is not required; -# the feed defaults to the internet one. -# -#UCLIBC_EXTRA_DEPENDS = "packages to add to the build" -# Any packages in this list will be built as depenencies of the firmware -# image, but they will not be included in the image (see below). -# -#UCLIBC_EXTRA_RDEPENDS = "packages to add to the firmware image" -# Any packages in this list will be added to the firmware image. Please do -# not distribute such images - make a new DISTRO.conf file following the -# instructions in conf/distro/ucslugc.conf -# -#UCLIBC_EXTRA_BBFILES = "paths of extra .bb files" -# Files in this list will be parsed by bitbake to find packages in addition -# to the default list of bb files in conf/distro/ucslugc-packages.conf. The -# setting of this variable is irrelevant after bb freeze has been built or if -# bb unfreeze is built (in the latter case bitbake will examine all of the -# openembedded packages). diff --git a/unslung/.mtn2git_empty b/unslung/.mtn2git_empty deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/unslung/conf/.mtn2git_empty b/unslung/conf/.mtn2git_empty deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/unslung/conf/auto.conf b/unslung/conf/auto.conf deleted file mode 100644 index 7ec443ca0b..0000000000 --- a/unslung/conf/auto.conf +++ /dev/null @@ -1,4 +0,0 @@ -# Unslung bitbake configuration -DISTRO="unslung" -MACHINE="nslu2" -MAKE_TARGET="unslung-packages" \ No newline at end of file diff --git a/unslung/conf/local.conf.template b/unslung/conf/local.conf.template deleted file mode 100644 index db24fdf849..0000000000 --- a/unslung/conf/local.conf.template +++ /dev/null @@ -1,57 +0,0 @@ -OEROOT = "%%%OEROOT%%%" - -# Use this to specify where OE should place the downloaded sources into -DL_DIR = "${OEROOT}/downloads" - -# BBFILES defines the list of .bb files to consider when looking for a -# way to build a package. This gets overridden in the openslug and -# unslung .conf files. PKGDIR defines where to find the 'packages' -# directory containing the package sub-directories. -PKGDIR := "${OEROOT}/openembedded" -BBFILES := "${PKGDIR}/packages/*/*.bb" - -# Use the OEMASK below to instruct OE to _NOT_ consider some .oe files -# This is a regulary expression, so be sure to get your parenthesis balanced. -OEMASK = "" - -# Uncomment this if you want to use a prebuilt toolchain. You will need to -# provide packages for toolchain and additional libraries yourself. You also -# have to set PATH in your environment to make sure OE finds additional binaries. -# Note: You will definitely need to say: -# ASSUME_PROVIDED = "virtual/arm-linux-gcc-2.95" -# to build any of two Linux 2.4 Embedix kernels, -# i.e. openzaurus-sa-2.4.18 and openzaurus-pxa-2.4.18 - and don't forget -# to rename the binaries as instructed in the Wiki. -# ASSUME_PROVIDED = "virtual/${TARGET_PREFIX}gcc virtual/libc" - -# Select between multiple alternative providers, if more than one is eligible. -PREFERRED_PROVIDERS += " virtual/${TARGET_PREFIX}gcc-initial:gcc-cross-initial" -PREFERRED_PROVIDERS += " virtual/${TARGET_PREFIX}gcc:gcc-cross" -PREFERRED_PROVIDERS += " virtual/${TARGET_PREFIX}g++:gcc-cross" - -# Uncomment this to specify where OE should create its temporary files. -# Note that a full build of everything in OE will take GigaBytes of hard -# disk space, so make sure to free enough space. The default TMPDIR is -# /tmp -TMPDIR = ${OEROOT}/tmp - -# Uncomment this to specify a machine to build for. See the conf directory -# for machines currently known to OpenEmbedded. -MACHINE = "nslu2" - -# Uncomment this to select a distribution policy. See the conf directory -# for distributions currently known to OpenEmbedded. -DISTRO = "unslung" - -OPENSLUG_EXTRA_DEPENDS = "" -OPENSLUG_EXTRA_RDEPENDS = "" - -# Uncomment this to disable the parse cache (not recommended). -CACHE = "${OEROOT}/tmp/cache" - -# Uncomment this if you want OE to emit the log if a build fails. -OEINCLUDELOGS = "yes" - -# INHERIT += "src_distribute_local pkg_distribute" - -# EDIT THIS FILE and then remove the line below before using! -- cgit v1.2.3 From c515e12bd98b5dd5868af100f917def8fbc2514b Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Mon, 1 Aug 2005 00:06:40 +0000 Subject: Added native compilation setup capability --- Makefile | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 9c50396e34..4f541e002b 100644 --- a/Makefile +++ b/Makefile @@ -6,6 +6,12 @@ SVN_USER ?= ${USER} CVS_USER ?= ${USER} SVN_SSH ?= "-l ${SVN_USER}" +HOST_MACHINE:=$(shell uname -m | sed \ + -e 's/i[3-9]86/i386/' \ + -e 's/armv5teb/armeb/' \ + -e 's/armv5b/armeb/' \ + ) + .PHONY: all all: update build @@ -97,7 +103,11 @@ setup-unslung setup-openslug setup-ucslugc: setup-%: MT/.configured [ -e $*/conf/site.conf ] || ( cd $*/conf ; ln -s ../../common/conf/site.conf . ) [ ! -f $*/conf/auto.conf ] || ( cd $*/conf ; rm -f auto.conf ) [ -e $*/conf/auto.conf ] || ( \ - echo "DISTRO=\"$*\"" > $*/conf/auto.conf ; \ + if [ "${HOST_MACHINE}" = "armeb" ] ; then \ + echo "DISTRO=\"$*-native\"" > $*/conf/auto.conf ; \ + else \ + echo "DISTRO=\"$*\"" > $*/conf/auto.conf ; \ + fi ; \ echo "MACHINE=\"nslu2\"" >> $*/conf/auto.conf \ ) rm -rf $*/tmp/cache -- cgit v1.2.3 From aeb8715da4be5c1d40f54be366316e66394f0692 Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Mon, 1 Aug 2005 09:09:34 +0000 Subject: Fixed autobuild target --- Makefile | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 4f541e002b..785a0acc26 100644 --- a/Makefile +++ b/Makefile @@ -324,13 +324,13 @@ push-openembedded: update-openembedded .PHONY: autobuild autobuild: ( set errors=0 ; \ - ${MAKE} update || errors++; \ - ${MAKE} build-openslug upload-openslug-cross || errors++ ; \ - ${MAKE} build-ucslugc upload-ucslugc-cross || errors++; \ - ${MAKE} build-unslung upload-unslung-modules || errors++ ; \ - ${MAKE} build-optware-nslu2 upload-optware-nslu2-cross || errors++; \ - ${MAKE} build-optware-wl500g upload-optware-wl500g-cross || errors++; \ - ${MAKE} upload-sources || errors++ ; \ + ${MAKE} update || $$errors++; \ + ${MAKE} build-openslug upload-openslug-cross || $$errors++ ; \ + ${MAKE} build-ucslugc upload-ucslugc-cross || $$errors++; \ + ${MAKE} build-unslung upload-unslung-modules || $$errors++ ; \ + ${MAKE} build-optware-nslu2 upload-optware-nslu2-cross || $$errors++; \ + ${MAKE} build-optware-wl500g upload-optware-wl500g-cross || $$errors++; \ + ${MAKE} upload-sources || $$errors++ ; \ if [ "$$errors" != "0" ] ; then \ echo "*** Errors during autobuild: $$errors ***" ; \ fi \ -- cgit v1.2.3 From 5a716813245202993b3567d052cd4e931704c1bb Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Thu, 4 Aug 2005 00:47:50 +0000 Subject: Stopped the setup target removing an existing intended local.conf --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 9c50396e34..9ea45aaf7c 100644 --- a/Makefile +++ b/Makefile @@ -92,7 +92,7 @@ setup-unslung setup-openslug setup-ucslugc: setup-%: MT/.configured [ -e $*/bitbake ] || ( cd $* ; ln -s ../bitbake . ) [ -e $*/openembedded ] || ( cd $* ; ln -s ../openembedded . ) [ -d $*/conf ] || ( mkdir -p $*/conf ) - [ ! -f $*/conf/local.conf ] || ( cd $*/conf ; mv local.conf local.conf.delete-me ) + [ ! -f $*/conf/local.conf -o -e $*/conf/auto.conf ] || ( cd $*/conf ; mv local.conf local.conf.delete-me ) [ -e $*/conf/local.conf.sample ] || ( cd $*/conf ; ln -s ../../common/conf/local.conf.sample . ) [ -e $*/conf/site.conf ] || ( cd $*/conf ; ln -s ../../common/conf/site.conf . ) [ ! -f $*/conf/auto.conf ] || ( cd $*/conf ; rm -f auto.conf ) -- cgit v1.2.3 From 991f815eae288dc7558e87e24e2b3f8491aac501 Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Mon, 1 Aug 2005 17:15:34 +0000 Subject: Fixed the error check in autobuid --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 23acb086ca..34fd9506d4 100644 --- a/Makefile +++ b/Makefile @@ -331,7 +331,7 @@ autobuild: ${MAKE} build-optware-nslu2 upload-optware-nslu2-cross || $$errors++; \ ${MAKE} build-optware-wl500g upload-optware-wl500g-cross || $$errors++; \ ${MAKE} upload-sources || $$errors++ ; \ - if [ "$$errors" != "0" ] ; then \ + if [ $$errors ne 0 ] ; then \ echo "*** Errors during autobuild: $$errors ***" ; \ fi \ ) -- cgit v1.2.3 From d338b271e719e5b790958761742a890183805980 Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Tue, 2 Aug 2005 06:47:53 +0000 Subject: Changed to new ipkg source location for uploads --- Makefile | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/Makefile b/Makefile index 34fd9506d4..c959bd1b61 100644 --- a/Makefile +++ b/Makefile @@ -342,28 +342,28 @@ upload: upload-openslug-cross upload-ucslugc-cross upload-unslung-modules upload .PHONY: upload-openslug-cross upload-openslug-cross: openslug/.configured rm -rf openslug/tmp/deploy/ipk/morgue - rsync -vlrt --exclude='Packages*' openslug/tmp/deploy/ipk/ unslung@ipkg.nslu2-linux.org:nslu/feeds/openslug/cross/unstable/ + rsync -vlrt --exclude='Packages*' openslug/tmp/deploy/ipk/ slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/openslug/cross/unstable/ ssh nslu2@sources.nslu2-linux.org mirror/sync-ipk openslug/cross/unstable - rsync -vl openslug/tmp/deploy/ipk/Packages* unslung@ipkg.nslu2-linux.org:nslu/feeds/openslug/cross/unstable/ - rsync -vlrt --delete openslug/tmp/deploy/ipk/ unslung@ipkg.nslu2-linux.org:nslu/feeds/openslug/cross/unstable/ + rsync -vl openslug/tmp/deploy/ipk/Packages* slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/openslug/cross/unstable/ + rsync -vlrt --delete openslug/tmp/deploy/ipk/ slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/openslug/cross/unstable/ ssh nslu2@sources.nslu2-linux.org mirror/sync-packages-clean openslug/cross/unstable .PHONY: upload-openslug-2.3-beta-cross upload-openslug-2.3-beta-cross: releases/OpenSlug-2.3-beta/.configured rm -rf releases/OpenSlug-2.3-beta/tmp/deploy/ipk/morgue - rsync -vlrt --exclude='Packages*' releases/OpenSlug-2.3-beta/tmp/deploy/ipk/ unslung@ipkg.nslu2-linux.org:nslu/feeds/openslug/cross/2.3-beta/ + rsync -vlrt --exclude='Packages*' releases/OpenSlug-2.3-beta/tmp/deploy/ipk/ slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/openslug/cross/2.3-beta/ ssh nslu2@sources.nslu2-linux.org mirror/sync-ipk openslug/cross/2.3-beta - rsync -vl releases/OpenSlug-2.3-beta/tmp/deploy/ipk/Packages* unslung@ipkg.nslu2-linux.org:nslu/feeds/openslug/cross/2.3-beta/ - rsync -vlrt --delete releases/OpenSlug-2.3-beta/tmp/deploy/ipk/ unslung@ipkg.nslu2-linux.org:nslu/feeds/openslug/cross/2.3-beta/ + rsync -vl releases/OpenSlug-2.3-beta/tmp/deploy/ipk/Packages* slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/openslug/cross/2.3-beta/ + rsync -vlrt --delete releases/OpenSlug-2.3-beta/tmp/deploy/ipk/ slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/openslug/cross/2.3-beta/ ssh nslu2@sources.nslu2-linux.org mirror/sync-packages-clean openslug/cross/2.3-beta .PHONY: upload-ucslugc-cross upload-ucslugc-cross: ucslugc/.configured rm -rf ucslugc/tmp/deploy/ipk/morgue - rsync -vlrt --exclude='Packages*' ucslugc/tmp/deploy/ipk/ unslung@ipkg.nslu2-linux.org:nslu/feeds/ucslugc/cross/unstable/ + rsync -vlrt --exclude='Packages*' ucslugc/tmp/deploy/ipk/ slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/ucslugc/cross/unstable/ ssh nslu2@sources.nslu2-linux.org mirror/sync-ipk ucslugc/cross/unstable - rsync -vl ucslugc/tmp/deploy/ipk/Packages* unslung@ipkg.nslu2-linux.org:nslu/feeds/ucslugc/cross/unstable/ - rsync -vlrt --delete ucslugc/tmp/deploy/ipk/ unslung@ipkg.nslu2-linux.org:nslu/feeds/ucslugc/cross/unstable/ + rsync -vl ucslugc/tmp/deploy/ipk/Packages* slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/ucslugc/cross/unstable/ + rsync -vlrt --delete ucslugc/tmp/deploy/ipk/ slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/ucslugc/cross/unstable/ ssh nslu2@sources.nslu2-linux.org mirror/sync-packages-clean ucslugc/cross/unstable .PHONY: upload-unslung-modules @@ -373,26 +373,26 @@ upload-unslung-modules: unslung/.configured mv unslung/tmp/deploy/ipk/Packages.new unslung/tmp/deploy/ipk/Packages rm -f unslung/tmp/deploy/ipk/Packages.gz gzip -c unslung/tmp/deploy/ipk/Packages > unslung/tmp/deploy/ipk/Packages.gz - rsync -vlt unslung/tmp/deploy/ipk/kernel-module-* unslung@ipkg.nslu2-linux.org:nslu/feeds/unslung/oe/ + rsync -vlt unslung/tmp/deploy/ipk/kernel-module-* slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/unslung/oe/ ssh nslu2@sources.nslu2-linux.org mirror/sync-ipk unslung/oe - rsync -vl unslung/tmp/deploy/ipk/Packages* unslung@ipkg.nslu2-linux.org:nslu/feeds/unslung/oe/ + rsync -vl unslung/tmp/deploy/ipk/Packages* slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/unslung/oe/ ssh nslu2@sources.nslu2-linux.org mirror/sync-packages-clean unslung/oe -# rsync -vlt --delete unslung/tmp/deploy/ipk/kernel-module-* unslung@ipkg.nslu2-linux.org:nslu/feeds/unslung/oe/ +# rsync -vlt --delete unslung/tmp/deploy/ipk/kernel-module-* slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/unslung/oe/ .PHONY: upload-optware-nslu2-cross upload-optware-nslu2-cross: optware/nslu2/.configured - rsync -vlrt --exclude='Packages*' optware/nslu2/packages/ unslung@ipkg.nslu2-linux.org:nslu/feeds/unslung/cross/ + rsync -vlrt --exclude='Packages*' optware/nslu2/packages/ slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/unslung/cross/ ssh nslu2@sources.nslu2-linux.org mirror/sync-ipk unslung/cross - rsync -vl optware/nslu2/packages/Packages* unslung@ipkg.nslu2-linux.org:nslu/feeds/unslung/cross/ - rsync -vlrt --delete optware/nslu2/packages/ unslung@ipkg.nslu2-linux.org:nslu/feeds/unslung/cross/ + rsync -vl optware/nslu2/packages/Packages* slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/unslung/cross/ + rsync -vlrt --delete optware/nslu2/packages/ slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/unslung/cross/ ssh nslu2@sources.nslu2-linux.org mirror/sync-packages-clean unslung/cross .PHONY: upload-optware-wl500g-cross upload-optware-wl500g-cross: optware/wl500g/.configured - rsync -vlrt --exclude='Packages*' optware/wl500g/packages/ unslung@ipkg.nslu2-linux.org:nslu/feeds/unslung/wl500g/ + rsync -vlrt --exclude='Packages*' optware/wl500g/packages/ slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/unslung/wl500g/ ssh nslu2@sources.nslu2-linux.org mirror/sync-ipk unslung/wl500g - rsync -vl optware/wl500g/packages/Packages* unslung@ipkg.nslu2-linux.org:nslu/feeds/unslung/wl500g/ - rsync -vlrt --delete optware/wl500g/packages/ unslung@ipkg.nslu2-linux.org:nslu/feeds/unslung/wl500g/ + rsync -vl optware/wl500g/packages/Packages* slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/unslung/wl500g/ + rsync -vlrt --delete optware/wl500g/packages/ slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/unslung/wl500g/ ssh nslu2@sources.nslu2-linux.org mirror/sync-packages-clean unslung/wl500g .PHONY: upload-sources -- cgit v1.2.3 From d9615965b21c283888f107603e85762eba2f13c6 Mon Sep 17 00:00:00 2001 From: Oyvind Repvik Date: Fri, 5 Aug 2005 09:07:01 +0000 Subject: Add setup-host-gentoo target --- Makefile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/Makefile b/Makefile index c959bd1b61..6be9152e18 100644 --- a/Makefile +++ b/Makefile @@ -208,6 +208,27 @@ setup-host-debian: texinfo \ unzip +.PHONY: setup-host-gentoo +setup-host-gentoo: + sudo emerge \ + autoconf automake \ + bison \ + ccache \ + cvs \ + flex \ + gawk gettext \ + glib \ + libtool \ + m4 \ + make \ + patch \ + pkgconfig \ + sed \ + sys-apps/texinfo \ + unzip \ + psyco \ + svn + .PHONY: update-master update-master: MT/.configured monotone pull -- cgit v1.2.3 From 3342ab0abfe5bf660b342b82b24f6f627f04ecf1 Mon Sep 17 00:00:00 2001 From: Oyvind Repvik Date: Fri, 5 Aug 2005 09:18:56 +0000 Subject: Switch to su instead of sudo on Gentoo, correct svn -> subversion --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 6be9152e18..a53bd3c540 100644 --- a/Makefile +++ b/Makefile @@ -210,7 +210,7 @@ setup-host-debian: .PHONY: setup-host-gentoo setup-host-gentoo: - sudo emerge \ + su - -c "emerge \ autoconf automake \ bison \ ccache \ @@ -227,7 +227,7 @@ setup-host-gentoo: sys-apps/texinfo \ unzip \ psyco \ - svn + subversion" .PHONY: update-master update-master: MT/.configured -- cgit v1.2.3 From 7abc501c97d3e3d855510e7804d3e11563d1dbb8 Mon Sep 17 00:00:00 2001 From: Oyvind Repvik Date: Fri, 5 Aug 2005 09:22:20 +0000 Subject: Make setup-host-gentoo skip already installed packages. emerge is slow enough already ;-) --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a53bd3c540..6b7b586bb3 100644 --- a/Makefile +++ b/Makefile @@ -210,7 +210,7 @@ setup-host-debian: .PHONY: setup-host-gentoo setup-host-gentoo: - su - -c "emerge \ + su - -c "emerge -n \ autoconf automake \ bison \ ccache \ -- cgit v1.2.3 From 3a2f5494a6dbef3b4938a0320c22baa4c23f80f1 Mon Sep 17 00:00:00 2001 From: Oyvind Repvik Date: Fri, 5 Aug 2005 09:50:31 +0000 Subject: Add monotone and boost in package.keywords if they're not there already --- Makefile | 41 +++++++++++++++++++++++------------------ 1 file changed, 23 insertions(+), 18 deletions(-) diff --git a/Makefile b/Makefile index 6b7b586bb3..4a86847119 100644 --- a/Makefile +++ b/Makefile @@ -210,24 +210,29 @@ setup-host-debian: .PHONY: setup-host-gentoo setup-host-gentoo: - su - -c "emerge -n \ - autoconf automake \ - bison \ - ccache \ - cvs \ - flex \ - gawk gettext \ - glib \ - libtool \ - m4 \ - make \ - patch \ - pkgconfig \ - sed \ - sys-apps/texinfo \ - unzip \ - psyco \ - subversion" + su - -c "mkdir -p /etc/portage ; echo >> /etc/portage/package.keywords \ + ; grep monotone /etc/portage/package.keywords || \ + echo =dev-util/monotone-0.21 ~x86 >> /etc/portage/package.keywords ; \ + grep dev-libs/boost /etc/portage/package.keywords || \ + echo \>=dev-libs/boost-1.32 ~x86 >> /etc/portage/package.keywords ; \ + emerge -n \ + autoconf automake \ + bison \ + ccache \ + cvs \ + flex \ + glib \ + libtool \ + m4 \ + make \ + monotone \ + patch \ + pkgconfig \ + sed \ + sys-apps/texinfo \ + unzip \ + psyco \ + subversion" .PHONY: update-master update-master: MT/.configured -- cgit v1.2.3 From e3ab2222076c181d063fcbe9d33becddaabea21e Mon Sep 17 00:00:00 2001 From: Oyvind Repvik Date: Fri, 5 Aug 2005 09:55:53 +0000 Subject: Change ~x86 to ~*, so that it'll work on other ARCHs --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 4a86847119..7f64261bec 100644 --- a/Makefile +++ b/Makefile @@ -212,9 +212,9 @@ setup-host-debian: setup-host-gentoo: su - -c "mkdir -p /etc/portage ; echo >> /etc/portage/package.keywords \ ; grep monotone /etc/portage/package.keywords || \ - echo =dev-util/monotone-0.21 ~x86 >> /etc/portage/package.keywords ; \ + echo =dev-util/monotone-0.21 ~* >> /etc/portage/package.keywords ; \ grep dev-libs/boost /etc/portage/package.keywords || \ - echo \>=dev-libs/boost-1.32 ~x86 >> /etc/portage/package.keywords ; \ + echo \>=dev-libs/boost-1.32 ~* >> /etc/portage/package.keywords ; \ emerge -n \ autoconf automake \ bison \ -- cgit v1.2.3 From 41f52b2c060409081a04cdcce5f49fb2ec7a5f02 Mon Sep 17 00:00:00 2001 From: Oyvind Repvik Date: Fri, 5 Aug 2005 10:51:47 +0000 Subject: Remove erroneous whitespace --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 7f64261bec..a9769ad3bd 100644 --- a/Makefile +++ b/Makefile @@ -220,7 +220,7 @@ setup-host-gentoo: bison \ ccache \ cvs \ - flex \ + flex \ glib \ libtool \ m4 \ -- cgit v1.2.3 From 7b60a8b7d3b6cd2146d03aa6a451f87aca17948e Mon Sep 17 00:00:00 2001 From: Oyvind Repvik Date: Fri, 5 Aug 2005 11:55:24 +0000 Subject: Added SSH_KEY variable, fixed gentoo package masking --- Makefile | 33 +++++++++++++++++---------------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/Makefile b/Makefile index a9769ad3bd..81a4b91c39 100644 --- a/Makefile +++ b/Makefile @@ -5,6 +5,7 @@ SVN_USER ?= ${USER} CVS_USER ?= ${USER} SVN_SSH ?= "-l ${SVN_USER}" +SSH_KEY ?= "~/.ssh/id_dsa" # Default. Change if you have several keys you use on a regular basis HOST_MACHINE:=$(shell uname -m | sed \ -e 's/i[3-9]86/i386/' \ @@ -210,11 +211,11 @@ setup-host-debian: .PHONY: setup-host-gentoo setup-host-gentoo: - su - -c "mkdir -p /etc/portage ; echo >> /etc/portage/package.keywords \ + su - -c "mkdir -p /etc/portage ; echo >> /etc/portage/package.keywords \ ; grep monotone /etc/portage/package.keywords || \ - echo =dev-util/monotone-0.21 ~* >> /etc/portage/package.keywords ; \ + echo ~dev-util/monotone-0.21 ~* >> /etc/portage/package.keywords ; \ grep dev-libs/boost /etc/portage/package.keywords || \ - echo \>=dev-libs/boost-1.32 ~* >> /etc/portage/package.keywords ; \ + echo ~dev-libs/boost-1.32 ~* >> /etc/portage/package.keywords ; \ emerge -n \ autoconf automake \ bison \ @@ -335,7 +336,7 @@ push: push-master push-bitbake push-openembedded .PHONY: push-master push-master: update-master monotone push - scp Makefile slug@nugabe.nslu2-linux.org:htdocs/www/Makefile + scp -i $SSH_KEY Makefile slug@nugabe.nslu2-linux.org:htdocs/www/Makefile .PHONY: push-bitbake push-bitbake: update-bitbake @@ -369,28 +370,28 @@ upload: upload-openslug-cross upload-ucslugc-cross upload-unslung-modules upload upload-openslug-cross: openslug/.configured rm -rf openslug/tmp/deploy/ipk/morgue rsync -vlrt --exclude='Packages*' openslug/tmp/deploy/ipk/ slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/openslug/cross/unstable/ - ssh nslu2@sources.nslu2-linux.org mirror/sync-ipk openslug/cross/unstable + ssh -i $SSH_KEY nslu2@sources.nslu2-linux.org mirror/sync-ipk openslug/cross/unstable rsync -vl openslug/tmp/deploy/ipk/Packages* slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/openslug/cross/unstable/ rsync -vlrt --delete openslug/tmp/deploy/ipk/ slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/openslug/cross/unstable/ - ssh nslu2@sources.nslu2-linux.org mirror/sync-packages-clean openslug/cross/unstable + ssh -i $SSH_KEY nslu2@sources.nslu2-linux.org mirror/sync-packages-clean openslug/cross/unstable .PHONY: upload-openslug-2.3-beta-cross upload-openslug-2.3-beta-cross: releases/OpenSlug-2.3-beta/.configured rm -rf releases/OpenSlug-2.3-beta/tmp/deploy/ipk/morgue rsync -vlrt --exclude='Packages*' releases/OpenSlug-2.3-beta/tmp/deploy/ipk/ slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/openslug/cross/2.3-beta/ - ssh nslu2@sources.nslu2-linux.org mirror/sync-ipk openslug/cross/2.3-beta + ssh -i $SSH_KEY nslu2@sources.nslu2-linux.org mirror/sync-ipk openslug/cross/2.3-beta rsync -vl releases/OpenSlug-2.3-beta/tmp/deploy/ipk/Packages* slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/openslug/cross/2.3-beta/ rsync -vlrt --delete releases/OpenSlug-2.3-beta/tmp/deploy/ipk/ slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/openslug/cross/2.3-beta/ - ssh nslu2@sources.nslu2-linux.org mirror/sync-packages-clean openslug/cross/2.3-beta + ssh -i $SSH_KEY nslu2@sources.nslu2-linux.org mirror/sync-packages-clean openslug/cross/2.3-beta .PHONY: upload-ucslugc-cross upload-ucslugc-cross: ucslugc/.configured rm -rf ucslugc/tmp/deploy/ipk/morgue rsync -vlrt --exclude='Packages*' ucslugc/tmp/deploy/ipk/ slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/ucslugc/cross/unstable/ - ssh nslu2@sources.nslu2-linux.org mirror/sync-ipk ucslugc/cross/unstable + ssh -i $SSH_KEY nslu2@sources.nslu2-linux.org mirror/sync-ipk ucslugc/cross/unstable rsync -vl ucslugc/tmp/deploy/ipk/Packages* slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/ucslugc/cross/unstable/ rsync -vlrt --delete ucslugc/tmp/deploy/ipk/ slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/ucslugc/cross/unstable/ - ssh nslu2@sources.nslu2-linux.org mirror/sync-packages-clean ucslugc/cross/unstable + ssh -i $SSH_KEY nslu2@sources.nslu2-linux.org mirror/sync-packages-clean ucslugc/cross/unstable .PHONY: upload-unslung-modules upload-unslung-modules: unslung/.configured @@ -400,26 +401,26 @@ upload-unslung-modules: unslung/.configured rm -f unslung/tmp/deploy/ipk/Packages.gz gzip -c unslung/tmp/deploy/ipk/Packages > unslung/tmp/deploy/ipk/Packages.gz rsync -vlt unslung/tmp/deploy/ipk/kernel-module-* slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/unslung/oe/ - ssh nslu2@sources.nslu2-linux.org mirror/sync-ipk unslung/oe + ssh -i $SSH_KEY nslu2@sources.nslu2-linux.org mirror/sync-ipk unslung/oe rsync -vl unslung/tmp/deploy/ipk/Packages* slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/unslung/oe/ - ssh nslu2@sources.nslu2-linux.org mirror/sync-packages-clean unslung/oe + ssh -i $SSH_KEY nslu2@sources.nslu2-linux.org mirror/sync-packages-clean unslung/oe # rsync -vlt --delete unslung/tmp/deploy/ipk/kernel-module-* slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/unslung/oe/ .PHONY: upload-optware-nslu2-cross upload-optware-nslu2-cross: optware/nslu2/.configured rsync -vlrt --exclude='Packages*' optware/nslu2/packages/ slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/unslung/cross/ - ssh nslu2@sources.nslu2-linux.org mirror/sync-ipk unslung/cross + ssh -i $SSH_KEY nslu2@sources.nslu2-linux.org mirror/sync-ipk unslung/cross rsync -vl optware/nslu2/packages/Packages* slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/unslung/cross/ rsync -vlrt --delete optware/nslu2/packages/ slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/unslung/cross/ - ssh nslu2@sources.nslu2-linux.org mirror/sync-packages-clean unslung/cross + ssh -i $SSH_KEY nslu2@sources.nslu2-linux.org mirror/sync-packages-clean unslung/cross .PHONY: upload-optware-wl500g-cross upload-optware-wl500g-cross: optware/wl500g/.configured rsync -vlrt --exclude='Packages*' optware/wl500g/packages/ slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/unslung/wl500g/ - ssh nslu2@sources.nslu2-linux.org mirror/sync-ipk unslung/wl500g + ssh -i $SSH_KEY nslu2@sources.nslu2-linux.org mirror/sync-ipk unslung/wl500g rsync -vl optware/wl500g/packages/Packages* slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/unslung/wl500g/ rsync -vlrt --delete optware/wl500g/packages/ slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/unslung/wl500g/ - ssh nslu2@sources.nslu2-linux.org mirror/sync-packages-clean unslung/wl500g + ssh -i $SSH_KEY nslu2@sources.nslu2-linux.org mirror/sync-packages-clean unslung/wl500g .PHONY: upload-sources upload-sources: -- cgit v1.2.3 From c531cf53bf1b81581e035b3f84583210b63b50d4 Mon Sep 17 00:00:00 2001 From: Oyvind Repvik Date: Fri, 5 Aug 2005 12:04:33 +0000 Subject: Add nice curlybrackets around those SSH_KEY variables of mine --- Makefile | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/Makefile b/Makefile index 81a4b91c39..5d2551391f 100644 --- a/Makefile +++ b/Makefile @@ -336,7 +336,7 @@ push: push-master push-bitbake push-openembedded .PHONY: push-master push-master: update-master monotone push - scp -i $SSH_KEY Makefile slug@nugabe.nslu2-linux.org:htdocs/www/Makefile + scp -i ${SSH_KEY} Makefile slug@nugabe.nslu2-linux.org:htdocs/www/Makefile .PHONY: push-bitbake push-bitbake: update-bitbake @@ -370,28 +370,28 @@ upload: upload-openslug-cross upload-ucslugc-cross upload-unslung-modules upload upload-openslug-cross: openslug/.configured rm -rf openslug/tmp/deploy/ipk/morgue rsync -vlrt --exclude='Packages*' openslug/tmp/deploy/ipk/ slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/openslug/cross/unstable/ - ssh -i $SSH_KEY nslu2@sources.nslu2-linux.org mirror/sync-ipk openslug/cross/unstable + ssh -i ${SSH_KEY} nslu2@sources.nslu2-linux.org mirror/sync-ipk openslug/cross/unstable rsync -vl openslug/tmp/deploy/ipk/Packages* slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/openslug/cross/unstable/ rsync -vlrt --delete openslug/tmp/deploy/ipk/ slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/openslug/cross/unstable/ - ssh -i $SSH_KEY nslu2@sources.nslu2-linux.org mirror/sync-packages-clean openslug/cross/unstable + ssh -i ${SSH_KEY} nslu2@sources.nslu2-linux.org mirror/sync-packages-clean openslug/cross/unstable .PHONY: upload-openslug-2.3-beta-cross upload-openslug-2.3-beta-cross: releases/OpenSlug-2.3-beta/.configured rm -rf releases/OpenSlug-2.3-beta/tmp/deploy/ipk/morgue rsync -vlrt --exclude='Packages*' releases/OpenSlug-2.3-beta/tmp/deploy/ipk/ slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/openslug/cross/2.3-beta/ - ssh -i $SSH_KEY nslu2@sources.nslu2-linux.org mirror/sync-ipk openslug/cross/2.3-beta + ssh -i ${SSH_KEY} nslu2@sources.nslu2-linux.org mirror/sync-ipk openslug/cross/2.3-beta rsync -vl releases/OpenSlug-2.3-beta/tmp/deploy/ipk/Packages* slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/openslug/cross/2.3-beta/ rsync -vlrt --delete releases/OpenSlug-2.3-beta/tmp/deploy/ipk/ slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/openslug/cross/2.3-beta/ - ssh -i $SSH_KEY nslu2@sources.nslu2-linux.org mirror/sync-packages-clean openslug/cross/2.3-beta + ssh -i ${SSH_KEY} nslu2@sources.nslu2-linux.org mirror/sync-packages-clean openslug/cross/2.3-beta .PHONY: upload-ucslugc-cross upload-ucslugc-cross: ucslugc/.configured rm -rf ucslugc/tmp/deploy/ipk/morgue rsync -vlrt --exclude='Packages*' ucslugc/tmp/deploy/ipk/ slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/ucslugc/cross/unstable/ - ssh -i $SSH_KEY nslu2@sources.nslu2-linux.org mirror/sync-ipk ucslugc/cross/unstable + ssh -i ${SSH_KEY} nslu2@sources.nslu2-linux.org mirror/sync-ipk ucslugc/cross/unstable rsync -vl ucslugc/tmp/deploy/ipk/Packages* slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/ucslugc/cross/unstable/ rsync -vlrt --delete ucslugc/tmp/deploy/ipk/ slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/ucslugc/cross/unstable/ - ssh -i $SSH_KEY nslu2@sources.nslu2-linux.org mirror/sync-packages-clean ucslugc/cross/unstable + ssh -i ${SSH_KEY} nslu2@sources.nslu2-linux.org mirror/sync-packages-clean ucslugc/cross/unstable .PHONY: upload-unslung-modules upload-unslung-modules: unslung/.configured @@ -401,26 +401,26 @@ upload-unslung-modules: unslung/.configured rm -f unslung/tmp/deploy/ipk/Packages.gz gzip -c unslung/tmp/deploy/ipk/Packages > unslung/tmp/deploy/ipk/Packages.gz rsync -vlt unslung/tmp/deploy/ipk/kernel-module-* slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/unslung/oe/ - ssh -i $SSH_KEY nslu2@sources.nslu2-linux.org mirror/sync-ipk unslung/oe + ssh -i ${SSH_KEY} nslu2@sources.nslu2-linux.org mirror/sync-ipk unslung/oe rsync -vl unslung/tmp/deploy/ipk/Packages* slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/unslung/oe/ - ssh -i $SSH_KEY nslu2@sources.nslu2-linux.org mirror/sync-packages-clean unslung/oe + ssh -i ${SSH_KEY} nslu2@sources.nslu2-linux.org mirror/sync-packages-clean unslung/oe # rsync -vlt --delete unslung/tmp/deploy/ipk/kernel-module-* slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/unslung/oe/ .PHONY: upload-optware-nslu2-cross upload-optware-nslu2-cross: optware/nslu2/.configured rsync -vlrt --exclude='Packages*' optware/nslu2/packages/ slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/unslung/cross/ - ssh -i $SSH_KEY nslu2@sources.nslu2-linux.org mirror/sync-ipk unslung/cross + ssh -i ${SSH_KEY} nslu2@sources.nslu2-linux.org mirror/sync-ipk unslung/cross rsync -vl optware/nslu2/packages/Packages* slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/unslung/cross/ rsync -vlrt --delete optware/nslu2/packages/ slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/unslung/cross/ - ssh -i $SSH_KEY nslu2@sources.nslu2-linux.org mirror/sync-packages-clean unslung/cross + ssh -i ${SSH_KEY} nslu2@sources.nslu2-linux.org mirror/sync-packages-clean unslung/cross .PHONY: upload-optware-wl500g-cross upload-optware-wl500g-cross: optware/wl500g/.configured rsync -vlrt --exclude='Packages*' optware/wl500g/packages/ slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/unslung/wl500g/ - ssh -i $SSH_KEY nslu2@sources.nslu2-linux.org mirror/sync-ipk unslung/wl500g + ssh -i ${SSH_KEY} nslu2@sources.nslu2-linux.org mirror/sync-ipk unslung/wl500g rsync -vl optware/wl500g/packages/Packages* slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/unslung/wl500g/ rsync -vlrt --delete optware/wl500g/packages/ slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/unslung/wl500g/ - ssh -i $SSH_KEY nslu2@sources.nslu2-linux.org mirror/sync-packages-clean unslung/wl500g + ssh -i ${SSH_KEY} nslu2@sources.nslu2-linux.org mirror/sync-packages-clean unslung/wl500g .PHONY: upload-sources upload-sources: -- cgit v1.2.3 From edaff2fb8298285c54837b508708beb3e8e632de Mon Sep 17 00:00:00 2001 From: Oyvind Repvik Date: Fri, 5 Aug 2005 12:07:07 +0000 Subject: Ugh, unquote the contents of SSH_KEY variable so it's not looking for ~/.ssh/id_dsa in the current dir --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 5d2551391f..e51509494e 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,7 @@ SVN_USER ?= ${USER} CVS_USER ?= ${USER} SVN_SSH ?= "-l ${SVN_USER}" -SSH_KEY ?= "~/.ssh/id_dsa" # Default. Change if you have several keys you use on a regular basis +SSH_KEY ?= ~/.ssh/id_dsa # Default. Change if you have several keys you use on a regular basis HOST_MACHINE:=$(shell uname -m | sed \ -e 's/i[3-9]86/i386/' \ -- cgit v1.2.3 From 04c29c8112a8bf7049c3347c54a9d1a20bb80636 Mon Sep 17 00:00:00 2001 From: Oyvind Repvik Date: Fri, 5 Aug 2005 12:17:42 +0000 Subject: Create a separate openslug-2.3-beta convenience target that does all my work --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index e51509494e..9e023faa11 100644 --- a/Makefile +++ b/Makefile @@ -58,8 +58,11 @@ optware-nslu2 build-optware-nslu2: optware/nslu2/.configured optware-wl500g build-optware-wl500g: optware/wl500g/.configured ( cd optware/wl500g ; ${MAKE} autoclean ; ${MAKE} ) -.PHONY: openslug-2.3-beta build-openslug-2.3-beta -openslug-2.3-beta build-openslug-2.3-beta: releases/OpenSlug-2.3-beta/.configured +.PHONY: openslug-2.3-beta +openslug-2.3-beta: update-openslug-2.3-beta build-openslug-2.3-beta upload-openslug-2.3-beta + +.PHONY: build-openslug-2.3-beta +build-openslug-2.3-beta: releases/OpenSlug-2.3-beta/.configured ( cd releases/OpenSlug-2.3-beta ; ${MAKE} openslug-firmware ) .PHONY: setup-master -- cgit v1.2.3 From d541d60e7b546efdd553bf52fbcb262bd69e75b3 Mon Sep 17 00:00:00 2001 From: Oyvind Repvik Date: Fri, 5 Aug 2005 12:40:49 +0000 Subject: Move a ; from the beginning of a line --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 9e023faa11..0241ee4ab5 100644 --- a/Makefile +++ b/Makefile @@ -214,8 +214,8 @@ setup-host-debian: .PHONY: setup-host-gentoo setup-host-gentoo: - su - -c "mkdir -p /etc/portage ; echo >> /etc/portage/package.keywords \ - ; grep monotone /etc/portage/package.keywords || \ + su - -c "mkdir -p /etc/portage ; echo >> /etc/portage/package.keywords ; \ + grep monotone /etc/portage/package.keywords || \ echo ~dev-util/monotone-0.21 ~* >> /etc/portage/package.keywords ; \ grep dev-libs/boost /etc/portage/package.keywords || \ echo ~dev-libs/boost-1.32 ~* >> /etc/portage/package.keywords ; \ -- cgit v1.2.3 From 39cc910f7ee0afb6339484b266fea62d91d6f9e9 Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Wed, 3 Aug 2005 09:35:18 +0000 Subject: Removed the SSH_USER stuff --- Makefile | 51 ++++++++++++++++++++++++++------------------------- 1 file changed, 26 insertions(+), 25 deletions(-) diff --git a/Makefile b/Makefile index 0241ee4ab5..e5b62511ff 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,6 @@ SVN_USER ?= ${USER} CVS_USER ?= ${USER} SVN_SSH ?= "-l ${SVN_USER}" -SSH_KEY ?= ~/.ssh/id_dsa # Default. Change if you have several keys you use on a regular basis HOST_MACHINE:=$(shell uname -m | sed \ -e 's/i[3-9]86/i386/' \ @@ -229,7 +228,7 @@ setup-host-gentoo: libtool \ m4 \ make \ - monotone \ + monotone \ patch \ pkgconfig \ sed \ @@ -339,7 +338,7 @@ push: push-master push-bitbake push-openembedded .PHONY: push-master push-master: update-master monotone push - scp -i ${SSH_KEY} Makefile slug@nugabe.nslu2-linux.org:htdocs/www/Makefile + scp Makefile slug@nugabe.nslu2-linux.org:htdocs/www/Makefile .PHONY: push-bitbake push-bitbake: update-bitbake @@ -353,16 +352,18 @@ push-openembedded: update-openembedded .PHONY: autobuild autobuild: - ( set errors=0 ; \ - ${MAKE} update || $$errors++; \ - ${MAKE} build-openslug upload-openslug-cross || $$errors++ ; \ - ${MAKE} build-ucslugc upload-ucslugc-cross || $$errors++; \ - ${MAKE} build-unslung upload-unslung-modules || $$errors++ ; \ - ${MAKE} build-optware-nslu2 upload-optware-nslu2-cross || $$errors++; \ - ${MAKE} build-optware-wl500g upload-optware-wl500g-cross || $$errors++; \ - ${MAKE} upload-sources || $$errors++ ; \ - if [ $$errors ne 0 ] ; then \ - echo "*** Errors during autobuild: $$errors ***" ; \ + ( rm -rf builderrors.log ; \ + ${MAKE} update || echo -n " update" >> builderrors.log ; \ + ${MAKE} build-openslug upload-openslug-cross || echo -n " openslug" >> builderrors.log ; \ + ${MAKE} build-ucslugc upload-ucslugc-cross || echo -n " ucslugc" >> builderrors.log ; \ + ${MAKE} build-unslung upload-unslung-modules || echo -n " unslung" >> builderrors.log ; \ + ${MAKE} build-optware-nslu2 upload-optware-nslu2-cross || echo -n " optware/nslu2" >> builderrors.log ; \ + ${MAKE} build-optware-wl500g upload-optware-wl500g-cross || echo -n " optware/wl500g" >> builderrors.log ; \ + ${MAKE} upload-sources || echo -n " upload-sources" >> builderrors.log ; \ + if [ -e builderrors.log ] ; then \ + echo -n "*** Errors during autobuild:" ; \ + cat builderrors.log ; \ + echo " ***" ; \ fi \ ) @@ -373,28 +374,28 @@ upload: upload-openslug-cross upload-ucslugc-cross upload-unslung-modules upload upload-openslug-cross: openslug/.configured rm -rf openslug/tmp/deploy/ipk/morgue rsync -vlrt --exclude='Packages*' openslug/tmp/deploy/ipk/ slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/openslug/cross/unstable/ - ssh -i ${SSH_KEY} nslu2@sources.nslu2-linux.org mirror/sync-ipk openslug/cross/unstable + ssh nslu2@sources.nslu2-linux.org mirror/sync-ipk openslug/cross/unstable rsync -vl openslug/tmp/deploy/ipk/Packages* slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/openslug/cross/unstable/ rsync -vlrt --delete openslug/tmp/deploy/ipk/ slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/openslug/cross/unstable/ - ssh -i ${SSH_KEY} nslu2@sources.nslu2-linux.org mirror/sync-packages-clean openslug/cross/unstable + ssh nslu2@sources.nslu2-linux.org mirror/sync-packages-clean openslug/cross/unstable .PHONY: upload-openslug-2.3-beta-cross upload-openslug-2.3-beta-cross: releases/OpenSlug-2.3-beta/.configured rm -rf releases/OpenSlug-2.3-beta/tmp/deploy/ipk/morgue rsync -vlrt --exclude='Packages*' releases/OpenSlug-2.3-beta/tmp/deploy/ipk/ slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/openslug/cross/2.3-beta/ - ssh -i ${SSH_KEY} nslu2@sources.nslu2-linux.org mirror/sync-ipk openslug/cross/2.3-beta + ssh nslu2@sources.nslu2-linux.org mirror/sync-ipk openslug/cross/2.3-beta rsync -vl releases/OpenSlug-2.3-beta/tmp/deploy/ipk/Packages* slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/openslug/cross/2.3-beta/ rsync -vlrt --delete releases/OpenSlug-2.3-beta/tmp/deploy/ipk/ slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/openslug/cross/2.3-beta/ - ssh -i ${SSH_KEY} nslu2@sources.nslu2-linux.org mirror/sync-packages-clean openslug/cross/2.3-beta + ssh nslu2@sources.nslu2-linux.org mirror/sync-packages-clean openslug/cross/2.3-beta .PHONY: upload-ucslugc-cross upload-ucslugc-cross: ucslugc/.configured rm -rf ucslugc/tmp/deploy/ipk/morgue rsync -vlrt --exclude='Packages*' ucslugc/tmp/deploy/ipk/ slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/ucslugc/cross/unstable/ - ssh -i ${SSH_KEY} nslu2@sources.nslu2-linux.org mirror/sync-ipk ucslugc/cross/unstable + ssh nslu2@sources.nslu2-linux.org mirror/sync-ipk ucslugc/cross/unstable rsync -vl ucslugc/tmp/deploy/ipk/Packages* slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/ucslugc/cross/unstable/ rsync -vlrt --delete ucslugc/tmp/deploy/ipk/ slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/ucslugc/cross/unstable/ - ssh -i ${SSH_KEY} nslu2@sources.nslu2-linux.org mirror/sync-packages-clean ucslugc/cross/unstable + ssh nslu2@sources.nslu2-linux.org mirror/sync-packages-clean ucslugc/cross/unstable .PHONY: upload-unslung-modules upload-unslung-modules: unslung/.configured @@ -404,26 +405,26 @@ upload-unslung-modules: unslung/.configured rm -f unslung/tmp/deploy/ipk/Packages.gz gzip -c unslung/tmp/deploy/ipk/Packages > unslung/tmp/deploy/ipk/Packages.gz rsync -vlt unslung/tmp/deploy/ipk/kernel-module-* slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/unslung/oe/ - ssh -i ${SSH_KEY} nslu2@sources.nslu2-linux.org mirror/sync-ipk unslung/oe + ssh nslu2@sources.nslu2-linux.org mirror/sync-ipk unslung/oe rsync -vl unslung/tmp/deploy/ipk/Packages* slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/unslung/oe/ - ssh -i ${SSH_KEY} nslu2@sources.nslu2-linux.org mirror/sync-packages-clean unslung/oe + ssh nslu2@sources.nslu2-linux.org mirror/sync-packages-clean unslung/oe # rsync -vlt --delete unslung/tmp/deploy/ipk/kernel-module-* slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/unslung/oe/ .PHONY: upload-optware-nslu2-cross upload-optware-nslu2-cross: optware/nslu2/.configured rsync -vlrt --exclude='Packages*' optware/nslu2/packages/ slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/unslung/cross/ - ssh -i ${SSH_KEY} nslu2@sources.nslu2-linux.org mirror/sync-ipk unslung/cross + ssh nslu2@sources.nslu2-linux.org mirror/sync-ipk unslung/cross rsync -vl optware/nslu2/packages/Packages* slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/unslung/cross/ rsync -vlrt --delete optware/nslu2/packages/ slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/unslung/cross/ - ssh -i ${SSH_KEY} nslu2@sources.nslu2-linux.org mirror/sync-packages-clean unslung/cross + ssh nslu2@sources.nslu2-linux.org mirror/sync-packages-clean unslung/cross .PHONY: upload-optware-wl500g-cross upload-optware-wl500g-cross: optware/wl500g/.configured rsync -vlrt --exclude='Packages*' optware/wl500g/packages/ slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/unslung/wl500g/ - ssh -i ${SSH_KEY} nslu2@sources.nslu2-linux.org mirror/sync-ipk unslung/wl500g + ssh nslu2@sources.nslu2-linux.org mirror/sync-ipk unslung/wl500g rsync -vl optware/wl500g/packages/Packages* slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/unslung/wl500g/ rsync -vlrt --delete optware/wl500g/packages/ slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/unslung/wl500g/ - ssh -i ${SSH_KEY} nslu2@sources.nslu2-linux.org mirror/sync-packages-clean unslung/wl500g + ssh nslu2@sources.nslu2-linux.org mirror/sync-packages-clean unslung/wl500g .PHONY: upload-sources upload-sources: -- cgit v1.2.3 From 6b567b077256fb9a595418e03c0492c22608f26a Mon Sep 17 00:00:00 2001 From: Oyvind Repvik Date: Fri, 5 Aug 2005 12:52:02 +0000 Subject: Fix typo in openslug-2.3-beta target --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e5b62511ff..740648770a 100644 --- a/Makefile +++ b/Makefile @@ -58,7 +58,7 @@ optware-wl500g build-optware-wl500g: optware/wl500g/.configured ( cd optware/wl500g ; ${MAKE} autoclean ; ${MAKE} ) .PHONY: openslug-2.3-beta -openslug-2.3-beta: update-openslug-2.3-beta build-openslug-2.3-beta upload-openslug-2.3-beta +openslug-2.3-beta: update-openslug-2.3-beta build-openslug-2.3-beta upload-openslug-2.3-beta-cross .PHONY: build-openslug-2.3-beta build-openslug-2.3-beta: releases/OpenSlug-2.3-beta/.configured -- cgit v1.2.3 From adb956dde2b84c9f0d83543f17421b6d713e1323 Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Wed, 3 Aug 2005 19:21:08 +0000 Subject: Renamed existing clobber targets to distclean, and added new clobber targets --- Makefile | 62 ++++++++++++++++++++++++++++++++++++++++++++------------------ 1 file changed, 44 insertions(+), 18 deletions(-) diff --git a/Makefile b/Makefile index 740648770a..3f7321b8c1 100644 --- a/Makefile +++ b/Makefile @@ -31,8 +31,11 @@ update: update-master update-bitbake update-openembedded update-optware status: status-master status-bitbake status-openembedded status-optware .PHONY: clobber -clobber: clobber-master clobber-bitbake clobber-openembedded \ - clobber-unslung clobber-openslug clobber-ucslugc clobber-optware clobber-releases +clobber: clobber-unslung clobber-openslug clobber-ucslugc clobber-optware + +.PHONY: distclean +distclean: distclean-master distclean-bitbake distclean-openembedded \ + distclean-unslung distclean-openslug distclean-ucslugc distclean-optware distclean-releases .PHONY: unslung build-unslung unslung build-unslung: unslung/.configured bitbake/.configured openembedded/.configured @@ -298,36 +301,59 @@ status-optware: optware/.configured status-openslug-2.3-beta: ( cd releases/OpenSlug-2.3-beta ; svn status ) -.PHONY: clobber-master -clobber-master: +.PHONY: clobber-unslung +clobber-unslung: + [ ! -e unslung/Makefile ] || ( cd unslung ; ${MAKE} clobber ) + +.PHONY: clobber-openslug +clobber-openslug: + [ ! -e openslug/Makefile ] || ( cd openslug ; ${MAKE} clobber ) + +.PHONY: clobber-ucslugc +clobber-ucslugc: + [ ! -e ucslugc/Makefile ] || ( cd ucslugc ; ${MAKE} clobber ) + +.PHONY: clobber-optware +clobber-optware: clobber-optware-nslu2 clobber-optware-wl500g + +.PHONY: clobber-optware-nslu2 +clobber-optware-nslu2: + [ ! -e optware/nslu2/Makefile ] || ( cd optware/nslu2 ; ${MAKE} distclean ) + +.PHONY: clobber-optware-wl500g +clobber-optware-wl500g: + [ ! -e optware/wl500g/Makefile ] || ( cd optware/wl500g ; ${MAKE} distclean ) + +.PHONY: distclean-master +distclean-master: rm -rf MT common downloads openslug scripts ucslugc unslung -.PHONY: clobber-bitbake -clobber-bitbake: +.PHONY: distclean-bitbake +distclean-bitbake: rm -rf bitbake -.PHONY: clobber-openembedded -clobber-openembedded: +.PHONY: distclean-openembedded +distclean-openembedded: rm -rf openembedded -.PHONY: clobber-unslung -clobber-unslung: +.PHONY: distclean-unslung +distclean-unslung: rm -rf unslung -.PHONY: clobber-openslug -clobber-openslug: +.PHONY: distclean-openslug +distclean-openslug: rm -rf openslug -.PHONY: clobber-ucslugc -clobber-ucslugc: +.PHONY: distclean-ucslugc +distclean-ucslugc: rm -rf ucslugc -.PHONY: clobber-optware -clobber-optware: +.PHONY: distclean-optware +distclean-optware: rm -rf optware -.PHONY: clobber-releases -clobber-releases: +.PHONY: distclean-releases +distclean-releases: rm -rf releases # Targets for use by those with write access to the repositories -- cgit v1.2.3 From 37b24fe2099e67df079a15ed252731bb2659c1c7 Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Thu, 4 Aug 2005 01:43:43 +0000 Subject: Made the branches explicit in the initial monotone setup step. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 3f7321b8c1..6ed682c7df 100644 --- a/Makefile +++ b/Makefile @@ -74,7 +74,7 @@ setup-master MT/.configured: gunzip monotone/nslu2-linux.db.gz ) - ( monotone -d monotone/nslu2-linux.db unset database default-server ) - ( monotone -d monotone/nslu2-linux.db unset database default-include-pattern ) - ( monotone -d monotone/nslu2-linux.db pull monotone.nslu2-linux.org org.openembedded.* org.nslu2-linux.* ) + ( monotone -d monotone/nslu2-linux.db pull monotone.nslu2-linux.org org.{nslu2-linux.*,openembedded.{dev,dreambox,nslu2-linux}} ) [ -e MT/revision ] || ( monotone -d monotone/nslu2-linux.db co -b org.nslu2-linux.dev . ) touch MT/.configured -- cgit v1.2.3 From e848c22d519cf1e43594eb91ededde8fb84cc551 Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Thu, 4 Aug 2005 10:31:28 +0000 Subject: Inserted conditional clauses for native compilation. --- Makefile | 141 ++++++++++++++++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 116 insertions(+), 25 deletions(-) diff --git a/Makefile b/Makefile index 6ed682c7df..7165d32137 100644 --- a/Makefile +++ b/Makefile @@ -12,6 +12,12 @@ HOST_MACHINE:=$(shell uname -m | sed \ -e 's/armv5b/armeb/' \ ) +HOST_FIRMWARE:=$(shell uname -m | sed \ + -e 's/i[3-9]86/Linux/' \ + -e 's/armv5teb/OpenSlug/' \ + -e 's/armv5b/Unslung/' \ + ) + .PHONY: all all: update build @@ -19,13 +25,29 @@ all: update build build: build-unslung build-openslug build-ucslugc build-optware .PHONY: setup +ifneq ($(HOST_MACHINE),armeb) setup: setup-master setup-bitbake setup-openembedded setup-unslung setup-openslug setup-ucslugc setup-optware +else +ifeq ($(HOST_FIRMWARE),OpenSlug) +setup: setup-master setup-bitbake setup-openembedded setup-openslug +else +setup: setup-master setup-optware +endif +endif .PHONY: setup-developer setup-developer: setup-master setup-bitbake setup-openembedded setup-optware-developer .PHONY: update +ifneq ($(HOST_MACHINE),armeb) update: update-master update-bitbake update-openembedded update-optware +else +ifeq ($(HOST_FIRMWARE),OpenSlug) +update: update-master update-bitbake update-openembedded +else +update: update-master update-optware +endif +endif .PHONY: status status: status-master status-bitbake status-openembedded status-optware @@ -38,30 +60,60 @@ distclean: distclean-master distclean-bitbake distclean-openembedded \ distclean-unslung distclean-openslug distclean-ucslugc distclean-optware distclean-releases .PHONY: unslung build-unslung +ifneq ($(HOST_MACHINE),armeb) unslung build-unslung: unslung/.configured bitbake/.configured openembedded/.configured ( cd unslung ; ${MAKE} ) +else +unslung build-unslung: +endif .PHONY: openslug build-openslug +ifneq ($(HOST_MACHINE),armeb) +openslug build-openslug: openslug/.configured bitbake/.configured openembedded/.configured + ( cd openslug ; ${MAKE} ) +else +ifeq ($(HOST_FIRMWARE),OpenSlug) openslug build-openslug: openslug/.configured bitbake/.configured openembedded/.configured ( cd openslug ; ${MAKE} ) +else +openslug build-openslug: +endif +endif .PHONY: ucslugc build-ucslugc +ifneq ($(HOST_MACHINE),armeb) ucslugc build-ucslugc: ucslugc/.configured bitbake/.configured openembedded/.configured ( cd ucslugc ; ${MAKE} ) +else +ucslugc build-ucslugc: +endif .PHONY: optware build-optware optware build-optware: build-optware-nslu2 build-optware-wl500g .PHONY: optware-nslu2 build-optware-nslu2 +ifneq ($(HOST_MACHINE),armeb) +optware-nslu2 build-optware-nslu2: optware/nslu2/.configured + ( cd optware/nslu2 ; ${MAKE} autoclean ; ${MAKE} ) +else +ifeq ($(HOST_FIRMWARE),Unslung) optware-nslu2 build-optware-nslu2: optware/nslu2/.configured ( cd optware/nslu2 ; ${MAKE} autoclean ; ${MAKE} ) +else +optware-nslu2 build-optware-nslu2: +endif +endif .PHONY: optware-wl500g build-optware-wl500g +ifneq ($(HOST_MACHINE),armeb) optware-wl500g build-optware-wl500g: optware/wl500g/.configured ( cd optware/wl500g ; ${MAKE} autoclean ; ${MAKE} ) +else +optware-wl500g build-optware-wl500g: +endif .PHONY: openslug-2.3-beta -openslug-2.3-beta: update-openslug-2.3-beta build-openslug-2.3-beta upload-openslug-2.3-beta-cross +openslug-2.3-beta: update-openslug-2.3-beta build-openslug-2.3-beta upload-openslug-2.3-beta .PHONY: build-openslug-2.3-beta build-openslug-2.3-beta: releases/OpenSlug-2.3-beta/.configured @@ -378,35 +430,66 @@ push-openembedded: update-openembedded .PHONY: autobuild autobuild: - ( rm -rf builderrors.log ; \ - ${MAKE} update || echo -n " update" >> builderrors.log ; \ - ${MAKE} build-openslug upload-openslug-cross || echo -n " openslug" >> builderrors.log ; \ - ${MAKE} build-ucslugc upload-ucslugc-cross || echo -n " ucslugc" >> builderrors.log ; \ - ${MAKE} build-unslung upload-unslung-modules || echo -n " unslung" >> builderrors.log ; \ - ${MAKE} build-optware-nslu2 upload-optware-nslu2-cross || echo -n " optware/nslu2" >> builderrors.log ; \ - ${MAKE} build-optware-wl500g upload-optware-wl500g-cross || echo -n " optware/wl500g" >> builderrors.log ; \ - ${MAKE} upload-sources || echo -n " upload-sources" >> builderrors.log ; \ + rm -rf builderrors.log + - ${MAKE} update || echo -n " update" >> builderrors.log +ifneq ($(HOST_MACHINE),armeb) + - ${MAKE} build-openslug upload-openslug || echo -n " openslug" >> builderrors.log + - ${MAKE} build-ucslugc upload-ucslugc || echo -n " ucslugc" >> builderrors.log + - ${MAKE} build-unslung upload-unslung-modules || echo -n " unslung" >> builderrors.log +else +ifeq ($(HOST_FIRMWARE),OpenSlug) + - ${MAKE} build-openslug upload-openslug || echo -n " openslug" >> builderrors.log +endif +endif +ifneq ($(HOST_MACHINE),armeb) + - ${MAKE} build-optware-nslu2 upload-optware-nslu2 || echo -n " optware/nslu2" >> builderrors.log + - ${MAKE} build-optware-wl500g upload-optware-wl500g || echo -n " optware/wl500g" >> builderrors.log +else +ifeq ($(HOST_FIRMWARE),Unslung) + - ${MAKE} build-optware-nslu2 upload-optware-nslu2 || echo -n " optware/nslu2" >> builderrors.log +endif +endif + - ${MAKE} upload-sources || echo -n " upload-sources" >> builderrors.log if [ -e builderrors.log ] ; then \ echo -n "*** Errors during autobuild:" ; \ cat builderrors.log ; \ echo " ***" ; \ - fi \ - ) + fi .PHONY: upload -upload: upload-openslug-cross upload-ucslugc-cross upload-unslung-modules upload-optware-nslu2-cross upload-optware-wl500g-cross upload-sources - -.PHONY: upload-openslug-cross -upload-openslug-cross: openslug/.configured +ifneq ($(HOST_MACHINE),armeb) +upload: upload-openslug upload-ucslugc upload-unslung-modules upload-optware-nslu2 upload-optware-wl500g upload-sources +else +ifeq ($(HOST_FIRMWARE),OpenSlug) +upload: upload-openslug upload-sources +else +ifeq ($(HOST_FIRMWARE),Unslung) +upload: upload-optware-nslu2 upload-sources +else +upload: upload-sources +endif +endif +endif + +.PHONY: upload-openslug +upload-openslug: openslug/.configured rm -rf openslug/tmp/deploy/ipk/morgue +ifneq ($(HOST_MACHINE),armeb) rsync -vlrt --exclude='Packages*' openslug/tmp/deploy/ipk/ slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/openslug/cross/unstable/ ssh nslu2@sources.nslu2-linux.org mirror/sync-ipk openslug/cross/unstable rsync -vl openslug/tmp/deploy/ipk/Packages* slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/openslug/cross/unstable/ rsync -vlrt --delete openslug/tmp/deploy/ipk/ slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/openslug/cross/unstable/ ssh nslu2@sources.nslu2-linux.org mirror/sync-packages-clean openslug/cross/unstable - -.PHONY: upload-openslug-2.3-beta-cross -upload-openslug-2.3-beta-cross: releases/OpenSlug-2.3-beta/.configured +else + rsync -vlrt --exclude='Packages*' openslug/tmp/deploy/ipk/ slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/openslug/native/unstable/ + ssh nslu2@sources.nslu2-linux.org mirror/sync-ipk openslug/native/unstable + rsync -vl openslug/tmp/deploy/ipk/Packages* slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/openslug/native/unstable/ + rsync -vlrt --delete openslug/tmp/deploy/ipk/ slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/openslug/native/unstable/ + ssh nslu2@sources.nslu2-linux.org mirror/sync-packages-clean openslug/native/unstable +endif + +.PHONY: upload-openslug-2.3-beta +upload-openslug-2.3-beta: releases/OpenSlug-2.3-beta/.configured rm -rf releases/OpenSlug-2.3-beta/tmp/deploy/ipk/morgue rsync -vlrt --exclude='Packages*' releases/OpenSlug-2.3-beta/tmp/deploy/ipk/ slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/openslug/cross/2.3-beta/ ssh nslu2@sources.nslu2-linux.org mirror/sync-ipk openslug/cross/2.3-beta @@ -414,8 +497,8 @@ upload-openslug-2.3-beta-cross: releases/OpenSlug-2.3-beta/.configured rsync -vlrt --delete releases/OpenSlug-2.3-beta/tmp/deploy/ipk/ slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/openslug/cross/2.3-beta/ ssh nslu2@sources.nslu2-linux.org mirror/sync-packages-clean openslug/cross/2.3-beta -.PHONY: upload-ucslugc-cross -upload-ucslugc-cross: ucslugc/.configured +.PHONY: upload-ucslugc +upload-ucslugc: ucslugc/.configured rm -rf ucslugc/tmp/deploy/ipk/morgue rsync -vlrt --exclude='Packages*' ucslugc/tmp/deploy/ipk/ slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/ucslugc/cross/unstable/ ssh nslu2@sources.nslu2-linux.org mirror/sync-ipk ucslugc/cross/unstable @@ -436,16 +519,24 @@ upload-unslung-modules: unslung/.configured ssh nslu2@sources.nslu2-linux.org mirror/sync-packages-clean unslung/oe # rsync -vlt --delete unslung/tmp/deploy/ipk/kernel-module-* slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/unslung/oe/ -.PHONY: upload-optware-nslu2-cross -upload-optware-nslu2-cross: optware/nslu2/.configured +.PHONY: upload-optware-nslu2 +upload-optware-nslu2: optware/nslu2/.configured +ifneq ($(HOST_MACHINE),armeb) rsync -vlrt --exclude='Packages*' optware/nslu2/packages/ slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/unslung/cross/ ssh nslu2@sources.nslu2-linux.org mirror/sync-ipk unslung/cross rsync -vl optware/nslu2/packages/Packages* slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/unslung/cross/ rsync -vlrt --delete optware/nslu2/packages/ slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/unslung/cross/ ssh nslu2@sources.nslu2-linux.org mirror/sync-packages-clean unslung/cross - -.PHONY: upload-optware-wl500g-cross -upload-optware-wl500g-cross: optware/wl500g/.configured +else + rsync -vlrt --exclude='Packages*' optware/nslu2/packages/ slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/unslung/native/ + ssh nslu2@sources.nslu2-linux.org mirror/sync-ipk unslung/native + rsync -vl optware/nslu2/packages/Packages* slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/unslung/native/ + rsync -vlrt --delete optware/nslu2/packages/ slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/unslung/native/ + ssh nslu2@sources.nslu2-linux.org mirror/sync-packages-clean unslung/native +endif + +.PHONY: upload-optware-wl500g +upload-optware-wl500g: optware/wl500g/.configured rsync -vlrt --exclude='Packages*' optware/wl500g/packages/ slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/unslung/wl500g/ ssh nslu2@sources.nslu2-linux.org mirror/sync-ipk unslung/wl500g rsync -vl optware/wl500g/packages/Packages* slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/unslung/wl500g/ -- cgit v1.2.3 From f617cc7ddf8fcb4d95114b7edf10f1a3008cf9e2 Mon Sep 17 00:00:00 2001 From: John Bowler Date: Sun, 7 Aug 2005 18:03:40 +0000 Subject: Updated for OpenSlug-2.5-beta --- Makefile | 56 ++++++++++++++++++++++++++++++++------------------------ 1 file changed, 32 insertions(+), 24 deletions(-) diff --git a/Makefile b/Makefile index 7165d32137..37bbc62747 100644 --- a/Makefile +++ b/Makefile @@ -112,13 +112,15 @@ else optware-wl500g build-optware-wl500g: endif -.PHONY: openslug-2.3-beta -openslug-2.3-beta: update-openslug-2.3-beta build-openslug-2.3-beta upload-openslug-2.3-beta +openslug-%-beta: update-openslug-%-beta build-openslug-%-beta upload-openslug-%-beta + echo "$@ completed" -.PHONY: build-openslug-2.3-beta build-openslug-2.3-beta: releases/OpenSlug-2.3-beta/.configured ( cd releases/OpenSlug-2.3-beta ; ${MAKE} openslug-firmware ) +build-openslug-%-beta: releases/OpenSlug-%-beta/.configured + ( cd releases/OpenSlug-$*-beta ; ${MAKE} firmware ) + .PHONY: setup-master setup-master MT/.configured: [ -e monotone/nslu2-linux.db ] || ( mkdir -p monotone && \ @@ -227,7 +229,6 @@ setup-apex apex/Makefile: setup-apex-developer: cvs -q -d :ext:${CVS_USER}@cvs.sf.net:/cvsroot/nslu co apex -.PHONY: setup-openslug-2.3-beta setup-openslug-2.3-beta releases/OpenSlug-2.3-beta/.configured: [ -e releases/OpenSlug-2.3-beta ] || ( \ mkdir -p releases ; \ @@ -239,14 +240,24 @@ setup-openslug-2.3-beta releases/OpenSlug-2.3-beta/.configured: [ -e releases/OpenSlug-2.3-beta/downloads ] || ln -s ../../downloads releases/OpenSlug-2.3-beta/ touch releases/OpenSlug-2.3-beta/.configured -.PHONY: setup-openslug-2.3-beta-developer -setup-openslug-2.3-beta-developer: - [ -e releases/OpenSlug-2.3-beta ] || ( \ +setup-openslug-%-beta releases/OpenSlug-%-beta/.configured: + [ -e releases/OpenSlug-$*-beta ] || ( \ mkdir -p releases ; \ - svn checkout svn+ssh://svn.berlios.de/svnroot/repos/openslug/releases/OpenSlug-2.3-beta \ - releases/OpenSlug-2.3-beta \ + svn checkout svn://svn.berlios.de/openslug/releases/OpenSlug-$*-beta \ + releases/OpenSlug-$*-beta \ + ) + ( cd releases/OpenSlug-$*-beta ; ${MAKE} setup-env ) + [ -e downloads ] || ( mkdir -p downloads ) + [ -e releases/OpenSlug-$*-beta/downloads ] || ln -s ../../downloads releases/OpenSlug-$*-beta/ + touch releases/OpenSlug-$*-beta/.configured + +setup-openslug-%-beta-developer: + [ -e releases/OpenSlug-$*-beta ] || ( \ + mkdir -p releases ; \ + svn checkout svn+ssh://svn.berlios.de/svnroot/repos/openslug/releases/OpenSlug-$*-beta \ + releases/OpenSlug-$*-beta \ ) - ${MAKE} setup-openslug-2.3-beta + ${MAKE} setup-openslug-$*-beta .PHONY: setup-host-debian setup-host-debian: @@ -329,9 +340,8 @@ update-openembedded: openembedded/.configured update-optware: optware/.configured ( cd optware ; cvs -q update -d -P ) -.PHONY: update-openslug-2.3-beta -update-openslug-2.3-beta: releases/OpenSlug-2.3-beta/.configured - ( cd releases/OpenSlug-2.3-beta ; svn up ) +update-openslug-%-beta: releases/OpenSlug-%-beta/.configured + ( cd releases/OpenSlug-$*-beta ; svn up ) .PHONY: status-master status-master: MT/.configured @@ -349,9 +359,8 @@ status-openembedded: openembedded/.configured status-optware: optware/.configured ( cd optware ; cvs -q update -d -P ) -.PHONY: status-openslug-2.3-beta -status-openslug-2.3-beta: - ( cd releases/OpenSlug-2.3-beta ; svn status ) +status-openslug-%-beta: + ( cd releases/OpenSlug-$*-beta ; svn status ) .PHONY: clobber-unslung clobber-unslung: @@ -488,14 +497,13 @@ else ssh nslu2@sources.nslu2-linux.org mirror/sync-packages-clean openslug/native/unstable endif -.PHONY: upload-openslug-2.3-beta -upload-openslug-2.3-beta: releases/OpenSlug-2.3-beta/.configured - rm -rf releases/OpenSlug-2.3-beta/tmp/deploy/ipk/morgue - rsync -vlrt --exclude='Packages*' releases/OpenSlug-2.3-beta/tmp/deploy/ipk/ slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/openslug/cross/2.3-beta/ - ssh nslu2@sources.nslu2-linux.org mirror/sync-ipk openslug/cross/2.3-beta - rsync -vl releases/OpenSlug-2.3-beta/tmp/deploy/ipk/Packages* slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/openslug/cross/2.3-beta/ - rsync -vlrt --delete releases/OpenSlug-2.3-beta/tmp/deploy/ipk/ slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/openslug/cross/2.3-beta/ - ssh nslu2@sources.nslu2-linux.org mirror/sync-packages-clean openslug/cross/2.3-beta +upload-openslug-%-beta: releases/OpenSlug-%-beta/.configured + rm -rf releases/OpenSlug-$*-beta/tmp/deploy/ipk/morgue + rsync -vlrt --exclude='Packages*' releases/OpenSlug-$*-beta/tmp/deploy/ipk/ slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/openslug/cross/$*-beta/ + ssh nslu2@sources.nslu2-linux.org mirror/sync-ipk openslug/cross/$*-beta + rsync -vl releases/OpenSlug-$*-beta/tmp/deploy/ipk/Packages* slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/openslug/cross/$*-beta/ + rsync -vlrt --delete releases/OpenSlug-$*-beta/tmp/deploy/ipk/ slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/openslug/cross/$*-beta/ + ssh nslu2@sources.nslu2-linux.org mirror/sync-packages-clean openslug/cross/$*-beta .PHONY: upload-ucslugc upload-ucslugc: ucslugc/.configured -- cgit v1.2.3 From d9f6d44c1e1df19157cebf76898ffb99c16dd332 Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Sat, 6 Aug 2005 21:39:24 +0000 Subject: Updated the setup-host-debian target (thanks to blaster8). --- Makefile | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 37bbc62747..8d167ababa 100644 --- a/Makefile +++ b/Makefile @@ -261,7 +261,8 @@ setup-openslug-%-beta-developer: .PHONY: setup-host-debian setup-host-debian: - sudo apt-get install \ + su - -c " \ + apt-get install \ autoconf automake automake1.9 \ bison \ ccache \ @@ -275,7 +276,10 @@ setup-host-debian: python python-dev python-psyco python2.4 python2.4-dev \ sed \ texinfo \ - unzip + unzip \ + subversion \ + bzip2" + echo "You will have to install monotone separately. See http://venge.net/monotone/" .PHONY: setup-host-gentoo setup-host-gentoo: @@ -301,7 +305,8 @@ setup-host-gentoo: sys-apps/texinfo \ unzip \ psyco \ - subversion" + subversion \ + bzip2" .PHONY: update-master update-master: MT/.configured @@ -447,6 +452,7 @@ ifneq ($(HOST_MACHINE),armeb) - ${MAKE} build-unslung upload-unslung-modules || echo -n " unslung" >> builderrors.log else ifeq ($(HOST_FIRMWARE),OpenSlug) + rm -rf openslug/tmp/cache - ${MAKE} build-openslug upload-openslug || echo -n " openslug" >> builderrors.log endif endif -- cgit v1.2.3 From 300ed72988df7da578ee92fe9eeeedd5ed2addfb Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Sat, 6 Aug 2005 21:47:18 +0000 Subject: Fixed the setup-host-gentoo target (thanks again to blaster8) --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 8d167ababa..5236c28f12 100644 --- a/Makefile +++ b/Makefile @@ -284,9 +284,9 @@ setup-host-debian: .PHONY: setup-host-gentoo setup-host-gentoo: su - -c "mkdir -p /etc/portage ; echo >> /etc/portage/package.keywords ; \ - grep monotone /etc/portage/package.keywords || \ + grep monotone-0.21 /etc/portage/package.keywords || \ echo ~dev-util/monotone-0.21 ~* >> /etc/portage/package.keywords ; \ - grep dev-libs/boost /etc/portage/package.keywords || \ + grep dev-libs/boost-1.32 /etc/portage/package.keywords || \ echo ~dev-libs/boost-1.32 ~* >> /etc/portage/package.keywords ; \ emerge -n \ autoconf automake \ -- cgit v1.2.3 From af90a141207f3faae55a08d8baed1abd4a8320e2 Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Sun, 7 Aug 2005 06:33:04 +0000 Subject: Added the top-level prefetch target, and added BITBAKE variable to openembedded.mk to allow options to be added. --- Makefile | 59 ++++++++++++++++++++++++++++++++++++++++++++++++++ common/openembedded.mk | 7 +++++- 2 files changed, 65 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 5236c28f12..f13a93373b 100644 --- a/Makefile +++ b/Makefile @@ -21,6 +21,9 @@ HOST_FIRMWARE:=$(shell uname -m | sed \ .PHONY: all all: update build +.PHONY: prefetch +prefetch: prefetch-unslung prefetch-openslug prefetch-ucslugc prefetch-optware + .PHONY: build build: build-unslung build-openslug build-ucslugc build-optware @@ -59,6 +62,62 @@ clobber: clobber-unslung clobber-openslug clobber-ucslugc clobber-optware distclean: distclean-master distclean-bitbake distclean-openembedded \ distclean-unslung distclean-openslug distclean-ucslugc distclean-optware distclean-releases +.PHONY: prefetch-unslung +ifneq ($(HOST_MACHINE),armeb) +prefetch-unslung: unslung/.configured bitbake/.configured openembedded/.configured + ( cd unslung ; ${MAKE} prefetch ) +else +prefetch-unslung: +endif + +.PHONY: prefetch-openslug +ifneq ($(HOST_MACHINE),armeb) +prefetch-openslug: openslug/.configured bitbake/.configured openembedded/.configured + ( cd openslug ; ${MAKE} prefetch ) +else +ifeq ($(HOST_FIRMWARE),OpenSlug) +prefetch-openslug: openslug/.configured bitbake/.configured openembedded/.configured + ( cd openslug ; ${MAKE} prefetch ) +else +prefetch-openslug: +endif +endif + +.PHONY: prefetch-ucslugc +ifneq ($(HOST_MACHINE),armeb) +prefetch-ucslugc: ucslugc/.configured bitbake/.configured openembedded/.configured + ( cd ucslugc ; ${MAKE} prefetch ) +else +prefetch-ucslugc: +endif + +.PHONY: prefetch-optware +prefetch-optware: prefetch-optware-nslu2 prefetch-optware-wl500g + +.PHONY: prefetch-optware-nslu2 +ifneq ($(HOST_MACHINE),armeb) +prefetch-optware-nslu2: optware/nslu2/.configured + ( cd optware/nslu2 ; ${MAKE} source ) +else +ifeq ($(HOST_FIRMWARE),Unslung) +prefetch-optware-nslu2: optware/nslu2/.configured + ( cd optware/nslu2 ; ${MAKE} source ) +else +prefetch-optware-nslu2: +endif +endif + +.PHONY: prefetch-optware-wl500g +ifneq ($(HOST_MACHINE),armeb) +prefetch-optware-wl500g: optware/wl500g/.configured + ( cd optware/wl500g ; ${MAKE} source ) +else +prefetch-optware-wl500g: +endif + +prefetch-openslug-%-beta: releases/OpenSlug-%-beta/.configured + ( cd releases/OpenSlug-$*-beta ; ${MAKE} prefetch ) + .PHONY: unslung build-unslung ifneq ($(HOST_MACHINE),armeb) unslung build-unslung: unslung/.configured bitbake/.configured openembedded/.configured diff --git a/common/openembedded.mk b/common/openembedded.mk index c23f206122..c4b5d564fe 100644 --- a/common/openembedded.mk +++ b/common/openembedded.mk @@ -15,16 +15,21 @@ include conf/auto.conf BUILD_DIRS = downloads REQUIRED_DIRS = bitbake openembedded FIRMWARE_DEPS = create-topdir $(BUILD_DIRS) $(REQUIRED_DIRS) +BITBAKE = bitbake # The default rule is to build the firmware in an unprotected environment. firmware: $(FIRMWARE_DEPS) - . ./setup-env; exec bitbake $(DISTRO)-packages + . ./setup-env; exec ${BITBAKE} $(DISTRO)-packages # This rule clobbers the environment (note that ccache uses '$HOME' by # default, so the cache will end up there). firmware-safe: env -i HOME="$${HOME}" PATH="$${PATH}" $(MAKE) firmware +# The default rule is to build the firmware in an unprotected environment. +prefetch: $(FIRMWARE_DEPS) + . ./setup-env; exec ${BITBAKE} -cfetch $(DISTRO)-packages + # topdir.conf is re-created automatically if the directory is # moved - this will cause a full bitbake reparse .PHONY: create-topdir -- cgit v1.2.3 From fb3a445fc4793b83725a478a0a305f059fee234a Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Tue, 9 Aug 2005 18:37:12 +0000 Subject: autobuild now stores log on www.nslu2-linux.org --- Makefile | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index f13a93373b..9350aa27d9 100644 --- a/Makefile +++ b/Makefile @@ -503,6 +503,7 @@ push-openembedded: update-openembedded .PHONY: autobuild autobuild: + date rm -rf builderrors.log - ${MAKE} update || echo -n " update" >> builderrors.log ifneq ($(HOST_MACHINE),armeb) @@ -524,10 +525,20 @@ ifeq ($(HOST_FIRMWARE),Unslung) endif endif - ${MAKE} upload-sources || echo -n " upload-sources" >> builderrors.log + + date if [ -e builderrors.log ] ; then \ - echo -n "*** Errors during autobuild:" ; \ - cat builderrors.log ; \ - echo " ***" ; \ + echo -n "*** Errors during autobuild:" ; \ + cat builderrors.log ; \ + echo " ***" ; \ + if [ -e autobuild.log ] ; then \ + rsync autobuild.log slug@nugabe.nslu2-linux.org:htdocs/www/autobuild-nudi-last.txt ; \ + fi \ + else \ + if [ -e autobuild.log ] ; then \ + ssh slug@nugabe.nslu2-linux.org mv htdocs/www/autobuild-nudi-last.txt htdocs/www/autobuild-nudi-prev.txt ; \ + rsync autobuild.log slug@nugabe.nslu2-linux.org:htdocs/www/autobuild-nudi-last.txt ; \ + fi \ fi .PHONY: upload -- cgit v1.2.3 From effd85158c0b171f0c9115cdba6d8c0636758ec7 Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Sat, 13 Aug 2005 10:42:14 +0000 Subject: Added targets for unslung-binary-kernel --- Makefile | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 9350aa27d9..ce6b9e066e 100644 --- a/Makefile +++ b/Makefile @@ -70,6 +70,14 @@ else prefetch-unslung: endif +.PHONY: prefetch-unslung-binary-kernel +ifneq ($(HOST_MACHINE),armeb) +prefetch-unslung-binary-kernel: unslung-binary-kernel/.configured bitbake/.configured openembedded/.configured + ( cd unslung-binary-kernel ; ${MAKE} prefetch ) +else +prefetch-unslung-binary-kernel: +endif + .PHONY: prefetch-openslug ifneq ($(HOST_MACHINE),armeb) prefetch-openslug: openslug/.configured bitbake/.configured openembedded/.configured @@ -126,6 +134,14 @@ else unslung build-unslung: endif +.PHONY: unslung-binary-kernel build-unslung-binary-kernel +ifneq ($(HOST_MACHINE),armeb) +unslung-binary-kernel build-unslung-binary-kernel: unslung-binary-kernel/.configured bitbake/.configured openembedded/.configured + ( cd unslung-binary-kernel ; ${MAKE} ) +else +unslung-binary-kernel build-unslung-binary-kernel: +endif + .PHONY: openslug build-openslug ifneq ($(HOST_MACHINE),armeb) openslug build-openslug: openslug/.configured bitbake/.configured openembedded/.configured @@ -201,8 +217,8 @@ setup-openembedded openembedded/.configured: MT/.configured [ -e openembedded/conf/machine/nslu2.conf ] || monotone co -b org.openembedded.nslu2-linux openembedded touch openembedded/.configured -.PHONY: setup-unslung setup-openslug setup-ucslugc -setup-unslung setup-openslug setup-ucslugc: setup-%: MT/.configured +.PHONY: setup-unslung setup-unslung-binary-kernel setup-openslug setup-ucslugc +setup-unslung setup-unslung-binary-kernel setup-openslug setup-ucslugc: setup-%: MT/.configured rm -rf $*/.configured ${MAKE} $*/.configured @@ -430,6 +446,10 @@ status-openslug-%-beta: clobber-unslung: [ ! -e unslung/Makefile ] || ( cd unslung ; ${MAKE} clobber ) +.PHONY: clobber-unslung-binary-kernel +clobber-unslung-binary-kernel: + [ ! -e unslung-binary-kernel/Makefile ] || ( cd unslung-binary-kernel ; ${MAKE} clobber ) + .PHONY: clobber-openslug clobber-openslug: [ ! -e openslug/Makefile ] || ( cd openslug ; ${MAKE} clobber ) @@ -465,6 +485,10 @@ distclean-openembedded: distclean-unslung: rm -rf unslung +.PHONY: distclean-unslung-binary-kernel +distclean-unslung-binary-kernel: + rm -rf unslung-binary-kernel + .PHONY: distclean-openslug distclean-openslug: rm -rf openslug -- cgit v1.2.3 From 527002a63efeb0fcf7361d2b381f6913d0ded12c Mon Sep 17 00:00:00 2001 From: Oyvind Repvik Date: Mon, 15 Aug 2005 20:45:04 +0000 Subject: Update setup-host targets --- Makefile | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index ce6b9e066e..f1c6e6e9f1 100644 --- a/Makefile +++ b/Makefile @@ -353,16 +353,17 @@ setup-host-debian: texinfo \ unzip \ subversion \ - bzip2" - echo "You will have to install monotone separately. See http://venge.net/monotone/" + bzip2 ;\ + echo You will have to install monotone separately. See http://venge.net/monotone/ + " .PHONY: setup-host-gentoo setup-host-gentoo: su - -c "mkdir -p /etc/portage ; echo >> /etc/portage/package.keywords ; \ - grep monotone-0.21 /etc/portage/package.keywords || \ - echo ~dev-util/monotone-0.21 ~* >> /etc/portage/package.keywords ; \ - grep dev-libs/boost-1.32 /etc/portage/package.keywords || \ - echo ~dev-libs/boost-1.32 ~* >> /etc/portage/package.keywords ; \ + grep monotone-0.22 /etc/portage/package.keywords || \ + echo ~dev-util/monotone-0.22 ~* >> /etc/portage/package.keywords ; \ + grep dev-libs/boost-1.32.0 /etc/portage/package.keywords || \ + echo ~dev-libs/boost-1.32.0 ~* >> /etc/portage/package.keywords ; \ emerge -n \ autoconf automake \ bison \ -- cgit v1.2.3 From 3af5a5191a9d9239489cad3510d0569cc0e29c1d Mon Sep 17 00:00:00 2001 From: Oyvind Repvik Date: Wed, 17 Aug 2005 01:53:47 +0000 Subject: Fix quoting on setup-host-debian --- Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile b/Makefile index f1c6e6e9f1..f54fa2a3ff 100644 --- a/Makefile +++ b/Makefile @@ -354,8 +354,7 @@ setup-host-debian: unzip \ subversion \ bzip2 ;\ - echo You will have to install monotone separately. See http://venge.net/monotone/ - " + echo You will have to install monotone separately. See http://venge.net/monotone/ " .PHONY: setup-host-gentoo setup-host-gentoo: -- cgit v1.2.3 From 08c511dfa7c2412d762796fdeb2fbf4fc6794bd1 Mon Sep 17 00:00:00 2001 From: Tom King Date: Wed, 17 Aug 2005 08:54:55 +0000 Subject: Added the Ubuntu-host-setup target --- Makefile | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f54fa2a3ff..001db20187 100644 --- a/Makefile +++ b/Makefile @@ -354,7 +354,32 @@ setup-host-debian: unzip \ subversion \ bzip2 ;\ - echo You will have to install monotone separately. See http://venge.net/monotone/ " + echo You will have to install monotone separately. See http://venge.net/monotone/ \ + " + +.PHONY: setup-host-ubuntu +setup-host-ubuntu: + su - -c " \ + apt-get install \ + autoconf automake automake1.9 \ + bison \ + ccache \ + cvs \ + docbook \ + flex \ + g++ gawk gcj gettext \ + libc6-dev libglib2.0-dev libtool \ + m4 make \ + patch pkg-config \ + python python-dev python2.4-psyco python2.4 python2.4-dev \ + sed \ + texinfo \ + unzip \ + subversion \ + bzip2 ;\ + echo You will have to install monotone separately. See http://venge.net/monotone/ \ + " + .PHONY: setup-host-gentoo setup-host-gentoo: -- cgit v1.2.3 From f3eab4be9d189f0044ad6d1a49d15511dee51dfc Mon Sep 17 00:00:00 2001 From: Tom King Date: Wed, 17 Aug 2005 09:01:27 +0000 Subject: Fix the added the Ubuntu-host-setup target --- Makefile | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/Makefile b/Makefile index 001db20187..d61a0f18d9 100644 --- a/Makefile +++ b/Makefile @@ -359,25 +359,25 @@ setup-host-debian: .PHONY: setup-host-ubuntu setup-host-ubuntu: - su - -c " \ - apt-get install \ - autoconf automake automake1.9 \ - bison \ - ccache \ - cvs \ - docbook \ - flex \ - g++ gawk gcj gettext \ - libc6-dev libglib2.0-dev libtool \ - m4 make \ - patch pkg-config \ - python python-dev python2.4-psyco python2.4 python2.4-dev \ - sed \ - texinfo \ - unzip \ - subversion \ - bzip2 ;\ - echo You will have to install monotone separately. See http://venge.net/monotone/ \ + su - -c " \ + apt-get install \ + autoconf automake automake1.9 \ + bison \ + ccache \ + cvs \ + docbook \ + flex \ + g++ gawk gcj gettext \ + libc6-dev libglib2.0-dev libtool \ + m4 make \ + patch pkg-config \ + python python-dev python2.4-psyco python2.4 python2.4-dev \ + sed \ + texinfo \ + unzip \ + subversion \ + bzip2 ;\ + echo You will have to install monotone separately. See http://venge.net/monotone/ \ " -- cgit v1.2.3 From 77e8dd1885302eaf7c7baf31dadf800618592112 Mon Sep 17 00:00:00 2001 From: Derek Young Date: Wed, 17 Aug 2005 09:17:12 +0000 Subject: Housecleaning --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index d61a0f18d9..a3f67beb2c 100644 --- a/Makefile +++ b/Makefile @@ -410,6 +410,9 @@ setup-host-gentoo: .PHONY: update-master update-master: MT/.configured + if [ `monotone -d monotone/nslu2-linux.db list keys nslu2-linux@nslu2-linux.org | wc -l` == 8 ] ; then \ + monotone -d monotone/nslu2-linux.db dropkey nslu2-linux@nslu2-linux.org ; \ + fi monotone pull if [ `monotone automate heads org.nslu2-linux.dev | wc -l` != "1" ] ; then \ monotone merge -b org.nslu2-linux.dev ; \ -- cgit v1.2.3 From b84743e7dbf038bf9729849df4d11fa3cea09459 Mon Sep 17 00:00:00 2001 From: Derek Young Date: Thu, 18 Aug 2005 03:09:15 +0000 Subject: Fixed the syntax --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a3f67beb2c..ff350daed4 100644 --- a/Makefile +++ b/Makefile @@ -410,7 +410,7 @@ setup-host-gentoo: .PHONY: update-master update-master: MT/.configured - if [ `monotone -d monotone/nslu2-linux.db list keys nslu2-linux@nslu2-linux.org | wc -l` == 8 ] ; then \ + if [ `monotone -d monotone/nslu2-linux.db list keys nslu2-linux@nslu2-linux.org | wc -l` = 8 ] ; then \ monotone -d monotone/nslu2-linux.db dropkey nslu2-linux@nslu2-linux.org ; \ fi monotone pull -- cgit v1.2.3 From 6e2df86b89234a0f95e39df3d50e3e909c481cd6 Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Fri, 19 Aug 2005 01:23:56 +0000 Subject: Moved build logs to logs.nslu2-linux.org --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index ff350daed4..850b403d8a 100644 --- a/Makefile +++ b/Makefile @@ -584,12 +584,12 @@ endif cat builderrors.log ; \ echo " ***" ; \ if [ -e autobuild.log ] ; then \ - rsync autobuild.log slug@nugabe.nslu2-linux.org:htdocs/www/autobuild-nudi-last.txt ; \ + rsync autobuild.log slug@nugabe.nslu2-linux.org:htdocs/logs/buildlogs/autobuild-`hostname`-last.txt ; \ fi \ else \ if [ -e autobuild.log ] ; then \ - ssh slug@nugabe.nslu2-linux.org mv htdocs/www/autobuild-nudi-last.txt htdocs/www/autobuild-nudi-prev.txt ; \ - rsync autobuild.log slug@nugabe.nslu2-linux.org:htdocs/www/autobuild-nudi-last.txt ; \ + ssh slug@nugabe.nslu2-linux.org mv htdocs/logs/buildlogs/autobuild-`hostname`-last.txt htdocs/logs/buildlogs/autobuild-`hostname`-prev.txt ; \ + rsync autobuild.log slug@nugabe.nslu2-linux.org:htdocs/logs/buildlogs/autobuild-`hostname`-last.txt ; \ fi \ fi -- cgit v1.2.3 From e970042576eb8601bff99fd3c465f8a16c911619 Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Wed, 17 Aug 2005 22:28:53 +0000 Subject: Updated to new feed locations --- Makefile | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/Makefile b/Makefile index 850b403d8a..168c5ad318 100644 --- a/Makefile +++ b/Makefile @@ -649,35 +649,35 @@ upload-unslung-modules: unslung/.configured mv unslung/tmp/deploy/ipk/Packages.new unslung/tmp/deploy/ipk/Packages rm -f unslung/tmp/deploy/ipk/Packages.gz gzip -c unslung/tmp/deploy/ipk/Packages > unslung/tmp/deploy/ipk/Packages.gz - rsync -vlt unslung/tmp/deploy/ipk/kernel-module-* slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/unslung/oe/ - ssh nslu2@sources.nslu2-linux.org mirror/sync-ipk unslung/oe - rsync -vl unslung/tmp/deploy/ipk/Packages* slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/unslung/oe/ - ssh nslu2@sources.nslu2-linux.org mirror/sync-packages-clean unslung/oe -# rsync -vlt --delete unslung/tmp/deploy/ipk/kernel-module-* slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/unslung/oe/ + rsync -vlt unslung/tmp/deploy/ipk/kernel-module-* slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/unslung/modules/stable/ + ssh nslu2@sources.nslu2-linux.org mirror/sync-ipk unslung/modules/stable + rsync -vl unslung/tmp/deploy/ipk/Packages* slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/unslung/modules/stable/ + ssh nslu2@sources.nslu2-linux.org mirror/sync-packages-clean unslung/modules/stable +# rsync -vlt --delete unslung/tmp/deploy/ipk/kernel-module-* slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/unslung/modules/stable/ .PHONY: upload-optware-nslu2 upload-optware-nslu2: optware/nslu2/.configured ifneq ($(HOST_MACHINE),armeb) - rsync -vlrt --exclude='Packages*' optware/nslu2/packages/ slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/unslung/cross/ - ssh nslu2@sources.nslu2-linux.org mirror/sync-ipk unslung/cross - rsync -vl optware/nslu2/packages/Packages* slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/unslung/cross/ - rsync -vlrt --delete optware/nslu2/packages/ slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/unslung/cross/ - ssh nslu2@sources.nslu2-linux.org mirror/sync-packages-clean unslung/cross + rsync -vlrt --exclude='Packages*' optware/nslu2/packages/ slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/optware/nslu2/cross/unstable/ + ssh nslu2@sources.nslu2-linux.org mirror/sync-ipk optware/nslu2/cross/unstable + rsync -vl optware/nslu2/packages/Packages* slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/optware/nslu2/cross/unstable/ + rsync -vlrt --delete optware/nslu2/packages/ slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/optware/nslu2/cross/unstable/ + ssh nslu2@sources.nslu2-linux.org mirror/sync-packages-clean optware/nslu2/cross/unstable else - rsync -vlrt --exclude='Packages*' optware/nslu2/packages/ slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/unslung/native/ - ssh nslu2@sources.nslu2-linux.org mirror/sync-ipk unslung/native - rsync -vl optware/nslu2/packages/Packages* slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/unslung/native/ - rsync -vlrt --delete optware/nslu2/packages/ slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/unslung/native/ - ssh nslu2@sources.nslu2-linux.org mirror/sync-packages-clean unslung/native + rsync -vlrt --exclude='Packages*' optware/nslu2/packages/ slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/optware/nslu2/native/unstable/ + ssh nslu2@sources.nslu2-linux.org mirror/sync-ipk optware/nslu2/native/unstable + rsync -vl optware/nslu2/packages/Packages* slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/optware/nslu2/native/unstable/ + rsync -vlrt --delete optware/nslu2/packages/ slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/optware/nslu2/native/unstable/ + ssh nslu2@sources.nslu2-linux.org mirror/sync-packages-clean optware/nslu2/native/unstable endif .PHONY: upload-optware-wl500g upload-optware-wl500g: optware/wl500g/.configured - rsync -vlrt --exclude='Packages*' optware/wl500g/packages/ slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/unslung/wl500g/ - ssh nslu2@sources.nslu2-linux.org mirror/sync-ipk unslung/wl500g - rsync -vl optware/wl500g/packages/Packages* slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/unslung/wl500g/ - rsync -vlrt --delete optware/wl500g/packages/ slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/unslung/wl500g/ - ssh nslu2@sources.nslu2-linux.org mirror/sync-packages-clean unslung/wl500g + rsync -vlrt --exclude='Packages*' optware/wl500g/packages/ slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/optware/wl500g/cross/unstable/ + ssh nslu2@sources.nslu2-linux.org mirror/sync-ipk optware/wl500g/cross/unstable + rsync -vl optware/wl500g/packages/Packages* slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/optware/wl500g/cross/unstable/ + rsync -vlrt --delete optware/wl500g/packages/ slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/optware/wl500g/cross/unstable/ + ssh nslu2@sources.nslu2-linux.org mirror/sync-packages-clean optware/wl500g/cross/unstable .PHONY: upload-sources upload-sources: -- cgit v1.2.3 From f5157f9feaec424422c369a006cc840354c32787 Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Thu, 18 Aug 2005 04:22:15 +0000 Subject: org.openembedded.nslu2-linux branch is now deprecated - use org.openembedded.dev instead --- Makefile | 45 +++++++++------------------------------------ 1 file changed, 9 insertions(+), 36 deletions(-) diff --git a/Makefile b/Makefile index 168c5ad318..e76395651d 100644 --- a/Makefile +++ b/Makefile @@ -214,7 +214,7 @@ setup-bitbake bitbake/.configured: MT/.configured .PHONY: setup-openembedded setup-openembedded openembedded/.configured: MT/.configured - [ -e openembedded/conf/machine/nslu2.conf ] || monotone co -b org.openembedded.nslu2-linux openembedded + [ -e openembedded/conf/machine/nslu2.conf ] || monotone co -b org.openembedded.dev openembedded touch openembedded/.configured .PHONY: setup-unslung setup-unslung-binary-kernel setup-openslug setup-ucslugc @@ -435,13 +435,17 @@ update-bitbake: bitbake/.configured .PHONY: update-openembedded update-openembedded: openembedded/.configured + if grep "org.openembedded.nslu2-linux" openembedded/MT/options >/dev/null 2>&1 ; then \ + sed -i -e 's/org.openembedded.nslu2-linux/org.openembedded.dev/' openembedded/MT/options ; \ + monotone propagate org.openembedded.nslu2-linux org.openembedded.dev ; \ + fi monotone pull - if [ `monotone automate heads org.openembedded.nslu2-linux | wc -l` != "1" ] ; then \ - monotone merge -b org.openembedded.nslu2-linux ; \ + if [ `monotone automate heads org.openembedded.dev | wc -l` != "1" ] ; then \ + monotone merge -b org.openembedded.dev ; \ fi ( cd openembedded ; monotone update ) - if [ `monotone automate heads org.openembedded.nslu2-linux | wc -l` != "1" ] ; then \ - monotone merge -b org.openembedded.nslu2-linux ; \ + if [ `monotone automate heads org.openembedded.dev | wc -l` != "1" ] ; then \ + monotone merge -b org.openembedded.dev ; \ fi .PHONY: update-optware @@ -691,35 +695,4 @@ import-bitbake: bitbake/.configured rm -rf bitbake.old ( cd bitbake ; rm -rf .svn ; monotone status ) -.PHONY: import-openembedded -import-openembedded: openembedded/.configured - monotone pull monotone.vanille.de org.openembedded.* - if [ `monotone automate heads org.openembedded.dev | wc -l` != "1" ] ; then \ - monotone merge -b org.openembedded.dev ; \ - fi - if [ `monotone automate heads org.openembedded.nslu2-linux | wc -l` != "1" ] ; then \ - monotone merge -b org.openembedded.nslu2-linux ; \ - fi - monotone propagate org.openembedded.dev org.openembedded.nslu2-linux - if [ `monotone automate heads org.openembedded.nslu2-linux | wc -l` != "1" ] ; then \ - monotone merge -b org.openembedded.nslu2-linux ; \ - fi - -.PHONY: export-openembedded -export-openembedded: openembedded/.configured - if [ `monotone automate heads org.openembedded.nslu2-linux | wc -l` != "1" ] ; then \ - monotone merge -b org.openembedded.nslu2-linux ; \ - fi - if [ `monotone automate heads org.openembedded.dev | wc -l` != "1" ] ; then \ - monotone merge -b org.openembedded.dev ; \ - fi - monotone propagate org.openembedded.nslu2-linux org.openembedded.dev - if [ `monotone automate heads org.openembedded.dev | wc -l` != "1" ] ; then \ - monotone merge -b org.openembedded.dev ; \ - fi - monotone push monotone.vanille.de org.openembedded.* - -.PHONY: publish-openembedded -publish-openembedded: import-openembedded update-openembedded push-openembedded export-openembedded - # End of Makefile -- cgit v1.2.3 From 4030c1a232ddfc79bf568eb25abe7fbee02bd13e Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Thu, 18 Aug 2005 05:29:57 +0000 Subject: Removed org.openembedded.nslu2-linux from the initial setup steps --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e76395651d..df292455b0 100644 --- a/Makefile +++ b/Makefile @@ -203,7 +203,7 @@ setup-master MT/.configured: gunzip monotone/nslu2-linux.db.gz ) - ( monotone -d monotone/nslu2-linux.db unset database default-server ) - ( monotone -d monotone/nslu2-linux.db unset database default-include-pattern ) - ( monotone -d monotone/nslu2-linux.db pull monotone.nslu2-linux.org org.{nslu2-linux.*,openembedded.{dev,dreambox,nslu2-linux}} ) + ( monotone -d monotone/nslu2-linux.db pull monotone.nslu2-linux.org org.{nslu2-linux.*,openembedded.dev} ) [ -e MT/revision ] || ( monotone -d monotone/nslu2-linux.db co -b org.nslu2-linux.dev . ) touch MT/.configured -- cgit v1.2.3 From 9f1e67ff0e167b03bbb4ef154ad48d2bd477b953 Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Thu, 18 Aug 2005 08:08:16 +0000 Subject: Commented out dropkey code --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index df292455b0..e984bd7de3 100644 --- a/Makefile +++ b/Makefile @@ -410,9 +410,9 @@ setup-host-gentoo: .PHONY: update-master update-master: MT/.configured - if [ `monotone -d monotone/nslu2-linux.db list keys nslu2-linux@nslu2-linux.org | wc -l` = 8 ] ; then \ - monotone -d monotone/nslu2-linux.db dropkey nslu2-linux@nslu2-linux.org ; \ - fi +# if [ `monotone -d monotone/nslu2-linux.db list keys nslu2-linux@nslu2-linux.org | wc -l` = 8 ] ; then \ +# monotone -d monotone/nslu2-linux.db dropkey nslu2-linux@nslu2-linux.org ; \ +# fi monotone pull if [ `monotone automate heads org.nslu2-linux.dev | wc -l` != "1" ] ; then \ monotone merge -b org.nslu2-linux.dev ; \ -- cgit v1.2.3 From e56f2097187d89bb84abfda58de9585a5bec4073 Mon Sep 17 00:00:00 2001 From: Tom King Date: Sun, 21 Aug 2005 00:57:04 +0000 Subject: Added back in -image targets for Master makes for unslung, openembedded, and ucslugc --- Makefile | 26 ++++++++++++++++++++++++-- common/openembedded.mk | 12 ++++++++---- 2 files changed, 32 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index e984bd7de3..c94f257eb6 100644 --- a/Makefile +++ b/Makefile @@ -163,8 +163,30 @@ else ucslugc build-ucslugc: endif -.PHONY: optware build-optware -optware build-optware: build-optware-nslu2 build-optware-wl500g + +.PHONY: unslung-image build-unslung-image +ifneq ($(HOST_MACHINE),armeb) +unslung-image build-unslung-image: unslung/.configured bitbake/.configured openembedded/.configured + ( cd unslung ; ${MAKE} image) +else +unslung-image build-unslung-image: +endif + +.PHONY: openslug-image build-openslug-image +ifneq ($(HOST_MACHINE),armeb) +openslug-image build-openslug-image: openslug/.configured bitbake/.configured openembedded/.configured + ( cd openslug ; ${MAKE} image ) +else +openslug build-openslug: +endif + +.PHONY: ucslugc build-ucslugc +ifneq ($(HOST_MACHINE),armeb) +ucslugc-image build-ucslugc-image: ucslugc/.configured bitbake/.configured openembedded/.configured + ( cd ucslugc ; ${MAKE} image) +else +ucslugc build-ucslugc: +endif .PHONY: optware-nslu2 build-optware-nslu2 ifneq ($(HOST_MACHINE),armeb) diff --git a/common/openembedded.mk b/common/openembedded.mk index c4b5d564fe..bf691ce069 100644 --- a/common/openembedded.mk +++ b/common/openembedded.mk @@ -17,14 +17,18 @@ REQUIRED_DIRS = bitbake openembedded FIRMWARE_DEPS = create-topdir $(BUILD_DIRS) $(REQUIRED_DIRS) BITBAKE = bitbake -# The default rule is to build the firmware in an unprotected environment. -firmware: $(FIRMWARE_DEPS) +# The default rule is to build everything in an unprotected environment. +distro: $(FIRMWARE_DEPS) . ./setup-env; exec ${BITBAKE} $(DISTRO)-packages +# The default rule is to build the firmware in an unprotected environment. +image: $(FIRMWARE_DEPS) + . ./setup-env; exec ${BITBAKE} $(DISTRO)-image + # This rule clobbers the environment (note that ccache uses '$HOME' by # default, so the cache will end up there). -firmware-safe: - env -i HOME="$${HOME}" PATH="$${PATH}" $(MAKE) firmware +distro-safe: + env -i HOME="$${HOME}" PATH="$${PATH}" $(MAKE) distro # The default rule is to build the firmware in an unprotected environment. prefetch: $(FIRMWARE_DEPS) -- cgit v1.2.3 From 005f9dbd4fba8e6b32d9c17f6fc61c23c91e544c Mon Sep 17 00:00:00 2001 From: Tom King Date: Sun, 21 Aug 2005 01:35:09 +0000 Subject: Fix .PHONY line for ucslugc-image --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index c94f257eb6..7d3e2371af 100644 --- a/Makefile +++ b/Makefile @@ -180,7 +180,7 @@ else openslug build-openslug: endif -.PHONY: ucslugc build-ucslugc +.PHONY: ucslugc-image build-ucslugc-image ifneq ($(HOST_MACHINE),armeb) ucslugc-image build-ucslugc-image: ucslugc/.configured bitbake/.configured openembedded/.configured ( cd ucslugc ; ${MAKE} image) -- cgit v1.2.3 From 245325fd2f15742ac857b9f10a1442562b1c9f3f Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Thu, 25 Aug 2005 10:15:15 +0000 Subject: Fixed else clause of -image targets. --- Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 7d3e2371af..ea1934cf3a 100644 --- a/Makefile +++ b/Makefile @@ -163,7 +163,6 @@ else ucslugc build-ucslugc: endif - .PHONY: unslung-image build-unslung-image ifneq ($(HOST_MACHINE),armeb) unslung-image build-unslung-image: unslung/.configured bitbake/.configured openembedded/.configured @@ -177,7 +176,7 @@ ifneq ($(HOST_MACHINE),armeb) openslug-image build-openslug-image: openslug/.configured bitbake/.configured openembedded/.configured ( cd openslug ; ${MAKE} image ) else -openslug build-openslug: +openslug-image build-openslug-image: endif .PHONY: ucslugc-image build-ucslugc-image @@ -185,9 +184,12 @@ ifneq ($(HOST_MACHINE),armeb) ucslugc-image build-ucslugc-image: ucslugc/.configured bitbake/.configured openembedded/.configured ( cd ucslugc ; ${MAKE} image) else -ucslugc build-ucslugc: +ucslugc-image build-ucslugc-image: endif +.PHONY: build-optware +build-optware: build-optware-nslu2 build-optware-wl500g + .PHONY: optware-nslu2 build-optware-nslu2 ifneq ($(HOST_MACHINE),armeb) optware-nslu2 build-optware-nslu2: optware/nslu2/.configured -- cgit v1.2.3 From 5ccd078e12b0beb585fd258e6c03b1b42a10c89d Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Tue, 30 Aug 2005 00:07:07 +0000 Subject: Added optware/ds101 and optware/ds101g --- Makefile | 120 +++++++++++++++++++++++++++++++++------------------------------ 1 file changed, 62 insertions(+), 58 deletions(-) diff --git a/Makefile b/Makefile index ea1934cf3a..16344827f1 100644 --- a/Makefile +++ b/Makefile @@ -100,7 +100,7 @@ prefetch-ucslugc: endif .PHONY: prefetch-optware -prefetch-optware: prefetch-optware-nslu2 prefetch-optware-wl500g +prefetch-optware: prefetch-optware-nslu2 prefetch-optware-wl500g prefetch-optware-ds101 prefetch-optware-ds101g .PHONY: prefetch-optware-nslu2 ifneq ($(HOST_MACHINE),armeb) @@ -115,12 +115,12 @@ prefetch-optware-nslu2: endif endif -.PHONY: prefetch-optware-wl500g +.PHONY: prefetch-optware-% ifneq ($(HOST_MACHINE),armeb) -prefetch-optware-wl500g: optware/wl500g/.configured - ( cd optware/wl500g ; ${MAKE} source ) +prefetch-optware-%: optware/%/.configured + ( cd optware/$* ; ${MAKE} source ) else -prefetch-optware-wl500g: +prefetch-optware-%: endif prefetch-openslug-%-beta: releases/OpenSlug-%-beta/.configured @@ -188,7 +188,7 @@ ucslugc-image build-ucslugc-image: endif .PHONY: build-optware -build-optware: build-optware-nslu2 build-optware-wl500g +build-optware: build-optware-nslu2 build-optware-wl500g build-optware-ds101 build-optware-ds101g .PHONY: optware-nslu2 build-optware-nslu2 ifneq ($(HOST_MACHINE),armeb) @@ -211,6 +211,22 @@ else optware-wl500g build-optware-wl500g: endif +.PHONY: optware-ds101 build-optware-ds101 +ifneq ($(HOST_MACHINE),armeb) +optware-ds101 build-optware-ds101: optware/ds101/.configured + ( cd optware/ds101 ; ${MAKE} autoclean ; ${MAKE} ) +else +optware-ds101 build-optware-ds101: +endif + +.PHONY: optware-ds101g build-optware-ds101g +ifneq ($(HOST_MACHINE),armeb) +optware-ds101g build-optware-ds101g: optware/ds101g/.configured + ( cd optware/ds101g ; ${MAKE} autoclean ; ${MAKE} ) +else +optware-ds101g build-optware-ds101g: +endif + openslug-%-beta: update-openslug-%-beta build-openslug-%-beta upload-openslug-%-beta echo "$@ completed" @@ -241,6 +257,31 @@ setup-openembedded openembedded/.configured: MT/.configured [ -e openembedded/conf/machine/nslu2.conf ] || monotone co -b org.openembedded.dev openembedded touch openembedded/.configured +.PHONY: setup-optware +setup-optware optware/.configured: MT/.configured + [ -e downloads ] || ( mkdir -p downloads ) + [ -e optware/Makefile ] || ( cvs -q -d :pserver:anonymous@cvs.sf.net:/cvsroot/nslu co -d optware unslung ) + touch optware/.configured + +# This pattern rule has to come before the subsequent %/.configured openembedded pattern rule. +optware/%/.configured: optware/.configured + [ -e optware/$*/Makefile ] || ( \ + mkdir -p optware/$* ; \ + echo "OPTWARE_TARGET=$*" > optware/$*/Makefile ; \ + echo "include ../Makefile" >> optware/$*/Makefile ; \ + ln -s ../../downloads optware/$*/downloads ; \ + ln -s ../make optware/$*/make ; \ + ln -s ../scripts optware/$*/scripts ; \ + ln -s ../sources optware/$*/sources ; \ + ) + touch optware/$*/.configured + +.PHONY: setup-optware-developer +setup-optware-developer: + [ ! -e optware ] || ( mv optware optware-user ) + cvs -q -d :ext:${CVS_USER}@cvs.sf.net:/cvsroot/nslu co -d optware unslung + ${MAKE} setup-optware + .PHONY: setup-unslung setup-unslung-binary-kernel setup-openslug setup-ucslugc setup-unslung setup-unslung-binary-kernel setup-openslug setup-ucslugc: setup-%: MT/.configured rm -rf $*/.configured @@ -272,42 +313,6 @@ setup-unslung setup-unslung-binary-kernel setup-openslug setup-ucslugc: setup-%: rm -rf $*/tmp/cache touch $*/.configured -.PHONY: setup-optware -setup-optware optware/.configured: MT/.configured - [ -e downloads ] || ( mkdir -p downloads ) - [ -e optware/Makefile ] || ( cvs -q -d :pserver:anonymous@cvs.sf.net:/cvsroot/nslu co -d optware unslung ) - touch optware/.configured - -optware/nslu2/.configured: optware/.configured - [ -e optware/nslu2/Makefile ] || ( \ - mkdir -p optware/nslu2 ; \ - echo "OPTWARE_TARGET=nslu2" > optware/nslu2/Makefile ; \ - echo "include ../Makefile" >> optware/nslu2/Makefile ; \ - ln -s ../../downloads optware/nslu2/downloads ; \ - ln -s ../make optware/nslu2/make ; \ - ln -s ../scripts optware/nslu2/scripts ; \ - ln -s ../sources optware/nslu2/sources ; \ - ) - touch optware/nslu2/.configured - -optware/wl500g/.configured: optware/.configured - [ -e optware/wl500g/Makefile ] || ( \ - mkdir -p optware/wl500g ; \ - echo "OPTWARE_TARGET=wl500g" > optware/wl500g/Makefile ; \ - echo "include ../Makefile" >> optware/wl500g/Makefile ; \ - ln -s ../../downloads optware/wl500g/downloads ; \ - ln -s ../make optware/wl500g/make ; \ - ln -s ../scripts optware/wl500g/scripts ; \ - ln -s ../sources optware/wl500g/sources ; \ - ) - touch optware/wl500g/.configured - -.PHONY: setup-optware-developer -setup-optware-developer: - [ ! -e optware ] || ( mv optware optware-user ) - cvs -q -d :ext:${CVS_USER}@cvs.sf.net:/cvsroot/nslu co -d optware unslung - ${MAKE} setup-optware - .PHONY: setup-slugimage-developer setup-slugimage-developer: cvs -q -d :ext:${CVS_USER}@cvs.sf.net:/cvsroot/nslu co slugimage @@ -515,15 +520,11 @@ clobber-ucslugc: [ ! -e ucslugc/Makefile ] || ( cd ucslugc ; ${MAKE} clobber ) .PHONY: clobber-optware -clobber-optware: clobber-optware-nslu2 clobber-optware-wl500g - -.PHONY: clobber-optware-nslu2 -clobber-optware-nslu2: - [ ! -e optware/nslu2/Makefile ] || ( cd optware/nslu2 ; ${MAKE} distclean ) +clobber-optware: clobber-optware-nslu2 clobber-optware-wl500g clobber-optware-ds101 clobber-optware-ds101g -.PHONY: clobber-optware-wl500g -clobber-optware-wl500g: - [ ! -e optware/wl500g/Makefile ] || ( cd optware/wl500g ; ${MAKE} distclean ) +.PHONY: clobber-optware-% +clobber-optware-%: + [ ! -e optware/$*/Makefile ] || ( cd optware/$* ; ${MAKE} distclean ) .PHONY: distclean-master distclean-master: @@ -599,6 +600,8 @@ endif ifneq ($(HOST_MACHINE),armeb) - ${MAKE} build-optware-nslu2 upload-optware-nslu2 || echo -n " optware/nslu2" >> builderrors.log - ${MAKE} build-optware-wl500g upload-optware-wl500g || echo -n " optware/wl500g" >> builderrors.log +# - ${MAKE} build-optware-ds101 upload-optware-ds101 || echo -n " optware/ds101" >> builderrors.log +# - ${MAKE} build-optware-ds101g upload-optware-ds101g || echo -n " optware/ds101g" >> builderrors.log else ifeq ($(HOST_FIRMWARE),Unslung) - ${MAKE} build-optware-nslu2 upload-optware-nslu2 || echo -n " optware/nslu2" >> builderrors.log @@ -623,7 +626,8 @@ endif .PHONY: upload ifneq ($(HOST_MACHINE),armeb) -upload: upload-openslug upload-ucslugc upload-unslung-modules upload-optware-nslu2 upload-optware-wl500g upload-sources +upload: upload-openslug upload-ucslugc upload-unslung-modules \ + upload-optware-nslu2 upload-optware-wl500g upload-optware-ds101 upload-optware-ds101g upload-sources else ifeq ($(HOST_FIRMWARE),OpenSlug) upload: upload-openslug upload-sources @@ -699,13 +703,13 @@ else ssh nslu2@sources.nslu2-linux.org mirror/sync-packages-clean optware/nslu2/native/unstable endif -.PHONY: upload-optware-wl500g -upload-optware-wl500g: optware/wl500g/.configured - rsync -vlrt --exclude='Packages*' optware/wl500g/packages/ slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/optware/wl500g/cross/unstable/ - ssh nslu2@sources.nslu2-linux.org mirror/sync-ipk optware/wl500g/cross/unstable - rsync -vl optware/wl500g/packages/Packages* slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/optware/wl500g/cross/unstable/ - rsync -vlrt --delete optware/wl500g/packages/ slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/optware/wl500g/cross/unstable/ - ssh nslu2@sources.nslu2-linux.org mirror/sync-packages-clean optware/wl500g/cross/unstable +.PHONY: upload-optware-% +upload-optware-%: optware/%/.configured + rsync -vlrt --exclude='Packages*' optware/$*/packages/ slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/optware/$*/cross/unstable/ + ssh nslu2@sources.nslu2-linux.org mirror/sync-ipk optware/$*/cross/unstable + rsync -vl optware/$*/packages/Packages* slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/optware/$*/cross/unstable/ + rsync -vlrt --delete optware/$*/packages/ slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/optware/$*/cross/unstable/ + ssh nslu2@sources.nslu2-linux.org mirror/sync-packages-clean optware/$*/cross/unstable .PHONY: upload-sources upload-sources: -- cgit v1.2.3 From e10e3278e52e899dece2624b59da3bdf51817e24 Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Wed, 31 Aug 2005 01:41:01 +0000 Subject: Enabled ds101 and ds101g+ autobuilds. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 16344827f1..bc4029ae02 100644 --- a/Makefile +++ b/Makefile @@ -600,8 +600,8 @@ endif ifneq ($(HOST_MACHINE),armeb) - ${MAKE} build-optware-nslu2 upload-optware-nslu2 || echo -n " optware/nslu2" >> builderrors.log - ${MAKE} build-optware-wl500g upload-optware-wl500g || echo -n " optware/wl500g" >> builderrors.log -# - ${MAKE} build-optware-ds101 upload-optware-ds101 || echo -n " optware/ds101" >> builderrors.log -# - ${MAKE} build-optware-ds101g upload-optware-ds101g || echo -n " optware/ds101g" >> builderrors.log + - ${MAKE} build-optware-ds101 upload-optware-ds101 || echo -n " optware/ds101" >> builderrors.log + - ${MAKE} build-optware-ds101g upload-optware-ds101g || echo -n " optware/ds101g" >> builderrors.log else ifeq ($(HOST_FIRMWARE),Unslung) - ${MAKE} build-optware-nslu2 upload-optware-nslu2 || echo -n " optware/nslu2" >> builderrors.log -- cgit v1.2.3 From 132345792c8a91ca1640b5e1962e0bc2530d41ea Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Wed, 31 Aug 2005 10:45:16 +0000 Subject: Turned off ds101g autobuilds, cause the toolchain build fails. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index bc4029ae02..57f9e040ad 100644 --- a/Makefile +++ b/Makefile @@ -600,7 +600,7 @@ endif ifneq ($(HOST_MACHINE),armeb) - ${MAKE} build-optware-nslu2 upload-optware-nslu2 || echo -n " optware/nslu2" >> builderrors.log - ${MAKE} build-optware-wl500g upload-optware-wl500g || echo -n " optware/wl500g" >> builderrors.log - - ${MAKE} build-optware-ds101 upload-optware-ds101 || echo -n " optware/ds101" >> builderrors.log +# - ${MAKE} build-optware-ds101 upload-optware-ds101 || echo -n " optware/ds101" >> builderrors.log - ${MAKE} build-optware-ds101g upload-optware-ds101g || echo -n " optware/ds101g" >> builderrors.log else ifeq ($(HOST_FIRMWARE),Unslung) -- cgit v1.2.3 From 63bd6bf58d7fe049e837f3d23f378535a39f5a86 Mon Sep 17 00:00:00 2001 From: Oyvind Repvik Date: Sat, 3 Sep 2005 17:14:20 +0000 Subject: Re-enable ds101 target --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 57f9e040ad..bc4029ae02 100644 --- a/Makefile +++ b/Makefile @@ -600,7 +600,7 @@ endif ifneq ($(HOST_MACHINE),armeb) - ${MAKE} build-optware-nslu2 upload-optware-nslu2 || echo -n " optware/nslu2" >> builderrors.log - ${MAKE} build-optware-wl500g upload-optware-wl500g || echo -n " optware/wl500g" >> builderrors.log -# - ${MAKE} build-optware-ds101 upload-optware-ds101 || echo -n " optware/ds101" >> builderrors.log + - ${MAKE} build-optware-ds101 upload-optware-ds101 || echo -n " optware/ds101" >> builderrors.log - ${MAKE} build-optware-ds101g upload-optware-ds101g || echo -n " optware/ds101g" >> builderrors.log else ifeq ($(HOST_FIRMWARE),Unslung) -- cgit v1.2.3 From 24271df7e941f2bccc7878fb6fcfdfd1f85ab26b Mon Sep 17 00:00:00 2001 From: Oyvind Repvik Date: Sun, 4 Sep 2005 01:33:36 +0000 Subject: Fix up setup-host-ubuntu target --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index bc4029ae02..011c72e901 100644 --- a/Makefile +++ b/Makefile @@ -400,13 +400,15 @@ setup-host-ubuntu: libc6-dev libglib2.0-dev libtool \ m4 make \ patch pkg-config \ - python python-dev python2.4-psyco python2.4 python2.4-dev \ + python python-dev python2.4 python2.4-dev \ sed \ texinfo \ unzip \ subversion \ bzip2 ;\ echo You will have to install monotone separately. See http://venge.net/monotone/ \ + echo To get python2.4-psyco (Recommended to speed up builds), please read \ + echo http://ubuntuguide.org/#extrarepositories \ " -- cgit v1.2.3 From 03717e7f49180d2b582a2c488199e882f7c57c08 Mon Sep 17 00:00:00 2001 From: Oyvind Repvik Date: Sun, 4 Sep 2005 01:36:55 +0000 Subject: setup-host-ubuntu lacked gcc too --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 011c72e901..4f53e0402b 100644 --- a/Makefile +++ b/Makefile @@ -396,7 +396,7 @@ setup-host-ubuntu: cvs \ docbook \ flex \ - g++ gawk gcj gettext \ + gcc g++ gawk gcj gettext \ libc6-dev libglib2.0-dev libtool \ m4 make \ patch pkg-config \ -- cgit v1.2.3 From 0bbb91bbed51820be5339c2577a4d2c7aa8cf68f Mon Sep 17 00:00:00 2001 From: Oyvind Repvik Date: Sun, 4 Sep 2005 03:17:31 +0000 Subject: setup-host-ubuntu lacked texinfo (for makeinfo) --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 4f53e0402b..3d9273fc92 100644 --- a/Makefile +++ b/Makefile @@ -405,6 +405,7 @@ setup-host-ubuntu: texinfo \ unzip \ subversion \ + texinfo \ bzip2 ;\ echo You will have to install monotone separately. See http://venge.net/monotone/ \ echo To get python2.4-psyco (Recommended to speed up builds), please read \ -- cgit v1.2.3 From 3d286d7276a1e7b78941c92b602ab6224245a029 Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Mon, 26 Sep 2005 09:07:48 +0000 Subject: Moved the autobuild targets to a separate script, since normal developers don't run them. --- Makefile | 138 +-------------------------------------------------------------- 1 file changed, 2 insertions(+), 136 deletions(-) diff --git a/Makefile b/Makefile index 3d9273fc92..84b8bde8f3 100644 --- a/Makefile +++ b/Makefile @@ -227,7 +227,7 @@ else optware-ds101g build-optware-ds101g: endif -openslug-%-beta: update-openslug-%-beta build-openslug-%-beta upload-openslug-%-beta +openslug-%-beta: update-openslug-%-beta build-openslug-%-beta echo "$@ completed" build-openslug-2.3-beta: releases/OpenSlug-2.3-beta/.configured @@ -408,7 +408,7 @@ setup-host-ubuntu: texinfo \ bzip2 ;\ echo You will have to install monotone separately. See http://venge.net/monotone/ \ - echo To get python2.4-psyco (Recommended to speed up builds), please read \ + echo To get python2.4-psyco (Recommended to speed up builds), please read \ echo http://ubuntuguide.org/#extrarepositories \ " @@ -573,7 +573,6 @@ push: push-master push-bitbake push-openembedded .PHONY: push-master push-master: update-master monotone push - scp Makefile slug@nugabe.nslu2-linux.org:htdocs/www/Makefile .PHONY: push-bitbake push-bitbake: update-bitbake @@ -585,139 +584,6 @@ push-openembedded: update-openembedded # Targets for use by core team members only -.PHONY: autobuild -autobuild: - date - rm -rf builderrors.log - - ${MAKE} update || echo -n " update" >> builderrors.log -ifneq ($(HOST_MACHINE),armeb) - - ${MAKE} build-openslug upload-openslug || echo -n " openslug" >> builderrors.log - - ${MAKE} build-ucslugc upload-ucslugc || echo -n " ucslugc" >> builderrors.log - - ${MAKE} build-unslung upload-unslung-modules || echo -n " unslung" >> builderrors.log -else -ifeq ($(HOST_FIRMWARE),OpenSlug) - rm -rf openslug/tmp/cache - - ${MAKE} build-openslug upload-openslug || echo -n " openslug" >> builderrors.log -endif -endif -ifneq ($(HOST_MACHINE),armeb) - - ${MAKE} build-optware-nslu2 upload-optware-nslu2 || echo -n " optware/nslu2" >> builderrors.log - - ${MAKE} build-optware-wl500g upload-optware-wl500g || echo -n " optware/wl500g" >> builderrors.log - - ${MAKE} build-optware-ds101 upload-optware-ds101 || echo -n " optware/ds101" >> builderrors.log - - ${MAKE} build-optware-ds101g upload-optware-ds101g || echo -n " optware/ds101g" >> builderrors.log -else -ifeq ($(HOST_FIRMWARE),Unslung) - - ${MAKE} build-optware-nslu2 upload-optware-nslu2 || echo -n " optware/nslu2" >> builderrors.log -endif -endif - - ${MAKE} upload-sources || echo -n " upload-sources" >> builderrors.log - - date - if [ -e builderrors.log ] ; then \ - echo -n "*** Errors during autobuild:" ; \ - cat builderrors.log ; \ - echo " ***" ; \ - if [ -e autobuild.log ] ; then \ - rsync autobuild.log slug@nugabe.nslu2-linux.org:htdocs/logs/buildlogs/autobuild-`hostname`-last.txt ; \ - fi \ - else \ - if [ -e autobuild.log ] ; then \ - ssh slug@nugabe.nslu2-linux.org mv htdocs/logs/buildlogs/autobuild-`hostname`-last.txt htdocs/logs/buildlogs/autobuild-`hostname`-prev.txt ; \ - rsync autobuild.log slug@nugabe.nslu2-linux.org:htdocs/logs/buildlogs/autobuild-`hostname`-last.txt ; \ - fi \ - fi - -.PHONY: upload -ifneq ($(HOST_MACHINE),armeb) -upload: upload-openslug upload-ucslugc upload-unslung-modules \ - upload-optware-nslu2 upload-optware-wl500g upload-optware-ds101 upload-optware-ds101g upload-sources -else -ifeq ($(HOST_FIRMWARE),OpenSlug) -upload: upload-openslug upload-sources -else -ifeq ($(HOST_FIRMWARE),Unslung) -upload: upload-optware-nslu2 upload-sources -else -upload: upload-sources -endif -endif -endif - -.PHONY: upload-openslug -upload-openslug: openslug/.configured - rm -rf openslug/tmp/deploy/ipk/morgue -ifneq ($(HOST_MACHINE),armeb) - rsync -vlrt --exclude='Packages*' openslug/tmp/deploy/ipk/ slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/openslug/cross/unstable/ - ssh nslu2@sources.nslu2-linux.org mirror/sync-ipk openslug/cross/unstable - rsync -vl openslug/tmp/deploy/ipk/Packages* slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/openslug/cross/unstable/ - rsync -vlrt --delete openslug/tmp/deploy/ipk/ slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/openslug/cross/unstable/ - ssh nslu2@sources.nslu2-linux.org mirror/sync-packages-clean openslug/cross/unstable -else - rsync -vlrt --exclude='Packages*' openslug/tmp/deploy/ipk/ slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/openslug/native/unstable/ - ssh nslu2@sources.nslu2-linux.org mirror/sync-ipk openslug/native/unstable - rsync -vl openslug/tmp/deploy/ipk/Packages* slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/openslug/native/unstable/ - rsync -vlrt --delete openslug/tmp/deploy/ipk/ slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/openslug/native/unstable/ - ssh nslu2@sources.nslu2-linux.org mirror/sync-packages-clean openslug/native/unstable -endif - -upload-openslug-%-beta: releases/OpenSlug-%-beta/.configured - rm -rf releases/OpenSlug-$*-beta/tmp/deploy/ipk/morgue - rsync -vlrt --exclude='Packages*' releases/OpenSlug-$*-beta/tmp/deploy/ipk/ slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/openslug/cross/$*-beta/ - ssh nslu2@sources.nslu2-linux.org mirror/sync-ipk openslug/cross/$*-beta - rsync -vl releases/OpenSlug-$*-beta/tmp/deploy/ipk/Packages* slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/openslug/cross/$*-beta/ - rsync -vlrt --delete releases/OpenSlug-$*-beta/tmp/deploy/ipk/ slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/openslug/cross/$*-beta/ - ssh nslu2@sources.nslu2-linux.org mirror/sync-packages-clean openslug/cross/$*-beta - -.PHONY: upload-ucslugc -upload-ucslugc: ucslugc/.configured - rm -rf ucslugc/tmp/deploy/ipk/morgue - rsync -vlrt --exclude='Packages*' ucslugc/tmp/deploy/ipk/ slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/ucslugc/cross/unstable/ - ssh nslu2@sources.nslu2-linux.org mirror/sync-ipk ucslugc/cross/unstable - rsync -vl ucslugc/tmp/deploy/ipk/Packages* slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/ucslugc/cross/unstable/ - rsync -vlrt --delete ucslugc/tmp/deploy/ipk/ slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/ucslugc/cross/unstable/ - ssh nslu2@sources.nslu2-linux.org mirror/sync-packages-clean ucslugc/cross/unstable - -.PHONY: upload-unslung-modules -upload-unslung-modules: unslung/.configured - rm -rf unslung/tmp/deploy/ipk/morgue - scripts/package-strip.pl kernel-module-\* unslung/tmp/deploy/ipk/Packages unslung/tmp/deploy/ipk/Packages.new - mv unslung/tmp/deploy/ipk/Packages.new unslung/tmp/deploy/ipk/Packages - rm -f unslung/tmp/deploy/ipk/Packages.gz - gzip -c unslung/tmp/deploy/ipk/Packages > unslung/tmp/deploy/ipk/Packages.gz - rsync -vlt unslung/tmp/deploy/ipk/kernel-module-* slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/unslung/modules/stable/ - ssh nslu2@sources.nslu2-linux.org mirror/sync-ipk unslung/modules/stable - rsync -vl unslung/tmp/deploy/ipk/Packages* slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/unslung/modules/stable/ - ssh nslu2@sources.nslu2-linux.org mirror/sync-packages-clean unslung/modules/stable -# rsync -vlt --delete unslung/tmp/deploy/ipk/kernel-module-* slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/unslung/modules/stable/ - -.PHONY: upload-optware-nslu2 -upload-optware-nslu2: optware/nslu2/.configured -ifneq ($(HOST_MACHINE),armeb) - rsync -vlrt --exclude='Packages*' optware/nslu2/packages/ slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/optware/nslu2/cross/unstable/ - ssh nslu2@sources.nslu2-linux.org mirror/sync-ipk optware/nslu2/cross/unstable - rsync -vl optware/nslu2/packages/Packages* slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/optware/nslu2/cross/unstable/ - rsync -vlrt --delete optware/nslu2/packages/ slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/optware/nslu2/cross/unstable/ - ssh nslu2@sources.nslu2-linux.org mirror/sync-packages-clean optware/nslu2/cross/unstable -else - rsync -vlrt --exclude='Packages*' optware/nslu2/packages/ slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/optware/nslu2/native/unstable/ - ssh nslu2@sources.nslu2-linux.org mirror/sync-ipk optware/nslu2/native/unstable - rsync -vl optware/nslu2/packages/Packages* slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/optware/nslu2/native/unstable/ - rsync -vlrt --delete optware/nslu2/packages/ slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/optware/nslu2/native/unstable/ - ssh nslu2@sources.nslu2-linux.org mirror/sync-packages-clean optware/nslu2/native/unstable -endif - -.PHONY: upload-optware-% -upload-optware-%: optware/%/.configured - rsync -vlrt --exclude='Packages*' optware/$*/packages/ slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/optware/$*/cross/unstable/ - ssh nslu2@sources.nslu2-linux.org mirror/sync-ipk optware/$*/cross/unstable - rsync -vl optware/$*/packages/Packages* slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/optware/$*/cross/unstable/ - rsync -vlrt --delete optware/$*/packages/ slug@nugabe.nslu2-linux.org:htdocs/ipkg/feeds/optware/$*/cross/unstable/ - ssh nslu2@sources.nslu2-linux.org mirror/sync-packages-clean optware/$*/cross/unstable - -.PHONY: upload-sources -upload-sources: - rsync -vlrt --exclude='ixp400*' downloads/ nslu2@sources.nslu2-linux.org:ipkg/sources/ - .PHONY: import-bitbake import-bitbake: bitbake/.configured mv bitbake bitbake.old -- cgit v1.2.3 From 61582a6aad4cada89081a682c82a456e4d2811eb Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Wed, 28 Sep 2005 08:43:55 +0000 Subject: Added foo-kernel targets --- Makefile | 52 +++++++++++++++++++++++++------------------------- common/openembedded.mk | 4 ++++ 2 files changed, 30 insertions(+), 26 deletions(-) diff --git a/Makefile b/Makefile index 84b8bde8f3..aec0489e3b 100644 --- a/Makefile +++ b/Makefile @@ -70,14 +70,6 @@ else prefetch-unslung: endif -.PHONY: prefetch-unslung-binary-kernel -ifneq ($(HOST_MACHINE),armeb) -prefetch-unslung-binary-kernel: unslung-binary-kernel/.configured bitbake/.configured openembedded/.configured - ( cd unslung-binary-kernel ; ${MAKE} prefetch ) -else -prefetch-unslung-binary-kernel: -endif - .PHONY: prefetch-openslug ifneq ($(HOST_MACHINE),armeb) prefetch-openslug: openslug/.configured bitbake/.configured openembedded/.configured @@ -134,14 +126,6 @@ else unslung build-unslung: endif -.PHONY: unslung-binary-kernel build-unslung-binary-kernel -ifneq ($(HOST_MACHINE),armeb) -unslung-binary-kernel build-unslung-binary-kernel: unslung-binary-kernel/.configured bitbake/.configured openembedded/.configured - ( cd unslung-binary-kernel ; ${MAKE} ) -else -unslung-binary-kernel build-unslung-binary-kernel: -endif - .PHONY: openslug build-openslug ifneq ($(HOST_MACHINE),armeb) openslug build-openslug: openslug/.configured bitbake/.configured openembedded/.configured @@ -187,6 +171,30 @@ else ucslugc-image build-ucslugc-image: endif +.PHONY: unslung-kernel build-unslung-kernel +ifneq ($(HOST_MACHINE),armeb) +unslung-kernel build-unslung-kernel: unslung/.configured bitbake/.configured openembedded/.configured + ( cd unslung ; ${MAKE} kernel) +else +unslung-kernel build-unslung-kernel: +endif + +.PHONY: openslug-kernel build-openslug-kernel +ifneq ($(HOST_MACHINE),armeb) +openslug-kernel build-openslug-kernel: openslug/.configured bitbake/.configured openembedded/.configured + ( cd openslug ; ${MAKE} kernel ) +else +openslug-kernel build-openslug-kernel: +endif + +.PHONY: ucslugc-kernel build-ucslugc-kernel +ifneq ($(HOST_MACHINE),armeb) +ucslugc-kernel build-ucslugc-kernel: ucslugc/.configured bitbake/.configured openembedded/.configured + ( cd ucslugc ; ${MAKE} kernel) +else +ucslugc-kernel build-ucslugc-kernel: +endif + .PHONY: build-optware build-optware: build-optware-nslu2 build-optware-wl500g build-optware-ds101 build-optware-ds101g @@ -282,8 +290,8 @@ setup-optware-developer: cvs -q -d :ext:${CVS_USER}@cvs.sf.net:/cvsroot/nslu co -d optware unslung ${MAKE} setup-optware -.PHONY: setup-unslung setup-unslung-binary-kernel setup-openslug setup-ucslugc -setup-unslung setup-unslung-binary-kernel setup-openslug setup-ucslugc: setup-%: MT/.configured +.PHONY: setup-unslung setup-openslug setup-ucslugc +setup-unslung setup-openslug setup-ucslugc: setup-%: MT/.configured rm -rf $*/.configured ${MAKE} $*/.configured @@ -510,10 +518,6 @@ status-openslug-%-beta: clobber-unslung: [ ! -e unslung/Makefile ] || ( cd unslung ; ${MAKE} clobber ) -.PHONY: clobber-unslung-binary-kernel -clobber-unslung-binary-kernel: - [ ! -e unslung-binary-kernel/Makefile ] || ( cd unslung-binary-kernel ; ${MAKE} clobber ) - .PHONY: clobber-openslug clobber-openslug: [ ! -e openslug/Makefile ] || ( cd openslug ; ${MAKE} clobber ) @@ -545,10 +549,6 @@ distclean-openembedded: distclean-unslung: rm -rf unslung -.PHONY: distclean-unslung-binary-kernel -distclean-unslung-binary-kernel: - rm -rf unslung-binary-kernel - .PHONY: distclean-openslug distclean-openslug: rm -rf openslug diff --git a/common/openembedded.mk b/common/openembedded.mk index bf691ce069..cf452cf721 100644 --- a/common/openembedded.mk +++ b/common/openembedded.mk @@ -25,6 +25,10 @@ distro: $(FIRMWARE_DEPS) image: $(FIRMWARE_DEPS) . ./setup-env; exec ${BITBAKE} $(DISTRO)-image +# The default rule is to build the firmware in an unprotected environment. +kernel: $(FIRMWARE_DEPS) + . ./setup-env; exec ${BITBAKE} virtual/kernel + # This rule clobbers the environment (note that ccache uses '$HOME' by # default, so the cache will end up there). distro-safe: -- cgit v1.2.3 From 7d0a002ab020ee056426dab23a047b1bda765dc6 Mon Sep 17 00:00:00 2001 From: Frans Meulenbroeks Date: Thu, 20 Oct 2005 15:31:59 +0000 Subject: Added 20051016 snapshot (now supports 2.6.14) --- openembedded/.mtn2git_empty | 0 openembedded/packages/.mtn2git_empty | 0 openembedded/packages/pvrusb2-mci/.mtn2git_empty | 0 .../pvrusb2-mci-20051016/.mtn2git_empty | 0 .../pvrusb2-mci-20051016/Makefile.patch | 15 +++++++++++ .../packages/pvrusb2-mci/pvrusb2-mci_20051016.bb | 29 ++++++++++++++++++++++ 6 files changed, 44 insertions(+) create mode 100644 openembedded/.mtn2git_empty create mode 100644 openembedded/packages/.mtn2git_empty create mode 100644 openembedded/packages/pvrusb2-mci/.mtn2git_empty create mode 100644 openembedded/packages/pvrusb2-mci/pvrusb2-mci-20051016/.mtn2git_empty create mode 100644 openembedded/packages/pvrusb2-mci/pvrusb2-mci-20051016/Makefile.patch create mode 100644 openembedded/packages/pvrusb2-mci/pvrusb2-mci_20051016.bb diff --git a/openembedded/.mtn2git_empty b/openembedded/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 diff --git a/openembedded/packages/.mtn2git_empty b/openembedded/packages/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 diff --git a/openembedded/packages/pvrusb2-mci/.mtn2git_empty b/openembedded/packages/pvrusb2-mci/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 diff --git a/openembedded/packages/pvrusb2-mci/pvrusb2-mci-20051016/.mtn2git_empty b/openembedded/packages/pvrusb2-mci/pvrusb2-mci-20051016/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 diff --git a/openembedded/packages/pvrusb2-mci/pvrusb2-mci-20051016/Makefile.patch b/openembedded/packages/pvrusb2-mci/pvrusb2-mci-20051016/Makefile.patch new file mode 100644 index 0000000000..829c741b69 --- /dev/null +++ b/openembedded/packages/pvrusb2-mci/pvrusb2-mci-20051016/Makefile.patch @@ -0,0 +1,15 @@ +--- driver/Makefile- 2005-09-11 13:22:08.000000000 -1000 ++++ driver/Makefile 2005-09-17 01:02:06.341217389 -1000 +@@ -37,10 +37,10 @@ + all: modules + + modules modules_install clean: +- $(MAKE) INSTALL_MOD_DIR=$(INSTALL_MOD_DIR) -C $(KDIR) M=$(shell pwd) $@ ++ $(MAKE) INSTALL_MOD_DIR=$(INSTALL_MOD_DIR) CFLAGS="$(CFLAGS)" -C $(KDIR) M=$(shell pwd) $@ + + install: +- $(MAKE) INSTALL_MOD_DIR=$(INSTALL_MOD_DIR) -C $(KDIR) M=$(shell pwd) modules_install ++ $(MAKE) INSTALL_MOD_DIR=$(INSTALL_MOD_DIR) CFLAGS="$(CFLAGS)" -C $(KDIR) M=$(shell pwd) modules_install + + else + diff --git a/openembedded/packages/pvrusb2-mci/pvrusb2-mci_20051016.bb b/openembedded/packages/pvrusb2-mci/pvrusb2-mci_20051016.bb new file mode 100644 index 0000000000..6b27baf17b --- /dev/null +++ b/openembedded/packages/pvrusb2-mci/pvrusb2-mci_20051016.bb @@ -0,0 +1,29 @@ +DESCRIPTION = "Driver for the Hauppauge WinTV PVR USB2" +PRIORITY = "optional" +SECTION = "kernel/modules" +MAINTAINER = "dyoung " +LICENSE = "GPL" +PR = "r0" +# It in fact requires these modules, but for now is using the local ones. +# RDEPENDS = "kernel-module-tveeprom kernel-module-tuner kernel-module-msp3400 kernel-module-saa7115" + +SRC_URI = "http://www.isely.net/downloads/pvrusb2-mci-20051016.tar.bz2 \ + file://Makefile.patch;patch=1" + +S = "${WORKDIR}/pvrusb2-mci-20051016/driver" + +inherit module + +CFLAGS = "'-I${KERNEL_SOURCE}/include' \ + '-D__LINUX_ARM_ARCH__=5'" + +EXTRA_OEMAKE = "'CFLAGS=${CFLAGS}' \ + 'CC=${KERNEL_CC}' \ + 'LD=${KERNEL_LD}' \ + 'KDIR=${STAGING_KERNEL_DIR}'" + +do_install() { + install -d ${D}${base_libdir}/modules/${KERNEL_VERSION}/kernel/drivers/usb/media + install -m 0644 *${KERNEL_OBJECT_SUFFIX} ${D}${base_libdir}/modules/${KERNEL_VERSION}/kernel/drivers/usb/media +} + -- cgit v1.2.3 From 7adabd7dffa510d614b4a681c912909b354c1ed6 Mon Sep 17 00:00:00 2001 From: Frans Meulenbroeks Date: Sat, 5 Nov 2005 21:33:13 +0000 Subject: pvrusb2-mci: also pass TARGET_CFLAGS to the make command in order to get all comnpiler flags. (actually this is not really satisfying as it should pick this up from the kernel config, but it doesn't and despite several hours of debugging I did not manage to find the cause. This patch works around the problem) --- openembedded/packages/pvrusb2-mci/pvrusb2-mci-20051016/Makefile.patch | 4 ++-- openembedded/packages/pvrusb2-mci/pvrusb2-mci_20051016.bb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/openembedded/packages/pvrusb2-mci/pvrusb2-mci-20051016/Makefile.patch b/openembedded/packages/pvrusb2-mci/pvrusb2-mci-20051016/Makefile.patch index 829c741b69..b79c42e2c5 100644 --- a/openembedded/packages/pvrusb2-mci/pvrusb2-mci-20051016/Makefile.patch +++ b/openembedded/packages/pvrusb2-mci/pvrusb2-mci-20051016/Makefile.patch @@ -5,11 +5,11 @@ modules modules_install clean: - $(MAKE) INSTALL_MOD_DIR=$(INSTALL_MOD_DIR) -C $(KDIR) M=$(shell pwd) $@ -+ $(MAKE) INSTALL_MOD_DIR=$(INSTALL_MOD_DIR) CFLAGS="$(CFLAGS)" -C $(KDIR) M=$(shell pwd) $@ ++ $(MAKE) INSTALL_MOD_DIR=$(INSTALL_MOD_DIR) CFLAGS="$(CFLAGS) $(TARGET_CFLAGS)" -C $(KDIR) M=$(shell pwd) $@ install: - $(MAKE) INSTALL_MOD_DIR=$(INSTALL_MOD_DIR) -C $(KDIR) M=$(shell pwd) modules_install -+ $(MAKE) INSTALL_MOD_DIR=$(INSTALL_MOD_DIR) CFLAGS="$(CFLAGS)" -C $(KDIR) M=$(shell pwd) modules_install ++ $(MAKE) INSTALL_MOD_DIR=$(INSTALL_MOD_DIR) CFLAGS="$(CFLAGS) $(TARGET_CFLAGS)" -C $(KDIR) M=$(shell pwd) modules_install else diff --git a/openembedded/packages/pvrusb2-mci/pvrusb2-mci_20051016.bb b/openembedded/packages/pvrusb2-mci/pvrusb2-mci_20051016.bb index 6b27baf17b..bd3362c730 100644 --- a/openembedded/packages/pvrusb2-mci/pvrusb2-mci_20051016.bb +++ b/openembedded/packages/pvrusb2-mci/pvrusb2-mci_20051016.bb @@ -3,7 +3,7 @@ PRIORITY = "optional" SECTION = "kernel/modules" MAINTAINER = "dyoung " LICENSE = "GPL" -PR = "r0" +PR = "r1" # It in fact requires these modules, but for now is using the local ones. # RDEPENDS = "kernel-module-tveeprom kernel-module-tuner kernel-module-msp3400 kernel-module-saa7115" -- cgit v1.2.3 From 6229c268c24c9516841060ea34c483c84cd6cd82 Mon Sep 17 00:00:00 2001 From: Frans Meulenbroeks Date: Sat, 26 Nov 2005 19:33:30 +0000 Subject: pvrusb2-mci: added release 20051113 --- openslug/.mtn2git_empty | 0 openslug/openembedded/.mtn2git_empty | 0 openslug/openembedded/packages/.mtn2git_empty | 0 .../packages/pvrusb2-mci/.mtn2git_empty | 0 .../pvrusb2-mci-20051113/.mtn2git_empty | 0 .../pvrusb2-mci-20051113/Makefile.patch | 15 ++++++++ .../packages/pvrusb2-mci/pvrusb2-mci_20051113.bb | 41 ++++++++++++++++++++++ 7 files changed, 56 insertions(+) create mode 100644 openslug/.mtn2git_empty create mode 100644 openslug/openembedded/.mtn2git_empty create mode 100644 openslug/openembedded/packages/.mtn2git_empty create mode 100644 openslug/openembedded/packages/pvrusb2-mci/.mtn2git_empty create mode 100644 openslug/openembedded/packages/pvrusb2-mci/pvrusb2-mci-20051113/.mtn2git_empty create mode 100644 openslug/openembedded/packages/pvrusb2-mci/pvrusb2-mci-20051113/Makefile.patch create mode 100644 openslug/openembedded/packages/pvrusb2-mci/pvrusb2-mci_20051113.bb diff --git a/openslug/.mtn2git_empty b/openslug/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 diff --git a/openslug/openembedded/.mtn2git_empty b/openslug/openembedded/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 diff --git a/openslug/openembedded/packages/.mtn2git_empty b/openslug/openembedded/packages/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 diff --git a/openslug/openembedded/packages/pvrusb2-mci/.mtn2git_empty b/openslug/openembedded/packages/pvrusb2-mci/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 diff --git a/openslug/openembedded/packages/pvrusb2-mci/pvrusb2-mci-20051113/.mtn2git_empty b/openslug/openembedded/packages/pvrusb2-mci/pvrusb2-mci-20051113/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 diff --git a/openslug/openembedded/packages/pvrusb2-mci/pvrusb2-mci-20051113/Makefile.patch b/openslug/openembedded/packages/pvrusb2-mci/pvrusb2-mci-20051113/Makefile.patch new file mode 100644 index 0000000000..b79c42e2c5 --- /dev/null +++ b/openslug/openembedded/packages/pvrusb2-mci/pvrusb2-mci-20051113/Makefile.patch @@ -0,0 +1,15 @@ +--- driver/Makefile- 2005-09-11 13:22:08.000000000 -1000 ++++ driver/Makefile 2005-09-17 01:02:06.341217389 -1000 +@@ -37,10 +37,10 @@ + all: modules + + modules modules_install clean: +- $(MAKE) INSTALL_MOD_DIR=$(INSTALL_MOD_DIR) -C $(KDIR) M=$(shell pwd) $@ ++ $(MAKE) INSTALL_MOD_DIR=$(INSTALL_MOD_DIR) CFLAGS="$(CFLAGS) $(TARGET_CFLAGS)" -C $(KDIR) M=$(shell pwd) $@ + + install: +- $(MAKE) INSTALL_MOD_DIR=$(INSTALL_MOD_DIR) -C $(KDIR) M=$(shell pwd) modules_install ++ $(MAKE) INSTALL_MOD_DIR=$(INSTALL_MOD_DIR) CFLAGS="$(CFLAGS) $(TARGET_CFLAGS)" -C $(KDIR) M=$(shell pwd) modules_install + + else + diff --git a/openslug/openembedded/packages/pvrusb2-mci/pvrusb2-mci_20051113.bb b/openslug/openembedded/packages/pvrusb2-mci/pvrusb2-mci_20051113.bb new file mode 100644 index 0000000000..5ac677e329 --- /dev/null +++ b/openslug/openembedded/packages/pvrusb2-mci/pvrusb2-mci_20051113.bb @@ -0,0 +1,41 @@ +DESCRIPTION = "Driver for the Hauppauge WinTV PVR USB2" +PRIORITY = "optional" +SECTION = "kernel/modules" +MAINTAINER = "dyoung " +LICENSE = "GPL" +PR = "r0" +# It in fact requires these modules, but for now is using the local ones. +# RDEPENDS = "kernel-module-tveeprom kernel-module-tuner kernel-module-msp3400 kernel-module-saa7115" + +SRC_URI = "http://www.isely.net/downloads/pvrusb2-mci-20051113.tar.bz2" + +#SRC_URI = "http://www.isely.net/downloads/pvrusb2-mci-20051113.tar.bz2 \ +# file://Makefile.patch;patch=1" + +S = "${WORKDIR}/pvrusb2-mci-20051113" + +inherit module + +CFLAGS = "'-I${KERNEL_SOURCE}/include' \ + '-D__LINUX_ARM_ARCH__=5'" + +EXTRA_OEMAKE = "'CFLAGS=${CFLAGS}' \ + 'CC=${KERNEL_CC}' \ + 'LD=${KERNEL_LD}' \ + 'KDIR=${STAGING_KERNEL_DIR}'" + +export TARGET_LDFLAGS = "-L${STAGING_DIR}/${TARGET_SYS}/lib \ + -rpath-link ${STAGING_DIR}/${TARGET_SYS}/lib" + + +do_compile() { + cd ivtv; oe_runmake + cd ../driver; oe_runmake +} + +do_install() { + install -d ${D}${base_libdir}/modules/${KERNEL_VERSION}/kernel/drivers/usb/media + install -m 0644 ivtv/*${KERNEL_OBJECT_SUFFIX} ${D}${base_libdir}/modules/${KERNEL_VERSION}/kernel/drivers/usb/media + install -m 0644 driver/*${KERNEL_OBJECT_SUFFIX} ${D}${base_libdir}/modules/${KERNEL_VERSION}/kernel/drivers/usb/media +} + -- cgit v1.2.3 From 0dd6ab7a56866cbedbcba43115530ff9e42b86e5 Mon Sep 17 00:00:00 2001 From: Frans Meulenbroeks Date: Sat, 26 Nov 2005 23:04:34 +0000 Subject: cdstatus created package (rel 0.96.05) --- .../openembedded/packages/cdstatus/.mtn2git_empty | 0 .../packages/cdstatus/cdstatus-0.96.05.bb | 25 ++++ .../cdstatus/cdstatus-0.96.05/.mtn2git_empty | 0 .../cdstatus/cdstatus-0.96.05/cdstatus.patch | 131 +++++++++++++++++++++ 4 files changed, 156 insertions(+) create mode 100644 openslug/openembedded/packages/cdstatus/.mtn2git_empty create mode 100644 openslug/openembedded/packages/cdstatus/cdstatus-0.96.05.bb create mode 100644 openslug/openembedded/packages/cdstatus/cdstatus-0.96.05/.mtn2git_empty create mode 100644 openslug/openembedded/packages/cdstatus/cdstatus-0.96.05/cdstatus.patch diff --git a/openslug/openembedded/packages/cdstatus/.mtn2git_empty b/openslug/openembedded/packages/cdstatus/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 diff --git a/openslug/openembedded/packages/cdstatus/cdstatus-0.96.05.bb b/openslug/openembedded/packages/cdstatus/cdstatus-0.96.05.bb new file mode 100644 index 0000000000..1ae728f836 --- /dev/null +++ b/openslug/openembedded/packages/cdstatus/cdstatus-0.96.05.bb @@ -0,0 +1,25 @@ +# cdstatus OE build file + +PR="r0" +LICENSE="GPL" +HOMEPAGE = "http://cdstatus.sourceforge.net/" +FILES_${PN} += ${datadir}/cdstatus.cfg + +SRC_URI="${SOURCEFORGE_MIRROR}/cdstatus/cdstatus-0.96.05.tar.gz \ + file://cdstatus.patch;patch=1" + +S="${WORKDIR}/cdstatus-0.96.05" + +inherit autotools + +TARGET_LDFLAGS="" + +do_install() { + install -d 0755 ${D}/${bindir} + install -d 0755 ${D}/${datadir} + install -d 0755 ${D}/${mandir} + install -m 0755 src/cdstatus ${D}/${bindir} + install -m 0644 cdstatus.cfg ${D}/${datadir} + install -m 0644 cdstatus.1 ${D}/${mandir} + +} diff --git a/openslug/openembedded/packages/cdstatus/cdstatus-0.96.05/.mtn2git_empty b/openslug/openembedded/packages/cdstatus/cdstatus-0.96.05/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 diff --git a/openslug/openembedded/packages/cdstatus/cdstatus-0.96.05/cdstatus.patch b/openslug/openembedded/packages/cdstatus/cdstatus-0.96.05/cdstatus.patch new file mode 100644 index 0000000000..913cd721e0 --- /dev/null +++ b/openslug/openembedded/packages/cdstatus/cdstatus-0.96.05/cdstatus.patch @@ -0,0 +1,131 @@ +*** cdstatus-0.96.05/src/cdstatus.c.orig 2005-11-26 16:23:27.000000000 +0100 +--- cdstatus-0.96.05/src/cdstatus.c 2005-11-26 19:06:57.000000000 +0100 +*************** +*** 436,441 **** +--- 436,501 ---- + return 0; + } + ++ /* following code copied from ++ http://www.gamedev.net/reference/articles/article2091.asp ++ it has been slightly modified as we did not have a reason to output ++ big endian or float ++ */ ++ static short ShortSwap( short s ) ++ { ++ unsigned char b1, b2; ++ ++ b1 = s & 255; ++ b2 = (s >> 8) & 255; ++ ++ return (b1 << 8) + b2; ++ } ++ ++ static short ShortNoSwap( short s ) ++ { ++ return s; ++ } ++ ++ static int LongSwap (int i) ++ { ++ unsigned char b1, b2, b3, b4; ++ ++ b1 = i & 255; ++ b2 = ( i >> 8 ) & 255; ++ b3 = ( i>>16 ) & 255; ++ b4 = ( i>>24 ) & 255; ++ ++ return ((int)b1 << 24) + ((int)b2 << 16) + ((int)b3 << 8) + b4; ++ } ++ ++ static int LongNoSwap( int i ) ++ { ++ return i; ++ } ++ ++ static short (*LittleShort) ( short s ); ++ static int (*LittleLong) ( int i ); ++ ++ static void InitEndian( void ) ++ { ++ char SwapTest[2] = { 1, 0 }; ++ ++ if( *(short *) SwapTest == 1 ) ++ { ++ // little endian ++ //set func pointers to correct funcs ++ LittleShort = ShortNoSwap; ++ LittleLong = LongNoSwap; ++ } ++ else ++ { ++ // big endian ++ LittleShort = ShortSwap; ++ LittleLong = LongSwap; ++ } ++ } ++ /* end of copied code */ ++ + static void writeWavHeader(unsigned int readframes, FILE * audio_out) + { + long int chunksize; +*************** +*** 456,478 **** + + wavHeader wHeader; + + /* "RIFF" */ +! wHeader.RIFF_header = 0x46464952; + + chunksize = readframes * CD_FRAMESIZE_RAW; +! wHeader.total_size = (int32_t)(chunksize + sizeof(wavHeader)); + + /* "WAVEfmt " */ +! wHeader.WAVE = 0x45564157; +! wHeader.fmt = 0x20746D66; + +! wHeader.subchunk_size = 16; +! wHeader.audio_format = 1; +! wHeader.number_channels = 2; +! wHeader.sampling_rate = 44100; +! wHeader.byte_rate = 176400; +! wHeader.block_align = 4; +! wHeader.bits_per_sample = 16; + + if(fwrite((const void *) &wHeader, sizeof(wavHeader), (size_t) 1, audio_out)!=1) + { +--- 516,539 ---- + + wavHeader wHeader; + ++ InitEndian(); + /* "RIFF" */ +! wHeader.RIFF_header = LittleLong(0x46464952); + + chunksize = readframes * CD_FRAMESIZE_RAW; +! wHeader.total_size = LittleLong((int32_t)(chunksize + sizeof(wavHeader))); + + /* "WAVEfmt " */ +! wHeader.WAVE = LittleLong(0x45564157); +! wHeader.fmt = LittleLong(0x20746D66); + +! wHeader.subchunk_size = LittleLong(16); +! wHeader.audio_format = LittleShort(1); +! wHeader.number_channels = LittleShort(2); +! wHeader.sampling_rate = LittleLong(44100); +! wHeader.byte_rate = LittleLong(176400); +! wHeader.block_align = LittleShort(4); +! wHeader.bits_per_sample = LittleShort(16); + + if(fwrite((const void *) &wHeader, sizeof(wavHeader), (size_t) 1, audio_out)!=1) + { +*************** +*** 492,497 **** +--- 553,559 ---- + } + exit(EXIT_FAILURE); + } ++ chunksize = LittleLong(chunksize); + if(fwrite((const void *) &chunksize, sizeof(long int), (size_t) 1, audio_out)!=1) + { + perror("Error writing wav file chunksize header"); -- cgit v1.2.3 From 67e02356abe26ec5c8fd4cf5b183a52f2631092e Mon Sep 17 00:00:00 2001 From: Frans Meulenbroeks Date: Tue, 29 Nov 2005 08:20:29 +0000 Subject: cdstatus: added unneeded definition of TARGET_LDFLAGS in .bb file --- packages/cdstatus/cdstatus-0.96.05.bb | 4 +--- packages/ixp4xx/ixp4xx-csr_2.1.bb | 28 ++++++++++++++-------------- 2 files changed, 15 insertions(+), 17 deletions(-) diff --git a/packages/cdstatus/cdstatus-0.96.05.bb b/packages/cdstatus/cdstatus-0.96.05.bb index 1ae728f836..a2b3a0484a 100644 --- a/packages/cdstatus/cdstatus-0.96.05.bb +++ b/packages/cdstatus/cdstatus-0.96.05.bb @@ -1,6 +1,6 @@ # cdstatus OE build file -PR="r0" +PR="r1" LICENSE="GPL" HOMEPAGE = "http://cdstatus.sourceforge.net/" FILES_${PN} += ${datadir}/cdstatus.cfg @@ -12,8 +12,6 @@ S="${WORKDIR}/cdstatus-0.96.05" inherit autotools -TARGET_LDFLAGS="" - do_install() { install -d 0755 ${D}/${bindir} install -d 0755 ${D}/${datadir} diff --git a/packages/ixp4xx/ixp4xx-csr_2.1.bb b/packages/ixp4xx/ixp4xx-csr_2.1.bb index f8b29f11f1..4b3482c838 100644 --- a/packages/ixp4xx/ixp4xx-csr_2.1.bb +++ b/packages/ixp4xx/ixp4xx-csr_2.1.bb @@ -89,20 +89,20 @@ do_stage () { # Since Module.symvers in the kernel staging directory doesn't include # the symbols from ixp400.o we need to add them to another file for # the ixp400-eth build - rm -f '${STAGING_KERNEL_DIR}/ixp400-csr.symvers' - . '${KCONFIG_FILE}' - if '${STAGING_KERNEL_DIR}/scripts/mod/modpost' \ - ${CONFIG_MODVERSIONS:+-m} \ - ${CONFIG_MODULE_SRCVERSION_ALL:+-a} \ - -i '${STAGING_KERNEL_DIR}/Module.symvers' \ - -o '${STAGING_KERNEL_DIR}/ixp400-csr.symvers' \ - ${MAKE_TARGETS} >&2 | egrep . - then - echo "MODPOST errors - see above" - return 1 - else - return 0 - fi +# rm -f '${STAGING_KERNEL_DIR}/ixp400-csr.symvers' +# . '${KCONFIG_FILE}' +# if '${STAGING_KERNEL_DIR}/scripts/mod/modpost' \ +# ${CONFIG_MODVERSIONS:+-m} \ +# ${CONFIG_MODULE_SRCVERSION_ALL:+-a} \ +# -i '${STAGING_KERNEL_DIR}/Module.symvers' \ +# -o '${STAGING_KERNEL_DIR}/ixp400-csr.symvers' \ +# ${MAKE_TARGETS} >&2 | egrep . +# then +# echo "MODPOST errors - see above" +# return 1 +# else +# return 0 +# fi } PACKAGES = "${PN}" -- cgit v1.2.3 From fe3eab8f4b97b657330f493a774096ed44ad7866 Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Fri, 25 Nov 2005 16:10:41 +0000 Subject: Fixed eFfeM's mess by removing the nslu2-linux files that he added to the wrong monotone branch. --- Makefile | 595 --------------------- common/.mtn2git_empty | 0 common/conf/.mtn2git_empty | 0 common/conf/local.conf.sample | 45 -- common/conf/site.conf | 43 -- common/openembedded.mk | 80 --- common/setup-env | 46 -- openembedded/.mtn2git_empty | 0 openembedded/packages/.mtn2git_empty | 0 openembedded/packages/pvrusb2-mci/.mtn2git_empty | 0 .../pvrusb2-mci-20051016/.mtn2git_empty | 0 .../pvrusb2-mci-20051016/Makefile.patch | 15 - .../packages/pvrusb2-mci/pvrusb2-mci_20051016.bb | 29 - openslug/.mtn2git_empty | 0 openslug/openembedded/.mtn2git_empty | 0 openslug/openembedded/packages/.mtn2git_empty | 0 .../openembedded/packages/cdstatus/.mtn2git_empty | 0 .../packages/cdstatus/cdstatus-0.96.05.bb | 25 - .../cdstatus/cdstatus-0.96.05/.mtn2git_empty | 0 .../cdstatus/cdstatus-0.96.05/cdstatus.patch | 131 ----- .../packages/pvrusb2-mci/.mtn2git_empty | 0 .../pvrusb2-mci-20051113/.mtn2git_empty | 0 .../pvrusb2-mci-20051113/Makefile.patch | 15 - .../packages/pvrusb2-mci/pvrusb2-mci_20051113.bb | 41 -- scripts/.mtn2git_empty | 0 scripts/package-strip.pl | 28 - 26 files changed, 1093 deletions(-) delete mode 100644 Makefile delete mode 100644 common/.mtn2git_empty delete mode 100644 common/conf/.mtn2git_empty delete mode 100644 common/conf/local.conf.sample delete mode 100644 common/conf/site.conf delete mode 100644 common/openembedded.mk delete mode 100644 common/setup-env delete mode 100644 openembedded/.mtn2git_empty delete mode 100644 openembedded/packages/.mtn2git_empty delete mode 100644 openembedded/packages/pvrusb2-mci/.mtn2git_empty delete mode 100644 openembedded/packages/pvrusb2-mci/pvrusb2-mci-20051016/.mtn2git_empty delete mode 100644 openembedded/packages/pvrusb2-mci/pvrusb2-mci-20051016/Makefile.patch delete mode 100644 openembedded/packages/pvrusb2-mci/pvrusb2-mci_20051016.bb delete mode 100644 openslug/.mtn2git_empty delete mode 100644 openslug/openembedded/.mtn2git_empty delete mode 100644 openslug/openembedded/packages/.mtn2git_empty delete mode 100644 openslug/openembedded/packages/cdstatus/.mtn2git_empty delete mode 100644 openslug/openembedded/packages/cdstatus/cdstatus-0.96.05.bb delete mode 100644 openslug/openembedded/packages/cdstatus/cdstatus-0.96.05/.mtn2git_empty delete mode 100644 openslug/openembedded/packages/cdstatus/cdstatus-0.96.05/cdstatus.patch delete mode 100644 openslug/openembedded/packages/pvrusb2-mci/.mtn2git_empty delete mode 100644 openslug/openembedded/packages/pvrusb2-mci/pvrusb2-mci-20051113/.mtn2git_empty delete mode 100644 openslug/openembedded/packages/pvrusb2-mci/pvrusb2-mci-20051113/Makefile.patch delete mode 100644 openslug/openembedded/packages/pvrusb2-mci/pvrusb2-mci_20051113.bb delete mode 100644 scripts/.mtn2git_empty delete mode 100644 scripts/package-strip.pl diff --git a/Makefile b/Makefile deleted file mode 100644 index aec0489e3b..0000000000 --- a/Makefile +++ /dev/null @@ -1,595 +0,0 @@ -# Makefile for the NSLU2 Linux development system -# Licensed under the GPL v2 or later - -# Change these if you are unfortunate enough to have a split net personality. -SVN_USER ?= ${USER} -CVS_USER ?= ${USER} -SVN_SSH ?= "-l ${SVN_USER}" - -HOST_MACHINE:=$(shell uname -m | sed \ - -e 's/i[3-9]86/i386/' \ - -e 's/armv5teb/armeb/' \ - -e 's/armv5b/armeb/' \ - ) - -HOST_FIRMWARE:=$(shell uname -m | sed \ - -e 's/i[3-9]86/Linux/' \ - -e 's/armv5teb/OpenSlug/' \ - -e 's/armv5b/Unslung/' \ - ) - -.PHONY: all -all: update build - -.PHONY: prefetch -prefetch: prefetch-unslung prefetch-openslug prefetch-ucslugc prefetch-optware - -.PHONY: build -build: build-unslung build-openslug build-ucslugc build-optware - -.PHONY: setup -ifneq ($(HOST_MACHINE),armeb) -setup: setup-master setup-bitbake setup-openembedded setup-unslung setup-openslug setup-ucslugc setup-optware -else -ifeq ($(HOST_FIRMWARE),OpenSlug) -setup: setup-master setup-bitbake setup-openembedded setup-openslug -else -setup: setup-master setup-optware -endif -endif - -.PHONY: setup-developer -setup-developer: setup-master setup-bitbake setup-openembedded setup-optware-developer - -.PHONY: update -ifneq ($(HOST_MACHINE),armeb) -update: update-master update-bitbake update-openembedded update-optware -else -ifeq ($(HOST_FIRMWARE),OpenSlug) -update: update-master update-bitbake update-openembedded -else -update: update-master update-optware -endif -endif - -.PHONY: status -status: status-master status-bitbake status-openembedded status-optware - -.PHONY: clobber -clobber: clobber-unslung clobber-openslug clobber-ucslugc clobber-optware - -.PHONY: distclean -distclean: distclean-master distclean-bitbake distclean-openembedded \ - distclean-unslung distclean-openslug distclean-ucslugc distclean-optware distclean-releases - -.PHONY: prefetch-unslung -ifneq ($(HOST_MACHINE),armeb) -prefetch-unslung: unslung/.configured bitbake/.configured openembedded/.configured - ( cd unslung ; ${MAKE} prefetch ) -else -prefetch-unslung: -endif - -.PHONY: prefetch-openslug -ifneq ($(HOST_MACHINE),armeb) -prefetch-openslug: openslug/.configured bitbake/.configured openembedded/.configured - ( cd openslug ; ${MAKE} prefetch ) -else -ifeq ($(HOST_FIRMWARE),OpenSlug) -prefetch-openslug: openslug/.configured bitbake/.configured openembedded/.configured - ( cd openslug ; ${MAKE} prefetch ) -else -prefetch-openslug: -endif -endif - -.PHONY: prefetch-ucslugc -ifneq ($(HOST_MACHINE),armeb) -prefetch-ucslugc: ucslugc/.configured bitbake/.configured openembedded/.configured - ( cd ucslugc ; ${MAKE} prefetch ) -else -prefetch-ucslugc: -endif - -.PHONY: prefetch-optware -prefetch-optware: prefetch-optware-nslu2 prefetch-optware-wl500g prefetch-optware-ds101 prefetch-optware-ds101g - -.PHONY: prefetch-optware-nslu2 -ifneq ($(HOST_MACHINE),armeb) -prefetch-optware-nslu2: optware/nslu2/.configured - ( cd optware/nslu2 ; ${MAKE} source ) -else -ifeq ($(HOST_FIRMWARE),Unslung) -prefetch-optware-nslu2: optware/nslu2/.configured - ( cd optware/nslu2 ; ${MAKE} source ) -else -prefetch-optware-nslu2: -endif -endif - -.PHONY: prefetch-optware-% -ifneq ($(HOST_MACHINE),armeb) -prefetch-optware-%: optware/%/.configured - ( cd optware/$* ; ${MAKE} source ) -else -prefetch-optware-%: -endif - -prefetch-openslug-%-beta: releases/OpenSlug-%-beta/.configured - ( cd releases/OpenSlug-$*-beta ; ${MAKE} prefetch ) - -.PHONY: unslung build-unslung -ifneq ($(HOST_MACHINE),armeb) -unslung build-unslung: unslung/.configured bitbake/.configured openembedded/.configured - ( cd unslung ; ${MAKE} ) -else -unslung build-unslung: -endif - -.PHONY: openslug build-openslug -ifneq ($(HOST_MACHINE),armeb) -openslug build-openslug: openslug/.configured bitbake/.configured openembedded/.configured - ( cd openslug ; ${MAKE} ) -else -ifeq ($(HOST_FIRMWARE),OpenSlug) -openslug build-openslug: openslug/.configured bitbake/.configured openembedded/.configured - ( cd openslug ; ${MAKE} ) -else -openslug build-openslug: -endif -endif - -.PHONY: ucslugc build-ucslugc -ifneq ($(HOST_MACHINE),armeb) -ucslugc build-ucslugc: ucslugc/.configured bitbake/.configured openembedded/.configured - ( cd ucslugc ; ${MAKE} ) -else -ucslugc build-ucslugc: -endif - -.PHONY: unslung-image build-unslung-image -ifneq ($(HOST_MACHINE),armeb) -unslung-image build-unslung-image: unslung/.configured bitbake/.configured openembedded/.configured - ( cd unslung ; ${MAKE} image) -else -unslung-image build-unslung-image: -endif - -.PHONY: openslug-image build-openslug-image -ifneq ($(HOST_MACHINE),armeb) -openslug-image build-openslug-image: openslug/.configured bitbake/.configured openembedded/.configured - ( cd openslug ; ${MAKE} image ) -else -openslug-image build-openslug-image: -endif - -.PHONY: ucslugc-image build-ucslugc-image -ifneq ($(HOST_MACHINE),armeb) -ucslugc-image build-ucslugc-image: ucslugc/.configured bitbake/.configured openembedded/.configured - ( cd ucslugc ; ${MAKE} image) -else -ucslugc-image build-ucslugc-image: -endif - -.PHONY: unslung-kernel build-unslung-kernel -ifneq ($(HOST_MACHINE),armeb) -unslung-kernel build-unslung-kernel: unslung/.configured bitbake/.configured openembedded/.configured - ( cd unslung ; ${MAKE} kernel) -else -unslung-kernel build-unslung-kernel: -endif - -.PHONY: openslug-kernel build-openslug-kernel -ifneq ($(HOST_MACHINE),armeb) -openslug-kernel build-openslug-kernel: openslug/.configured bitbake/.configured openembedded/.configured - ( cd openslug ; ${MAKE} kernel ) -else -openslug-kernel build-openslug-kernel: -endif - -.PHONY: ucslugc-kernel build-ucslugc-kernel -ifneq ($(HOST_MACHINE),armeb) -ucslugc-kernel build-ucslugc-kernel: ucslugc/.configured bitbake/.configured openembedded/.configured - ( cd ucslugc ; ${MAKE} kernel) -else -ucslugc-kernel build-ucslugc-kernel: -endif - -.PHONY: build-optware -build-optware: build-optware-nslu2 build-optware-wl500g build-optware-ds101 build-optware-ds101g - -.PHONY: optware-nslu2 build-optware-nslu2 -ifneq ($(HOST_MACHINE),armeb) -optware-nslu2 build-optware-nslu2: optware/nslu2/.configured - ( cd optware/nslu2 ; ${MAKE} autoclean ; ${MAKE} ) -else -ifeq ($(HOST_FIRMWARE),Unslung) -optware-nslu2 build-optware-nslu2: optware/nslu2/.configured - ( cd optware/nslu2 ; ${MAKE} autoclean ; ${MAKE} ) -else -optware-nslu2 build-optware-nslu2: -endif -endif - -.PHONY: optware-wl500g build-optware-wl500g -ifneq ($(HOST_MACHINE),armeb) -optware-wl500g build-optware-wl500g: optware/wl500g/.configured - ( cd optware/wl500g ; ${MAKE} autoclean ; ${MAKE} ) -else -optware-wl500g build-optware-wl500g: -endif - -.PHONY: optware-ds101 build-optware-ds101 -ifneq ($(HOST_MACHINE),armeb) -optware-ds101 build-optware-ds101: optware/ds101/.configured - ( cd optware/ds101 ; ${MAKE} autoclean ; ${MAKE} ) -else -optware-ds101 build-optware-ds101: -endif - -.PHONY: optware-ds101g build-optware-ds101g -ifneq ($(HOST_MACHINE),armeb) -optware-ds101g build-optware-ds101g: optware/ds101g/.configured - ( cd optware/ds101g ; ${MAKE} autoclean ; ${MAKE} ) -else -optware-ds101g build-optware-ds101g: -endif - -openslug-%-beta: update-openslug-%-beta build-openslug-%-beta - echo "$@ completed" - -build-openslug-2.3-beta: releases/OpenSlug-2.3-beta/.configured - ( cd releases/OpenSlug-2.3-beta ; ${MAKE} openslug-firmware ) - -build-openslug-%-beta: releases/OpenSlug-%-beta/.configured - ( cd releases/OpenSlug-$*-beta ; ${MAKE} firmware ) - -.PHONY: setup-master -setup-master MT/.configured: - [ -e monotone/nslu2-linux.db ] || ( mkdir -p monotone && \ - wget http://sources.nslu2-linux.org/monotone/nslu2-linux.db.gz -O monotone/nslu2-linux.db.gz && \ - gunzip monotone/nslu2-linux.db.gz ) - - ( monotone -d monotone/nslu2-linux.db unset database default-server ) - - ( monotone -d monotone/nslu2-linux.db unset database default-include-pattern ) - ( monotone -d monotone/nslu2-linux.db pull monotone.nslu2-linux.org org.{nslu2-linux.*,openembedded.dev} ) - [ -e MT/revision ] || ( monotone -d monotone/nslu2-linux.db co -b org.nslu2-linux.dev . ) - touch MT/.configured - -.PHONY: setup-bitbake -setup-bitbake bitbake/.configured: MT/.configured - [ -e bitbake/bin/bitbake ] || monotone co -b org.nslu2-linux.bitbake bitbake - touch bitbake/.configured - -.PHONY: setup-openembedded -setup-openembedded openembedded/.configured: MT/.configured - [ -e openembedded/conf/machine/nslu2.conf ] || monotone co -b org.openembedded.dev openembedded - touch openembedded/.configured - -.PHONY: setup-optware -setup-optware optware/.configured: MT/.configured - [ -e downloads ] || ( mkdir -p downloads ) - [ -e optware/Makefile ] || ( cvs -q -d :pserver:anonymous@cvs.sf.net:/cvsroot/nslu co -d optware unslung ) - touch optware/.configured - -# This pattern rule has to come before the subsequent %/.configured openembedded pattern rule. -optware/%/.configured: optware/.configured - [ -e optware/$*/Makefile ] || ( \ - mkdir -p optware/$* ; \ - echo "OPTWARE_TARGET=$*" > optware/$*/Makefile ; \ - echo "include ../Makefile" >> optware/$*/Makefile ; \ - ln -s ../../downloads optware/$*/downloads ; \ - ln -s ../make optware/$*/make ; \ - ln -s ../scripts optware/$*/scripts ; \ - ln -s ../sources optware/$*/sources ; \ - ) - touch optware/$*/.configured - -.PHONY: setup-optware-developer -setup-optware-developer: - [ ! -e optware ] || ( mv optware optware-user ) - cvs -q -d :ext:${CVS_USER}@cvs.sf.net:/cvsroot/nslu co -d optware unslung - ${MAKE} setup-optware - -.PHONY: setup-unslung setup-openslug setup-ucslugc -setup-unslung setup-openslug setup-ucslugc: setup-%: MT/.configured - rm -rf $*/.configured - ${MAKE} $*/.configured - -%/.configured: MT/.configured - [ -d $* ] || ( mkdir -p $* ) - [ -e downloads ] || ( mkdir -p downloads ) - [ -L $*/Makefile -o ! -e $*/Makefile ] || ( cd $* ; mv Makefile Makefile.delete-me) - [ -e $*/Makefile ] || ( cd $* ; ln -s ../common/openembedded.mk Makefile ) - [ -L $*/setup-env -o ! -e $*/setup-env ] || ( cd $* ; mv setup-env setup-env.delete-me ) - [ -e $*/setup-env ] || ( cd $* ; ln -s ../common/setup-env . ) - [ -e $*/downloads ] || ( cd $* ; ln -s ../downloads . ) - [ -e $*/bitbake ] || ( cd $* ; ln -s ../bitbake . ) - [ -e $*/openembedded ] || ( cd $* ; ln -s ../openembedded . ) - [ -d $*/conf ] || ( mkdir -p $*/conf ) - [ ! -f $*/conf/local.conf -o -e $*/conf/auto.conf ] || ( cd $*/conf ; mv local.conf local.conf.delete-me ) - [ -e $*/conf/local.conf.sample ] || ( cd $*/conf ; ln -s ../../common/conf/local.conf.sample . ) - [ -e $*/conf/site.conf ] || ( cd $*/conf ; ln -s ../../common/conf/site.conf . ) - [ ! -f $*/conf/auto.conf ] || ( cd $*/conf ; rm -f auto.conf ) - [ -e $*/conf/auto.conf ] || ( \ - if [ "${HOST_MACHINE}" = "armeb" ] ; then \ - echo "DISTRO=\"$*-native\"" > $*/conf/auto.conf ; \ - else \ - echo "DISTRO=\"$*\"" > $*/conf/auto.conf ; \ - fi ; \ - echo "MACHINE=\"nslu2\"" >> $*/conf/auto.conf \ - ) - rm -rf $*/tmp/cache - touch $*/.configured - -.PHONY: setup-slugimage-developer -setup-slugimage-developer: - cvs -q -d :ext:${CVS_USER}@cvs.sf.net:/cvsroot/nslu co slugimage - -.PHONY: setup-upslug-developer -setup-upslug-developer: - cvs -q -d :ext:${CVS_USER}@cvs.sf.net:/cvsroot/nslu co upslug - -.PHONY: setup-sluggo-developer -setup-sluggo-developer: - cvs -q -d :ext:${CVS_USER}@cvs.sf.net:/cvsroot/nslu co sluggo - -.PHONY: setup-apex -setup-apex apex/Makefile: - cvs -q -d :pserver:anonymous@cvs.sf.net:/cvsroot/nslu co apex - -.PHONY: setup-apex-developer -setup-apex-developer: - cvs -q -d :ext:${CVS_USER}@cvs.sf.net:/cvsroot/nslu co apex - -setup-openslug-2.3-beta releases/OpenSlug-2.3-beta/.configured: - [ -e releases/OpenSlug-2.3-beta ] || ( \ - mkdir -p releases ; \ - svn checkout svn://svn.berlios.de/openslug/releases/OpenSlug-2.3-beta \ - releases/OpenSlug-2.3-beta \ - ) - ( cd releases/OpenSlug-2.3-beta ; ${MAKE} conf/local.conf setup-env ) - [ -e downloads ] || ( mkdir -p downloads ) - [ -e releases/OpenSlug-2.3-beta/downloads ] || ln -s ../../downloads releases/OpenSlug-2.3-beta/ - touch releases/OpenSlug-2.3-beta/.configured - -setup-openslug-%-beta releases/OpenSlug-%-beta/.configured: - [ -e releases/OpenSlug-$*-beta ] || ( \ - mkdir -p releases ; \ - svn checkout svn://svn.berlios.de/openslug/releases/OpenSlug-$*-beta \ - releases/OpenSlug-$*-beta \ - ) - ( cd releases/OpenSlug-$*-beta ; ${MAKE} setup-env ) - [ -e downloads ] || ( mkdir -p downloads ) - [ -e releases/OpenSlug-$*-beta/downloads ] || ln -s ../../downloads releases/OpenSlug-$*-beta/ - touch releases/OpenSlug-$*-beta/.configured - -setup-openslug-%-beta-developer: - [ -e releases/OpenSlug-$*-beta ] || ( \ - mkdir -p releases ; \ - svn checkout svn+ssh://svn.berlios.de/svnroot/repos/openslug/releases/OpenSlug-$*-beta \ - releases/OpenSlug-$*-beta \ - ) - ${MAKE} setup-openslug-$*-beta - -.PHONY: setup-host-debian -setup-host-debian: - su - -c " \ - apt-get install \ - autoconf automake automake1.9 \ - bison \ - ccache \ - cvs \ - docbook \ - flex \ - g++ gawk gcj gettext \ - libc6-dev libglib2.0-dev libtool \ - m4 make \ - patch pkg-config \ - python python-dev python-psyco python2.4 python2.4-dev \ - sed \ - texinfo \ - unzip \ - subversion \ - bzip2 ;\ - echo You will have to install monotone separately. See http://venge.net/monotone/ \ - " - -.PHONY: setup-host-ubuntu -setup-host-ubuntu: - su - -c " \ - apt-get install \ - autoconf automake automake1.9 \ - bison \ - ccache \ - cvs \ - docbook \ - flex \ - gcc g++ gawk gcj gettext \ - libc6-dev libglib2.0-dev libtool \ - m4 make \ - patch pkg-config \ - python python-dev python2.4 python2.4-dev \ - sed \ - texinfo \ - unzip \ - subversion \ - texinfo \ - bzip2 ;\ - echo You will have to install monotone separately. See http://venge.net/monotone/ \ - echo To get python2.4-psyco (Recommended to speed up builds), please read \ - echo http://ubuntuguide.org/#extrarepositories \ - " - - -.PHONY: setup-host-gentoo -setup-host-gentoo: - su - -c "mkdir -p /etc/portage ; echo >> /etc/portage/package.keywords ; \ - grep monotone-0.22 /etc/portage/package.keywords || \ - echo ~dev-util/monotone-0.22 ~* >> /etc/portage/package.keywords ; \ - grep dev-libs/boost-1.32.0 /etc/portage/package.keywords || \ - echo ~dev-libs/boost-1.32.0 ~* >> /etc/portage/package.keywords ; \ - emerge -n \ - autoconf automake \ - bison \ - ccache \ - cvs \ - flex \ - glib \ - libtool \ - m4 \ - make \ - monotone \ - patch \ - pkgconfig \ - sed \ - sys-apps/texinfo \ - unzip \ - psyco \ - subversion \ - bzip2" - -.PHONY: update-master -update-master: MT/.configured -# if [ `monotone -d monotone/nslu2-linux.db list keys nslu2-linux@nslu2-linux.org | wc -l` = 8 ] ; then \ -# monotone -d monotone/nslu2-linux.db dropkey nslu2-linux@nslu2-linux.org ; \ -# fi - monotone pull - if [ `monotone automate heads org.nslu2-linux.dev | wc -l` != "1" ] ; then \ - monotone merge -b org.nslu2-linux.dev ; \ - fi - monotone update - if [ `monotone automate heads org.nslu2-linux.dev | wc -l` != "1" ] ; then \ - monotone merge -b org.nslu2-linux.dev ; \ - fi - -.PHONY: update-bitbake -update-bitbake: bitbake/.configured - monotone pull - if [ `monotone automate heads org.nslu2-linux.bitbake | wc -l` != "1" ] ; then \ - monotone merge -b org.nslu2-linux.bitbake ; \ - fi - ( cd bitbake ; monotone update ) - if [ `monotone automate heads org.nslu2-linux.bitbake | wc -l` != "1" ] ; then \ - monotone merge -b org.nslu2-linux.bitbake ; \ - fi - -.PHONY: update-openembedded -update-openembedded: openembedded/.configured - if grep "org.openembedded.nslu2-linux" openembedded/MT/options >/dev/null 2>&1 ; then \ - sed -i -e 's/org.openembedded.nslu2-linux/org.openembedded.dev/' openembedded/MT/options ; \ - monotone propagate org.openembedded.nslu2-linux org.openembedded.dev ; \ - fi - monotone pull - if [ `monotone automate heads org.openembedded.dev | wc -l` != "1" ] ; then \ - monotone merge -b org.openembedded.dev ; \ - fi - ( cd openembedded ; monotone update ) - if [ `monotone automate heads org.openembedded.dev | wc -l` != "1" ] ; then \ - monotone merge -b org.openembedded.dev ; \ - fi - -.PHONY: update-optware -update-optware: optware/.configured - ( cd optware ; cvs -q update -d -P ) - -update-openslug-%-beta: releases/OpenSlug-%-beta/.configured - ( cd releases/OpenSlug-$*-beta ; svn up ) - -.PHONY: status-master -status-master: MT/.configured - monotone status --brief - -.PHONY: status-bitbake -status-bitbake: bitbake/.configured - ( cd bitbake ; monotone status --brief ) - -.PHONY: status-openembedded -status-openembedded: openembedded/.configured - ( cd openembedded ; monotone status --brief ) - -.PHONY: status-optware -status-optware: optware/.configured - ( cd optware ; cvs -q update -d -P ) - -status-openslug-%-beta: - ( cd releases/OpenSlug-$*-beta ; svn status ) - -.PHONY: clobber-unslung -clobber-unslung: - [ ! -e unslung/Makefile ] || ( cd unslung ; ${MAKE} clobber ) - -.PHONY: clobber-openslug -clobber-openslug: - [ ! -e openslug/Makefile ] || ( cd openslug ; ${MAKE} clobber ) - -.PHONY: clobber-ucslugc -clobber-ucslugc: - [ ! -e ucslugc/Makefile ] || ( cd ucslugc ; ${MAKE} clobber ) - -.PHONY: clobber-optware -clobber-optware: clobber-optware-nslu2 clobber-optware-wl500g clobber-optware-ds101 clobber-optware-ds101g - -.PHONY: clobber-optware-% -clobber-optware-%: - [ ! -e optware/$*/Makefile ] || ( cd optware/$* ; ${MAKE} distclean ) - -.PHONY: distclean-master -distclean-master: - rm -rf MT common downloads openslug scripts ucslugc unslung - -.PHONY: distclean-bitbake -distclean-bitbake: - rm -rf bitbake - -.PHONY: distclean-openembedded -distclean-openembedded: - rm -rf openembedded - -.PHONY: distclean-unslung -distclean-unslung: - rm -rf unslung - -.PHONY: distclean-openslug -distclean-openslug: - rm -rf openslug - -.PHONY: distclean-ucslugc -distclean-ucslugc: - rm -rf ucslugc - -.PHONY: distclean-optware -distclean-optware: - rm -rf optware - -.PHONY: distclean-releases -distclean-releases: - rm -rf releases - -# Targets for use by those with write access to the repositories - -.PHONY: push -push: push-master push-bitbake push-openembedded - -.PHONY: push-master -push-master: update-master - monotone push - -.PHONY: push-bitbake -push-bitbake: update-bitbake - ( cd bitbake ; monotone push ) - -.PHONY: push-openembedded -push-openembedded: update-openembedded - ( cd openembedded ; monotone push ) - -# Targets for use by core team members only - -.PHONY: import-bitbake -import-bitbake: bitbake/.configured - mv bitbake bitbake.old - svn co svn://svn.berlios.de/bitbake/trunk/bitbake - cp -rp bitbake.old/MT bitbake.old/.mt-attrs bitbake - rm -rf bitbake.old - ( cd bitbake ; rm -rf .svn ; monotone status ) - -# End of Makefile diff --git a/common/.mtn2git_empty b/common/.mtn2git_empty deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/common/conf/.mtn2git_empty b/common/conf/.mtn2git_empty deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/common/conf/local.conf.sample b/common/conf/local.conf.sample deleted file mode 100644 index c191c8ff63..0000000000 --- a/common/conf/local.conf.sample +++ /dev/null @@ -1,45 +0,0 @@ -# Sample local configuration -# -# You do not need a 'local.conf' file, however you may use one to alter -# how the build proceeds and to specify bitbake options. -# -#---------------------------------------------------------------------------------- -# bitbake options -#---------------------------------------------------------------------------------- -# -#BBINCLUDELOGS = "yes" -# bitbake logs build progress to per-package log files. By default if an -# error occurs bitbake outputs the name of this file with an error message. -# If you set BBINCLUDELOGS to 'yes' then bitbake will also output the log -# file itself. -# -#BBMASK = "regular expression" -# bitbake examines all the .bb files listed in the BBFILES variable. BBMASK -# can be used to exclude some (or, indeed, all) of these files by matching -# against a regular expression. Typically you do not want to do this because -# bitbake freeze can be used to generate a minimal list for BBFILES. -# -#---------------------------------------------------------------------------------- -# OpenSlug (and derivatives) options -#---------------------------------------------------------------------------------- -#FEED_URIS = "##" -# Define local feeds - should be replaced by a name which identifies -# your local feed (not a generic name!) and should be the location of -# the Packages.gz file (and, therefore, all the ipks). This is not required; -# the feed defaults to the internet one. -# -#_EXTRA_DEPENDS = "packages to add to the build" -# Any packages in this list will be built as depenencies of the firmware -# image, but they will not be included in the image (see below). -# -#_EXTRA_RDEPENDS = "packages to add to the firmware image" -# Any packages in this list will be added to the firmware image. Please do -# not distribute such images - make a new DISTRO.conf file following the -# instructions in conf/distro/ucslugc.conf -# -#_EXTRA_BBFILES = "paths of extra .bb files" -# Files in this list will be parsed by bitbake to find packages in addition -# to the default list of bb files in conf/distro/-packages.conf. The -# setting of this variable is irrelevant after bb freeze has been built or if -# bb unfreeze is built (in the latter case bitbake will examine all of the -# openembedded packages). diff --git a/common/conf/site.conf b/common/conf/site.conf deleted file mode 100644 index f40ae58e3d..0000000000 --- a/common/conf/site.conf +++ /dev/null @@ -1,43 +0,0 @@ -# NSLU2 master makefile bitbake site configuration -# It should not be necessary to alter this file! -# -# This configuration defines the location of the directories -# bitbake requires to build a particular distribution (DISTRO) -# -# Each DISTRO must create a appropriate topdir file containing -# (just) the definition of TOPDIR -include conf/topdir.conf - -# These definitions should be the same for every DISTRO - if -# a change is necessary make it in the DISTRO auto.conf. The -# rvalues are evaluated here for safety (i.e. to prevent accidents -# if something else defines TOPDIR). -TMPDIR := "${TOPDIR}/tmp" -CACHE := "${TMPDIR}/cache" -DL_DIR := "${TOPDIR}/downloads" - -# The following is not defined or used by the standard bitbake -# configuration files, however it must be defined here for 'freeze' -# and 'unfreeze' to work correctly -PKGDIR := "${TOPDIR}/openembedded" - -# BBFILES is the list of all the .bb files bitbake looks at when -# working out how to build a package. By default this value is -# overridden later in the ${DISTRO}.conf file (when it includes -# conf/distro/freeze.conf). -BBFILES := "${PKGDIR}/packages/*/*.bb" - -# The distro must create the following directories - either by -# populating them with the required files or, in the master makefile -# environment, by symbolic links to the relevant shared directories -# (which are directories of the same name in ..) -# -# common - contains conf/site.conf - this file -# bitbake - the directory containing the bitbake program -# downloads - contains the source files downloaded from the network -# openembedded - the directory containing the OE source -# -# All these directories may be shared between multiple distros. -# The 'tmp' directory may not be shared, however bitbake will create -# it automatically when required. The 'downloads' directory will also -# be created if required by bitbake. diff --git a/common/openembedded.mk b/common/openembedded.mk deleted file mode 100644 index cf452cf721..0000000000 --- a/common/openembedded.mk +++ /dev/null @@ -1,80 +0,0 @@ -#!/bin/make -# Makefile for OpenEmbedded builds -# Licensed under the GPL v2 or later -# -# conf/auto.conf must exist in the same directory as the Makefile (i.e. -# the directory where Makefile is used - it may be a symbolic link to -# this file). conf/auto.conf defines: -# -# DISTRO - the OpenEmbedded 'distro' to build -# MACHINE - the OpenEmbedded build target machine -# -# All of these values are (should be, must be) quoted in double quotes -include conf/auto.conf - -BUILD_DIRS = downloads -REQUIRED_DIRS = bitbake openembedded -FIRMWARE_DEPS = create-topdir $(BUILD_DIRS) $(REQUIRED_DIRS) -BITBAKE = bitbake - -# The default rule is to build everything in an unprotected environment. -distro: $(FIRMWARE_DEPS) - . ./setup-env; exec ${BITBAKE} $(DISTRO)-packages - -# The default rule is to build the firmware in an unprotected environment. -image: $(FIRMWARE_DEPS) - . ./setup-env; exec ${BITBAKE} $(DISTRO)-image - -# The default rule is to build the firmware in an unprotected environment. -kernel: $(FIRMWARE_DEPS) - . ./setup-env; exec ${BITBAKE} virtual/kernel - -# This rule clobbers the environment (note that ccache uses '$HOME' by -# default, so the cache will end up there). -distro-safe: - env -i HOME="$${HOME}" PATH="$${PATH}" $(MAKE) distro - -# The default rule is to build the firmware in an unprotected environment. -prefetch: $(FIRMWARE_DEPS) - . ./setup-env; exec ${BITBAKE} -cfetch $(DISTRO)-packages - -# topdir.conf is re-created automatically if the directory is -# moved - this will cause a full bitbake reparse -.PHONY: create-topdir -create-topdir: conf/topdir.conf - . conf/topdir.conf && test "`pwd`" = "$$TOPDIR" || echo "TOPDIR='`pwd`'" > conf/topdir.conf - -conf/topdir.conf: - echo "TOPDIR='`pwd`'" >$@ - -# rules for directories - if a symlink exists and the target does not -# exist something will go wrong in the build, therefore cause a failure -# here by the mkdir. -$(BUILD_DIRS): - test -d $@ || if test -d ../$@; then ln -s ../$@ .; else mkdir $@; fi - -# these directories must already exist - either in TOPDIR (here) or in .. -$(REQUIRED_DIRS): - test -d $@ || if test -d ../$@; then ln -s ../$@ .; else exit 1; fi - -.PHONY: clobber -clobber: - rm -rf tmp - -.PHONY: source -source: $(REQUIRED_DIRS) - tar zcf $(DISTRO).tar.gz --exclude=MT Makefile setup-env conf/site.conf conf/auto.conf \ - conf/local.conf.sample $(REQUIRED_DIRS:=/.) - -# This target probably isn't important any longer, because the -source -# target above does the right thing -.PHONY: -distclean: clobber - rm -rf conf/topdir.conf conf/local.conf $(BUILD_DIRS) - -# This target is mainly for testing - it is intended to put the disto directory -# back to its original state, it will destroy a source-tarball system (because -# it removes directories from the tarball). -.PHONY: -really-clean: distclean - rm -rf $(REQUIRED_DIRS) $(DISTRO)-source.tar.gz diff --git a/common/setup-env b/common/setup-env deleted file mode 100644 index a1e0d3fbd5..0000000000 --- a/common/setup-env +++ /dev/null @@ -1,46 +0,0 @@ -# setup up the environment for a bitbake build. This is used -# by the makefile and may also be directly sourced from an -# interactive shell. The makefile uses 'env -i' to ensure -# no variables are inherited apart from CCACHE_DISABLE and -# CCACHE_DIR -# -# topdir must exist in the directory and define TOPDIR to -# the full path name of the working directory -. ./conf/topdir.conf -test -n "$TOPDIR" -a -d "$TOPDIR" || { - echo "environment: TOPDIR not defined" >&2 - exit 1 -} - -# -# the following must match the definitions in common/conf/site.conf -export PYTHONPATH="${TOPDIR}/bitbake/lib" -export BBPATH="${TOPDIR}:${TOPDIR}/openembedded:${TOPDIR}/bitbake" -export PATH="${TOPDIR}/bitbake/bin:${PATH}" -export LD_LIBRARY_PATH= -export LANG=C -#NOTE: if you add export definitions here add them below too! -# -# unset the following (unnecessary for the makefile, but safe) -unset LC_CTYPE -unset CC -unset CXX -unset MFLAGS -unset MAKEFLAGS -unset DISTRO -unset MACHINE -unset MAKE_TARGET -# -# make bb into a 'safe' bitbake -alias bb-safe="env -i \ - HOME='${HOME}' \ - PYTHONPATH='${PYTHONPATH}' \ - BBPATH='${BBPATH}' \ - PATH='${PATH}' \ - LD_LIBRARY_PATH='${LD_LIBRARY_PATH}' \ - LANG='${LANG}' \ - '${TOPDIR}/bitbake/bin/bitbake'" -alias bb="'${TOPDIR}/bitbake/bin/bitbake'" -# -# remove TOPDIR - not required -unset TOPDIR diff --git a/openembedded/.mtn2git_empty b/openembedded/.mtn2git_empty deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/openembedded/packages/.mtn2git_empty b/openembedded/packages/.mtn2git_empty deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/openembedded/packages/pvrusb2-mci/.mtn2git_empty b/openembedded/packages/pvrusb2-mci/.mtn2git_empty deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/openembedded/packages/pvrusb2-mci/pvrusb2-mci-20051016/.mtn2git_empty b/openembedded/packages/pvrusb2-mci/pvrusb2-mci-20051016/.mtn2git_empty deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/openembedded/packages/pvrusb2-mci/pvrusb2-mci-20051016/Makefile.patch b/openembedded/packages/pvrusb2-mci/pvrusb2-mci-20051016/Makefile.patch deleted file mode 100644 index b79c42e2c5..0000000000 --- a/openembedded/packages/pvrusb2-mci/pvrusb2-mci-20051016/Makefile.patch +++ /dev/null @@ -1,15 +0,0 @@ ---- driver/Makefile- 2005-09-11 13:22:08.000000000 -1000 -+++ driver/Makefile 2005-09-17 01:02:06.341217389 -1000 -@@ -37,10 +37,10 @@ - all: modules - - modules modules_install clean: -- $(MAKE) INSTALL_MOD_DIR=$(INSTALL_MOD_DIR) -C $(KDIR) M=$(shell pwd) $@ -+ $(MAKE) INSTALL_MOD_DIR=$(INSTALL_MOD_DIR) CFLAGS="$(CFLAGS) $(TARGET_CFLAGS)" -C $(KDIR) M=$(shell pwd) $@ - - install: -- $(MAKE) INSTALL_MOD_DIR=$(INSTALL_MOD_DIR) -C $(KDIR) M=$(shell pwd) modules_install -+ $(MAKE) INSTALL_MOD_DIR=$(INSTALL_MOD_DIR) CFLAGS="$(CFLAGS) $(TARGET_CFLAGS)" -C $(KDIR) M=$(shell pwd) modules_install - - else - diff --git a/openembedded/packages/pvrusb2-mci/pvrusb2-mci_20051016.bb b/openembedded/packages/pvrusb2-mci/pvrusb2-mci_20051016.bb deleted file mode 100644 index bd3362c730..0000000000 --- a/openembedded/packages/pvrusb2-mci/pvrusb2-mci_20051016.bb +++ /dev/null @@ -1,29 +0,0 @@ -DESCRIPTION = "Driver for the Hauppauge WinTV PVR USB2" -PRIORITY = "optional" -SECTION = "kernel/modules" -MAINTAINER = "dyoung " -LICENSE = "GPL" -PR = "r1" -# It in fact requires these modules, but for now is using the local ones. -# RDEPENDS = "kernel-module-tveeprom kernel-module-tuner kernel-module-msp3400 kernel-module-saa7115" - -SRC_URI = "http://www.isely.net/downloads/pvrusb2-mci-20051016.tar.bz2 \ - file://Makefile.patch;patch=1" - -S = "${WORKDIR}/pvrusb2-mci-20051016/driver" - -inherit module - -CFLAGS = "'-I${KERNEL_SOURCE}/include' \ - '-D__LINUX_ARM_ARCH__=5'" - -EXTRA_OEMAKE = "'CFLAGS=${CFLAGS}' \ - 'CC=${KERNEL_CC}' \ - 'LD=${KERNEL_LD}' \ - 'KDIR=${STAGING_KERNEL_DIR}'" - -do_install() { - install -d ${D}${base_libdir}/modules/${KERNEL_VERSION}/kernel/drivers/usb/media - install -m 0644 *${KERNEL_OBJECT_SUFFIX} ${D}${base_libdir}/modules/${KERNEL_VERSION}/kernel/drivers/usb/media -} - diff --git a/openslug/.mtn2git_empty b/openslug/.mtn2git_empty deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/openslug/openembedded/.mtn2git_empty b/openslug/openembedded/.mtn2git_empty deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/openslug/openembedded/packages/.mtn2git_empty b/openslug/openembedded/packages/.mtn2git_empty deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/openslug/openembedded/packages/cdstatus/.mtn2git_empty b/openslug/openembedded/packages/cdstatus/.mtn2git_empty deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/openslug/openembedded/packages/cdstatus/cdstatus-0.96.05.bb b/openslug/openembedded/packages/cdstatus/cdstatus-0.96.05.bb deleted file mode 100644 index 1ae728f836..0000000000 --- a/openslug/openembedded/packages/cdstatus/cdstatus-0.96.05.bb +++ /dev/null @@ -1,25 +0,0 @@ -# cdstatus OE build file - -PR="r0" -LICENSE="GPL" -HOMEPAGE = "http://cdstatus.sourceforge.net/" -FILES_${PN} += ${datadir}/cdstatus.cfg - -SRC_URI="${SOURCEFORGE_MIRROR}/cdstatus/cdstatus-0.96.05.tar.gz \ - file://cdstatus.patch;patch=1" - -S="${WORKDIR}/cdstatus-0.96.05" - -inherit autotools - -TARGET_LDFLAGS="" - -do_install() { - install -d 0755 ${D}/${bindir} - install -d 0755 ${D}/${datadir} - install -d 0755 ${D}/${mandir} - install -m 0755 src/cdstatus ${D}/${bindir} - install -m 0644 cdstatus.cfg ${D}/${datadir} - install -m 0644 cdstatus.1 ${D}/${mandir} - -} diff --git a/openslug/openembedded/packages/cdstatus/cdstatus-0.96.05/.mtn2git_empty b/openslug/openembedded/packages/cdstatus/cdstatus-0.96.05/.mtn2git_empty deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/openslug/openembedded/packages/cdstatus/cdstatus-0.96.05/cdstatus.patch b/openslug/openembedded/packages/cdstatus/cdstatus-0.96.05/cdstatus.patch deleted file mode 100644 index 913cd721e0..0000000000 --- a/openslug/openembedded/packages/cdstatus/cdstatus-0.96.05/cdstatus.patch +++ /dev/null @@ -1,131 +0,0 @@ -*** cdstatus-0.96.05/src/cdstatus.c.orig 2005-11-26 16:23:27.000000000 +0100 ---- cdstatus-0.96.05/src/cdstatus.c 2005-11-26 19:06:57.000000000 +0100 -*************** -*** 436,441 **** ---- 436,501 ---- - return 0; - } - -+ /* following code copied from -+ http://www.gamedev.net/reference/articles/article2091.asp -+ it has been slightly modified as we did not have a reason to output -+ big endian or float -+ */ -+ static short ShortSwap( short s ) -+ { -+ unsigned char b1, b2; -+ -+ b1 = s & 255; -+ b2 = (s >> 8) & 255; -+ -+ return (b1 << 8) + b2; -+ } -+ -+ static short ShortNoSwap( short s ) -+ { -+ return s; -+ } -+ -+ static int LongSwap (int i) -+ { -+ unsigned char b1, b2, b3, b4; -+ -+ b1 = i & 255; -+ b2 = ( i >> 8 ) & 255; -+ b3 = ( i>>16 ) & 255; -+ b4 = ( i>>24 ) & 255; -+ -+ return ((int)b1 << 24) + ((int)b2 << 16) + ((int)b3 << 8) + b4; -+ } -+ -+ static int LongNoSwap( int i ) -+ { -+ return i; -+ } -+ -+ static short (*LittleShort) ( short s ); -+ static int (*LittleLong) ( int i ); -+ -+ static void InitEndian( void ) -+ { -+ char SwapTest[2] = { 1, 0 }; -+ -+ if( *(short *) SwapTest == 1 ) -+ { -+ // little endian -+ //set func pointers to correct funcs -+ LittleShort = ShortNoSwap; -+ LittleLong = LongNoSwap; -+ } -+ else -+ { -+ // big endian -+ LittleShort = ShortSwap; -+ LittleLong = LongSwap; -+ } -+ } -+ /* end of copied code */ -+ - static void writeWavHeader(unsigned int readframes, FILE * audio_out) - { - long int chunksize; -*************** -*** 456,478 **** - - wavHeader wHeader; - - /* "RIFF" */ -! wHeader.RIFF_header = 0x46464952; - - chunksize = readframes * CD_FRAMESIZE_RAW; -! wHeader.total_size = (int32_t)(chunksize + sizeof(wavHeader)); - - /* "WAVEfmt " */ -! wHeader.WAVE = 0x45564157; -! wHeader.fmt = 0x20746D66; - -! wHeader.subchunk_size = 16; -! wHeader.audio_format = 1; -! wHeader.number_channels = 2; -! wHeader.sampling_rate = 44100; -! wHeader.byte_rate = 176400; -! wHeader.block_align = 4; -! wHeader.bits_per_sample = 16; - - if(fwrite((const void *) &wHeader, sizeof(wavHeader), (size_t) 1, audio_out)!=1) - { ---- 516,539 ---- - - wavHeader wHeader; - -+ InitEndian(); - /* "RIFF" */ -! wHeader.RIFF_header = LittleLong(0x46464952); - - chunksize = readframes * CD_FRAMESIZE_RAW; -! wHeader.total_size = LittleLong((int32_t)(chunksize + sizeof(wavHeader))); - - /* "WAVEfmt " */ -! wHeader.WAVE = LittleLong(0x45564157); -! wHeader.fmt = LittleLong(0x20746D66); - -! wHeader.subchunk_size = LittleLong(16); -! wHeader.audio_format = LittleShort(1); -! wHeader.number_channels = LittleShort(2); -! wHeader.sampling_rate = LittleLong(44100); -! wHeader.byte_rate = LittleLong(176400); -! wHeader.block_align = LittleShort(4); -! wHeader.bits_per_sample = LittleShort(16); - - if(fwrite((const void *) &wHeader, sizeof(wavHeader), (size_t) 1, audio_out)!=1) - { -*************** -*** 492,497 **** ---- 553,559 ---- - } - exit(EXIT_FAILURE); - } -+ chunksize = LittleLong(chunksize); - if(fwrite((const void *) &chunksize, sizeof(long int), (size_t) 1, audio_out)!=1) - { - perror("Error writing wav file chunksize header"); diff --git a/openslug/openembedded/packages/pvrusb2-mci/.mtn2git_empty b/openslug/openembedded/packages/pvrusb2-mci/.mtn2git_empty deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/openslug/openembedded/packages/pvrusb2-mci/pvrusb2-mci-20051113/.mtn2git_empty b/openslug/openembedded/packages/pvrusb2-mci/pvrusb2-mci-20051113/.mtn2git_empty deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/openslug/openembedded/packages/pvrusb2-mci/pvrusb2-mci-20051113/Makefile.patch b/openslug/openembedded/packages/pvrusb2-mci/pvrusb2-mci-20051113/Makefile.patch deleted file mode 100644 index b79c42e2c5..0000000000 --- a/openslug/openembedded/packages/pvrusb2-mci/pvrusb2-mci-20051113/Makefile.patch +++ /dev/null @@ -1,15 +0,0 @@ ---- driver/Makefile- 2005-09-11 13:22:08.000000000 -1000 -+++ driver/Makefile 2005-09-17 01:02:06.341217389 -1000 -@@ -37,10 +37,10 @@ - all: modules - - modules modules_install clean: -- $(MAKE) INSTALL_MOD_DIR=$(INSTALL_MOD_DIR) -C $(KDIR) M=$(shell pwd) $@ -+ $(MAKE) INSTALL_MOD_DIR=$(INSTALL_MOD_DIR) CFLAGS="$(CFLAGS) $(TARGET_CFLAGS)" -C $(KDIR) M=$(shell pwd) $@ - - install: -- $(MAKE) INSTALL_MOD_DIR=$(INSTALL_MOD_DIR) -C $(KDIR) M=$(shell pwd) modules_install -+ $(MAKE) INSTALL_MOD_DIR=$(INSTALL_MOD_DIR) CFLAGS="$(CFLAGS) $(TARGET_CFLAGS)" -C $(KDIR) M=$(shell pwd) modules_install - - else - diff --git a/openslug/openembedded/packages/pvrusb2-mci/pvrusb2-mci_20051113.bb b/openslug/openembedded/packages/pvrusb2-mci/pvrusb2-mci_20051113.bb deleted file mode 100644 index 5ac677e329..0000000000 --- a/openslug/openembedded/packages/pvrusb2-mci/pvrusb2-mci_20051113.bb +++ /dev/null @@ -1,41 +0,0 @@ -DESCRIPTION = "Driver for the Hauppauge WinTV PVR USB2" -PRIORITY = "optional" -SECTION = "kernel/modules" -MAINTAINER = "dyoung " -LICENSE = "GPL" -PR = "r0" -# It in fact requires these modules, but for now is using the local ones. -# RDEPENDS = "kernel-module-tveeprom kernel-module-tuner kernel-module-msp3400 kernel-module-saa7115" - -SRC_URI = "http://www.isely.net/downloads/pvrusb2-mci-20051113.tar.bz2" - -#SRC_URI = "http://www.isely.net/downloads/pvrusb2-mci-20051113.tar.bz2 \ -# file://Makefile.patch;patch=1" - -S = "${WORKDIR}/pvrusb2-mci-20051113" - -inherit module - -CFLAGS = "'-I${KERNEL_SOURCE}/include' \ - '-D__LINUX_ARM_ARCH__=5'" - -EXTRA_OEMAKE = "'CFLAGS=${CFLAGS}' \ - 'CC=${KERNEL_CC}' \ - 'LD=${KERNEL_LD}' \ - 'KDIR=${STAGING_KERNEL_DIR}'" - -export TARGET_LDFLAGS = "-L${STAGING_DIR}/${TARGET_SYS}/lib \ - -rpath-link ${STAGING_DIR}/${TARGET_SYS}/lib" - - -do_compile() { - cd ivtv; oe_runmake - cd ../driver; oe_runmake -} - -do_install() { - install -d ${D}${base_libdir}/modules/${KERNEL_VERSION}/kernel/drivers/usb/media - install -m 0644 ivtv/*${KERNEL_OBJECT_SUFFIX} ${D}${base_libdir}/modules/${KERNEL_VERSION}/kernel/drivers/usb/media - install -m 0644 driver/*${KERNEL_OBJECT_SUFFIX} ${D}${base_libdir}/modules/${KERNEL_VERSION}/kernel/drivers/usb/media -} - diff --git a/scripts/.mtn2git_empty b/scripts/.mtn2git_empty deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/scripts/package-strip.pl b/scripts/package-strip.pl deleted file mode 100644 index 45c64134f8..0000000000 --- a/scripts/package-strip.pl +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/perl - -my $pat = shift(@ARGV) || usage(1); -my $infile = shift(@ARGV) || usage(1); -my $outfile = shift(@ARGV) || "-"; -print STDERR "Package-strip processing input file $infile\n"; -print STDERR "Output to " . ($outfile ne "-" ? $outfile : "stdout") . "\n"; - -# massage the regexp to accept semi-shell-style * -$pat =~ s/\*/.*/g; - -open (I,"<$infile") || die $@; -open (O,">>$outfile") || die $@; -undef $/; -my $srctext = ; -close(I); - -my @srclist = split(/\012\012\012/,$srctext); -my @outlist = grep(/Package: $pat/,@srclist); -print O join("\012\012\012",@outlist); -print O "\012\012\012"; - -sub usage { - my $cack = shift(@_); - print STDERR "usage: Package-strip [output filename]\nRemember to escape wildcard characters for the shell."; - die if $cack; -} - -- cgit v1.2.3 From dec9d7e9d8e2ab4c8693921517bc92f37ebe64b1 Mon Sep 17 00:00:00 2001 From: Frans Meulenbroeks Date: Sat, 3 Dec 2005 17:59:18 +0000 Subject: groff: ported 1.19.2 added patch for Makefile.in to exclude contrib/groffer and the html doc groffer did not build and html lead to package errors added patch for src/include/Makefile.in: fontpath and tmacpath pointed to the path in the crossbuild env this gave a wrong src/include/defs.h Changed this somewhat crude by replacing with a hardcoded path (in /usr/share) --- packages/groff/groff/Makefile.in.patch | 31 +++++++++++++++++++++++++++++++ packages/groff/groff/Makefile.sub.patch | 21 +++++++++++++++++++++ packages/groff/groff_1.19.2.bb | 23 +++++++++++++++++++++++ 3 files changed, 75 insertions(+) create mode 100644 packages/groff/groff/Makefile.in.patch create mode 100644 packages/groff/groff/Makefile.sub.patch create mode 100644 packages/groff/groff_1.19.2.bb diff --git a/packages/groff/groff/Makefile.in.patch b/packages/groff/groff/Makefile.in.patch new file mode 100644 index 0000000000..30aac8cbf0 --- /dev/null +++ b/packages/groff/groff/Makefile.in.patch @@ -0,0 +1,31 @@ +*** groff-1.19.2/Makefile.in.orig Sun Aug 7 10:03:33 2005 +--- groff-1.19.2/Makefile.in Sat Dec 3 16:44:50 2005 +*************** +*** 242,249 **** + + # The configure script checks whether all necessary utility programs for + # grohtml are available -- only then we can build the HTML documentation. +! make_html=@make_html@ +! make_install_html=@make_install_html@ + + # The configure script also checks whether all necessary utility programs + # for pdfroff are available -- only then we can build PDF documentation. +--- 242,249 ---- + + # The configure script checks whether all necessary utility programs for + # grohtml are available -- only then we can build the HTML documentation. +! make_html= +! make_install_html= + + # The configure script also checks whether all necessary utility programs + # for pdfroff are available -- only then we can build PDF documentation. +*************** +*** 549,555 **** + contrib/pic2graph \ + contrib/eqn2graph \ + contrib/grap2graph \ +- contrib/groffer \ + contrib/mom \ + contrib/pdfmark \ + contrib/gdiffmk +--- 549,554 ---- diff --git a/packages/groff/groff/Makefile.sub.patch b/packages/groff/groff/Makefile.sub.patch new file mode 100644 index 0000000000..1b5a7dfac5 --- /dev/null +++ b/packages/groff/groff/Makefile.sub.patch @@ -0,0 +1,21 @@ +*** groff-1.19.2/src/include/Makefile.sub.orig Thu Jun 23 13:27:53 2005 +--- groff-1.19.2/src/include/Makefile.sub Sat Dec 3 18:35:40 2005 +*************** +*** 39,46 **** + "DEVICE=\"$(DEVICE)\"" \ + "INSTALLPATH=\"$(prefix)\"" \ + "BINPATH=\"$(bindir)\"" \ +! "FONTPATH=\"$(fontpath)\"" \ +! "MACROPATH=\"$(tmacpath)\"" \ + "INDEX_SUFFIX=\"$(indexext)\"" \ + "COMMON_WORDS_FILE=\"$(common_words_file)\"" \ + "DEFAULT_INDEX_DIR=\"$(indexdir)\"" \ +--- 39,46 ---- + "DEVICE=\"$(DEVICE)\"" \ + "INSTALLPATH=\"$(prefix)\"" \ + "BINPATH=\"$(bindir)\"" \ +! "FONTPATH=\"/usr/share/groff/site-font:/usr/share/groff/1.19.2/font:/usr/lib/font\"" \ +! "MACROPATH=\"/usr/lib/groff/site-tmac:/usr/share/groff/site-tmac:/usr/share/groff/1.19.2/tmac\"" \ + "INDEX_SUFFIX=\"$(indexext)\"" \ + "COMMON_WORDS_FILE=\"$(common_words_file)\"" \ + "DEFAULT_INDEX_DIR=\"$(indexdir)\"" \ diff --git a/packages/groff/groff_1.19.2.bb b/packages/groff/groff_1.19.2.bb new file mode 100644 index 0000000000..7381bb3687 --- /dev/null +++ b/packages/groff/groff_1.19.2.bb @@ -0,0 +1,23 @@ +LICENSE = "GPL" +SECTION = "base" +DESCRIPTION = "GNU roff" +RDEPENDS="libstdc++6" +MAINTAINER = "Inge Arnesen " +SRC_URI = "http://ftp.gnu.org/gnu/groff/groff-${PV}.tar.gz \ + file://Makefile.in.patch;patch=1 \ + file://Makefile.sub.patch;patch=1 \ + file://groff.patch;patch=1" + +# prefix and exec-prefix are broken and the .in file is broken too +# and can't be autoreconf'ed, so specify every dir +EXTRA_OECONF="--prefix=${D} --exec-prefix=${D} --bindir=${D}/usr/bin --datadir=${D}/usr/share --mandir=${D}/usr/man --infodir=${D}/usr/share/info" +inherit autotools + +do_configure () { + oe_runconf +} + +#do_install() { +# oe_runmake 'PREFIX=${D}' install +#} + -- cgit v1.2.3 From fd131518625c38f2104cc515bd0d8879437b0bcd Mon Sep 17 00:00:00 2001 From: Frans Meulenbroeks Date: Sat, 3 Dec 2005 18:58:56 +0000 Subject: openslug-packages.conf: added groff --- conf/distro/openslug-packages.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/conf/distro/openslug-packages.conf b/conf/distro/openslug-packages.conf index ea126d9032..6b173f2f21 100644 --- a/conf/distro/openslug-packages.conf +++ b/conf/distro/openslug-packages.conf @@ -58,6 +58,7 @@ ${PKGDIR}/packages/glibc/*.bb \ ${PKGDIR}/packages/gnu-config/*.bb \ ${PKGDIR}/packages/gphoto2/*.bb \ ${PKGDIR}/packages/grep/*.bb \ +${PKGDIR}/packages/groff/*.bb \ ${PKGDIR}/packages/gtk-doc/*.bb \ ${PKGDIR}/packages/gzip/*.bb \ ${PKGDIR}/packages/hal/*.bb \ -- cgit v1.2.3