Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | From 7af9db748974cb3a2c6ef8f9e03d7db1f9f8ee16 Mon Sep 17 00:00:00 2001 |
| 2 | From: Paul Gortmaker <paul.gortmaker@windriver.com> |
| 3 | Date: Wed, 6 Aug 2014 14:54:12 -0400 |
| 4 | Subject: [PATCH 1/2] defn2[c|man]: don't rely on dpkg-architecture to set arch |
| 5 | |
| 6 | In yocto we'll always be cross compiling, and we'll always |
| 7 | be building on linux for linux (vs. *BSD, hurd, etc.) |
| 8 | |
| 9 | Without this the arch is not detected, but it doesn't error |
| 10 | out, and hence you get useless binaries that don't know any |
| 11 | arch specific methods, and the end result will be strangeness |
| 12 | like the loopback device not being configured/enabled. |
| 13 | |
| 14 | Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame^] | 15 | Upstream-Status: Pending |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 16 | --- |
| 17 | defn2c.pl | 6 +++--- |
| 18 | defn2man.pl | 6 +++--- |
| 19 | 2 files changed, 6 insertions(+), 6 deletions(-) |
| 20 | |
| 21 | diff --git a/defn2c.pl b/defn2c.pl |
| 22 | index c449de2f3d1c..38845e374c76 100755 |
| 23 | --- a/defn2c.pl |
| 24 | +++ b/defn2c.pl |
| 25 | @@ -2,9 +2,9 @@ |
| 26 | |
| 27 | use strict; |
| 28 | |
| 29 | -my $DEB_HOST_ARCH_OS = `dpkg-architecture -qDEB_HOST_ARCH_OS`; |
| 30 | - |
| 31 | -$DEB_HOST_ARCH_OS =~ s/\n//; |
| 32 | +#my $DEB_HOST_ARCH_OS = `dpkg-architecture -qDEB_HOST_ARCH_OS`; |
| 33 | +#$DEB_HOST_ARCH_OS =~ s/\n//; |
| 34 | +my $DEB_HOST_ARCH_OS ="linux"; |
| 35 | |
| 36 | # declarations |
| 37 | my $address_family = ""; |
| 38 | diff --git a/defn2man.pl b/defn2man.pl |
| 39 | index 6ddcfdd4fe68..c9c4dd046597 100755 |
| 40 | --- a/defn2man.pl |
| 41 | +++ b/defn2man.pl |
| 42 | @@ -2,9 +2,9 @@ |
| 43 | |
| 44 | use strict; |
| 45 | |
| 46 | -my $DEB_HOST_ARCH_OS = `dpkg-architecture -qDEB_HOST_ARCH_OS`; |
| 47 | - |
| 48 | -$DEB_HOST_ARCH_OS =~ s/\n//; |
| 49 | +#my $DEB_HOST_ARCH_OS = `dpkg-architecture -qDEB_HOST_ARCH_OS`; |
| 50 | +#$DEB_HOST_ARCH_OS =~ s/\n//; |
| 51 | +my $DEB_HOST_ARCH_OS = "linux"; |
| 52 | |
| 53 | # declarations |
| 54 | my $line; |
| 55 | -- |
| 56 | 1.9.1 |
| 57 | |