summaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
authorNathan Rossi <nathan@nathanrossi.com>2017-01-14 21:15:38 +1000
committerNathan Rossi <nathan@nathanrossi.com>2017-04-28 00:22:54 +1000
commit02e678550523810f7e2e6aabbc5ef65c6acd3b32 (patch)
treea657737babbf4a8199ca09aae7b69b7e1697f248 /classes
parentae79cd8bf9a30d64b12f6f5c41b2a91e32e66dda (diff)
downloadmeta-xilinx-02e678550523810f7e2e6aabbc5ef65c6acd3b32.tar.gz
xilinx-platform-init.bbclass: Generic platform-init class
Create a more generic platform init class for use with Zynq 7000, ZynqMP and or future targets that use the platform initialization code files configuration setup. This generic class defines the source files (which are defined per SoC) and the staging directory to populate with the source files. This class replaces zynq7-platform-paths.bbclass. Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Diffstat (limited to 'classes')
-rw-r--r--classes/xilinx-platform-init.bbclass14
-rw-r--r--classes/zynq7-platform-paths.bbclass4
2 files changed, 14 insertions, 4 deletions
diff --git a/classes/xilinx-platform-init.bbclass b/classes/xilinx-platform-init.bbclass
new file mode 100644
index 00000000..5d099500
--- /dev/null
+++ b/classes/xilinx-platform-init.bbclass
@@ -0,0 +1,14 @@
1# This class should be included by any recipe that wants to access or provide
2# the platform init source files which are used to initialize a Zynq or ZynqMP
3# SoC.
4
5# Define the path to the xilinx platform init code/headers
6PLATFORM_INIT_DIR ?= "/usr/src/xilinx-platform-init"
7
8PLATFORM_INIT_STAGE_DIR = "${STAGING_DIR_HOST}${PLATFORM_INIT_DIR}"
9
10# Target files use for platform init
11PLATFORM_INIT_FILES ?= ""
12PLATFORM_INIT_FILES_zynq = "ps7_init_gpl.c ps7_init_gpl.h"
13PLATFORM_INIT_FILES_zynqmp = "psu_init_gpl.c psu_init_gpl.h"
14
diff --git a/classes/zynq7-platform-paths.bbclass b/classes/zynq7-platform-paths.bbclass
deleted file mode 100644
index a15f6ae5..00000000
--- a/classes/zynq7-platform-paths.bbclass
+++ /dev/null
@@ -1,4 +0,0 @@
1# Define the path to the zynq platform init code/headers
2PLATFORM_INIT_DIR = "/usr/src/zynq7-platform"
3PLATFORM_INIT_STAGE_DIR = "${STAGING_DIR_HOST}${PLATFORM_INIT_DIR}"
4