summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/gnu-config
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/gnu-config')
-rw-r--r--meta/recipes-devtools/gnu-config/gnu-config/config-guess-uclibc.patch170
-rwxr-xr-xmeta/recipes-devtools/gnu-config/gnu-config/gnu-configize.in267
-rw-r--r--meta/recipes-devtools/gnu-config/gnu-config/uclibc.patch23
-rw-r--r--meta/recipes-devtools/gnu-config/gnu-config_20120814.bb40
-rw-r--r--meta/recipes-devtools/gnu-config/gnu-config_git.bb41
5 files changed, 541 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gnu-config/gnu-config/config-guess-uclibc.patch b/meta/recipes-devtools/gnu-config/gnu-config/config-guess-uclibc.patch
new file mode 100644
index 0000000000..2094116f0d
--- /dev/null
+++ b/meta/recipes-devtools/gnu-config/gnu-config/config-guess-uclibc.patch
@@ -0,0 +1,170 @@
1Upstream-Status: Pending
2
3Patch courtesy gentoo-portage/sys-devel/gnuconfig/files/automake-1.8.5-config-guess-uclibc.patch.
4
5updated to 20050516 by Marcin 'Hrw' Juszkiewicz (by hand)
6updated to 20080123 by Nitin A Kamble (by hand)
7updated to 20111001 by Saul Wold (by hand)
8updated to 20120818 by Marcin 'Hrw' Juszkiewicz (by hand)
9
10Signed-off-by: Saul Wold <sgw@linux.intel.com>
11Signed-off-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
12
13---
14 config.guess | 67 +++++++++++++++++++++++++++++++++++------------------------
15 1 file changed, 40 insertions(+), 27 deletions(-)
16
17--- git.orig/config.guess
18+++ git/config.guess
19@@ -138,6 +138,19 @@ UNAME_RELEASE=`(uname -r) 2>/dev/null` |
20 UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
21 UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
22
23+# Detect uclibc systems.
24+
25+LIBC="gnu"
26+if [ -f /usr/include/bits/uClibc_config.h ]
27+then
28+ LIBC=uclibc
29+ if [ -n `grep "#define __UCLIBC_CONFIG_VERSION__" /usr/include/bits/uClibc_config.h` ]
30+ then
31+ UCLIBC_SUBVER=`sed -n "/#define __UCLIBC_CONFIG_VERSION__ /s///p" /usr/include/bits/uClibc_config.h`
32+ LIBC=$LIBC$UCLIBC_SUBVER
33+ fi
34+fi
35+
36 # Note: order is significant - the case branches are not exclusive.
37
38 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
39@@ -886,15 +899,15 @@ EOF
40 EV68*) UNAME_MACHINE=alphaev68 ;;
41 esac
42 objdump --private-headers /bin/sh | grep -q ld.so.1
43- if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
44- echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
45+ if test "$?" = 0 ; then LIBC="gnulibc1" ; else LIBC="" ; fi
46+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
47 exit ;;
48 arm*:Linux:*:*)
49 eval $set_cc_for_build
50 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
51 | grep -q __ARM_EABI__
52 then
53- echo ${UNAME_MACHINE}-unknown-linux-gnu
54+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
55 else
56 if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
57 | grep -q __ARM_PCS_VFP
58@@ -906,19 +919,19 @@ EOF
59 fi
60 exit ;;
61 avr32*:Linux:*:*)
62- echo ${UNAME_MACHINE}-unknown-linux-gnu
63+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
64 exit ;;
65 cris:Linux:*:*)
66- echo ${UNAME_MACHINE}-axis-linux-gnu
67+ echo ${UNAME_MACHINE}-axis-linux-${LIBC}
68 exit ;;
69 crisv32:Linux:*:*)
70- echo ${UNAME_MACHINE}-axis-linux-gnu
71+ echo ${UNAME_MACHINE}-axis-linux-${LIBC}
72 exit ;;
73 frv:Linux:*:*)
74- echo ${UNAME_MACHINE}-unknown-linux-gnu
75+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
76 exit ;;
77 hexagon:Linux:*:*)
78- echo ${UNAME_MACHINE}-unknown-linux-gnu
79+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
80 exit ;;
81 i*86:Linux:*:*)
82 LIBC=gnu
83@@ -932,13 +945,13 @@ EOF
84 echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
85 exit ;;
86 ia64:Linux:*:*)
87- echo ${UNAME_MACHINE}-unknown-linux-gnu
88+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
89 exit ;;
90 m32r*:Linux:*:*)
91- echo ${UNAME_MACHINE}-unknown-linux-gnu
92+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
93 exit ;;
94 m68*:Linux:*:*)
95- echo ${UNAME_MACHINE}-unknown-linux-gnu
96+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
97 exit ;;
98 mips:Linux:*:* | mips64:Linux:*:*)
99 eval $set_cc_for_build
100@@ -957,54 +970,54 @@ EOF
101 #endif
102 EOF
103 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
104- test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
105+ test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
106 ;;
107 or32:Linux:*:*)
108- echo ${UNAME_MACHINE}-unknown-linux-gnu
109+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
110 exit ;;
111 padre:Linux:*:*)
112- echo sparc-unknown-linux-gnu
113+ echo sparc-unknown-linux-${LIBC}
114 exit ;;
115 parisc64:Linux:*:* | hppa64:Linux:*:*)
116- echo hppa64-unknown-linux-gnu
117+ echo hppa64-unknown-linux-${LIBC}
118 exit ;;
119 parisc:Linux:*:* | hppa:Linux:*:*)
120 # Look for CPU level
121 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
122- PA7*) echo hppa1.1-unknown-linux-gnu ;;
123- PA8*) echo hppa2.0-unknown-linux-gnu ;;
124- *) echo hppa-unknown-linux-gnu ;;
125+ PA7*) echo hppa1.1-unknown-linux-${LIBC} ;;
126+ PA8*) echo hppa2.0-unknown-linux-${LIBC} ;;
127+ *) echo hppa-unknown-linux-${LIBC} ;;
128 esac
129 exit ;;
130 ppc64:Linux:*:*)
131- echo powerpc64-unknown-linux-gnu
132+ echo powerpc64-unknown-linux-${LIBC}
133 exit ;;
134 ppc:Linux:*:*)
135- echo powerpc-unknown-linux-gnu
136+ echo powerpc-unknown-linux-${LIBC}
137 exit ;;
138 s390:Linux:*:* | s390x:Linux:*:*)
139 echo ${UNAME_MACHINE}-ibm-linux
140 exit ;;
141 sh64*:Linux:*:*)
142- echo ${UNAME_MACHINE}-unknown-linux-gnu
143+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
144 exit ;;
145 sh*:Linux:*:*)
146- echo ${UNAME_MACHINE}-unknown-linux-gnu
147+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
148 exit ;;
149 sparc:Linux:*:* | sparc64:Linux:*:*)
150- echo ${UNAME_MACHINE}-unknown-linux-gnu
151+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
152 exit ;;
153 tile*:Linux:*:*)
154- echo ${UNAME_MACHINE}-unknown-linux-gnu
155+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
156 exit ;;
157 vax:Linux:*:*)
158- echo ${UNAME_MACHINE}-dec-linux-gnu
159+ echo ${UNAME_MACHINE}-dec-linux-${LIBC}
160 exit ;;
161 x86_64:Linux:*:*)
162- echo ${UNAME_MACHINE}-unknown-linux-gnu
163+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
164 exit ;;
165 xtensa*:Linux:*:*)
166- echo ${UNAME_MACHINE}-unknown-linux-gnu
167+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
168 exit ;;
169 i*86:DYNIX/ptx:4*:*)
170 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
diff --git a/meta/recipes-devtools/gnu-config/gnu-config/gnu-configize.in b/meta/recipes-devtools/gnu-config/gnu-config/gnu-configize.in
new file mode 100755
index 0000000000..d4908fc4f9
--- /dev/null
+++ b/meta/recipes-devtools/gnu-config/gnu-config/gnu-configize.in
@@ -0,0 +1,267 @@
1#! /usr/bin/env perl
2# -*- perl -*-
3
4eval 'case $# in 0) exec /usr/bin/perl -S "$0";; *) exec /usr/bin/perl -S "$0" "$@";; esac'
5 if 0;
6
7# gnu-configize - install the GNU config.guess / config.sub in a directory tree
8# Based on autoreconf:
9# Copyright (C) 1994, 1999, 2000, 2001, 2002, 2003
10# Free Software Foundation, Inc.
11
12# This program is free software; you can redistribute it and/or modify
13# it under the terms of the GNU General Public License as published by
14# the Free Software Foundation; either version 2, or (at your option)
15# any later version.
16
17# This program is distributed in the hope that it will be useful,
18# but WITHOUT ANY WARRANTY; without even the implied warranty of
19# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20# GNU General Public License for more details.
21
22# You should have received a copy of the GNU General Public License
23# along with this program; if not, write to the Free Software
24# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
25# 02111-1307, USA.
26
27BEGIN
28{
29 my $datadir = $ENV{'autom4te_perllibdir'} || '@autom4te_perllibdir@';
30# '/home/kergoth/code/build-arm/tmp/staging/share/autoconf';
31 unshift @INC, $datadir;
32
33 # Override SHELL. On DJGPP SHELL may not be set to a shell
34 # that can handle redirection and quote arguments correctly,
35 # e.g.: COMMAND.COM. For DJGPP always use the shell that configure
36 # has detected.
37 $ENV{'SHELL'} = '/bin/sh' if ($^O eq 'dos');
38}
39
40use Autom4te::ChannelDefs;
41use Autom4te::Channels;
42use Autom4te::Configure_ac;
43use Autom4te::FileUtils;
44use Autom4te::General;
45use Autom4te::XFile;
46# Do not use Cwd::chdir, since it might hang.
47use Cwd 'cwd';
48use strict;
49
50## ----------- ##
51## Variables. ##
52## ----------- ##
53
54# $HELP
55# -----
56$help = "Usage: $0 [OPTION] ... [CONFIGURE-AC or DIRECTORY] ...
57
58Install the GNU config.sub and config.guess scripts in the
59DIRECTORIES or the directory trees driven by CONFIGURE-AC
60(defaulting to `.').
61
62Operation modes:
63 -h, --help print this help, then exit
64 -V, --version print version number, then exit
65 -v, --verbose verbosely report processing
66 -f, --force consider all files obsolete
67 -s, --symlink install symbolic links instead of copies
68 -W, --warnings=CATEGORY report the warnings falling in CATEGORY [syntax]
69
70" . Autom4te::ChannelDefs::usage . "
71
72The environment variable \`WARNINGS\' is honored. Some subtools might
73support other warning types, using \`all' is encouraged.
74";
75
76# $VERSION
77# --------
78$version = "gnu-configize 1.0
79
80Copyright (C) 2004 Chris Larson
81This is free software; see the source for copying conditions. There is NO
82warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
83";
84
85my $configdir = '@gnu-configdir@';
86#'/home/kergoth/code/build-arm/tmp/staging/i686-linux/share/gnu-config';
87my $autoconf = $ENV{'AUTOCONF'} || 'autoconf';
88
89# use symlinks instead.
90my $symlink = 0;
91
92my $configure_ac;
93
94my $rm = "rm -f";
95my $ln_s = "ln -sf";
96my $cp = "cp -f";
97my $mkdir = "mkdir";
98my $chmod = "chmod";
99
100## ---------- ##
101## Routines. ##
102## ---------- ##
103
104
105# parse_args ()
106# -------------
107# Process any command line arguments.
108sub parse_args ()
109{
110 my $srcdir;
111
112 getopt ('s|symlink' => \$symlink);
113
114 # Even if the user specified a configure.ac, trim to get the
115 # directory, and look for configure.ac again. Because (i) the code
116 # is simpler, and (ii) we are still able to diagnose simultaneous
117 # presence of configure.ac and configure.in.
118 @ARGV = map { /configure\.(ac|in)$/ ? dirname ($_) : $_ } @ARGV;
119 push @ARGV, '.' unless @ARGV;
120}
121
122
123# &gnu_configize_current_directory
124# -----------------------------
125sub gnu_configize_current_directory ()
126{
127 my $configure_ac = require_configure_ac;
128
129 # ---------------------- #
130 # Is it using Autoconf? #
131 # ---------------------- #
132
133 my $uses_autoconf;
134 my $uses_gettext;
135 my $configure_ac_file = new Autom4te::XFile $configure_ac;
136 while ($_ = $configure_ac_file->getline)
137 {
138 s/#.*//;
139 s/dnl.*//;
140 $uses_autoconf = 1 if /AC_INIT/;
141 }
142
143 if (!$uses_autoconf)
144 {
145 verb "$configure_ac: not using Autoconf";
146 return;
147 }
148
149 my $aux_dir;
150 my @subdir;
151 my $cmd;
152 my $dest;
153
154 verb "$configure_ac: tracing";
155 my $traces = new Autom4te::XFile
156 ("$autoconf"
157 . join (' --trace=', '',
158 # If you change this list, update the
159 # `Autoreconf-preselections' section of autom4te.in.
160 'AC_CONFIG_AUX_DIR:AC_CONFIG_AUX_DIR:\$1',
161 'AC_CONFIG_SUBDIRS:AC_CONFIG_SUBDIRS:\$1',
162 'AC_INIT',
163 )
164 . ' |');
165 while ($_ = $traces->getline)
166 {
167 $aux_dir = $1 if /AC_CONFIG_AUX_DIR:(.*)/;
168 $uses_autoconf = 1 if /AC_INIT/;
169 push @subdir, split (' ', $1) if /AC_CONFIG_SUBDIRS:(.*)/;
170 }
171
172 # The subdirs are *optional*, they may not exist.
173 foreach (@subdir)
174 {
175 if (-d)
176 {
177 verb "$configure_ac: subdirectory $_ to gnu-configize";
178 gnu_configize ($_);
179 }
180 else
181 {
182 verb "$configure_ac: subdirectory $_ not present";
183 }
184 }
185
186 $dest = ".";
187
188 if (defined $aux_dir)
189 {
190 $dest = $aux_dir;
191 if (! -d $aux_dir)
192 {
193 verb "$configure_ac: creating directory $aux_dir";
194 mkdir $aux_dir
195 or error "cannot create $aux_dir: $!";
196 }
197 }
198
199 if (!$symlink)
200 {
201 $cmd = $cp;
202 }
203 else
204 {
205 $cmd = $ln_s;
206 }
207
208 xsystem ("$cmd $configdir/config.guess $dest/");
209 xsystem ("$chmod u+x $dest/config.guess");
210 xsystem ("$cmd $configdir/config.sub $dest/");
211 xsystem ("$chmod u+x $dest/config.sub");
212}
213
214
215# &gnu_configize ($DIRECTORY)
216# ------------------------
217# Reconf the $DIRECTORY.
218sub gnu_configize ($)
219{
220 my ($directory) = @_;
221 my $cwd = cwd;
222
223 # The format for this message is not free: taken from Emacs, itself
224 # using GNU Make's format.
225 verb "Entering directory `$directory'";
226 chdir $directory
227 or error "cannot chdir to $directory: $!";
228
229 gnu_configize_current_directory;
230
231 # The format is not free: taken from Emacs, itself using GNU Make's
232 # format.
233 verb "Leaving directory `$directory'";
234 chdir $cwd
235 or error "cannot chdir to $cwd: $!";
236}
237
238
239## ------ ##
240## Main. ##
241## ------ ##
242
243parse_args;
244
245# Autoreconf all the given configure.ac. A while loop, not a for,
246# since the list can change at runtime because of AC_CONFIG_SUBDIRS.
247for my $directory (@ARGV)
248 {
249 gnu_configize ($directory);
250 }
251
252### Setup "GNU" style for perl-mode and cperl-mode.
253## Local Variables:
254## perl-indent-level: 2
255## perl-continued-statement-offset: 2
256## perl-continued-brace-offset: 0
257## perl-brace-offset: 0
258## perl-brace-imaginary-offset: 0
259## perl-label-offset: -2
260## cperl-indent-level: 2
261## cperl-brace-offset: 0
262## cperl-continued-brace-offset: 0
263## cperl-label-offset: -2
264## cperl-extra-newline-before-brace: t
265## cperl-merge-trailing-else: nil
266## cperl-continued-statement-offset: 2
267## End:
diff --git a/meta/recipes-devtools/gnu-config/gnu-config/uclibc.patch b/meta/recipes-devtools/gnu-config/gnu-config/uclibc.patch
new file mode 100644
index 0000000000..75fe100825
--- /dev/null
+++ b/meta/recipes-devtools/gnu-config/gnu-config/uclibc.patch
@@ -0,0 +1,23 @@
1Upstream-Status: Pending
2
3--- config.sub.orig 2004-05-14 19:38:36.000000000 -0500
4+++ config.sub 2004-05-14 19:39:17.000000000 -0500
5@@ -118,7 +118,7 @@
6 # Here we must recognize all the valid KERNEL-OS combinations.
7 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
8 case $maybe_os in
9- nto-qnx* | linux-gnu* | kfreebsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
10+ nto-qnx* | linux-gnu* | linux-uclibc* | freebsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
11 os=-$maybe_os
12 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
13 ;;
14@@ -1135,7 +1135,8 @@
15 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
16 | -chorusos* | -chorusrdb* \
17 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
18- | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
19+ | -mingw32* | -linux-gnu* | -linux-uclibc* \
20+ | -uxpv* | -beos* | -mpeix* | -udk* \
21 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
22 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
23 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
diff --git a/meta/recipes-devtools/gnu-config/gnu-config_20120814.bb b/meta/recipes-devtools/gnu-config/gnu-config_20120814.bb
new file mode 100644
index 0000000000..44e1b5d49e
--- /dev/null
+++ b/meta/recipes-devtools/gnu-config/gnu-config_20120814.bb
@@ -0,0 +1,40 @@
1SUMMARY = "gnu-configize"
2DESCRIPTION = "Tool that installs the GNU config.guess / config.sub into a directory tree"
3SECTION = "devel"
4LICENSE = "GPLv2"
5LIC_FILES_CHKSUM = "file://config.guess;endline=39;md5=b79a4663475f4d724846463277817e0d"
6
7DEPENDS_class-native = "perl-native-runtime"
8
9INHIBIT_DEFAULT_DEPS = "1"
10
11
12SRC_URI = "http://downloads.yoctoproject.org/releases/gnu-config/gnu-config-${PV}.tar.bz2 \
13 file://config-guess-uclibc.patch \
14 file://gnu-configize.in"
15
16SRC_URI[md5sum] = "bcfca5a2bb39edad4aae5a65efc84094"
17SRC_URI[sha256sum] = "44f99a8e76f3e8e4fec0bb5ad4762f8e44366168554ce66cb85afbe2ed3efd8b"
18
19do_compile() {
20 :
21}
22
23do_install () {
24 install -d ${D}${datadir}/gnu-config \
25 ${D}${bindir}
26 cat ${WORKDIR}/gnu-configize.in | \
27 sed -e 's,@gnu-configdir@,${datadir}/gnu-config,g' \
28 -e 's,@autom4te_perllibdir@,${datadir}/autoconf,g' > ${D}${bindir}/gnu-configize
29 # In the native case we want the system perl as perl-native can't have built yet
30 if [ "${PN}" != "gnu-config-native" -a "${PN}" != "nativesdk-gnu-config" ]; then
31 sed -i -e 's,/usr/bin/env,${bindir}/env,g' ${D}${bindir}/gnu-configize
32 fi
33 chmod 755 ${D}${bindir}/gnu-configize
34 install -m 0644 config.guess config.sub ${D}${datadir}/gnu-config/
35}
36
37PACKAGES = "${PN}"
38FILES_${PN} = "${bindir} ${datadir}/gnu-config"
39
40BBCLASSEXTEND = "native nativesdk"
diff --git a/meta/recipes-devtools/gnu-config/gnu-config_git.bb b/meta/recipes-devtools/gnu-config/gnu-config_git.bb
new file mode 100644
index 0000000000..00fa759176
--- /dev/null
+++ b/meta/recipes-devtools/gnu-config/gnu-config_git.bb
@@ -0,0 +1,41 @@
1SUMMARY = "gnu-configize"
2DESCRIPTION = "Tool that installs the GNU config.guess / config.sub into a directory tree"
3SECTION = "devel"
4LICENSE = "GPLv2"
5LIC_FILES_CHKSUM = "file://config.guess;endline=39;md5=0e6ca0501b27177f3bc640f7225e3ead"
6
7DEPENDS_class-native = "perl-native-runtime"
8
9INHIBIT_DEFAULT_DEPS = "1"
10
11SRCREV = "a47f842264fc19837f8a00eb1d2d254a4c527334"
12PV = "1.0+git${SRCPV}"
13
14SRC_URI = "git://git.sv.gnu.org/config.git \
15 file://config-guess-uclibc.patch \
16 file://gnu-configize.in"
17
18S = "${WORKDIR}/git"
19
20do_compile() {
21 :
22}
23
24do_install () {
25 install -d ${D}${datadir}/gnu-config \
26 ${D}${bindir}
27 cat ${WORKDIR}/gnu-configize.in | \
28 sed -e 's,@gnu-configdir@,${datadir}/gnu-config,g' \
29 -e 's,@autom4te_perllibdir@,${datadir}/autoconf,g' > ${D}${bindir}/gnu-configize
30 # In the native case we want the system perl as perl-native can't have built yet
31 if [ "${PN}" != "gnu-config-native" -a "${PN}" != "nativesdk-gnu-config" ]; then
32 sed -i -e 's,/usr/bin/env,${bindir}/env,g' ${D}${bindir}/gnu-configize
33 fi
34 chmod 755 ${D}${bindir}/gnu-configize
35 install -m 0644 config.guess config.sub ${D}${datadir}/gnu-config/
36}
37
38PACKAGES = "${PN}"
39FILES_${PN} = "${bindir} ${datadir}/gnu-config"
40
41BBCLASSEXTEND = "native"