From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.windriver.com (mail.windriver.com [147.11.1.11]) by mail.openembedded.org (Postfix) with ESMTP id 684D473D13 for ; Mon, 14 Sep 2015 02:30:39 +0000 (UTC) Received: from ALA-HCB.corp.ad.wrs.com (ala-hcb.corp.ad.wrs.com [147.11.189.41]) by mail.windriver.com (8.15.2/8.15.1) with ESMTPS id t8E2UdQc024637 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL) for ; Sun, 13 Sep 2015 19:30:40 -0700 (PDT) Received: from [128.224.162.176] (128.224.162.176) by ALA-HCB.corp.ad.wrs.com (147.11.189.41) with Microsoft SMTP Server id 14.3.235.1; Sun, 13 Sep 2015 19:30:39 -0700 Message-ID: <55F6314D.8090502@windriver.com> Date: Mon, 14 Sep 2015 10:30:37 +0800 From: wenzong fan User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: References: <1438591965-24099-1-git-send-email-wenzong.fan@windriver.com> In-Reply-To: <1438591965-24099-1-git-send-email-wenzong.fan@windriver.com> Subject: Re: [PATCH] openssl: fix ptest issues X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Sep 2015 02:30:42 -0000 Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit Ping ... Thanks Wenzong On 08/03/2015 04:52 PM, wenzong.fan@windriver.com wrote: > From: Wenzong Fan > > * follow symbolic links while copying sources from test/* > * install required target files to remove Make errors: > > make[2]: *** No rule to make target 'xxx', needed by 'yyy'. > > * fix hardcode pathes: > /usr/lib -> ${libdir}, /usr/bin -> ${bindir} > > Signed-off-by: Wenzong Fan > --- > meta/recipes-connectivity/openssl/openssl.inc | 14 ++++++++++---- > 1 file changed, 10 insertions(+), 4 deletions(-) > > diff --git a/meta/recipes-connectivity/openssl/openssl.inc b/meta/recipes-connectivity/openssl/openssl.inc > index 53dcfd9..8d62915 100644 > --- a/meta/recipes-connectivity/openssl/openssl.inc > +++ b/meta/recipes-connectivity/openssl/openssl.inc > @@ -191,12 +191,18 @@ do_install () { > } > > do_install_ptest () { > - cp -r Makefile test ${D}${PTEST_PATH} > + cp -r -L Makefile.org Makefile test ${D}${PTEST_PATH} > + cp Configure config e_os.h ${D}${PTEST_PATH} > + cp -r -L include ${D}${PTEST_PATH} > + ln -sf ${base_libdir}/libcrypto.a ${D}${PTEST_PATH} > + ln -sf ${libdir}/libssl.a ${D}${PTEST_PATH} > + mkdir -p ${D}${PTEST_PATH}/crypto > + cp crypto/constant_time_locl.h ${D}${PTEST_PATH}/crypto > cp -r certs ${D}${PTEST_PATH} > mkdir -p ${D}${PTEST_PATH}/apps > - ln -sf /usr/lib/ssl/misc/CA.sh ${D}${PTEST_PATH}/apps > - ln -sf /usr/lib/ssl/openssl.cnf ${D}${PTEST_PATH}/apps > - ln -sf /usr/bin/openssl ${D}${PTEST_PATH}/apps > + ln -sf ${libdir}/ssl/misc/CA.sh ${D}${PTEST_PATH}/apps > + ln -sf ${libdir}/ssl/openssl.cnf ${D}${PTEST_PATH}/apps > + ln -sf ${bindir}/openssl ${D}${PTEST_PATH}/apps > cp apps/server2.pem ${D}${PTEST_PATH}/apps > mkdir -p ${D}${PTEST_PATH}/util > install util/opensslwrap.sh ${D}${PTEST_PATH}/util >