Re: armv7hl requirements

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jon asked me to join this list, here's my first contribution...

> though that might be a bit hard since gcc will take some time to compile.

Here's a trick to speeding up arm compiles.  Install distcc on the arm
device.  On your local x86 machines, install a hacked distccd that runs
an arm cross compiler.

Now you can add your x86 boxen, which tend to be faster than arm
devices, as additional build hosts, or in my case, the only build host
- I let the arm device worry about preprocessing et al and let the
desktop do the compiling.

Since there are no hacks on the arm side, this doesn't break the
"Fedora must build native" rule - as far as the arm side knows, it
*is* running native, and simply disabling distcc still works, just
slower.

Use a non-standard port for these distcc's so you won't confuse any
native distcc users.

Here's the distccd hack you need (change the path as appropriate for
your local machine):

--- distcc-2.18.3/src/arg.c     2004-11-30 07:13:53.000000000 -0500
+++ distcc-2.18.3-dj/src/arg.c  2011-03-14 18:48:55.000000000 -0400
@@ -147,6 +147,19 @@ int dcc_scan_args(char *argv[], char **i
 
     *input_file = *output_file = NULL;
 
+#define ARMPATH "/envy/dj/ges/arm/install/bin/armv5tel-redhat-linux-gnueabi-"
+    if (strcmp (argv[0], "gcc") == 0
+        || strcmp (argv[0], "cc") == 0) {
+        argv[0] = strdup( ARMPATH "gcc");
+    }
+    if (strcmp (argv[0], "g++") == 0
+        || strcmp (argv[0], "c++") == 0) {
+        argv[0] = strdup(ARMPATH "g++");
+    }
+    if (strcmp (argv[0], "as") == 0) {
+        argv[0] = strdup(ARMPATH "as");
+    }
+
     for (i = 0; (a = argv[i]); i++) {
         if (a[0] == '-') {
             if (!strcmp(a, "-E")) {
_______________________________________________
arm mailing list
arm@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/arm


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux ARM (Vger)]     [Linux ARM]     [ARM Kernel]     [Fedora User Discussion]     [Older Fedora Users Discussion]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Maintainers]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Announce]     [Fedora Package Review]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Coolkey]     [Yum Users]     [Tux]     [Yosemite News]     [Linux Apps]     [KDE Users]     [Fedora Tools]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]

Powered by Linux