diff options
author | Nathan Rossi <nathan.rossi@xilinx.com> | 2015-03-02 14:52:09 +1000 |
---|---|---|
committer | Nathan Rossi <nathan.rossi@xilinx.com> | 2015-03-31 15:56:47 +1000 |
commit | 863bd56d23cdb52de56dd1e3856a11187e934129 (patch) | |
tree | c886174f77d520c4ea834910d0057b8c74133f84 | |
parent | f9addb8674a8bd2e1e1377194cad90fdf6f79eea (diff) | |
download | meta-xilinx-863bd56d23cdb52de56dd1e3856a11187e934129.tar.gz |
platform-init/fsbl-platform-init: Add recipe
* Create recipe to handle retrieving the platform init files
(ps7_init_gpl.[ch]) for use with other recipes
* Add the zynq7-platform-init.inc include for reuse
Signed-off-by: Nathan Rossi <nathan.rossi@xilinx.com>
-rw-r--r-- | recipes-bsp/platform-init/fsbl-platform-init_2014.4.bb | 32 | ||||
-rw-r--r-- | recipes-bsp/platform-init/zynq7-platform-init.inc | 24 |
2 files changed, 56 insertions, 0 deletions
diff --git a/recipes-bsp/platform-init/fsbl-platform-init_2014.4.bb b/recipes-bsp/platform-init/fsbl-platform-init_2014.4.bb new file mode 100644 index 00000000..fb36cfa9 --- /dev/null +++ b/recipes-bsp/platform-init/fsbl-platform-init_2014.4.bb | |||
@@ -0,0 +1,32 @@ | |||
1 | SUMMARY = "Xilinx FSBL Platform Headers" | ||
2 | DESCRPTION = "Xilinx FSBL ps7_init_gpl.c/h platform headers, used for building u-boot-spl and fsbl" | ||
3 | HOMEPAGE = "http://www.xilinx.com" | ||
4 | SECTION = "bsp" | ||
5 | |||
6 | include zynq7-platform-init.inc | ||
7 | |||
8 | COMPATIBLE_MACHINE = "zc702-zynq7|zc706-zynq7|zedboard-zynq7|microzed-zynq7" | ||
9 | |||
10 | # This license refers to only the ps7_init_gpl.c and ps7_init_gpl.h, all other | ||
11 | # files in the repo have a different license, refer to the source for more | ||
12 | # detail. | ||
13 | LICENSE = "GPLv2+" | ||
14 | LIC_FILES_CHKSUM = "files://${COREBASE}/meta/files/common-licenses/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6" | ||
15 | |||
16 | SRC_URI = "git://github.com/Xilinx/embeddedsw.git;protocol=https;branch=master" | ||
17 | SRCREV = "5f9ae570bf665fcded71364d19b6fae73e63190b" | ||
18 | |||
19 | S = "${WORKDIR}/git" | ||
20 | |||
21 | BOARD_NAME_zc702-zynq7 = "zc702" | ||
22 | BOARD_NAME_zc706-zynq7 = "zc706" | ||
23 | BOARD_NAME_zedboard-zynq7 = "zed" | ||
24 | BOARD_NAME_microzed-zynq7 = "microzed" | ||
25 | |||
26 | FSBL_MISC_PATH = "lib/sw_apps/zynq_fsbl/misc/${BOARD_NAME}" | ||
27 | |||
28 | do_install_append() { | ||
29 | install -m 0644 ${S}/${FSBL_MISC_PATH}/ps7_init_gpl.c ${D}${PLATFORM_INIT_DIR}/ | ||
30 | install -m 0644 ${S}/${FSBL_MISC_PATH}/ps7_init_gpl.h ${D}${PLATFORM_INIT_DIR}/ | ||
31 | } | ||
32 | |||
diff --git a/recipes-bsp/platform-init/zynq7-platform-init.inc b/recipes-bsp/platform-init/zynq7-platform-init.inc new file mode 100644 index 00000000..9dfd94af --- /dev/null +++ b/recipes-bsp/platform-init/zynq7-platform-init.inc | |||
@@ -0,0 +1,24 @@ | |||
1 | inherit zynq7-platform-paths | ||
2 | |||
3 | PROVIDES += "virtual/zynq7-platform-init" | ||
4 | |||
5 | INHIBIT_DEFAULT_DEPS = "1" | ||
6 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
7 | |||
8 | do_compile() { | ||
9 | : | ||
10 | } | ||
11 | |||
12 | do_install() { | ||
13 | install -d ${D}${PLATFORM_INIT_DIR} | ||
14 | } | ||
15 | |||
16 | python sysroot_stage_all () { | ||
17 | oe.path.copytree(d.expand("${D}${PLATFORM_INIT_DIR}"), d.expand("${SYSROOT_DESTDIR}${PLATFORM_INIT_DIR}")) | ||
18 | } | ||
19 | |||
20 | FILES_${PN} += " \ | ||
21 | ${PLATFORM_INIT_DIR}/ps7_init_gpl.c \ | ||
22 | ${PLATFORM_INIT_DIR}/ps7_init_gpl.h \ | ||
23 | " | ||
24 | |||