All of lore.kernel.org
 help / color / mirror / Atom feed
* Weird ALTERNATIVES and staging conflict.
@ 2014-10-30 14:17 Mike Looijmans
  2014-10-30 17:47 ` Richard Purdie
  0 siblings, 1 reply; 9+ messages in thread
From: Mike Looijmans @ 2014-10-30 14:17 UTC (permalink / raw)
  To: openembedded-core

I have this base script that builds FPGA bitstreams:

https://github.com/topic-embedded-products/meta-topic/blob/master/recipes-bsp/fpga/fpga-image.inc

Now you can have multiple recipes using it, and as such, it seemed a good idea 
to add these lines to that recipe:

+ALTERNATIVE_${PN} = "fpga.bin bitstreams"
+ALTERNATIVE_LINK_NAME[fpga.bin] = "${datadir}/fpga.bin"
+ALTERNATIVE_TARGET[fpga.bin] = "${datadir}/fpga.bin"
+ALTERNATIVE_LINK_NAME[bitstreams] = "${datadir}/bitstreams"
+ALTERNATIVE_TARGET[bitstreams] = "${datadir}/bitstreams"


This still resulted in staging conflicts. So I made two simple recipes to 
demonstrate the problem:

SUMMARY = "FPGA bitstream"
XILINX_VIVADO_VERSION = "2014.1"
require recipes-bsp/fpga/fpga-image.inc
LICENSE = "internal"
LIC_FILES_CHKSUM = 
"file://${METATOPIC_BASE}/LICENSE;md5=cf85de037de7ae12cc2d0059741fdbae"
SRC_URI = ""
S = "${WORKDIR}"

do_compile() {
	echo "${PN}" > fpga.bit
}
do_convert_bitstreams() {
	ln -f fpga.bit fpga.bin
}


I save this as "fpga-image-fake-one.bb" and "fpga-image-fake-two.bb"

I then create an image that installs them both, and bitbake that image. This 
(still) results in the following error:


ERROR: The recipe fpga-image-fake-two is trying to install files into a shared 
area when those files already exist. Those files and their manifest location are:
 
/home/mike/zynq_platform/build/tmp-glibc/sysroots/topic-miami-7015/usr/share/fpga.bin
  Matched in manifest-topic-miami-7015-fpga-image-fake-one.populate_sysroot
Please verify which recipe should provide the above files.



But looking at the contents of the fake packages, the fpga.bin has been 
renamed by alternatives (as expected), and the symlink will be created after 
installing, so how come I still get this?



Met vriendelijke groet / kind regards,

Mike Looijmans
System Expert


TOPIC Embedded Systems
Eindhovenseweg 32-C, NL-5683 KH Best
Postbus 440, NL-5680 AK Best
Telefoon: (+31) (0) 499 33 69 79
Telefax:  (+31) (0) 499 33 69 70
E-mail: mike.looijmans@topic.nl
Website: www.topic.nl

Please consider the environment before printing this e-mail

Topic zoekt gedreven (embedded) software specialisten!
http://topic.nl/vacatures/topic-zoekt-software-engineers/



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

end of thread, other threads:[~2014-11-03 14:11 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-30 14:17 Weird ALTERNATIVES and staging conflict Mike Looijmans
2014-10-30 17:47 ` Richard Purdie
2014-11-03  9:53   ` Mike Looijmans
2014-11-03 10:04     ` Richard Purdie
2014-11-03 10:49       ` Mike Looijmans
2014-11-03 11:35         ` Mike Looijmans
2014-11-03 12:09           ` Richard Purdie
2014-11-03 14:11             ` Mike Looijmans
2014-11-03 11:35         ` Richard Purdie

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.