diff options
author | Marcin Juszkiewicz <hrw@openedhand.com> | 2007-10-19 14:30:34 +0000 |
---|---|---|
committer | Marcin Juszkiewicz <hrw@openedhand.com> | 2007-10-19 14:30:34 +0000 |
commit | 128f2debdd95290613e0c2943157439fa863b784 (patch) | |
tree | 5cb2e26f09c216951cb52a85a39f6ae617a4058b /meta/packages/qemu | |
parent | d8b7e957786e57fc3d0db2014cd428b37b2c0ac9 (diff) | |
download | poky-128f2debdd95290613e0c2943157439fa863b784.tar.gz |
qemu: import gcc3 check from OE
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2936 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/qemu')
-rw-r--r-- | meta/packages/qemu/qemu-gcc3-check.inc | 20 | ||||
-rw-r--r-- | meta/packages/qemu/qemu-native_20070613.bb | 14 | ||||
-rw-r--r-- | meta/packages/qemu/qemu-native_cvs.bb | 14 |
3 files changed, 22 insertions, 26 deletions
diff --git a/meta/packages/qemu/qemu-gcc3-check.inc b/meta/packages/qemu/qemu-gcc3-check.inc new file mode 100644 index 0000000000..96b79fdf14 --- /dev/null +++ b/meta/packages/qemu/qemu-gcc3-check.inc | |||
@@ -0,0 +1,20 @@ | |||
1 | python __anonymous() { | ||
2 | from bb import which, data | ||
3 | |||
4 | path = data.getVar('PATH', d) | ||
5 | oldOeConf = data.getVar('EXTRA_OECONF', d) | ||
6 | if not oldOeConf: oldOeConf = "" | ||
7 | if len(which(path, 'gcc-3.4')) != 0: | ||
8 | data.setVar('EXTRA_OECONF', oldOeConf + " --cc=gcc-3.4", d) | ||
9 | elif len(which(path, 'gcc34')) != 0: | ||
10 | data.setVar('EXTRA_OECONF', oldOeConf + " --cc=gcc34", d) | ||
11 | elif len(which(path, 'gcc33')) != 0: | ||
12 | data.setVar('EXTRA_OECONF', oldOeConf + " --cc=gcc33", d) | ||
13 | elif len(which(path, 'gcc-3.3')) != 0: | ||
14 | data.setVar('EXTRA_OECONF', oldOeConf + " --cc=gcc-3.3", d) | ||
15 | elif len(which(path, 'gcc-3.3.6')) != 0: | ||
16 | data.setVar('EXTRA_OECONF', oldOeConf + " --cc=gcc-3.3.6", d) | ||
17 | elif len(which(path, 'gcc-3.4.6')) != 0: | ||
18 | data.setVar('EXTRA_OECONF', oldOeConf + " --cc=gcc-3.4.6", d) | ||
19 | } | ||
20 | |||
diff --git a/meta/packages/qemu/qemu-native_20070613.bb b/meta/packages/qemu/qemu-native_20070613.bb index 03a433b232..a6a5bda58d 100644 --- a/meta/packages/qemu/qemu-native_20070613.bb +++ b/meta/packages/qemu/qemu-native_20070613.bb | |||
@@ -3,16 +3,4 @@ inherit native | |||
3 | DEPENDS = "zlib-native" | 3 | DEPENDS = "zlib-native" |
4 | prefix = "${STAGING_DIR}/${BUILD_SYS}" | 4 | prefix = "${STAGING_DIR}/${BUILD_SYS}" |
5 | 5 | ||
6 | python __anonymous() { | 6 | require qemu-gcc3-check.inc |
7 | from bb import which, data | ||
8 | |||
9 | path = data.getVar('PATH', d) | ||
10 | oeconf = data.getVar('EXTRA_OECONF', d) or '' | ||
11 | if len(which(path, 'gcc-3.4')) != 0: | ||
12 | data.setVar('EXTRA_OECONF', oeconf + " --cc=gcc-3.4", d) | ||
13 | elif len(which(path, 'gcc34')) != 0: | ||
14 | data.setVar('EXTRA_OECONF', oeconf + " --cc=gcc34", d) | ||
15 | elif len(which(path, 'gcc-3.3')) != 0: | ||
16 | data.setVar('EXTRA_OECONF', oeconf + " --cc=gcc-3.3", d) | ||
17 | #data.setVarFlag('PKG_CONFIG_PATH', 'unexport', '1', d) | ||
18 | } | ||
diff --git a/meta/packages/qemu/qemu-native_cvs.bb b/meta/packages/qemu/qemu-native_cvs.bb index 01cc9c181d..fae6ca2f1b 100644 --- a/meta/packages/qemu/qemu-native_cvs.bb +++ b/meta/packages/qemu/qemu-native_cvs.bb | |||
@@ -3,16 +3,4 @@ inherit native | |||
3 | DEPENDS = "zlib-native" | 3 | DEPENDS = "zlib-native" |
4 | prefix = "${STAGING_DIR}/${BUILD_SYS}" | 4 | prefix = "${STAGING_DIR}/${BUILD_SYS}" |
5 | 5 | ||
6 | python __anonymous() { | 6 | require qemu-gcc3-check.inc |
7 | from bb import which, data | ||
8 | |||
9 | path = data.getVar('PATH', d) | ||
10 | oeconf = data.getVar('EXTRA_OECONF', d) or '' | ||
11 | if len(which(path, 'gcc-3.4')) != 0: | ||
12 | data.setVar('EXTRA_OECONF', oeconf + " --cc=gcc-3.4", d) | ||
13 | elif len(which(path, 'gcc34')) != 0: | ||
14 | data.setVar('EXTRA_OECONF', oeconf + " --cc=gcc34", d) | ||
15 | elif len(which(path, 'gcc-3.3')) != 0: | ||
16 | data.setVar('EXTRA_OECONF', oeconf + " --cc=gcc-3.3", d) | ||
17 | #data.setVarFlag('PKG_CONFIG_PATH', 'unexport', '1', d) | ||
18 | } | ||