author | ar <ar> | 2005-01-12 17:25:17 (UTC) |
---|---|---|
committer | ar <ar> | 2005-01-12 17:25:17 (UTC) |
commit | eaaafd114a8210b0d434231290ec5e294aae91bb (patch) (unidiff) | |
tree | 7f4c8c5895608c64a00241e947e076d35c7f51f0 | |
parent | 5f267ae8b540c229201edb8d65fe40786ac8ec5d (diff) | |
download | opie-eaaafd114a8210b0d434231290ec5e294aae91bb.zip opie-eaaafd114a8210b0d434231290ec5e294aae91bb.tar.gz opie-eaaafd114a8210b0d434231290ec5e294aae91bb.tar.bz2 |
- make host system for oe based builds configurable
-rw-r--r-- | Vars.make | 1 | ||||
-rw-r--r-- | config.in | 5 | ||||
-rw-r--r-- | mkspecs/qws/linux-oe-g++/qmake.conf | 2 |
3 files changed, 7 insertions, 1 deletions
@@ -8,32 +8,33 @@ ifeq ($(IPK_DIR),) | |||
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:=$(CONFIG_OE_BUILD_DIR) | 19 | OEDIR:=$(CONFIG_OE_BUILD_DIR) |
20 | QTDIR:=$(OEDIR)/tmp/staging/arm-linux/qt2 | 20 | QTDIR:=$(OEDIR)/tmp/staging/arm-linux/qt2 |
21 | $(shell mkdir -p $(QTDIR)/src/moc) | 21 | $(shell mkdir -p $(QTDIR)/src/moc) |
22 | $(shell echo -e "all: \n\t" >>$(QTDIR)/src/moc/Makefile) | 22 | $(shell echo -e "all: \n\t" >>$(QTDIR)/src/moc/Makefile) |
23 | PLATFORM=sharp-linux | 23 | PLATFORM=sharp-linux |
24 | OEHOSTSYS:=$(CONFIG_OE_HOST_SYS) | ||
24 | endif | 25 | endif |
25 | 26 | ||
26 | ifdef CONFIG_TARGET_X86 | 27 | ifdef CONFIG_TARGET_X86 |
27 | PLATFORM=x86-linux | 28 | PLATFORM=x86-linux |
28 | endif | 29 | endif |
29 | ifdef CONFIG_TARGET_SHARP | 30 | ifdef CONFIG_TARGET_SHARP |
30 | PLATFORM=sharp-linux | 31 | PLATFORM=sharp-linux |
31 | endif | 32 | endif |
32 | ifdef CONFIG_TARGET_IPAQ | 33 | ifdef CONFIG_TARGET_IPAQ |
33 | PLATFORM=ipaq-linux | 34 | PLATFORM=ipaq-linux |
34 | endif | 35 | endif |
35 | ifdef CONFIG_TARGET_RAMSES | 36 | ifdef CONFIG_TARGET_RAMSES |
36 | PLATFORM=ramses-linux | 37 | PLATFORM=ramses-linux |
37 | endif | 38 | endif |
38 | ifdef CONFIG_TARGET_SIMPAD | 39 | ifdef CONFIG_TARGET_SIMPAD |
39 | PLATFORM=simpad-linux | 40 | PLATFORM=simpad-linux |
@@ -29,32 +29,37 @@ choice | |||
29 | 29 | ||
30 | config TARGET_RAMSES | 30 | config TARGET_RAMSES |
31 | boolean "Ramses" | 31 | boolean "Ramses" |
32 | 32 | ||
33 | config TARGET_SIMPAD | 33 | config TARGET_SIMPAD |
34 | boolean "SIMpad" | 34 | boolean "SIMpad" |
35 | 35 | ||
36 | config TARGET_YOPY | 36 | config TARGET_YOPY |
37 | boolean "Yopy 3500/3700" | 37 | boolean "Yopy 3500/3700" |
38 | endchoice | 38 | endchoice |
39 | 39 | ||
40 | config OE_BUILD_DIR | 40 | config OE_BUILD_DIR |
41 | depends TARGET_OE | 41 | depends TARGET_OE |
42 | string "OE build directory" | 42 | string "OE build directory" |
43 | default ">>>set OpenEmbedded build directory here<<<" | 43 | default ">>>set OpenEmbedded build directory here<<<" |
44 | 44 | ||
45 | config OE_HOST_SYS | ||
46 | depends TARGET_OE | ||
47 | string "OE host system" | ||
48 | default "i686-linux" | ||
49 | |||
45 | config OPTIMIZE | 50 | config OPTIMIZE |
46 | boolean "Use optimizations" | 51 | boolean "Use optimizations" |
47 | default "y" if ! TARGET_X86 | 52 | default "y" if ! TARGET_X86 |
48 | 53 | ||
49 | config THREADED | 54 | config THREADED |
50 | boolean "Enable threaded build" | 55 | boolean "Enable threaded build" |
51 | default "n" | 56 | default "n" |
52 | 57 | ||
53 | config STATIC | 58 | config STATIC |
54 | boolean "Build static libraries" | 59 | boolean "Build static libraries" |
55 | default "n" | 60 | default "n" |
56 | 61 | ||
57 | config DEBUG | 62 | config DEBUG |
58 | boolean "Enable debug builds" | 63 | boolean "Enable debug builds" |
59 | default n | 64 | default n |
60 | 65 | ||
diff --git a/mkspecs/qws/linux-oe-g++/qmake.conf b/mkspecs/qws/linux-oe-g++/qmake.conf index c4c273f..90166b0 100644 --- a/mkspecs/qws/linux-oe-g++/qmake.conf +++ b/mkspecs/qws/linux-oe-g++/qmake.conf | |||
@@ -1,27 +1,27 @@ | |||
1 | # | 1 | # |
2 | # $Id$ | 2 | # $Id$ |
3 | # | 3 | # |
4 | # qmake configuration for linux-g++ using the arm-linux-g++ crosscompiler | 4 | # qmake configuration for linux-g++ using the arm-linux-g++ crosscompiler |
5 | # | 5 | # |
6 | 6 | ||
7 | MAKEFILE_GENERATOR= UNIX | 7 | MAKEFILE_GENERATOR= UNIX |
8 | TEMPLATE = app | 8 | TEMPLATE = app |
9 | CONFIG += qt link_prl | 9 | CONFIG += qt link_prl |
10 | 10 | ||
11 | STAGING_BINDIR = $(OEDIR)/tmp/staging/i686-linux/bin | 11 | STAGING_BINDIR = $(OEDIR)/tmp/staging/$(OEHOSTSYS)/bin |
12 | STAGING_CROSSDIR = $(OEDIR)/tmp/cross/bin | 12 | STAGING_CROSSDIR = $(OEDIR)/tmp/cross/bin |
13 | STAGING_INCDIR = $(OEDIR)/tmp/staging/arm-linux/include | 13 | STAGING_INCDIR = $(OEDIR)/tmp/staging/arm-linux/include |
14 | STAGING_LIBDIR = $(OEDIR)/tmp/staging/arm-linux/lib | 14 | STAGING_LIBDIR = $(OEDIR)/tmp/staging/arm-linux/lib |
15 | 15 | ||
16 | QMAKE_CC = $(CCACHE) $(DISTCC) $$STAGING_CROSSDIR/arm-linux-gcc | 16 | QMAKE_CC = $(CCACHE) $(DISTCC) $$STAGING_CROSSDIR/arm-linux-gcc |
17 | QMAKE_LEX = flex | 17 | QMAKE_LEX = flex |
18 | QMAKE_LEXFLAGS = | 18 | QMAKE_LEXFLAGS = |
19 | QMAKE_YACC = yacc | 19 | QMAKE_YACC = yacc |
20 | QMAKE_YACCFLAGS = -d | 20 | QMAKE_YACCFLAGS = -d |
21 | QMAKE_CFLAGS = -pipe $(CFLAGS_EXTRA) | 21 | QMAKE_CFLAGS = -pipe $(CFLAGS_EXTRA) |
22 | QMAKE_CFLAGS_WARN_ON= -Wall -W | 22 | QMAKE_CFLAGS_WARN_ON= -Wall -W |
23 | QMAKE_CFLAGS_WARN_OFF= | 23 | QMAKE_CFLAGS_WARN_OFF= |
24 | QMAKE_CFLAGS_RELEASE= $(if $(CFLAGS_RELEASE),$(CFLAGS_RELEASE), -O2) | 24 | QMAKE_CFLAGS_RELEASE= $(if $(CFLAGS_RELEASE),$(CFLAGS_RELEASE), -O2) |
25 | QMAKE_CFLAGS_DEBUG= -g | 25 | QMAKE_CFLAGS_DEBUG= -g |
26 | QMAKE_CFLAGS_SHLIB= -fPIC | 26 | QMAKE_CFLAGS_SHLIB= -fPIC |
27 | QMAKE_CFLAGS_YACC= -Wno-unused -Wno-parentheses | 27 | QMAKE_CFLAGS_YACC= -Wno-unused -Wno-parentheses |