diff options
author | Jonathan Liu <net147@gmail.com> | 2013-06-13 12:31:45 +0000 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2013-06-20 12:29:56 +0200 |
commit | 76187e9a7953d932adab2a7d8ead6ad290e9ab73 (patch) | |
tree | 1e54ee6b5f1c9e1828a812e6fb155abf182884db /meta-oe/recipes-core | |
parent | 305038f932fbcb39f3bb6698f8fad18172c30962 (diff) | |
download | meta-openembedded-76187e9a7953d932adab2a7d8ead6ad290e9ab73.tar.gz |
llvm3.2: replace LLVM_RELEASE with PV
Setting LLVM_RELEASE is redundant as the version can be retrieved from
PV instead.
Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/recipes-core')
-rw-r--r-- | meta-oe/recipes-core/llvm/llvm3.2_3.2.bb | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/meta-oe/recipes-core/llvm/llvm3.2_3.2.bb b/meta-oe/recipes-core/llvm/llvm3.2_3.2.bb index 673892fa4..71a53c1f5 100644 --- a/meta-oe/recipes-core/llvm/llvm3.2_3.2.bb +++ b/meta-oe/recipes-core/llvm/llvm3.2_3.2.bb | |||
@@ -18,8 +18,7 @@ inherit autotools perlnative pythonnative | |||
18 | 18 | ||
19 | LLVM_BUILD_DIR = "${WORKDIR}/llvm-${PV}.build" | 19 | LLVM_BUILD_DIR = "${WORKDIR}/llvm-${PV}.build" |
20 | LLVM_INSTALL_DIR = "${WORKDIR}/llvm-install" | 20 | LLVM_INSTALL_DIR = "${WORKDIR}/llvm-install" |
21 | LLVM_RELEASE = "3.2" | 21 | LLVM_DIR = "llvm${PV}" |
22 | LLVM_DIR = "llvm${LLVM_RELEASE}" | ||
23 | 22 | ||
24 | EXTRA_OECONF += "--disable-assertions \ | 23 | EXTRA_OECONF += "--disable-assertions \ |
25 | --enable-debug-runtime \ | 24 | --enable-debug-runtime \ |
@@ -92,7 +91,7 @@ do_install() { | |||
92 | 91 | ||
93 | install -d ${D}${libdir}/${LLVM_DIR} | 92 | install -d ${D}${libdir}/${LLVM_DIR} |
94 | mv ${LLVM_INSTALL_DIR}${libdir}/* ${D}${libdir}/${LLVM_DIR}/ | 93 | mv ${LLVM_INSTALL_DIR}${libdir}/* ${D}${libdir}/${LLVM_DIR}/ |
95 | ln -s ${LLVM_DIR}/libLLVM-${LLVM_RELEASE}.so ${D}${libdir}/libLLVM-${LLVM_RELEASE}.so | 94 | ln -s ${LLVM_DIR}/libLLVM-${PV}.so ${D}${libdir}/libLLVM-${PV}.so |
96 | 95 | ||
97 | install -d ${D}${docdir}/${LLVM_DIR} | 96 | install -d ${D}${docdir}/${LLVM_DIR} |
98 | mv ${LLVM_INSTALL_DIR}${prefix}/docs/llvm/* ${D}${docdir}/${LLVM_DIR} | 97 | mv ${LLVM_INSTALL_DIR}${prefix}/docs/llvm/* ${D}${docdir}/${LLVM_DIR} |
@@ -102,5 +101,5 @@ SYSROOT_PREPROCESS_FUNCS += "llvm_sysroot_preprocess" | |||
102 | 101 | ||
103 | llvm_sysroot_preprocess() { | 102 | llvm_sysroot_preprocess() { |
104 | install -d ${SYSROOT_DESTDIR}${bindir_crossscripts} | 103 | install -d ${SYSROOT_DESTDIR}${bindir_crossscripts} |
105 | mv ${LLVM_INSTALL_DIR}/llvm-config-host ${SYSROOT_DESTDIR}${bindir_crossscripts}/llvm-config${LLVM_RELEASE} | 104 | mv ${LLVM_INSTALL_DIR}/llvm-config-host ${SYSROOT_DESTDIR}${bindir_crossscripts}/llvm-config${PV} |
106 | } | 105 | } |