[Balloon] Fetch yaffs from git

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] Fetch yaffs from git
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----------