Revision: 6251
          http://ipcop.svn.sourceforge.net/ipcop/?rev=6251&view=rev
Author:   gespinasse
Date:     2012-01-21 16:15:54 +0000 (Sat, 21 Jan 2012)
Log Message:
-----------
Reduce memory requirement to compress the kernel with lzma from insane 674 MiB 
to 38 MiB
Add --vv to show what lzma requirements are

This solve compilation on 512 MiB machines, should work too with 256 or 128 MiB 
(untested)

Modified Paths:
--------------
    ipcop/trunk/lfs/linux

Modified: ipcop/trunk/lfs/linux
===================================================================
--- ipcop/trunk/lfs/linux       2012-01-21 10:48:49 UTC (rev 6250)
+++ ipcop/trunk/lfs/linux       2012-01-21 16:15:54 UTC (rev 6251)
@@ -138,6 +138,13 @@
        cd $(DIR_APP) && make clean
 
 ifeq "$(MACHINE)" "i486"
+       # -9 require 674 MiB to compress a 3 MB file and is a nonsense.
+       # Remove -9 make us use default -6 that require 94 Mib to compress, 9 
Mib to uncompress
+       # Setting dictionary size near uncompressed file size is enought to 
give same resulting file,
+       # This help too to reduce memory requirement to 38 Mib to compress and 
to 4 Mib to uncompress
+       # -vv just show the memory requirements
+       cd $(DIR_APP) && sed -i 's/lzma -9/lzma -vv --lzma1=dict=3MiB/' 
scripts/Makefile.lib
+
        cd $(DIR_APP) && make -j $(PARALLELISM) all
        cd $(DIR_APP) && cp -f arch/x86/boot/bzImage /boot/vmlinuz-$(KVER)
        cd $(DIR_APP) && cp -f System.map /boot/System.map-$(KVER)

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Ipcop-svn mailing list
Ipcop-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ipcop-svn

Reply via email to