[meta-xilinx] [PATCH 1/5] xilinx-platform-init.bbclass: Generic platform-init class

Nathan Rossi nathan at nathanrossi.com
Wed Apr 26 04:41:28 PDT 2017


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 at nathanrossi.com>
---
 classes/xilinx-platform-init.bbclass | 14 ++++++++++++++
 classes/zynq7-platform-paths.bbclass |  4 ----
 2 files changed, 14 insertions(+), 4 deletions(-)
 create mode 100644 classes/xilinx-platform-init.bbclass
 delete mode 100644 classes/zynq7-platform-paths.bbclass

diff --git a/classes/xilinx-platform-init.bbclass b/classes/xilinx-platform-init.bbclass
new file mode 100644
index 0000000000..5d09950040
--- /dev/null
+++ b/classes/xilinx-platform-init.bbclass
@@ -0,0 +1,14 @@
+# This class should be included by any recipe that wants to access or provide
+# the platform init source files which are used to initialize a Zynq or ZynqMP
+# SoC.
+
+# Define the path to the xilinx platform init code/headers
+PLATFORM_INIT_DIR ?= "/usr/src/xilinx-platform-init"
+
+PLATFORM_INIT_STAGE_DIR = "${STAGING_DIR_HOST}${PLATFORM_INIT_DIR}"
+
+# Target files use for platform init
+PLATFORM_INIT_FILES ?= ""
+PLATFORM_INIT_FILES_zynq = "ps7_init_gpl.c ps7_init_gpl.h"
+PLATFORM_INIT_FILES_zynqmp = "psu_init_gpl.c psu_init_gpl.h"
+
diff --git a/classes/zynq7-platform-paths.bbclass b/classes/zynq7-platform-paths.bbclass
deleted file mode 100644
index a15f6ae52d..0000000000
--- a/classes/zynq7-platform-paths.bbclass
+++ /dev/null
@@ -1,4 +0,0 @@
-# Define the path to the zynq platform init code/headers
-PLATFORM_INIT_DIR = "/usr/src/zynq7-platform"
-PLATFORM_INIT_STAGE_DIR = "${STAGING_DIR_HOST}${PLATFORM_INIT_DIR}"
-
-- 
2.11.0




More information about the meta-xilinx mailing list