Re: [Balloon] Further build issues

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Bob Dunlop
Date:  
To: balloon
Subject: Re: [Balloon] Further build issues
On Thu, Apr 08 at 09:39, Charles Manning wrote:
> During the initrd building, the building of makedev failed due to the compiler
> being -Werror and system() return value being ignored. I got past that with
> the following patch. I'm sure this should rather be fixed elsewhere.


A simpler patch would be to replace system() by calling sync() direct.

$ diff -u makedevs.c~ makedevs.c
--- makedevs.c~    2010-04-08 08:55:31.000000000 +1200
+++ makedevs.c    2010-04-08 08:56:56.608535407 +1200
@@ -528,7 +528,7 @@
     }
     fclose(table);


-    system("/bin/sync");
+    sync();


     return 0;
 }



As for the build system in general I can't help as we run our own custom
build system. I do have a last version from CVS YAFFS2 with a 2.6.33
kernel running on a Balloon2 board so I can confirm it can be done.

-- 
        Bob Dunlop
        Guralp Systems Limited
        http://www.guralp.com