diff options
author | Richard Purdie <rpurdie@rpsys.net> | 2006-09-02 18:44:19 +0000 |
---|---|---|
committer | Richard Purdie <rpurdie@rpsys.net> | 2006-09-02 18:44:19 +0000 |
commit | 99b80b8615c8e5662827252cf6cb7fc12144f8c2 (patch) | |
tree | 6328756276f0e9c33a5aad64d6fc837c925b995e /packages/qemu | |
parent | fb5cfbd9b510692852e9276d0ee99039338d66cf (diff) |
qemu-native: Create qemu-native.bbclass so all versions have the gcc 3.x detection code
Diffstat (limited to 'packages/qemu')
-rw-r--r-- | packages/qemu/qemu-native.inc | 13 | ||||
-rw-r--r-- | packages/qemu/qemu-native_0.7.0.bb | 3 | ||||
-rw-r--r-- | packages/qemu/qemu-native_0.8.0.bb | 3 | ||||
-rw-r--r-- | packages/qemu/qemu-native_0.8.1.bb | 2 | ||||
-rw-r--r-- | packages/qemu/qemu-native_0.8.2.bb | 3 | ||||
-rw-r--r-- | packages/qemu/qemu-native_cvs.bb | 13 |
6 files changed, 18 insertions, 19 deletions
diff --git a/packages/qemu/qemu-native.inc b/packages/qemu/qemu-native.inc new file mode 100644 index 0000000000..049aa675f8 --- /dev/null +++ b/packages/qemu/qemu-native.inc @@ -0,0 +1,13 @@ +FILESPATH =. "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/qemu-${PV}:" +prefix = "${STAGING_DIR}/${BUILD_SYS}" + +python __anonymous() { + from bb import which, data + + path = data.getVar('PATH', d) + if len(which(path, 'gcc-3.4')) != 0: + data.setVar('EXTRA_OECONF', " --cc=gcc-3.4", d) + elif len(which(path, 'gcc-3.3')) != 0: + data.setVar('EXTRA_OECONF', " --cc=gcc-3.3", d) + +} diff --git a/packages/qemu/qemu-native_0.7.0.bb b/packages/qemu/qemu-native_0.7.0.bb index acb5543a90..bad8bd7bf4 100644 --- a/packages/qemu/qemu-native_0.7.0.bb +++ b/packages/qemu/qemu-native_0.7.0.bb @@ -1,5 +1,4 @@ require qemu_${PV}.bb inherit native S = "${WORKDIR}/qemu-${PV}" -prefix = "${STAGING_DIR}/${BUILD_SYS}" - +require qemu-native.inc diff --git a/packages/qemu/qemu-native_0.8.0.bb b/packages/qemu/qemu-native_0.8.0.bb index 2b143bdc0f..9613f7d614 100644 --- a/packages/qemu/qemu-native_0.8.0.bb +++ b/packages/qemu/qemu-native_0.8.0.bb @@ -1,6 +1,5 @@ require qemu_${PV}.bb inherit native -FILESPATH =. "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/qemu-${PV}:" +require qemu-native.inc S = "${WORKDIR}/qemu-${PV}" -prefix = "${STAGING_DIR}/${BUILD_SYS}" diff --git a/packages/qemu/qemu-native_0.8.1.bb b/packages/qemu/qemu-native_0.8.1.bb index acb5543a90..9613f7d614 100644 --- a/packages/qemu/qemu-native_0.8.1.bb +++ b/packages/qemu/qemu-native_0.8.1.bb @@ -1,5 +1,5 @@ require qemu_${PV}.bb inherit native +require qemu-native.inc S = "${WORKDIR}/qemu-${PV}" -prefix = "${STAGING_DIR}/${BUILD_SYS}" diff --git a/packages/qemu/qemu-native_0.8.2.bb b/packages/qemu/qemu-native_0.8.2.bb index e064723e4e..c0b1cd4ee3 100644 --- a/packages/qemu/qemu-native_0.8.2.bb +++ b/packages/qemu/qemu-native_0.8.2.bb @@ -1,7 +1,6 @@ require qemu_${PV}.bb EXTRA_OECONF = "" inherit native -FILESPATH =. "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/qemu-${PV}:" +require qemu-native.inc S = "${WORKDIR}/qemu-${PV}" -prefix = "${STAGING_DIR}/${BUILD_SYS}" diff --git a/packages/qemu/qemu-native_cvs.bb b/packages/qemu/qemu-native_cvs.bb index 49d6c17b64..639f9a6a7c 100644 --- a/packages/qemu/qemu-native_cvs.bb +++ b/packages/qemu/qemu-native_cvs.bb @@ -1,14 +1,3 @@ require qemu_cvs.bb inherit native -prefix = "${STAGING_DIR}/${BUILD_SYS}" - -python __anonymous() { - from bb import which, data - - path = data.getVar('PATH', d) - if len(which(path, 'gcc-3.4')) != 0: - data.setVar('EXTRA_OECONF', " --cc=gcc-3.4", d) - elif len(which(path, 'gcc-3.3')) != 0: - data.setVar('EXTRA_OECONF', " --cc=gcc-3.3", d) - -} +require qemu-native.inc |