summaryrefslogtreecommitdiffstats
path: root/meta-xilinx-standalone
diff options
context:
space:
mode:
authorAppana Durga Kedareswara rao <appana.durga.rao@xilinx.com>2020-01-22 19:40:38 +0530
committerMark Hatle <mark.hatle@xilinx.com>2020-02-27 08:33:25 -0800
commitfbf4fc98984bf755ceaaefcaa25ca25d172a34b6 (patch)
treee38ceeb8e75b05d7561222007278870a64c2cd32 /meta-xilinx-standalone
parent3304a04d8c43f060afdcc062d0e462c8ed20f990 (diff)
downloadmeta-xilinx-fbf4fc98984bf755ceaaefcaa25ca25d172a34b6.tar.gz
meta-xilinx-standalone: recipes-libraries: libxil: Cleanup the recipe
There is no need to create an additional task do_create_dtb. script mentioned in the do_generate_cmake needs to be called before do_configure(), we can use do_configure_prepend() for this instead of adding own task. This patch updates the recipe for the same. Signed-off-by: Appana Durga Kedareswara rao <appana.durga.rao@xilinx.com>
Diffstat (limited to 'meta-xilinx-standalone')
-rw-r--r--meta-xilinx-standalone/recipes-libraries/libxil_git.bb19
1 files changed, 6 insertions, 13 deletions
diff --git a/meta-xilinx-standalone/recipes-libraries/libxil_git.bb b/meta-xilinx-standalone/recipes-libraries/libxil_git.bb
index a455c384..49437a9b 100644
--- a/meta-xilinx-standalone/recipes-libraries/libxil_git.bb
+++ b/meta-xilinx-standalone/recipes-libraries/libxil_git.bb
@@ -3,9 +3,9 @@ inherit esw python3native
3ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/" 3ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/"
4ESW_COMPONENT_NAME = "libxil.a" 4ESW_COMPONENT_NAME = "libxil.a"
5 5
6DEPENDS += "dtc-native python3-pyyaml-native xilmem device-tree" 6DEPENDS += "dtc-native python3-pyyaml-native xilstandalone xilmem device-tree"
7 7
8do_generate_cmake (){ 8do_configure_prepend() {
9 # This will generate CMakeLists.txt which contains 9 # This will generate CMakeLists.txt which contains
10 # drivers for the libxil 10 # drivers for the libxil
11 cd ${S} 11 cd ${S}
@@ -16,19 +16,12 @@ do_generate_cmake (){
16 # everything in libxil, which is undesired. 16 # everything in libxil, which is undesired.
17 DRIVERS_LIST=$(nativepython3 ${S}/scripts/getdrvlist.py -d ${DTBFILE}) 17 DRIVERS_LIST=$(nativepython3 ${S}/scripts/getdrvlist.py -d ${DTBFILE})
18} 18}
19do_generate_driver_data (){ 19
20do_generate_driver_data() {
20 # This script should also not rely on relative paths and such 21 # This script should also not rely on relative paths and such
21 cd ${S} 22 cd ${S}
22 nativepython3 ${S}/scripts/generate_drvdata.py -d ${DTBFILE} 23 nativepython3 ${S}/scripts/generate_drvdata.py -d ${DTBFILE}
23} 24}
24 25
25# Task dependencies might need to be fixed after unifying the DTB flow 26addtask do_generate_driver_data before do_configure after do_prepare_recipe_sysroot
26do_create_dtb(){ 27do_prepare_recipe_sysroot[rdeptask] = "do_unpack"
27 :
28}
29
30addtask do_generate_cmake before do_configure after do_create_dtb
31
32addtask do_generate_driver_data before do_compile after do_create_dtb
33
34addtask do_create_dtb before do_compile after do_prepare_recipe_sysroot