Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gnap-dev
Navigation:
Lists: gnap-dev: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gnap-dev@g.o
From: codesite-noreply@...
Subject: [gnap-dev commit] r117 - trunk/tools/rebuild_stages
Date: Tue, 17 Jun 2008 12:31:27 -0700
Author: rieggepp
Date: Tue Jun 17 12:23:23 2008
New Revision: 117

Added:
   trunk/tools/rebuild_stages/
   trunk/tools/rebuild_stages/Makefile

Log:
Added the Makefile i use for rebuilding stage3s using catalyst. Almost 
everything can be configured, also the default configuration does not 
make sense for people but me.

Added: trunk/tools/rebuild_stages/Makefile
==============================================================================
--- (empty file)
+++ trunk/tools/rebuild_stages/Makefile	Tue Jun 17 12:23:23 2008
@@ -0,0 +1,248 @@
+SUBARCH   = x86
+VERSION   = latest
+RELTYPE   = default
+CHOST     = i386-unknown-linux-uclibc
+CFLAGS    = -Os -pipe
+CXXFLAGS  = $(CFLAGS)
+LDFLAGS   =
+
+
+STAGE1_PROFILE   = uclibc/x86
+STAGE2_PROFILE   = $(STAGE1_PROFILE)
+STAGE3_PROFILE   = $(STAGE2_PROFILE)
+
+#STAGE4_PROFILE   = $(STAGE3_PROFILE)
+#STAGE4_PACKAGES = gnome hardened-sources
+#STAGE4_USE = gnome gtk X
+
+TINDERBOX_PROFILE = $(STAGE3_PROFILE)
+TINDERBOX_USE =
+TINDERBOX_PACKAGES = vim cups samba ntp apache
+
+MIRROR_DIR = /home/stoile/public_html/gentoo
+PORTAGE_VERSION = $(VERSION)
+#STAGE3_TARBALL = ../experimental/x86/embedded/stages/stage3-x86-uclibc-2006.1.tar.bz2
+CATALYST_BIN = /usr/bin/catalyst
+CATALYST_CONF = /root/work/catalyst/i386-unknown-linux-uclibc/catalyst.conf
+
+CATALYST_DIR = /var/tmp/catalyst_i386-unknown-linux-uclibc
+PACKAGE_FILE = packages.conf
+LIVECD_FILE  = livecd.conf
+FS_SCRIPT    = fsscript
+ROOT_OVERLAY = root_overlay
+
+SEEDSTAGE = seedstage-$(SUBARCH)-$(VERSION).tar.bz2
+
+PORTAGE_SNAPSHOT = portage-${PORTAGE_VERSION}.tar.bz2
+PORTAGE_CONFDIR = /root/work/catalyst/i386-unknown-linux-uclibc/portage
+
+
+STAGE1_SPEC = stage1.spec
+STAGE2_SPEC = stage2.spec
+STAGE3_SPEC = stage3.spec
+STAGE4_SPEC = stage4.spec
+
+TINDERBOX_SPEC = tinderbox.spec
+
+LIVECD_STAGE1_SPEC = livecd-stage1.spec
+LIVECD_STAGE2_SPEC = livecd-stage2.spec
+
+STAGEDIR  = $(CATALYST_DIR)/builds/$(RELTYPE)
+
+STAGE1    = stage1-$(SUBARCH)-$(VERSION).tar.bz2
+STAGE2    = stage2-$(SUBARCH)-$(VERSION).tar.bz2
+STAGE3    = stage3-$(SUBARCH)-$(VERSION).tar.bz2
+STAGE4    = stage4-$(SUBARCH)-$(VERSION).tar.bz2
+
+.PHONY: all
+
+all: $(STAGE1) $(STAGE2) $(STAGE3)
+#all: $(STAGE1) $(STAGE2) $(STAGE3) tinderbox
+
+fetch: $(PORTAGE_SNAPSHOT) $(SEEDSTAGE)
+
+$(PORTAGE_SNAPSHOT): $(MIRROR_DIR)/snapshots/$(PORTAGE_SNAPSHOT)
+	cp $? $@
+
+#${SEEDSTAGE}: $(MIRROR_DIR)/releases/${STAGE3_TARBALL}
+#	cp $? $@
+
+$(STAGE1_SPEC): Makefile
+	@rm -f $@
+	@echo "subarch: $(SUBARCH)" >> $@
+	@echo "version_stamp: $(VERSION)" >> $@
+	@echo "target: stage1" >> $@
+	@echo "rel_type: $(RELTYPE)" >> $@
+	@echo "profile: $(STAGE1_PROFILE)" >> $@
+	@echo "snapshot: $(VERSION)" >> $@
+	@echo "source_subpath: $(RELTYPE)/$(SEEDSTAGE:.tar.bz2=)" >> $@
+	# no distcc
+	@if [ -d "$(PORTAGE_CONFDIR)" ] ; then \
+		echo "portage_confdir: $(PORTAGE_CONFDIR)" >> $@ ; fi
+	@echo "chost: $(CHOST)" >> $@
+	@echo "cflags: $(CFLAGS)" >> $@
+	@echo "cxxflags: $(CXXFLAGS)" >> $@
+	@echo "ldflags: $(LDFLAGS)" >> $@
+	
+
+$(STAGE2_SPEC): Makefile
+	@rm -f $@
+	@echo "subarch: $(SUBARCH)" >> $@
+	@echo "version_stamp: $(VERSION)" >> $@
+	@echo "target: stage2" >> $@
+	@echo "rel_type: $(RELTYPE)" >> $@
+	@echo "profile: $(STAGE2_PROFILE)" >> $@
+	@echo "snapshot: $(VERSION)" >> $@
+	@echo "source_subpath: $(RELTYPE)/$(STAGE1:.tar.bz2=)" >> $@
+	# no distcc
+	@if [ -d "$(PORTAGE_CONFDIR)" ] ; then \
+		echo "portage_confdir: $(PORTAGE_CONFDIR)" >> $@ ; fi
+	@echo "chost: $(CHOST)" >> $@
+	@echo "cflags: $(CFLAGS)" >> $@
+	@echo "cxxflags: $(CXXFLAGS)" >> $@
+	@echo "ldflags: $(LDFLAGS)" >> $@
+
+$(STAGE3_SPEC): Makefile
+	@rm -f $@
+	@echo "subarch: $(SUBARCH)" >> $@
+	@echo "version_stamp: $(VERSION)" >> $@
+	@echo "target: stage3" >> $@
+	@echo "rel_type: $(RELTYPE)" >> $@
+	@echo "profile: $(STAGE3_PROFILE)" >> $@
+	@echo "snapshot: $(VERSION)" >> $@
+	@echo "source_subpath: $(RELTYPE)/$(STAGE2:.tar.bz2=)" >> $@
+	# no distcc
+	@if [ -d "$(PORTAGE_CONFDIR)" ] ; then \
+		echo "portage_confdir: $(PORTAGE_CONFDIR)" >> $@ ; fi
+
+$(TINDERBOX_SPEC): Makefile
+	@rm -f $@
+	@echo "subarch: $(SUBARCH)" >> $@
+	@echo "version_stamp: $(VERSION)" >> $@
+	@echo "target: tinderbox" >> $@
+	@echo "rel_type: $(RELTYPE)" >> $@
+	@echo "profile: $(TINDERBOX_PROFILE)" >> $@
+	@echo "snapshot: $(VERSION)" >> $@
+	@echo "source_subpath: $(RELTYPE)/$(STAGE3:.tar.bz2=)" >> $@
+	# no distcc_hosts
+	@if [ -d "$(PORTAGE_CONFDIR)" ] ; then \
+		echo "portage_confdir: $(PORTAGE_CONFDIR)" >> $@ ; fi
+	# default pkgcache_path
+	@echo "tinderbox/use: $(TINDERBOX_USE)" >> $@
+	@echo "tinderbox/packages: $(TINDERBOX_PACKAGES)" >> $@
+	# default kerncache_path
+
+$(STAGE4_SPEC): Makefile
+	@rm -f $@
+	@echo "subarch: $(SUBARCH)" >> $@
+	@echo "version_stamp: $(VERSION)" >> $@
+	@echo "target: stage4" >> $@
+	@echo "rel_type: $(RELTYPE)" >> $@
+	@echo "profile: $(STAGE4_PROFILE)" >> $@
+	@echo "snapshot: $(VERSION)" >> $@
+	@echo "source_subpath: $(RELTYPE)/$(STAGE3:.tar.bz2=)" >> $@
+	# no distcc
+	@if [ -d "$(PORTAGE_CONFDIR)" ] ; then \
+		echo "portage_confdir: $(PORTAGE_CONFDIR)" >> $@ ; fi
+	# no overlay
+	# default pkgcache
+	# default kerncache
+	@echo "stage4/use: $(STAGE4_USE)" >> $@
+	@echo "stage4/packages: $(STAGE4_PACKAGES)" >> $@
+	# no fsscript
+	# no bootsplash
+	# no theme
+	# no genkernel args
+	# no linuxrc
+	# no motd
+	# no mod blacklist
+	# no rc add
+	# no rc del
+	# no root overlay
+	# default dev manager
+	# no xinitrc
+	# no users
+	@echo "boot/kernel: hardened" >> $@
+	@echo "boot/kernel/hardened/sources: hardened-sources" >> $@
+	@echo "boot/kernel/hardened/config: config" >> $@
+	# no gentoo genkernel args
+	# no gentoo kernel use flags
+	# no gentoo kernel extraversion
+	# no gentoo kernel packages
+	# no stage4 unmerge
+	# no stage4 empty
+	# no stage4 rm
+
+$(LIVECD_STAGE1_SPEC): Makefile
+	@rm -f $@
+	@echo "subarch: $(SUBARCH)" >> $@
+	@echo "target: livecd-stage1" >> $@
+	@echo "version_stamp: $(VERSION)" >> $@
+	@echo "rel_type: $(RELTYPE)" >> $@
+	@echo "profile: $(STAGE2_PROFILE)" >> $@
+	@echo "snapshot: $(VERSION)" >> $@
+	@echo "source_subpath: $(RELTYPE)/$(STAGE3:.tar.bz2=)" >> $@
+	@if [ -d "$(PORTAGE_CONFDIR)" ] ; then \
+		echo "portage_confdir: $(PORTAGE_CONFDIR)" >> $@ ; fi
+	@cat "$(PACKAGE_FILE)" >> $@
+
+$(LIVECD_STAGE2_SPEC): Makefile
+	@rm -f $@
+	@echo "subarch: $(SUBARCH)" >> $@
+	@echo "target: livecd-stage2" >> $@
+	@echo "version_stamp: $(VERSION)" >> $@
+	@echo "rel_type: $(RELTYPE)" >> $@
+	@echo "profile: $(STAGE2_PROFILE)" >> $@
+	@echo "snapshot: $(VERSION)" >> $@
+	@echo "source_subpath: $(RELTYPE)/$(STAGE3:.tar.bz2=)" >> $@
+	@echo "boot/kernel/gentoo/sources: $(KERNEL_SOURCES)" >> $@
+	@echo "boot/kernel/gentoo/config: $(KERNEL_CONFIG)" >> $@
+	@echo "boot/kernel/gentoo/extraversion: $(RELTYPE)-$(VERSION)" >> $@
+	@echo "livecd/iso: $(RELTYPE)-$(VERSION).iso" >> $@
+	@echo "livecd/fsscript: $(FS_SCRIPT)" >> $@
+	@echo "livecd/root_overlay: $(ROOT_OVERLAY)" >> $@
+	@if [ -d "$(PORTAGE_CONFDIR)" ] ; then \
+		echo "portage_confdir: $(PORTAGE_CONFDIR)" >> $@ ; fi
+	@cat "$(LIVECD_FILE)" >> $@
+
+$(STAGEDIR)/$(SEEDSTAGE): $(SEEDSTAGE)
+	mkdir -p $(STAGEDIR)
+	cp "$(SEEDSTAGE)" "$(STAGEDIR)/$(SEEDSTAGE)"
+
+
+$(CATALYST_DIR)/snapshots/portage-$(VERSION).tar.bz2: $(PORTAGE_SNAPSHOT)
+	mkdir -p $(CATALYST_DIR)/snapshots
+	cp "$(PORTAGE_SNAPSHOT)" "$(CATALYST_DIR)/snapshots/portage-$(VERSION).tar.bz2"
+
+$(STAGEDIR)/$(STAGE1): $(STAGE1_SPEC) $(STAGEDIR)/$(SEEDSTAGE) $(CATALYST_DIR)/snapshots/portage-$(VERSION).tar.bz2
+	$(CATALYST_BIN) -c $(CATALYST_CONF) -f $(STAGE1_SPEC)
+
+$(STAGE1): $(STAGEDIR)/$(STAGE1)
+	cp "$(STAGEDIR)/$(STAGE1)" $@
+
+$(STAGEDIR)/$(STAGE2): $(STAGE2_SPEC) $(STAGEDIR)/$(STAGE1) $(CATALYST_DIR)/snapshots/portage-$(VERSION).tar.bz2
+	$(CATALYST_BIN) -c $(CATALYST_CONF) -f $(STAGE2_SPEC)
+
+$(STAGE2): $(STAGEDIR)/$(STAGE2)
+	cp "$(STAGEDIR)/$(STAGE2)" $@
+
+$(STAGEDIR)/$(STAGE3): $(STAGE3_SPEC) $(STAGEDIR)/$(STAGE2) $(CATALYST_DIR)/snapshots/portage-$(VERSION).tar.bz2
+	$(CATALYST_BIN) -c $(CATALYST_CONF) -f $(STAGE3_SPEC)
+
+$(STAGE3): $(STAGEDIR)/$(STAGE3)
+	cp "$(STAGEDIR)/$(STAGE3)" $@
+
+$(STAGEDIR)/$(STAGE4): $(STAGE4_SPEC) $(STAGEDIR)/$(STAGE3) $(CATALYST_DIR)/snapshots/portage-$(VERSION).tar.bz2
+	$(CATALYST_BIN) -c $(CATALYST_CONF) -f $(STAGE4_SPEC)
+
+$(STAGE4): $(STAGEDIR)/$(STAGE4)
+	cp "$(STAGEDIR)/$(STAGE4)" $@
+
+livecd-stage1: $(LIVECD_STAGE1_SPEC) $(STAGEDIR)/$(STAGE3) $(CATALYST_DIR)/snapshots/portage-$(VERSION).tar.bz2
+	$(CATALYST_BIN) -c $(CATALYST_CONF) -f $(LIVECD_STAGE1_SPEC)
+
+livecd-stage2: $(LIVECD_STAGE2_SPEC) $(STAGEDIR)/$(STAGE3) $(CATALYST_DIR)/snapshots/portage-$(VERSION).tar.bz2
+	$(CATALYST_BIN) -c $(CATALYST_CONF) -f $(LIVECD_STAGE2_SPEC)
+
+tinderbox: $(TINDERBOX_SPEC) $(STAGEDIR)/$(STAGE3) $(CATALYST_DIR)/snapshots/portage-$(VERSION).tar.bz2
+	$(CATALYST_BIN) -c $(CATALYST_CONF) -f $(TINDERBOX_SPEC)
-- 
gnap-dev@g.o mailing list


Navigation:
Lists: gnap-dev: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
[gnap-dev commit] r116 - in trunk: src src/examples src/mbr tools tools/examples tools/mbr
Next by thread:
[gnap-dev commit] r118 - in trunk/tools/rebuild_stages: . i386-uclibc
Previous by date:
[gnap-dev commit] r116 - in trunk: src src/examples src/mbr tools tools/examples tools/mbr
Next by date:
[gnap-dev commit] r118 - in trunk/tools/rebuild_stages: . i386-uclibc


Updated Jun 17, 2009

Summary: Archive of the gnap-dev mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.