diff options
| author | Appana Durga Kedareswara rao <appana.durga.rao@xilinx.com> | 2020-03-03 17:35:35 +0530 |
|---|---|---|
| committer | Mark Hatle <mark.hatle@xilinx.com> | 2020-03-03 19:41:25 -0800 |
| commit | c82d98f2167aadfeb134d92f007dedf5919d9507 (patch) | |
| tree | ec5a1518e0354a37e989b14a107f16fa54f76787 /meta-xilinx-standalone | |
| parent | a8061125635967cf9a0556b2223c20fd9ef93ba9 (diff) | |
| download | meta-xilinx-c82d98f2167aadfeb134d92f007dedf5919d9507.tar.gz | |
meta-xilinx-standalone: recipes-libraries: xiltimer: Add task for generating cmake meta-data
In the esw repo xiltimer library provides the abstarct API's for the
timing implementation like sleep routines, tick handler etc...
These wrapper API's has dependency on the h/w component drivers like
axi_timer, ttcps to provide the required funcationality.
In order to support these h/w dependencies there is a lib_paraser.py
script in the esw repo which parses the dtb and generates the required
config data in the form of cmake.
The generated cmake file will be consumed by the library to support
below features
1) To show list of available timer instances in the cmake-gui
2) Source code management based on the Timer instance available.
This patch updates the recipe to call the lib_parser.py before do_configure.
Signed-off-by: Appana Durga Kedareswara rao <appana.durga.rao@xilinx.com>
Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
Diffstat (limited to 'meta-xilinx-standalone')
| -rw-r--r-- | meta-xilinx-standalone/recipes-libraries/xiltimer_git.bb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/meta-xilinx-standalone/recipes-libraries/xiltimer_git.bb b/meta-xilinx-standalone/recipes-libraries/xiltimer_git.bb index 575cf5fe..428fa686 100644 --- a/meta-xilinx-standalone/recipes-libraries/xiltimer_git.bb +++ b/meta-xilinx-standalone/recipes-libraries/xiltimer_git.bb | |||
| @@ -3,4 +3,10 @@ inherit esw python3native | |||
| 3 | ESW_COMPONENT_SRC = "/lib/sw_services/xiltimer/src/" | 3 | ESW_COMPONENT_SRC = "/lib/sw_services/xiltimer/src/" |
| 4 | ESW_COMPONENT_NAME = "libxiltimer.a" | 4 | ESW_COMPONENT_NAME = "libxiltimer.a" |
| 5 | 5 | ||
| 6 | DEPENDS += "dtc-native python3-pyyaml-native libxil device-tree" | 6 | DEPENDS += "dtc-native python3-dtc-native python3-pyyaml-native libxil device-tree" |
| 7 | |||
| 8 | do_configure_prepend() { | ||
| 9 | # This script should also not rely on relative paths and such | ||
| 10 | cd ${S} | ||
| 11 | nativepython3 ${S}/scripts/lib_parser.py -d ${DTBFILE} -o ${OECMAKE_SOURCEPATH} | ||
| 12 | } | ||
