Openembedded Core Discussions
 help / color / mirror / Atom feed
* Linking two recipes
@ 2012-03-19 20:59 simran singh
  2012-03-19 21:22 ` Richard Purdie
  0 siblings, 1 reply; 10+ messages in thread
From: simran singh @ 2012-03-19 20:59 UTC (permalink / raw)
  To: openembedded-core


[-- Attachment #1.1: Type: text/plain, Size: 348 bytes --]


Hello,I have recipes for two applications Recipe A and Recipe B. Recipe B requires a lib.so file and init.h file which are installed by Recipe A.How do I acknowledge this dependency in Recipe B. I tried doing do_stage() function in recipe A with no success. Please advice.I am attaching the two recipes.Thank you for any help.
Simran 		 	   		  

[-- Attachment #1.2: Type: text/html, Size: 632 bytes --]

[-- Attachment #2: recipeA.bb --]
[-- Type: application/octet-stream, Size: 1075 bytes --]

DESCRIPTION = "Botan library"
PR = "r0"
SRC_URI = "file://${PN}-${PV}.tar.gz"

export LDFLAGS = "-L${STAGING_LIBDIR}"

S = "${WORKDIR}"

#EXTRA_OEMAKE = 'LINUX=${STAGING_KERNEL_DIR} EXLDFLAGS="${LDFLAGS}" \
#		MACHINE=${TARGET_ARCH} CC="${CC}" AR="${AR}" PREFIX="${prefix}"'

do_configure() {

	mkdir -p ${D}/usr/botan
	cd Botan-1.10.1

#	export PATH=${WORKDIR}:${PATH}
#	export CC=gcc
#	export CXX=g++

	python configure.py --prefix=${D}/usr/botan
#	make
#	make install

}

#TARGET_CC_ARCH += "${LDFLAGS}"

do_compile() {

#	export PATH=${WORKDIR}:${PATH}
#	export CC=gcc
#	export CXX=g++

	cd Botan-1.10.1
	make
	
}

fakeroot do_install() {

	cd Botan-1.10.1
	make install
	cp -r ${WORKDIR}/Botan-1.10.1/* ${D}/usr/botan

}

do_stage() {
#	install -m 0755 ${D}/usr/botan/libbotan-1.10.so.0.1 ${STAGING_LIBDIR}/botan
	install -d ${STAGING_INCDIR}/
	install -d ${STAGING_LIBDIR}
#	cd ${D}/usr/botan
	oe_libinstall -so libbotan-1.10.so.0.1 ${STAGING_LIBDIR}

}

#FILES_${PN} += "${datadir}/botan"
FILES_${PN} += "/usr/bin/botan"
#FILES_${PN} = "${base_libdir}/libgcc*.so.*"



[-- Attachment #3: recipeB.bb --]
[-- Type: application/octet-stream, Size: 624 bytes --]

DESCRIPTION = "SoftHSM"
PR = "r0"
SRC_URI = "file://${PN}-${PV}.tar.gz"

S = "${WORKDIR}"

DEPENDS = "botan sqlite3"
#RDEPENDS = "botan"

export LDFLAGS = "-L${STAGING_LIBDIR}"
export STAGING_LIBDIR

do_configure() {

	mkdir -p ${D}/usr/softhsm

	./softhsm-1.3.1/configure --host --prefix=${D}/usr/softhsm --with-loglevel=4 #--with-botan=${STAGING_LIBDIR}/botan

}

do_compile() {

	make
	
}

fakeroot do_install() {

	make install

}


FILES_${PN} += "/usr/bin/softhsm"
#FILES_${PN} += "/home/Simran/Freescale/QorIQ-DPAA-SDK-20111026-systembuilder/build_p4080ds_release/work/ppce500mc-linux/botan-1.0-r0/image/usr/botan"



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2012-04-07  3:53 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-19 20:59 Linking two recipes simran singh
2012-03-19 21:22 ` Richard Purdie
2012-03-19 21:33   ` simran singh
2012-03-19 21:39     ` Christopher Larson
2012-03-19 21:57       ` simran singh
2012-03-19 21:59         ` Christopher Larson
2012-03-19 22:10           ` simran singh
2012-03-19 22:54             ` Richard Purdie
2012-03-20 19:25               ` simran singh
2012-04-07  3:44                 ` Khem Raj

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox