patches/uClibc/0.9.32/170-Conditionalize-use-libgcc_eh-when-libubacktrace-is-n.patch
author "Yann E. MORIN" <yann.morin.1998@free.fr>
Tue Oct 16 20:57:44 2012 +0200 (2012-10-16)
changeset 3079 37831a33e07e
permissions -rw-r--r--
kernel/linux: fix using custom location

Currently, extract and patch are skipped as thus:
- using a custom directory of pre-installed headers
- a correctly named directory already exists

Otherwise, extract and patch are done.

The current second condition is wrong, because it allows the following
sequence to happen:
- a non-custom kernel is used
- a previous build only partially extracted the non-custom sources
- that p[revious build broke during extraction (eg. incomplete tarball...)
- a subsequent build will find a properly named directory, and will
thus skip extract and patch, which is wrong

Fix that by following the conditions in this table:

Type | Extract | Patch
----------------------+---------+-------
Pre-installed headers | N | N
custom directory | N | N
custom tarball | Y | N
mainstream tarball | Y | Y

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: David Holsgrove <david.holsgrove@xilinx.com>
yann@2669
     1
From the uClibc ML archives:
yann@2669
     2
    http://lists.uclibc.org/pipermail/uclibc/2011-June/045411.html
yann@2669
     3
yann@2669
     4
>From 364a3a9c576d604bed146efe0b8b33d2b81d4c64 Mon Sep 17 00:00:00 2001
yann@2669
     5
From: Jason Woodward <jason.woodward@timesys.com>
yann@2669
     6
Date: Sat, 11 Jun 2011 01:08:48 -0400
yann@2669
     7
Subject: [PATCH 1/3] Conditionalize use libgcc_eh when libubacktrace is not enabled
yann@2669
     8
yann@2669
     9
Signed-off-by: Jason Woodward <jason.woodward@timesys.com>
yann@2669
    10
---
yann@2669
    11
 libubacktrace/Makefile.in |    2 +-
yann@2669
    12
 1 files changed, 1 insertions(+), 1 deletions(-)
yann@2669
    13
yann@2669
    14
diff --git a/libubacktrace/Makefile.in b/libubacktrace/Makefile.in
yann@2669
    15
index f75f68b..880a8af 100644
yann@2669
    16
--- a/libubacktrace/Makefile.in
yann@2669
    17
+++ b/libubacktrace/Makefile.in
yann@2669
    18
@@ -12,7 +12,7 @@ CFLAGS-libubacktrace := -DNOT_IN_libc -DIS_IN_libubacktrace $(SSP_ALL_CFLAGS)
yann@2669
    19
 
yann@2669
    20
 LDFLAGS-libubacktrace.so := $(LDFLAGS) $(top_builddir)lib/libdl-$(VERSION).so
yann@2669
    21
 
yann@2669
    22
-ifeq ($(CONFIG_ARM_EABI),y)
yann@2669
    23
+ifeq ($(UCLIBC_HAS_BACKTRACE)$(CONFIG_ARM_EABI),yy)
yann@2669
    24
 LIBGCC += $(shell $(CC) -print-file-name=libgcc_eh.a)
yann@2669
    25
 endif
yann@2669
    26
 
yann@2669
    27
-- 
yann@2669
    28
1.7.0.4
yann@2669
    29