* updated kmbox (21.12.1 -> 21.12.2), untested
[t2-trunk.git] / package / boot / yaboot / strip.patch
blob17cd0b6d2ae68348e8bf48fac1495c2ca105692c
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
3 #
4 # T2 SDE: package/.../yaboot/strip.patch
5 # Copyright (C) 2006 The T2 SDE Project
6 #
7 # More information can be found in the files COPYING and README.
8 #
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
14 # version.
15 # --- T2-COPYRIGHT-NOTE-END ---
17 When we cross-compile we need to use the cross strip ...
19 - Rene Rebe <rene@exactcode.de>
21 --- yaboot-1.3.13/Makefile.vanilla 2006-09-28 17:24:45.000000000 +0200
22 +++ yaboot-1.3.13/Makefile 2006-09-28 17:25:37.000000000 +0200
23 @@ -98,6 +98,7 @@
24 LD := $(CROSS)ld
25 AS := $(CROSS)as
26 OBJCOPY := $(CROSS)objcopy
27 +STRIP := $(CROSS)strip
29 lgcc = `$(CC) -m32 -print-libgcc-file-name`
31 @@ -172,10 +173,10 @@
32 release: docs bindist clean
34 strip: all
35 - strip second/yaboot
36 - strip --remove-section=.comment second/yaboot
37 - strip util/addnote
38 - strip --remove-section=.comment --remove-section=.note util/addnote
39 + $(STRIP) second/yaboot
40 + $(STRIP) --remove-section=.comment second/yaboot
41 + $(STRIP) util/addnote
42 + $(STRIP) --remove-section=.comment --remove-section=.note util/addnote
44 install: all strip
45 install -d -o root -g root -m 0755 ${ROOT}/etc/