diff options
author | Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com> | 2017-12-06 16:06:35 -0800 |
---|---|---|
committer | Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com> | 2017-12-13 16:11:14 -0800 |
commit | a18947c20dba2c0c38db8bde1ad4684995df4bbd (patch) | |
tree | 917bf2abbe439a6f99ede8cfafb25812dca54a9a /meta-xilinx-contrib/recipes-bsp/reference-design | |
parent | 6ddc5873b0ede30e6542f0ab151a6236acc37944 (diff) | |
download | meta-xilinx-a18947c20dba2c0c38db8bde1ad4684995df4bbd.tar.gz |
meta-xilinx: Restructuring meta-xilinx to support multiple layers
As discussed previously on mailing list, we are proceeding with layer
restructuring. For rocko release we will have the following layers
meta-xilinx
->meta-xilinx-bsp (current meta-xilinx)
->meta-xilinx-contrib
In the subsequent releases we will add other layers from Xilinx
meta-xilinx
->meta-xilinx-bsp (current meta-xilinx)
->meta-petalinux
->meta-xilinx-tools
->meta-xilinx-contrib
This will provide one clone to get all the required meta layers from
Xilinx for a complete solution, and the users can blacklist any layer
which they don't want to use using bblayer.conf.
This will enables us to help our vendors/partners to add their reference
designs, board definitions etc.
Recipe changes :
* Move reference design zybo-linux-bd.bb to meta-xilinx-contrib
* Move kernel patches realted to zybo-linux-bd-zynq7 board to
meta-xilinx-contrib
* Update README
Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
Diffstat (limited to 'meta-xilinx-contrib/recipes-bsp/reference-design')
-rw-r--r-- | meta-xilinx-contrib/recipes-bsp/reference-design/zybo-linux-bd.bb | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/meta-xilinx-contrib/recipes-bsp/reference-design/zybo-linux-bd.bb b/meta-xilinx-contrib/recipes-bsp/reference-design/zybo-linux-bd.bb new file mode 100644 index 00000000..be68918c --- /dev/null +++ b/meta-xilinx-contrib/recipes-bsp/reference-design/zybo-linux-bd.bb | |||
@@ -0,0 +1,66 @@ | |||
1 | SUMMARY = "The reference design for zybo-linux-bd" | ||
2 | DESCRIPTION = "Contains the Reference Design Files and hardware software \ | ||
3 | hand-off file. The HDF provides bitstream and Xilinx ps7_init_gpl.c/h \ | ||
4 | platform headers." | ||
5 | SECTION = "bsp" | ||
6 | |||
7 | DEPENDS += "unzip-native" | ||
8 | |||
9 | LICENSE = "Proprietary" | ||
10 | LIC_FILES_CHKSUM = "file://Projects/${HW_BD}/readme.txt;md5=e1cb7639bf00b6e730ff3a7f13714951" | ||
11 | |||
12 | COMPATIBLE_MACHINE = "zybo-linux-bd-zynq7" | ||
13 | |||
14 | HW_BD = "linux_bd" | ||
15 | |||
16 | SRC_URI = "git://github.com/Digilent/ZYBO.git;protocol=https;nobranch=1" | ||
17 | SRCREV = "63ca49fe027da49f3b0ac636bd404fd31fbbd945" | ||
18 | |||
19 | PV = "+git${SRCPV}" | ||
20 | |||
21 | S = "${WORKDIR}/git" | ||
22 | |||
23 | HDF = "/Projects/${HW_BD}/hw_handoff/${HW_BD}_wrapper.hdf" | ||
24 | |||
25 | S ?= "${WORKDIR}/${MACHINE}" | ||
26 | |||
27 | PROVIDES = "virtual/bitstream virtual/xilinx-platform-init" | ||
28 | |||
29 | FILES_${PN}-platform-init += "${PLATFORM_INIT_DIR}/*" | ||
30 | |||
31 | FILES_${PN}-bitstream += " \ | ||
32 | download.bit \ | ||
33 | " | ||
34 | |||
35 | PACKAGES = "${PN}-platform-init ${PN}-bitstream" | ||
36 | |||
37 | BITSTREAM ?= "bitstream-${PV}-${PR}.bit" | ||
38 | |||
39 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
40 | |||
41 | inherit xilinx-platform-init | ||
42 | inherit deploy | ||
43 | |||
44 | SYSROOT_DIRS += "${PLATFORM_INIT_DIR}" | ||
45 | |||
46 | do_install() { | ||
47 | fn=$(unzip -l ${S}/${HDF} | awk '{print $NF}' | grep ".bit$") | ||
48 | unzip -o ${S}/${HDF} ${fn} -d ${D} | ||
49 | [ "${fn}" == "download.bit" ] || mv ${D}/${fn} ${D}/download.bit | ||
50 | |||
51 | install -d ${D}${PLATFORM_INIT_DIR} | ||
52 | for fn in ${PLATFORM_INIT_FILES}; do | ||
53 | unzip -o ${S}/${HDF} ${fn} -d ${D}${PLATFORM_INIT_DIR} | ||
54 | done | ||
55 | } | ||
56 | |||
57 | do_deploy () { | ||
58 | if [ -e ${D}/download.bit ]; then | ||
59 | install -d ${DEPLOYDIR} | ||
60 | install -m 0644 ${D}/download.bit ${DEPLOYDIR}/${BITSTREAM} | ||
61 | ln -sf ${BITSTREAM} ${DEPLOYDIR}/download.bit | ||
62 | # for u-boot 2016.3 with spl load bitstream patch | ||
63 | ln -sf ${BITSTREAM} ${DEPLOYDIR}/bitstream | ||
64 | fi | ||
65 | } | ||
66 | addtask deploy before do_build after do_install | ||