author | mickeyl <mickeyl> | 2005-02-12 15:47:06 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2005-02-12 15:47:06 (UTC) |
commit | 0bf0f893a82426615cfe9f0bf764e1344c733ee3 (patch) (unidiff) | |
tree | ba147bb8ea70b409f15a76196097de49056576b6 /Vars.make | |
parent | f13760433a6526555bc5a4378ee3517f4053ac61 (diff) | |
download | opie-0bf0f893a82426615cfe9f0bf764e1344c733ee3.zip opie-0bf0f893a82426615cfe9f0bf764e1344c733ee3.tar.gz opie-0bf0f893a82426615cfe9f0bf764e1344c733ee3.tar.bz2 |
remove arm-linux'isms from linux-oe-g++ and make it depending on the value of OE_TARGET_SYS
this enables to build Opie against OE staging area targetting e.g. uclibc, mips, or whatever
-rw-r--r-- | Vars.make | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,131 +1,132 @@ | |||
1 | prefix=/opt/QtPalmtop | 1 | prefix=/opt/QtPalmtop |
2 | 2 | ||
3 | ifeq ($(OPIEDIR),) | 3 | ifeq ($(OPIEDIR),) |
4 | export OPIEDIR:=$(TOPDIR) | 4 | export OPIEDIR:=$(TOPDIR) |
5 | endif | 5 | endif |
6 | ifeq ($(IPK_DIR),) | 6 | ifeq ($(IPK_DIR),) |
7 | export IPK_DIR:=$(OPIEDIR) | 7 | export IPK_DIR:=$(OPIEDIR) |
8 | endif | 8 | endif |
9 | 9 | ||
10 | ifneq ($(wildcard $(TOPDIR)/.config),) | 10 | ifneq ($(wildcard $(TOPDIR)/.config),) |
11 | include $(TOPDIR)/.config | 11 | include $(TOPDIR)/.config |
12 | endif | 12 | endif |
13 | 13 | ||
14 | ifndef CONFIG_TARGET_OE | 14 | ifndef CONFIG_TARGET_OE |
15 | ifndef QTDIR | 15 | ifndef QTDIR |
16 | $(error QTDIR not set) | 16 | $(error QTDIR not set) |
17 | endif | 17 | endif |
18 | else | 18 | else |
19 | OEDIR:=$(shell echo $(CONFIG_OE_BUILD_DIR) | sed -e's/"//g') | 19 | OEDIR:=$(shell echo $(CONFIG_OE_BUILD_DIR) | sed -e's/"//g') |
20 | QTDIR:=$(shell echo $(OEDIR) | sed -e's/"//g')/tmp/staging/arm-linux/qt2 | 20 | OEHOSTSYS:=$(shell echo $(CONFIG_OE_HOST_SYS) | sed -e's/"//g') |
21 | OETARGETSYS:=$(shell echo $(CONFIG_OE_TARGET_SYS) | sed -e's/"//g') | ||
22 | QTDIR:=$(shell echo $(OEDIR) | sed -e's/"//g')/tmp/staging/$(OETARGETSYS)/qt2 | ||
21 | $(shell mkdir -p $(QTDIR)/src/moc) | 23 | $(shell mkdir -p $(QTDIR)/src/moc) |
22 | $(shell echo -e "all: \n\t" >>$(QTDIR)/src/moc/Makefile) | 24 | $(shell echo -e "all: \n\t" >>$(QTDIR)/src/moc/Makefile) |
23 | PLATFORM=sharp-linux | 25 | PLATFORM=sharp-linux |
24 | OEHOSTSYS:=$(shell echo $(CONFIG_OE_HOST_SYS) | sed -e's/"//g') | ||
25 | endif | 26 | endif |
26 | 27 | ||
27 | ifdef CONFIG_TARGET_X86 | 28 | ifdef CONFIG_TARGET_X86 |
28 | PLATFORM=x86-linux | 29 | PLATFORM=x86-linux |
29 | endif | 30 | endif |
30 | ifdef CONFIG_TARGET_SHARP | 31 | ifdef CONFIG_TARGET_SHARP |
31 | PLATFORM=sharp-linux | 32 | PLATFORM=sharp-linux |
32 | endif | 33 | endif |
33 | ifdef CONFIG_TARGET_IPAQ | 34 | ifdef CONFIG_TARGET_IPAQ |
34 | PLATFORM=ipaq-linux | 35 | PLATFORM=ipaq-linux |
35 | endif | 36 | endif |
36 | ifdef CONFIG_TARGET_RAMSES | 37 | ifdef CONFIG_TARGET_RAMSES |
37 | PLATFORM=ramses-linux | 38 | PLATFORM=ramses-linux |
38 | endif | 39 | endif |
39 | ifdef CONFIG_TARGET_SIMPAD | 40 | ifdef CONFIG_TARGET_SIMPAD |
40 | PLATFORM=simpad-linux | 41 | PLATFORM=simpad-linux |
41 | endif | 42 | endif |
42 | 43 | ||
43 | ifdef CONFIG_TARGET_YOPY | 44 | ifdef CONFIG_TARGET_YOPY |
44 | PLATFORM=yopy-linux | 45 | PLATFORM=yopy-linux |
45 | endif | 46 | endif |
46 | ifdef CONFIG_TARGET_MACOSX | 47 | ifdef CONFIG_TARGET_MACOSX |
47 | PLATFORM=macx-darwin | 48 | PLATFORM=macx-darwin |
48 | endif | 49 | endif |
49 | 50 | ||
50 | export QMAKE:=$(OPIEDIR)/qmake/qmake | 51 | export QMAKE:=$(OPIEDIR)/qmake/qmake |
51 | export QMAKESPECSDIR=$(OPIEDIR)/mkspecs | 52 | export QMAKESPECSDIR=$(OPIEDIR)/mkspecs |
52 | 53 | ||
53 | ifeq ($(QPE_VERSION),) | 54 | ifeq ($(QPE_VERSION),) |
54 | VERSION_MAJ:=$(shell echo $$(sed -n -e 's/.*QPE_VERSION "\([0-9]*\)\..*\..*".*/\1/p' <$(OPIEDIR)/library/version.h)) | 55 | VERSION_MAJ:=$(shell echo $$(sed -n -e 's/.*QPE_VERSION "\([0-9]*\)\..*\..*".*/\1/p' <$(OPIEDIR)/library/version.h)) |
55 | VERSION_MIN:=$(shell echo $$(sed -n -e 's/.*QPE_VERSION ".*\.\([0-9]*\)\..*".*/\1/p' <$(OPIEDIR)/library/version.h)) | 56 | VERSION_MIN:=$(shell echo $$(sed -n -e 's/.*QPE_VERSION ".*\.\([0-9]*\)\..*".*/\1/p' <$(OPIEDIR)/library/version.h)) |
56 | VERSION_PAT:=$(shell echo $$(sed -n -e 's/.*QPE_VERSION ".*\..*\.\([0-9]*\).*/\1/p' <$(OPIEDIR)/library/version.h)) | 57 | VERSION_PAT:=$(shell echo $$(sed -n -e 's/.*QPE_VERSION ".*\..*\.\([0-9]*\).*/\1/p' <$(OPIEDIR)/library/version.h)) |
57 | QPE_VERSION:=$(VERSION_MAJ).$(VERSION_MIN).$(VERSION_PAT) | 58 | QPE_VERSION:=$(VERSION_MAJ).$(VERSION_MIN).$(VERSION_PAT) |
58 | 59 | ||
59 | ifeq ($(QPE_VERSION),..) | 60 | ifeq ($(QPE_VERSION),..) |
60 | QPE_VERSION=1.1.2 | 61 | QPE_VERSION=1.1.2 |
61 | endif | 62 | endif |
62 | endif | 63 | endif |
63 | export QPE_VERSION | 64 | export QPE_VERSION |
64 | 65 | ||
65 | SUB_VERSION=$(shell echo $$(sed -n -e 's,.*SUB_VERSION \"\(.*\)\".*,\1,p' <$(OPIEDIR)/library/version.h)) | 66 | SUB_VERSION=$(shell echo $$(sed -n -e 's,.*SUB_VERSION \"\(.*\)\".*,\1,p' <$(OPIEDIR)/library/version.h)) |
66 | ifeq ($(VERSION_CVS),) | 67 | ifeq ($(VERSION_CVS),) |
67 | VERSION_CVS:=$(shell date +%s) | 68 | VERSION_CVS:=$(shell date +%s) |
68 | endif | 69 | endif |
69 | ifneq ($(filter %snapshot",$(shell cat $(OPIEDIR)/library/version.h|grep QPE_VERSION)),) | 70 | ifneq ($(filter %snapshot",$(shell cat $(OPIEDIR)/library/version.h|grep QPE_VERSION)),) |
70 | SUB_VERSION:=$(VERSION_CVS) | 71 | SUB_VERSION:=$(VERSION_CVS) |
71 | endif | 72 | endif |
72 | export SUB_VERSION | 73 | export SUB_VERSION |
73 | 74 | ||
74 | ifneq ($(strip $(SUB_VERSION)),) | 75 | ifneq ($(strip $(SUB_VERSION)),) |
75 | EXTRAVERSION=-$(SUB_VERSION) | 76 | EXTRAVERSION=-$(SUB_VERSION) |
76 | endif | 77 | endif |
77 | 78 | ||
78 | ifeq ($(QTE_REVISION),) | 79 | ifeq ($(QTE_REVISION),) |
79 | QTE_REVISION=6 | 80 | QTE_REVISION=6 |
80 | endif | 81 | endif |
81 | export QTE_REVISION | 82 | export QTE_REVISION |
82 | 83 | ||
83 | export DEB_VERSION=2.0 | 84 | export DEB_VERSION=2.0 |
84 | 85 | ||
85 | ifeq ($(QTE_BASEVERSION),) | 86 | ifeq ($(QTE_BASEVERSION),) |
86 | ifneq ($(shell ls $(QTDIR)/include/qglobal.h 2>/dev/null),) | 87 | ifneq ($(shell ls $(QTDIR)/include/qglobal.h 2>/dev/null),) |
87 | QTE_BASEVERSION:=$(shell cat $(QTDIR)/include/qglobal.h|grep '^\#define QT_VERSION'|grep -v STR|sed -e 's/\#define QT_VERSION\t*//; s/.*\([0-9]\)\([0-9]\)\([0-9]\).*/\1.\2.\3/;') | 88 | QTE_BASEVERSION:=$(shell cat $(QTDIR)/include/qglobal.h|grep '^\#define QT_VERSION'|grep -v STR|sed -e 's/\#define QT_VERSION\t*//; s/.*\([0-9]\)\([0-9]\)\([0-9]\).*/\1.\2.\3/;') |
88 | else | 89 | else |
89 | QTE_BASEVERSION=2.3.7 | 90 | QTE_BASEVERSION=2.3.7 |
90 | endif | 91 | endif |
91 | endif | 92 | endif |
92 | export QTE_BASEVERSION | 93 | export QTE_BASEVERSION |
93 | 94 | ||
94 | ifeq ($(QTE_VERSION),) | 95 | ifeq ($(QTE_VERSION),) |
95 | ifneq ($(shell ls $(QTDIR)/include/qglobal.h 2>/dev/null),) | 96 | ifneq ($(shell ls $(QTDIR)/include/qglobal.h 2>/dev/null),) |
96 | QTE_VERSION:=$(shell cat $(QTDIR)/include/qglobal.h|grep '^\#define QT_VERSION_STR'|sed -e 's/\#define QT_VERSION_STR\t*//;' -e 's/.*"\([^"]*\)".*/\1/;') | 97 | QTE_VERSION:=$(shell cat $(QTDIR)/include/qglobal.h|grep '^\#define QT_VERSION_STR'|sed -e 's/\#define QT_VERSION_STR\t*//;' -e 's/.*"\([^"]*\)".*/\1/;') |
97 | else | 98 | else |
98 | QTE_VERSION=2.3.7 | 99 | QTE_VERSION=2.3.7 |
99 | endif | 100 | endif |
100 | endif | 101 | endif |
101 | export QTE_VERSION | 102 | export QTE_VERSION |
102 | 103 | ||
103 | export PATH:=$(OPIEDIR)/scripts:$(PATH) | 104 | export PATH:=$(OPIEDIR)/scripts:$(PATH) |
104 | export QMAKESPEC=$(QMAKESPECSDIR)/$(patsubst "%",%,$(CONFIG_SPECFILE)) | 105 | export QMAKESPEC=$(QMAKESPECSDIR)/$(patsubst "%",%,$(CONFIG_SPECFILE)) |
105 | 106 | ||
106 | ifdef CONFIG_OPTIMIZATIONS | 107 | ifdef CONFIG_OPTIMIZATIONS |
107 | export CFLAGS_RELEASE=$(patsubst "%,%,$(CONFIG_OPTIMIZATIONS)) | 108 | export CFLAGS_RELEASE=$(patsubst "%,%,$(CONFIG_OPTIMIZATIONS)) |
108 | export CFLAGS_RELEASE:=$(patsubst %",%,$(CFLAGS_RELEASE)) | 109 | export CFLAGS_RELEASE:=$(patsubst %",%,$(CFLAGS_RELEASE)) |
109 | endif | 110 | endif |
110 | 111 | ||
111 | ifeq ($(STRIP),) | 112 | ifeq ($(STRIP),) |
112 | ifneq ($(CONFIG_TARGET_X86),) | 113 | ifneq ($(CONFIG_TARGET_X86),) |
113 | STRIP=strip | 114 | STRIP=strip |
114 | endif | 115 | endif |
115 | ifneq ($(CONFIG_TARGET_IPAQ),) | 116 | ifneq ($(CONFIG_TARGET_IPAQ),) |
116 | STRIP=arm-linux-strip | 117 | STRIP=arm-linux-strip |
117 | endif | 118 | endif |
118 | ifneq ($(CONFIG_TARGET_SHARP),) | 119 | ifneq ($(CONFIG_TARGET_SHARP),) |
119 | STRIP=arm-linux-strip | 120 | STRIP=arm-linux-strip |
120 | endif | 121 | endif |
121 | ifneq ($(CONFIG_TARGET_RAMSES),) | 122 | ifneq ($(CONFIG_TARGET_RAMSES),) |
122 | STRIP=arm-linux-strip | 123 | STRIP=arm-linux-strip |
123 | endif | 124 | endif |
124 | ifneq ($(CONFIG_TARGET_SIMPAD),) | 125 | ifneq ($(CONFIG_TARGET_SIMPAD),) |
125 | STRIP=arm-linux-strip | 126 | STRIP=arm-linux-strip |
126 | endif | 127 | endif |
127 | ifneq ($(CONFIG_TARGET_YOPY),) | 128 | ifneq ($(CONFIG_TARGET_YOPY),) |
128 | STRIP=arm-linux-strip | 129 | STRIP=arm-linux-strip |
129 | endif | 130 | endif |
130 | endif | 131 | endif |
131 | 132 | ||