equal
deleted
inserted
replaced
|
1 # |
|
2 # Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 # All rights reserved. |
|
4 # This component and the accompanying materials are made available |
|
5 # under the terms of the License "Eclipse Public License v1.0" |
|
6 # which accompanies this distribution, and is available |
|
7 # at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 # |
|
9 # Initial Contributors: |
|
10 # Nokia Corporation - initial contribution. |
|
11 # |
|
12 # Contributors: |
|
13 # |
|
14 # Description: |
|
15 # Build bash 3.2 for SBSv2 |
|
16 # |
|
17 |
|
18 |
|
19 RAPTOR_BASH_VER:=4.0 |
|
20 |
|
21 BASH_SOURCEDIR:=$(OUTPUTPATH)/bash-$(RAPTOR_BASH_VER) |
|
22 BASH_TAR:=$(SBS_HOME)/util/ext/bash-$(RAPTOR_BASH_VER).tar.gz |
|
23 BASH_PATCHES_TAR:=$(SBS_HOME)/util/ext/bash-$(RAPTOR_BASH_VER)-patches.tar.gz |
|
24 |
|
25 define b_bash |
|
26 .PHONY:: bash |
|
27 |
|
28 all:: bash |
|
29 |
|
30 bash: $(INSTALLROOT)/bin/bash |
|
31 |
|
32 $(INSTALLROOT)/bin/bash: $(BASH_TAR) $(BASH_PATCHES_TAR) |
|
33 rm -rf $(BASH_SOURCEDIR) && \ |
|
34 cd $(OUTPUTPATH) && \ |
|
35 tar -xzf $(BASH_TAR) && \ |
|
36 ( \ |
|
37 cd $(BASH_SOURCEDIR) && \ |
|
38 mkdir patches && (cd patches && tar -xzf $(BASH_PATCHES_TAR)) && \ |
|
39 for p in patches/*; do if [ -f $p ]; then patch -p0 < $$$$p; fi; done && \ |
|
40 CFLAGS="-O2 $(GCCTUNE) -s" ./configure --prefix=$(INSTALLROOT) --enable-arith-for-command --enable-multibyte --enable-job-control --enable-progcomp --enable-process-substitution --enable-readline --disable-rpath && \ |
|
41 $(MAKE) && $(MAKE) install \ |
|
42 ) ; \ |
|
43 cp $$@ $$(dir $$@)/sh |
|
44 |
|
45 endef |
|
46 |
|
47 $(eval $(b_bash)) |