[Balloon] Patch: fetch yaffs from git instead of cvs

Top Page
Attachments:
Message as email
+ (text/plain)
+ balloon-yaffs-git.patch (text/x-diff)
Delete this message
Reply to this message
Author: Charles Manning
Date:  
To: balloon
Subject: [Balloon] Patch: fetch yaffs from git instead of cvs
Can someone please give this a look over and add to subversion?

I'd do this excpet that:
a) I don't have svn superpowers.
b) I'm a bit unsure of that test $$? stuff and would like a knowledgeable
person to give it a look over.

Balloon really needs to fetch yaffs from git rather than cvs because the cvs
is no longer being kept fresh. The git server holds all the cvs history too,
so it is capable of serving up any yaffs version, using the same version date
id as cvs, since yaffs was in nappies.

Thanks

Charles


---------- Forwarded Message ----------

Subject: [Balloon] Fetch yaffs from git
Date: Thursday 05 August 2010
From: Charles Manning <>
To: Balloon <>

Herewith what I've done to fetch yaffs from git.

I have no idea if the test $$? clause is correct but just tried to hum along
with the tune.

Charles

-------------------------------------------------------
Index: kernel/Makefile
===================================================================
--- kernel/Makefile    (revision 1190)
+++ kernel/Makefile    (working copy)
@@ -99,12 +99,22 @@
 #this needs to support git checkout after 2010-03-18, 
 #using rev-list to map date to version
 #git checkout `git rev-list -n 1 --before="2009-07-27" master`
+#$(RES)/yaffs-source-$(YAFFSCHECKOUT).stamp: $(RES)/unpacked-$(KERNVER).stamp
+#    ( cd $(RES) && rm -rf yaffs2 && \
+#    (( wget -N $(RELEASESITE)/sources/kernel/yaffs-$(YAFFSCHECKOUT).tar.bz2 && \
+#      tar --extract --bzip2 --file yaffs-$(YAFFSCHECKOUT).tar.bz2) || \
+#      ( echo "Checking out yaffs2 ($(YAFFSCHECKOUT)) from cvs"; \
+#        CVSROOT=:pserver::/home/aleph1/cvs cvs export -f -D "$(YAFFSCHECKOUT)" yaffs2 || test $$? = 2 ) )) && \
+#    ( cd $(RES)/yaffs2 && ./patch-ker.sh c ../linux-$(KERNVER) && \
+#    cd .. && tar -cjf $(RES)/yaffs-$(YAFFSCHECKOUT).tar.bz2 yaffs2 && rm -rf yaffs2) && \
+#    touch $(RES)/yaffs-source-$(YAFFSCHECKOUT).stamp 
 $(RES)/yaffs-source-$(YAFFSCHECKOUT).stamp: $(RES)/unpacked-$(KERNVER).stamp
     ( cd $(RES) && rm -rf yaffs2 && \
     (( wget -N $(RELEASESITE)/sources/kernel/yaffs-$(YAFFSCHECKOUT).tar.bz2 && \
       tar --extract --bzip2 --file yaffs-$(YAFFSCHECKOUT).tar.bz2) || \
-      ( echo "Checking out yaffs2 ($(YAFFSCHECKOUT)) from cvs"; \
-        CVSROOT=:pserver::/home/aleph1/cvs cvs export -f -D "$(YAFFSCHECKOUT)" yaffs2 || test $$? = 2 ) )) && \
+      ( echo "Fetch yaffs2 ($(YAFFSCHECKOUT)) from git"; \
+      git archive --format=tar --prefix=yaffs2/ --remote=git://www.aleph1.co.uk/yaffs2  master@{YAFFSCHECKOOUT} | tar -x \
+       || test $$? = 2 ) )) && \
     ( cd $(RES)/yaffs2 && ./patch-ker.sh c ../linux-$(KERNVER) && \
     cd .. && tar -cjf $(RES)/yaffs-$(YAFFSCHECKOUT).tar.bz2 yaffs2 && rm -rf yaffs2) && \
     touch $(RES)/yaffs-source-$(YAFFSCHECKOUT).stamp 
Index: Makefile.inc
===================================================================
--- Makefile.inc    (revision 1190)
+++ Makefile.inc    (working copy)
@@ -27,7 +27,7 @@
 #INITRAMFSOPTS:=CONFIG_INITRAMFS_SOURCE=usr/initramfs.cpio CONFIG_INITRAMFS_COMPRESSION_BZIP2=y


#yaffs checkout date
-YAFFSCHECKOUT:=2009-09-10
+YAFFSCHECKOUT:=2010-08-04

#----------Initrd build settings----------