* [Buildroot] [PATCH RESEND] package/Makefile.in: Fix dependency for selecting uclinux as TARGET_OS
@ 2013-09-23 9:16 Axel Lin
2014-10-12 9:22 ` Thomas Petazzoni
2014-10-12 12:59 ` Peter Korsgaard
0 siblings, 2 replies; 3+ messages in thread
From: Axel Lin @ 2013-09-23 9:16 UTC (permalink / raw)
To: buildroot
Current setting only allows blackfin to select uclinux as TARGET_OS.
However, some noMMU ARM platforms that using FLAT binary format also need to
select uclinux as TARGET_OS. Fix the dependency.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
This patch was sent on
http://lists.busybox.net/pipermail/buildroot/2013-September/077488.html
I found that without this patch, I hit below build error:
__uClibc_main.c:(.text+0x240): undefined reference to `__preinit_array_start'
__uClibc_main.c:(.text+0x244): undefined reference to `__preinit_array_end'
__uClibc_main.c:(.text+0x248): undefined reference to `__init_array_start'
__uClibc_main.c:(.text+0x24c): undefined reference to `__init_array_end'
/opt/test/buildroot/buildroot/output/host/usr/arm-buildroot-linux-uclibcgnueabi/bin/ld.real: ./libgcc_s.so.1.tmp: hidden symbol `__fini_array_end' isn't defined
/opt/test/buildroot/buildroot/output/host/usr/arm-buildroot-linux-uclibcgnueabi/bin/ld.real: final link failed: Bad value
collect2: ld returned 1 exit status
make[3]: *** [libgcc_s.so] Error 1
make[3]: Leaving directory `/opt/test/buildroot/buildroot/output/build/host-gcc-final-4.5.4/build/arm-buildroot-linux-uclibcgnueabi/libgcc'
make[2]: *** [all-target-libgcc] Error 2
make[2]: Leaving directory `/opt/test/buildroot/buildroot/output/build/host-gcc-final-4.5.4/build'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/opt/test/buildroot/buildroot/output/build/host-gcc-final-4.5.4/build'
make: *** [/opt/test/buildroot/buildroot/output/build/host-gcc-final-4.5.4/.stamp_built] Error 2
I remember that someone has reported the same build error on the maillist.
With this patch, the build result looks OK.
package/Makefile.in | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/package/Makefile.in b/package/Makefile.in
index 170ad78..1699fdf 100644
--- a/package/Makefile.in
+++ b/package/Makefile.in
@@ -23,8 +23,8 @@ MAKE:=$(HOSTMAKE) -j$(PARALLEL_JOBS)
# Compute GNU_TARGET_NAME
GNU_TARGET_NAME=$(ARCH)-buildroot-$(TARGET_OS)-$(LIBC)$(ABI)
-# Blackfin FLAT needs uclinux
-ifeq ($(BR2_bfin)$(BR2_BINFMT_FLAT),yy)
+# FLAT binary format needs uclinux
+ifeq ($(BR2_BINFMT_FLAT),y)
TARGET_OS=uclinux
else
TARGET_OS=linux
--
1.8.1.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH RESEND] package/Makefile.in: Fix dependency for selecting uclinux as TARGET_OS
2013-09-23 9:16 [Buildroot] [PATCH RESEND] package/Makefile.in: Fix dependency for selecting uclinux as TARGET_OS Axel Lin
@ 2014-10-12 9:22 ` Thomas Petazzoni
2014-10-12 12:59 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2014-10-12 9:22 UTC (permalink / raw)
To: buildroot
Dear Axel Lin,
On Mon, 23 Sep 2013 17:16:50 +0800, Axel Lin wrote:
> Current setting only allows blackfin to select uclinux as TARGET_OS.
> However, some noMMU ARM platforms that using FLAT binary format also need to
> select uclinux as TARGET_OS. Fix the dependency.
>
> Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Peter, please apply :)
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH RESEND] package/Makefile.in: Fix dependency for selecting uclinux as TARGET_OS
2013-09-23 9:16 [Buildroot] [PATCH RESEND] package/Makefile.in: Fix dependency for selecting uclinux as TARGET_OS Axel Lin
2014-10-12 9:22 ` Thomas Petazzoni
@ 2014-10-12 12:59 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2014-10-12 12:59 UTC (permalink / raw)
To: buildroot
>>>>> "Axel" == Axel Lin <axel.lin@ingics.com> writes:
> Current setting only allows blackfin to select uclinux as TARGET_OS.
> However, some noMMU ARM platforms that using FLAT binary format also need to
> select uclinux as TARGET_OS. Fix the dependency.
> Signed-off-by: Axel Lin <axel.lin@ingics.com>
> ---
> This patch was sent on
> http://lists.busybox.net/pipermail/buildroot/2013-September/077488.html
Committed with some fixups to get it to apply, thanks!
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-10-12 12:59 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-23 9:16 [Buildroot] [PATCH RESEND] package/Makefile.in: Fix dependency for selecting uclinux as TARGET_OS Axel Lin
2014-10-12 9:22 ` Thomas Petazzoni
2014-10-12 12:59 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox