libxil: Fix DTB and DTG flow to make it more transparent for the user
@@ -5,7 +5,10 @@ ESW_COMPONENT_NAME = "libxil.a"
DEPENDS += "dtc-native python3-pyyaml-native xilmem"
-DTBFILE ?= "${WORKDIR}/git/dts_files/output.dtb"
+# At this point A53 comes from DTG and MB from ESW, hence the different flow
+# this needs to be fixed on DTG to unify the flow
+DTBFILE_zynqmp-pmu ?= "${WORKDIR}/git/dts_files/output.dtb"
+DTBFILE_cortexa53 ?= "${RECIPE_SYSROOT}/boot/devicetree/system-top.dtb"
do_generate_cmake (){
# This will generate CMakeLists.txt which contains
@@ -20,20 +23,13 @@ do_generate_driver_data (){
}
do_create_dtb(){
- # This is hard coded for MB for now
- if [[ "${DTBFILE}" == "${WORKDIR}/git/dts_files/output.dtb" ]]; then
+ :
+}
+
+do_create_dtb_append_zynqmp-pmu (){
cd ${WORKDIR}
- # Which dts are we supposed to use?
- # Should it include a dtsi?
- # Again this flow probably needs work
- # We should also use variables as input and output
${BUILD_CPP} -nostdinc -I ${WORKDIR}/git/dts_files/include -undef -x assembler-with-cpp ${WORKDIR}/git/dts_files/zynqmp-zcu102-rev1.0.dts > ${WORKDIR}/git/test.dts
dtc -I dts -O dtb -b 0 -@ -o ${DTBFILE} ${WORKDIR}/git/test.dts
- else
- # DTG flow
- :
- fi
-
}
addtask do_generate_cmake before do_configure after do_create_dtb
