[meta-freescale] ][PATCH 09/31] ipsec-demo: optimize recipe

Zhenhua Luo zhenhua.luo at freescale.com
Wed Aug 12 07:42:20 PDT 2015


* add bash in RDEPENDS
* define S to fix build warning
* use noexec attribute to disable function execution
* add COMPATIBLE_MACHINE

Signed-off-by: Zhenhua Luo <zhenhua.luo at freescale.com>
---
 recipes-connectivity/ipsec-demo/ipsec-demo_0.1.bb | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

diff --git a/recipes-connectivity/ipsec-demo/ipsec-demo_0.1.bb b/recipes-connectivity/ipsec-demo/ipsec-demo_0.1.bb
index 5607060..8a90c76 100644
--- a/recipes-connectivity/ipsec-demo/ipsec-demo_0.1.bb
+++ b/recipes-connectivity/ipsec-demo/ipsec-demo_0.1.bb
@@ -2,19 +2,16 @@ SUMMARY = "Scripts and configuration files for ipsec demo"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
 
-RDEPENDS_${PN} = "ipsec-tools"
+RDEPENDS_${PN} = "ipsec-tools bash"
 
 inherit allarch
 
 SRC_URI = "file://test_setkey"
 
-do_configure() {
-    :
-}
+S = "${WORKDIR}"
 
-do_compile() {
-    :
-}
+do_configure[noexec] = "1"
+do_compile[noexec] = "1"
 
 do_install(){
     install -d  ${D}${datadir}
@@ -23,3 +20,4 @@ do_install(){
 
 FILES_${PN} = "${datadir}/*"
 
+COMPATIBLE_MACHINE = "(qoriq-ppc)"
-- 
2.4.3



More information about the meta-freescale mailing list