diff options
| author | Appana Durga Kedareswara rao <appana.durga.rao@xilinx.com> | 2020-01-22 19:40:38 +0530 |
|---|---|---|
| committer | Mark Hatle <mark.hatle@xilinx.com> | 2020-02-27 08:33:25 -0800 |
| commit | fbf4fc98984bf755ceaaefcaa25ca25d172a34b6 (patch) | |
| tree | e38ceeb8e75b05d7561222007278870a64c2cd32 | |
| parent | 3304a04d8c43f060afdcc062d0e462c8ed20f990 (diff) | |
| download | meta-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>
| -rw-r--r-- | meta-xilinx-standalone/recipes-libraries/libxil_git.bb | 19 |
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 | |||
| 3 | ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/" | 3 | ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/" |
| 4 | ESW_COMPONENT_NAME = "libxil.a" | 4 | ESW_COMPONENT_NAME = "libxil.a" |
| 5 | 5 | ||
| 6 | DEPENDS += "dtc-native python3-pyyaml-native xilmem device-tree" | 6 | DEPENDS += "dtc-native python3-pyyaml-native xilstandalone xilmem device-tree" |
| 7 | 7 | ||
| 8 | do_generate_cmake (){ | 8 | do_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 | } |
| 19 | do_generate_driver_data (){ | 19 | |
| 20 | do_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 | 26 | addtask do_generate_driver_data before do_configure after do_prepare_recipe_sysroot |
| 26 | do_create_dtb(){ | 27 | do_prepare_recipe_sysroot[rdeptask] = "do_unpack" |
| 27 | : | ||
| 28 | } | ||
| 29 | |||
| 30 | addtask do_generate_cmake before do_configure after do_create_dtb | ||
| 31 | |||
| 32 | addtask do_generate_driver_data before do_compile after do_create_dtb | ||
| 33 | |||
| 34 | addtask do_create_dtb before do_compile after do_prepare_recipe_sysroot | ||
