* [Buildroot] [PATCH] buildroot:package: Remove configure target parameter in Makefile.autotools.in
@ 2011-02-01 3:52 Sonic Zhang
2011-02-01 4:06 ` [Buildroot] [uclinux-dist-devel] " Mike Frysinger
[not found] ` <AANLkTi=F8BRtskBBKE_Wno=Vy=EHvLjE3bkYagiAuegH@mail.gmail.com>
0 siblings, 2 replies; 10+ messages in thread
From: Sonic Zhang @ 2011-02-01 3:52 UTC (permalink / raw)
To: buildroot
From: Sonic Zhang <sonic.zhang@analog.com>
configure parameter --target has different meaning from buildroot environment
parameter GNU_TARGET_NAME. GNU_TARGET_NAME is actually equal to --host.
--build=BUILD configure for building on BUILD [guessed]
--host=HOST cross-compile to build programs to run on HOST [BUILD]
--target=TARGET configure for building compilers for TARGET [HOST]
--target is rarely used by most packages and is redundant in configure line.
If some packages do need --target, they can append it to buildroot environment
parameter INETUTILS_CONF_OPT in packages' makefile.
Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
---
package/Makefile.autotools.in | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/package/Makefile.autotools.in b/package/Makefile.autotools.in
index d445348..151e5cf 100644
--- a/package/Makefile.autotools.in
+++ b/package/Makefile.autotools.in
@@ -87,7 +87,6 @@ define $(2)_CONFIGURE_CMDS
$$(TARGET_CONFIGURE_ARGS) \
$$($$(PKG)_CONF_ENV) \
./configure \
- --target=$$(GNU_TARGET_NAME) \
--host=$$(GNU_TARGET_NAME) \
--build=$$(GNU_HOST_NAME) \
--prefix=/usr \
--
1.7.0.4
^ permalink raw reply related [flat|nested] 10+ messages in thread* [Buildroot] [uclinux-dist-devel] [PATCH] buildroot:package: Remove configure target parameter in Makefile.autotools.in 2011-02-01 3:52 [Buildroot] [PATCH] buildroot:package: Remove configure target parameter in Makefile.autotools.in Sonic Zhang @ 2011-02-01 4:06 ` Mike Frysinger [not found] ` <AANLkTi=F8BRtskBBKE_Wno=Vy=EHvLjE3bkYagiAuegH@mail.gmail.com> 1 sibling, 0 replies; 10+ messages in thread From: Mike Frysinger @ 2011-02-01 4:06 UTC (permalink / raw) To: buildroot On Mon, Jan 31, 2011 at 22:52, Sonic Zhang wrote: > configure parameter --target has different meaning from buildroot environment > parameter GNU_TARGET_NAME. GNU_TARGET_NAME is actually equal to --host. > > ?--build=BUILD ? ? configure for building on BUILD [guessed] > ?--host=HOST ? ? ? cross-compile to build programs to run on HOST [BUILD] > ?--target=TARGET ? configure for building compilers for TARGET [HOST] > > --target is rarely used by most packages and is redundant in configure line. > If some packages do need --target, they can append it to buildroot environment > parameter INETUTILS_CONF_OPT in packages' makefile. not really ... the usage is harmless. it might be a little redundant since target tends to default to host, but that's about it. what are you actually trying to address here ? [resending with buildroot subscription] -mike ^ permalink raw reply [flat|nested] 10+ messages in thread
[parent not found: <AANLkTi=F8BRtskBBKE_Wno=Vy=EHvLjE3bkYagiAuegH@mail.gmail.com>]
* [Buildroot] [uclinux-dist-devel] [PATCH] buildroot:package: Remove configure target parameter in Makefile.autotools.in [not found] ` <AANLkTi=F8BRtskBBKE_Wno=Vy=EHvLjE3bkYagiAuegH@mail.gmail.com> @ 2011-02-01 4:43 ` Sonic Zhang 2011-02-01 6:59 ` Mike Frysinger 2011-02-01 7:45 ` Peter Korsgaard 0 siblings, 2 replies; 10+ messages in thread From: Sonic Zhang @ 2011-02-01 4:43 UTC (permalink / raw) To: buildroot Some autotools based software packages generate prefix name to the binary after running install if you set --target parameter. For example: --target=arm rcp is rename to "linux-arm-rcp" after running install Sonic On Tue, Feb 1, 2011 at 12:02 PM, Mike Frysinger <vapier.adi@gmail.com> wrote: > On Mon, Jan 31, 2011 at 22:52, Sonic Zhang wrote: >> configure parameter --target has different meaning from buildroot environment >> parameter GNU_TARGET_NAME. GNU_TARGET_NAME is actually equal to --host. >> >> ?--build=BUILD ? ? configure for building on BUILD [guessed] >> ?--host=HOST ? ? ? cross-compile to build programs to run on HOST [BUILD] >> ?--target=TARGET ? configure for building compilers for TARGET [HOST] >> >> --target is rarely used by most packages and is redundant in configure line. >> If some packages do need --target, they can append it to buildroot environment >> parameter INETUTILS_CONF_OPT in packages' makefile. > > not really ... the usage is harmless. ?it might be a little redundant > since target tends to default to host, but that's about it. ?what are > you actually trying to address here ? > -mike > ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Buildroot] [uclinux-dist-devel] [PATCH] buildroot:package: Remove configure target parameter in Makefile.autotools.in 2011-02-01 4:43 ` Sonic Zhang @ 2011-02-01 6:59 ` Mike Frysinger [not found] ` <DB904C5425BA6F4E8424B3B51A1414D165B430B838@NWD2CMBX1.ad.analog.com> 2011-02-01 7:45 ` Peter Korsgaard 1 sibling, 1 reply; 10+ messages in thread From: Mike Frysinger @ 2011-02-01 6:59 UTC (permalink / raw) To: buildroot On Mon, Jan 31, 2011 at 23:43, Sonic Zhang wrote: please dont top post > Some autotools based software packages generate prefix name to the > binary after running install if you set --target parameter. > > For example: > > --target=arm > > rcp is rename to "linux-arm-rcp" after running install this is due to program_transform_name which is easily disabled: program_transform_name= alternatively, inetutils should be fixed to not have a --target in the first place. a "target" makes no sense for applications that dont generate anything, and since inetutils falls into that category, it should have AC_CANONICAL_SYSTEM changed to AC_CANONICAL_HOST in its configure.ac. -mike ^ permalink raw reply [flat|nested] 10+ messages in thread
[parent not found: <DB904C5425BA6F4E8424B3B51A1414D165B430B838@NWD2CMBX1.ad.analog.com>]
* [Buildroot] [uclinux-dist-devel] [PATCH] buildroot:package: Remove configure target parameter in Makefile.autotools.in [not found] ` <DB904C5425BA6F4E8424B3B51A1414D165B430B838@NWD2CMBX1.ad.analog.com> @ 2011-02-01 7:50 ` Mike Frysinger 0 siblings, 0 replies; 10+ messages in thread From: Mike Frysinger @ 2011-02-01 7:50 UTC (permalink / raw) To: buildroot On Tue, Feb 1, 2011 at 02:48, Zhang, Sonic wrote: >Mike Frysinger: >>On Mon, Jan 31, 2011 at 23:43, Sonic Zhang wrote: >>> Some autotools based software packages generate prefix name to the >>> binary after running install if you set --target parameter. >>> >>> For example: >>> --target=arm >>> rcp is rename to "linux-arm-rcp" after running install >> >>this is due to program_transform_name which is easily disabled: >> ? ?program_transform_name= > > Not only inetutils, but many other packages need "program_transform_name=" in this case. Because rare packages require --target to be set, why not do something to ease many? personally, i prefer the route of fixing the underlying problem -- these packages should not have a --target unless they actually need it. -mike ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Buildroot] [uclinux-dist-devel] [PATCH] buildroot:package: Remove configure target parameter in Makefile.autotools.in 2011-02-01 4:43 ` Sonic Zhang 2011-02-01 6:59 ` Mike Frysinger @ 2011-02-01 7:45 ` Peter Korsgaard 2011-02-02 4:49 ` Sonic Zhang 1 sibling, 1 reply; 10+ messages in thread From: Peter Korsgaard @ 2011-02-01 7:45 UTC (permalink / raw) To: buildroot >>>>> "Sonic" == Sonic Zhang <sonic.adi@gmail.com> writes: Sonic> Some autotools based software packages generate prefix name to the Sonic> binary after running install if you set --target parameter. Sonic> For example: Sonic> --target=arm Sonic> rcp is rename to "linux-arm-rcp" after running install These packages typically accept the configure options --program-transform-name to make them not do that. -- Bye, Peter Korsgaard ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Buildroot] [uclinux-dist-devel] [PATCH] buildroot:package: Remove configure target parameter in Makefile.autotools.in 2011-02-01 7:45 ` Peter Korsgaard @ 2011-02-02 4:49 ` Sonic Zhang 2011-02-02 6:40 ` Mike Frysinger 0 siblings, 1 reply; 10+ messages in thread From: Sonic Zhang @ 2011-02-02 4:49 UTC (permalink / raw) To: buildroot On Tue, Feb 1, 2011 at 3:45 PM, Peter Korsgaard <jacmet@uclibc.org> wrote: >>>>>> "Sonic" == Sonic Zhang <sonic.adi@gmail.com> writes: > > ?Sonic> Some autotools based software packages generate prefix name to the > ?Sonic> binary after running install if you set --target parameter. > > ?Sonic> For example: > > ?Sonic> --target=arm > > ?Sonic> rcp is rename to "linux-arm-rcp" after running install > > These packages typically accept the configure options > --program-transform-name to make them not do that. > Yes, but for some packages, --host and --target are not the same as defined in buildroot. For example, to build on x86, run on arm and generate binary for mips. Sonic > -- > Bye, Peter Korsgaard > ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Buildroot] [uclinux-dist-devel] [PATCH] buildroot:package: Remove configure target parameter in Makefile.autotools.in 2011-02-02 4:49 ` Sonic Zhang @ 2011-02-02 6:40 ` Mike Frysinger 2011-02-09 3:01 ` Sonic Zhang 0 siblings, 1 reply; 10+ messages in thread From: Mike Frysinger @ 2011-02-02 6:40 UTC (permalink / raw) To: buildroot On Tue, Feb 1, 2011 at 23:49, Sonic Zhang wrote: > On Tue, Feb 1, 2011 at 3:45 PM, Peter Korsgaard wrote: >>>>>>> "Sonic" == Sonic Zhang writes: >> >> ?Sonic> Some autotools based software packages generate prefix name to the >> ?Sonic> binary after running install if you set --target parameter. >> >> ?Sonic> For example: >> >> ?Sonic> --target=arm >> >> ?Sonic> rcp is rename to "linux-arm-rcp" after running install >> >> These packages typically accept the configure options >> --program-transform-name to make them not do that. > > Yes, but for some packages, --host and --target are not the same as > defined in buildroot. yes they are > For example, to build on x86, run on arm and generate binary for mips. but that is what we're doing. we build on x86, run on arm, and generate for arm. -mike ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Buildroot] [uclinux-dist-devel] [PATCH] buildroot:package: Remove configure target parameter in Makefile.autotools.in 2011-02-02 6:40 ` Mike Frysinger @ 2011-02-09 3:01 ` Sonic Zhang 2011-02-15 8:17 ` Mike Frysinger 0 siblings, 1 reply; 10+ messages in thread From: Sonic Zhang @ 2011-02-09 3:01 UTC (permalink / raw) To: buildroot On Wed, Feb 2, 2011 at 2:40 PM, Mike Frysinger <vapier.adi@gmail.com> wrote: > On Tue, Feb 1, 2011 at 23:49, Sonic Zhang wrote: >> On Tue, Feb 1, 2011 at 3:45 PM, Peter Korsgaard wrote: >>>>>>>> "Sonic" == Sonic Zhang writes: >>> >>> ?Sonic> Some autotools based software packages generate prefix name to the >>> ?Sonic> binary after running install if you set --target parameter. >>> >>> ?Sonic> For example: >>> >>> ?Sonic> --target=arm >>> >>> ?Sonic> rcp is rename to "linux-arm-rcp" after running install >>> >>> These packages typically accept the configure options >>> --program-transform-name to make them not do that. >> >> Yes, but for some packages, --host and --target are not the same as >> defined in buildroot. > > yes they are > >> For example, to build on x86, run on arm and generate binary for mips. > > but that is what we're doing. ?we build on x86, run on arm, and > generate for arm. > -mike > Are you sure buildroot should be limited to the same --host and --target only? Sonic ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Buildroot] [uclinux-dist-devel] [PATCH] buildroot:package: Remove configure target parameter in Makefile.autotools.in 2011-02-09 3:01 ` Sonic Zhang @ 2011-02-15 8:17 ` Mike Frysinger 0 siblings, 0 replies; 10+ messages in thread From: Mike Frysinger @ 2011-02-15 8:17 UTC (permalink / raw) To: buildroot On Tuesday, February 08, 2011 22:01:52 Sonic Zhang wrote: > On Wed, Feb 2, 2011 at 2:40 PM, Mike Frysinger <vapier.adi@gmail.com> wrote: > > On Tue, Feb 1, 2011 at 23:49, Sonic Zhang wrote: > >> On Tue, Feb 1, 2011 at 3:45 PM, Peter Korsgaard wrote: > >>>>>>>> "Sonic" == Sonic Zhang writes: > >>> Sonic> Some autotools based software packages generate prefix name to > >>> the Sonic> binary after running install if you set --target parameter. > >>> > >>> Sonic> For example: > >>> > >>> Sonic> --target=arm > >>> > >>> Sonic> rcp is rename to "linux-arm-rcp" after running install > >>> > >>> These packages typically accept the configure options > >>> --program-transform-name to make them not do that. > >> > >> Yes, but for some packages, --host and --target are not the same as > >> defined in buildroot. > > > > yes they are > > > >> For example, to build on x86, run on arm and generate binary for mips. > > > > but that is what we're doing. we build on x86, run on arm, and > > generate for arm. > > Are you sure buildroot should be limited to the same --host and --target > only? until buildroot grows support to let users specify a --target, it is already limited to that. i already sent a patch to upstream inetutils to fix their autoconf and they accepted it. -mike -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: This is a digitally signed message part. URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20110215/af62dc0c/attachment.asc> ^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2011-02-15 8:17 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-01 3:52 [Buildroot] [PATCH] buildroot:package: Remove configure target parameter in Makefile.autotools.in Sonic Zhang
2011-02-01 4:06 ` [Buildroot] [uclinux-dist-devel] " Mike Frysinger
[not found] ` <AANLkTi=F8BRtskBBKE_Wno=Vy=EHvLjE3bkYagiAuegH@mail.gmail.com>
2011-02-01 4:43 ` Sonic Zhang
2011-02-01 6:59 ` Mike Frysinger
[not found] ` <DB904C5425BA6F4E8424B3B51A1414D165B430B838@NWD2CMBX1.ad.analog.com>
2011-02-01 7:50 ` Mike Frysinger
2011-02-01 7:45 ` Peter Korsgaard
2011-02-02 4:49 ` Sonic Zhang
2011-02-02 6:40 ` Mike Frysinger
2011-02-09 3:01 ` Sonic Zhang
2011-02-15 8:17 ` Mike Frysinger
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox