From ac0516ce7916796fbde8a20db8c179b77dc92bdc Mon Sep 17 00:00:00 2001 From: Mark Hatle Date: Tue, 16 Mar 2021 14:02:00 -0700 Subject: meta-xilinx-standalone-experimental: Adjust to match recent changes Changes to meta-xilinx-standalone, as well as the embeddedsw require various changes to be made. This brings the implementation up to the current level. Note: various things do not yet compile! Signed-off-by: Mark Hatle --- .../classes/esw.bbclass | 52 +++++++++++---- .../classes/esw_examples.bbclass | 12 ++-- .../freertos-hello-world_git.bb | 8 ++- .../freertos-lwip-echo-server_git.bb | 9 ++- .../freertos-lwip-tcp-perf-client_git.bb | 9 ++- .../freertos-lwip-tcp-perf-server_git.bb | 9 ++- .../freertos-lwip-udp-perf-client_git.bb | 9 ++- .../freertos-lwip-udp-perf-server_git.bb | 9 ++- .../recipes-applications/fsbl-zynqmp/fsbl_git.bb | 35 ++++++++++ .../hello-world/hello-world_git.bb | 6 +- .../lwip-echo-server/lwip-echo-server_git.bb | 9 ++- .../lwip-tcp-perf-client_git.bb | 9 ++- .../lwip-tcp-perf-server_git.bb | 9 ++- .../lwip-udp-perf-client_git.bb | 9 ++- .../lwip-udp-perf-server_git.bb | 9 ++- .../memory-tests/memory-tests_git.bb | 37 ++++++++++ .../zynqmp-fsbl/zynqmp-fsbl_git.bb | 40 ----------- .../embeddedsw/pmu-firmware_git.bbappend | 2 +- .../recipes-core/meta/meta-xilinx-setup.bb | 1 + .../recipes-drivers/avbuf_git.bb | 10 +++ .../recipes-drivers/axicdma-example_git.bb | 5 ++ .../recipes-drivers/axicdma_git.bb | 14 +++- .../recipes-drivers/axidma-example_git.bb | 5 ++ .../recipes-drivers/axidma_git.bb | 19 +++++- .../recipes-drivers/axiethernet-example_git.bb | 5 ++ .../recipes-drivers/axiethernet_git.bb | 14 +++- .../recipes-drivers/axis-switch_git.bb | 13 ++++ .../recipes-drivers/axivdma-example_git.bb | 5 ++ .../recipes-drivers/axivdma_git.bb | 14 +++- .../recipes-drivers/bram_git.bb | 13 ++++ .../recipes-drivers/can-example_git.bb | 5 ++ .../recipes-drivers/can_git.bb | 14 +++- .../recipes-drivers/canfd-example_git.bb | 5 ++ .../recipes-drivers/canfd_git.bb | 18 ++++- .../recipes-drivers/canps-example_git.bb | 5 ++ .../recipes-drivers/canps_git.bb | 19 +++++- .../recipes-drivers/cframe_git.bb | 18 +++++ .../recipes-drivers/cfupmc_git.bb | 13 ++++ .../recipes-drivers/clockps_git.bb | 11 ++- .../recipes-drivers/common_git.bb | 23 +++++++ .../recipes-drivers/coresightps-dcc_git.bb | 13 ++++ .../recipes-drivers/csudma-ex_git.bb | 5 ++ .../recipes-drivers/csudma_git.bb | 19 +++++- .../recipes-drivers/ddrcpsu_git.bb | 13 ++++ .../recipes-drivers/devcfg-example_git.bb | 5 ++ .../recipes-drivers/devcfg_git.bb | 14 +++- .../recipes-drivers/dmaps-example_git.bb | 5 ++ .../recipes-drivers/dpdma_git.bb | 13 ++++ .../recipes-drivers/dppsu_git.bb | 13 ++++ .../recipes-drivers/emaclite-example_git.bb | 5 ++ .../recipes-drivers/emaclite_git.bb | 14 +++- .../recipes-drivers/emacps-example_git.bb | 5 ++ .../recipes-drivers/emacps_git.bb | 19 +++++- .../recipes-drivers/gpio-example_git.bb | 5 ++ .../recipes-drivers/gpio_git.bb | 14 +++- .../recipes-drivers/gpiops-example_git.bb | 5 ++ .../recipes-drivers/gpiops_git.bb | 19 +++++- .../recipes-drivers/iicps-example_git.bb | 5 ++ .../recipes-drivers/iicps_git.bb | 18 +++++ .../recipes-drivers/iomodule_git.bb | 18 +++++ .../recipes-drivers/ipipsu-example_git.bb | 5 ++ .../recipes-drivers/ipipsu_git.bb | 18 ++++- .../recipes-drivers/llfifo-example_git.bb | 5 ++ .../recipes-drivers/llfifo_git.bb | 14 +++- .../recipes-drivers/mbox-example_git.bb | 5 ++ .../recipes-drivers/mbox_git.bb | 14 +++- .../recipes-drivers/mcdma-example_git.bb | 5 ++ .../recipes-drivers/mcdma_git.bb | 19 +++++- .../recipes-drivers/mutex-example_git.bb | 5 ++ .../recipes-drivers/mutex_git.bb | 14 +++- .../recipes-drivers/nandpsu-example_git.bb | 5 ++ .../recipes-drivers/nandpsu_git.bb | 14 +++- .../recipes-drivers/ospipsv-example_git.bb | 5 ++ .../recipes-drivers/ospipsv_git.bb | 14 +++- .../recipes-drivers/pciepsu_git.bb | 13 ++++ .../recipes-drivers/qspips-example_git.bb | 5 ++ .../recipes-drivers/qspips_git.bb | 14 +++- .../recipes-drivers/qspipsu-example_git.bb | 5 ++ .../recipes-drivers/qspipsu_git.bb | 19 +++++- .../recipes-drivers/resetps-example_git.bb | 5 ++ .../recipes-drivers/resetps_git.bb | 19 +++++- .../recipes-drivers/rtcpsu-example_git.bb | 5 ++ .../recipes-drivers/rtcpsu_git.bb | 19 +++++- .../recipes-drivers/scugic-example_git.bb | 5 ++ .../recipes-drivers/scugic_git.bb | 14 +++- .../recipes-drivers/sdps-example_git.bb | 5 ++ .../recipes-drivers/sdps_git.bb | 19 +++++- .../recipes-drivers/spips-example_git.bb | 5 ++ .../recipes-drivers/spips_git.bb | 14 +++- .../recipes-drivers/sysmon-example_git.bb | 5 ++ .../recipes-drivers/sysmon_git.bb | 14 +++- .../recipes-drivers/sysmonpsu-example_git.bb | 5 ++ .../recipes-drivers/sysmonpsu_git.bb | 18 +++++ .../recipes-drivers/sysmonpsv_git.bb | 13 ++++ .../recipes-drivers/tmr-inject_git.bb | 13 ++++ .../recipes-drivers/tmr-manager_git.bb | 13 ++++ .../recipes-drivers/tmrctr-example_git.bb | 5 ++ .../recipes-drivers/tmrctr_git.bb | 14 +++- .../recipes-drivers/ttcps-example_git.bb | 5 ++ .../recipes-drivers/ttcps_git.bb | 19 +++++- .../recipes-drivers/uartlite-example_git.bb | 5 ++ .../recipes-drivers/uartlite_git.bb | 14 +++- .../recipes-drivers/uartps-example_git.bb | 5 ++ .../recipes-drivers/uartps_git.bb | 17 ++++- .../recipes-drivers/uartpsv_git.bb | 16 +++++ .../recipes-drivers/usbpsu-example_git.bb | 5 ++ .../recipes-drivers/usbpsu_git.bb | 19 +++++- .../recipes-drivers/v-csc_git.bb | 13 ++++ .../recipes-drivers/v-deinterlacer_git.bb | 13 ++++ .../recipes-drivers/v-hcresampler_git.bb | 13 ++++ .../recipes-drivers/v-hscaler_git.bb | 13 ++++ .../recipes-drivers/v-letterbox_git.bb | 13 ++++ .../recipes-drivers/v-tpg_git.bb | 13 ++++ .../recipes-drivers/v-vcresampler_git.bb | 13 ++++ .../recipes-drivers/v-vscaler_git.bb | 13 ++++ .../recipes-drivers/video-common_git.bb | 10 +++ .../recipes-drivers/vprocss-example_git.bb | 5 ++ .../recipes-drivers/vprocss_git.bb | 13 ++++ .../recipes-drivers/vtc_git.bb | 13 ++++ .../recipes-drivers/wdtps-example_git.bb | 5 ++ .../recipes-drivers/wdtps_git.bb | 19 +++++- .../recipes-drivers/wdttb_git.bb | 13 ++++ .../recipes-drivers/xadcps-example_git.bb | 5 ++ .../recipes-drivers/xadcps_git.bb | 14 +++- .../recipes-drivers/xxvethernet-example_git.bb | 5 ++ .../recipes-drivers/xxvethernet_git.bb | 14 +++- .../recipes-drivers/zdma-example_git.bb | 5 ++ .../recipes-drivers/zdma_git.bb | 19 +++++- .../recipes-kernel/lopper/device-tree-lops.bb | 78 ++++++++++++++++++++++ .../recipes-libraries/freertos10-xilinx_git.bb | 5 +- .../recipes-libraries/libxil_git.bb | 40 ++++++----- .../recipes-libraries/lwip_git.bb | 13 +++- .../recipes-libraries/nativesdk-esw-conf_git.bb | 29 ++++++++ .../recipes-libraries/xilfpga_git.bb | 2 +- .../recipes-libraries/xilloader_git.bb | 5 +- .../recipes-libraries/xilpm_git.bb | 3 +- .../recipes-libraries/xilsecure_git.bb | 2 +- .../recipes-libraries/xilstandalone_git.bb | 6 +- .../recipes-libraries/xiltimer_git.bb | 5 +- 139 files changed, 1503 insertions(+), 200 deletions(-) create mode 100644 meta-xilinx-standalone-experimental/recipes-applications/fsbl-zynqmp/fsbl_git.bb create mode 100644 meta-xilinx-standalone-experimental/recipes-applications/memory-tests/memory-tests_git.bb delete mode 100644 meta-xilinx-standalone-experimental/recipes-applications/zynqmp-fsbl/zynqmp-fsbl_git.bb create mode 100644 meta-xilinx-standalone-experimental/recipes-drivers/avbuf_git.bb create mode 100644 meta-xilinx-standalone-experimental/recipes-drivers/axicdma-example_git.bb create mode 100644 meta-xilinx-standalone-experimental/recipes-drivers/axidma-example_git.bb create mode 100644 meta-xilinx-standalone-experimental/recipes-drivers/axiethernet-example_git.bb create mode 100644 meta-xilinx-standalone-experimental/recipes-drivers/axis-switch_git.bb create mode 100644 meta-xilinx-standalone-experimental/recipes-drivers/axivdma-example_git.bb create mode 100644 meta-xilinx-standalone-experimental/recipes-drivers/bram_git.bb create mode 100644 meta-xilinx-standalone-experimental/recipes-drivers/can-example_git.bb create mode 100644 meta-xilinx-standalone-experimental/recipes-drivers/canfd-example_git.bb create mode 100644 meta-xilinx-standalone-experimental/recipes-drivers/canps-example_git.bb create mode 100644 meta-xilinx-standalone-experimental/recipes-drivers/cframe_git.bb create mode 100644 meta-xilinx-standalone-experimental/recipes-drivers/cfupmc_git.bb create mode 100644 meta-xilinx-standalone-experimental/recipes-drivers/common_git.bb create mode 100644 meta-xilinx-standalone-experimental/recipes-drivers/coresightps-dcc_git.bb create mode 100644 meta-xilinx-standalone-experimental/recipes-drivers/csudma-ex_git.bb create mode 100644 meta-xilinx-standalone-experimental/recipes-drivers/ddrcpsu_git.bb create mode 100644 meta-xilinx-standalone-experimental/recipes-drivers/devcfg-example_git.bb create mode 100644 meta-xilinx-standalone-experimental/recipes-drivers/dmaps-example_git.bb create mode 100644 meta-xilinx-standalone-experimental/recipes-drivers/dpdma_git.bb create mode 100644 meta-xilinx-standalone-experimental/recipes-drivers/dppsu_git.bb create mode 100644 meta-xilinx-standalone-experimental/recipes-drivers/emaclite-example_git.bb create mode 100644 meta-xilinx-standalone-experimental/recipes-drivers/emacps-example_git.bb create mode 100644 meta-xilinx-standalone-experimental/recipes-drivers/gpio-example_git.bb create mode 100644 meta-xilinx-standalone-experimental/recipes-drivers/gpiops-example_git.bb create mode 100644 meta-xilinx-standalone-experimental/recipes-drivers/iicps-example_git.bb create mode 100644 meta-xilinx-standalone-experimental/recipes-drivers/iicps_git.bb create mode 100644 meta-xilinx-standalone-experimental/recipes-drivers/iomodule_git.bb create mode 100644 meta-xilinx-standalone-experimental/recipes-drivers/ipipsu-example_git.bb create mode 100644 meta-xilinx-standalone-experimental/recipes-drivers/llfifo-example_git.bb create mode 100644 meta-xilinx-standalone-experimental/recipes-drivers/mbox-example_git.bb create mode 100644 meta-xilinx-standalone-experimental/recipes-drivers/mcdma-example_git.bb create mode 100644 meta-xilinx-standalone-experimental/recipes-drivers/mutex-example_git.bb create mode 100644 meta-xilinx-standalone-experimental/recipes-drivers/nandpsu-example_git.bb create mode 100644 meta-xilinx-standalone-experimental/recipes-drivers/ospipsv-example_git.bb create mode 100644 meta-xilinx-standalone-experimental/recipes-drivers/pciepsu_git.bb create mode 100644 meta-xilinx-standalone-experimental/recipes-drivers/qspips-example_git.bb create mode 100644 meta-xilinx-standalone-experimental/recipes-drivers/qspipsu-example_git.bb create mode 100644 meta-xilinx-standalone-experimental/recipes-drivers/resetps-example_git.bb create mode 100644 meta-xilinx-standalone-experimental/recipes-drivers/rtcpsu-example_git.bb create mode 100644 meta-xilinx-standalone-experimental/recipes-drivers/scugic-example_git.bb create mode 100644 meta-xilinx-standalone-experimental/recipes-drivers/sdps-example_git.bb create mode 100644 meta-xilinx-standalone-experimental/recipes-drivers/spips-example_git.bb create mode 100644 meta-xilinx-standalone-experimental/recipes-drivers/sysmon-example_git.bb create mode 100644 meta-xilinx-standalone-experimental/recipes-drivers/sysmonpsu-example_git.bb create mode 100644 meta-xilinx-standalone-experimental/recipes-drivers/sysmonpsu_git.bb create mode 100644 meta-xilinx-standalone-experimental/recipes-drivers/sysmonpsv_git.bb create mode 100644 meta-xilinx-standalone-experimental/recipes-drivers/tmr-inject_git.bb create mode 100644 meta-xilinx-standalone-experimental/recipes-drivers/tmr-manager_git.bb create mode 100644 meta-xilinx-standalone-experimental/recipes-drivers/tmrctr-example_git.bb create mode 100644 meta-xilinx-standalone-experimental/recipes-drivers/ttcps-example_git.bb create mode 100644 meta-xilinx-standalone-experimental/recipes-drivers/uartlite-example_git.bb create mode 100644 meta-xilinx-standalone-experimental/recipes-drivers/uartps-example_git.bb create mode 100644 meta-xilinx-standalone-experimental/recipes-drivers/uartpsv_git.bb create mode 100644 meta-xilinx-standalone-experimental/recipes-drivers/usbpsu-example_git.bb create mode 100644 meta-xilinx-standalone-experimental/recipes-drivers/v-csc_git.bb create mode 100644 meta-xilinx-standalone-experimental/recipes-drivers/v-deinterlacer_git.bb create mode 100644 meta-xilinx-standalone-experimental/recipes-drivers/v-hcresampler_git.bb create mode 100644 meta-xilinx-standalone-experimental/recipes-drivers/v-hscaler_git.bb create mode 100644 meta-xilinx-standalone-experimental/recipes-drivers/v-letterbox_git.bb create mode 100644 meta-xilinx-standalone-experimental/recipes-drivers/v-tpg_git.bb create mode 100644 meta-xilinx-standalone-experimental/recipes-drivers/v-vcresampler_git.bb create mode 100644 meta-xilinx-standalone-experimental/recipes-drivers/v-vscaler_git.bb create mode 100644 meta-xilinx-standalone-experimental/recipes-drivers/video-common_git.bb create mode 100644 meta-xilinx-standalone-experimental/recipes-drivers/vprocss-example_git.bb create mode 100644 meta-xilinx-standalone-experimental/recipes-drivers/vprocss_git.bb create mode 100644 meta-xilinx-standalone-experimental/recipes-drivers/vtc_git.bb create mode 100644 meta-xilinx-standalone-experimental/recipes-drivers/wdtps-example_git.bb create mode 100644 meta-xilinx-standalone-experimental/recipes-drivers/wdttb_git.bb create mode 100644 meta-xilinx-standalone-experimental/recipes-drivers/xadcps-example_git.bb create mode 100644 meta-xilinx-standalone-experimental/recipes-drivers/xxvethernet-example_git.bb create mode 100644 meta-xilinx-standalone-experimental/recipes-drivers/zdma-example_git.bb create mode 100644 meta-xilinx-standalone-experimental/recipes-kernel/lopper/device-tree-lops.bb create mode 100644 meta-xilinx-standalone-experimental/recipes-libraries/nativesdk-esw-conf_git.bb diff --git a/meta-xilinx-standalone-experimental/classes/esw.bbclass b/meta-xilinx-standalone-experimental/classes/esw.bbclass index 1f7e35f4..682752dd 100644 --- a/meta-xilinx-standalone-experimental/classes/esw.bbclass +++ b/meta-xilinx-standalone-experimental/classes/esw.bbclass @@ -1,17 +1,7 @@ -inherit pkgconfig cmake - -LICENSE = "Proprietary" -LICFILENAME = "license.txt" -LIC_FILES_CHKSUM = "file://${S}/${LICFILENAME};md5=39ab6ab638f4d1836ba994ec6852de94" - # We should move to an actual SRCREV eventually include conf/xilinx/esw-srcrev.inc -SRCREV ?= "${AUTOREV}" -PV = "${XILINX_RELEASE_VERSION}+git${SRCPV}" -REPO ?= "git://github.com/xilinx/embeddedsw.git;protocol=https" -BRANCH ?= "master" -SRC_URI = "${REPO};branch=${BRANCH}" +inherit xlnx-embeddedsw pkgconfig cmake SRCREV_FORMAT = "src_decouple" @@ -23,6 +13,8 @@ SPECFILE_PATH_arm = "${S}/scripts/specs/arm/Xilinx.spec" SPECFILE_PATH_aarch64 = "${S}/scripts/specs/arm/Xilinx.spec" SPECFILE_PATH_microblaze = "${S}/scripts/specs/microblaze/Xilinx.spec" +ESW_MACHINE ?= "${MACHINE}" + ESW_CFLAGS += "-specs=${SPECFILE_PATH}" inherit ccmake @@ -30,7 +22,14 @@ inherit ccmake COMPATIBLE_HOST = ".*-elf" COMPATIBLE_HOST_arm = "[^-]*-[^-]*-eabi" -DTBFILE ?= "${RECIPE_SYSROOT}/boot/devicetree/system-top.dtb" +DTS_FILE = "${DEPLOY_DIR_IMAGE}/${ESW_MACHINE}-baremetal.dtb" + +DEPENDS += "python3-pyyaml-native lopper-native device-tree-lops python3-dtc-native" + +# We need the deployed output +do_configure[depends] += "device-tree-lops:do_deploy" +do_compile[depends] += "device-tree-lops:do_deploy" +do_install[depends] += "device-tree-lops:do_deploy" def get_xlnx_cmake_machine(fam, d): cmake_machine = fam @@ -62,7 +61,7 @@ def get_xlnx_cmake_processor(tune, machine, d): return cmake_processor XLNX_CMAKE_MACHINE = "${@get_xlnx_cmake_machine(d.getVar('SOC_FAMILY'), d)}" -XLNX_CMAKE_PROCESSOR = "${@get_xlnx_cmake_processor(d.getVar('DEFAULTTUNE'), d.getVar('MACHINE'), d)}" +XLNX_CMAKE_PROCESSOR = "${@get_xlnx_cmake_processor(d.getVar('DEFAULTTUNE'), d.getVar('ESW_MACHINE'), d)}" XLNX_CMAKE_SYSTEM_NAME ?= "Generic" cmake_do_generate_toolchain_file_append() { @@ -104,3 +103,30 @@ python(){ licpath=os.path.dirname(licpath) bb.error("Couldn't find license file: %s, within directory %s or his parent directories" % (d.getVar('LICFILENAME',True), externalsrc)) } + +do_generate_driver_data[dirs] = "${B}" +do_generate_driver_data[depends] += "device-tree-lops:do_deploy" +python do_generate_driver_data() { + import glob, subprocess, os + + system_dt = glob.glob(d.getVar('DTS_FILE')) + src_dir = glob.glob(d.getVar('OECMAKE_SOURCEPATH')) + machine = d.getVar('ESW_MACHINE') + + driver_name = d.getVar('REQUIRED_DISTRO_FEATURES') + + if len(system_dt) == 0: + bb.error("Couldn't find device tree %s" % d.getVar('DTS_FILE')) + + if len(src_dir) == 0: + bb.error("Couldn't find source dir %s" % d.getVar('OECMAKE_SOURCEPATH')) + + os.chdir(d.getVar('B')) + command = ["lopper.py"] + ["-f"] + [system_dt[0]] + ["--"] + ["baremetalconfig_xlnx.py"] + [machine] + [src_dir[0]] + subprocess.run(command, check = True) + src_file = str("x") + driver_name.replace('-', '_') + str("_g.c") + if os.path.exists(src_file): + bb.note("Generated config file for driver %s" % driver_name) + command = ["install"] + ["-m"] + ["0755"] + [src_file] + [src_dir[0]] + subprocess.run(command, check = True) +} diff --git a/meta-xilinx-standalone-experimental/classes/esw_examples.bbclass b/meta-xilinx-standalone-experimental/classes/esw_examples.bbclass index 391f388e..9b116e9e 100644 --- a/meta-xilinx-standalone-experimental/classes/esw_examples.bbclass +++ b/meta-xilinx-standalone-experimental/classes/esw_examples.bbclass @@ -1,15 +1,18 @@ inherit esw deploy python3native -DEPENDS += "dtc-native python3-dtc-native python3-pyyaml-native xilstandalone libxil xiltimer device-tree" +DEPENDS += "python3-dtc-native python3-pyyaml-native xilstandalone libxil xiltimer" do_configure_prepend() { cd ${S} - nativepython3 ${S}/scripts/linker_gen.py -d ${DTBFILE} -o ${OECMAKE_SOURCEPATH} + lopper.py ${DTS_FILE} -- baremetallinker_xlnx.py ${ESW_MACHINE} ${S}/${ESW_COMPONENT_SRC} + install -m 0755 memory.ld ${S}/${ESW_COMPONENT_SRC}/ + install -m 0755 *.cmake ${S}/${ESW_COMPONENT_SRC}/ } do_generate_eglist () { cd ${S} - nativepython3 ${S}/scripts/example.py -d ${DTBFILE} -o ${OECMAKE_SOURCEPATH} + lopper.py ${DTS_FILE} -- bmcmake_metadata_xlnx.py ${ESW_MACHINE} ${S}/${ESW_COMPONENT_SRC} drvcmake_metadata + install -m 0755 *.cmake ${S}/${ESW_COMPONENT_SRC}/ } addtask generate_eglist before do_configure after do_prepare_recipe_sysroot do_prepare_recipe_sysroot[rdeptask] = "do_unpack" @@ -20,7 +23,8 @@ do_install() { } do_deploy() { - install -Dm 0644 ${WORKDIR}/package/${base_libdir}/firmware/*.elf ${DEPLOYDIR}/ + install -d ${DEPLOYDIR}/${MACHINE}-${BPN}/ + install -Dm 0644 ${WORKDIR}/package/${base_libdir}/firmware/*.elf ${DEPLOYDIR}/${MACHINE}-${BPN}/ } addtask deploy before do_build after do_package diff --git a/meta-xilinx-standalone-experimental/recipes-applications/freertos-hello-world/freertos-hello-world_git.bb b/meta-xilinx-standalone-experimental/recipes-applications/freertos-hello-world/freertos-hello-world_git.bb index 9b5bb110..fc10550d 100644 --- a/meta-xilinx-standalone-experimental/recipes-applications/freertos-hello-world/freertos-hello-world_git.bb +++ b/meta-xilinx-standalone-experimental/recipes-applications/freertos-hello-world/freertos-hello-world_git.bb @@ -1,12 +1,14 @@ -inherit esw deploy +inherit esw deploy python3native ESW_COMPONENT_SRC = "/lib/sw_apps/freertos_hello_world/src/" -DEPENDS += "dtc-native python3-dtc-native libxil xilstandalone xiltimer freertos10-xilinx device-tree" +DEPENDS += "libxil xilstandalone freertos10-xilinx xiltimer" do_configure_prepend() { cd ${S} - nativepython3 ${S}/scripts/linker_gen.py -d ${DTBFILE} -o ${OECMAKE_SOURCEPATH} + lopper.py ${DTS_FILE} -- baremetallinker_xlnx.py ${ESW_MACHINE} ${S}/${ESW_COMPONENT_SRC} + install -m 0755 memory.ld ${S}/${ESW_COMPONENT_SRC}/ + install -m 0755 *.cmake ${S}/${ESW_COMPONENT_SRC}/ } do_install() { diff --git a/meta-xilinx-standalone-experimental/recipes-applications/freertos-lwip-echo-server/freertos-lwip-echo-server_git.bb b/meta-xilinx-standalone-experimental/recipes-applications/freertos-lwip-echo-server/freertos-lwip-echo-server_git.bb index ebfc85aa..0fce1541 100644 --- a/meta-xilinx-standalone-experimental/recipes-applications/freertos-lwip-echo-server/freertos-lwip-echo-server_git.bb +++ b/meta-xilinx-standalone-experimental/recipes-applications/freertos-lwip-echo-server/freertos-lwip-echo-server_git.bb @@ -2,17 +2,20 @@ inherit esw deploy python3native ESW_COMPONENT_SRC = "/lib/sw_apps/freertos_lwip_echo_server/src/" -DEPENDS += "dtc-native python3-dtc-native libxil lwip xiltimer device-tree python3-pyyaml-native freertos10-xilinx" +DEPENDS += "libxil lwip xiltimer freertos10-xilinx" do_configure_prepend() { cd ${S} - nativepython3 ${S}/scripts/linker_gen.py -d ${DTBFILE} -o ${OECMAKE_SOURCEPATH} + lopper.py ${DTS_FILE} -- baremetallinker_xlnx.py ${ESW_MACHINE} ${S}/${ESW_COMPONENT_SRC} + install -m 0755 memory.ld ${S}/${ESW_COMPONENT_SRC}/ + install -m 0755 *.cmake ${S}/${ESW_COMPONENT_SRC}/ } do_generate_app_data() { # This script should also not rely on relative paths and such cd ${S} - nativepython3 ${S}/scripts/lib_parser.py -d ${DTBFILE} -o ${OECMAKE_SOURCEPATH} + lopper.py ${DTS_FILE} -- bmcmake_metadata_xlnx.py ${S}/${ESW_COMPONENT_SRC} hwcmake_metadata ${S} + install -m 0755 *.cmake ${S}/${ESW_COMPONENT_SRC}/ } addtask do_generate_app_data before do_configure after do_prepare_recipe_sysroot do_prepare_recipe_sysroot[rdeptask] = "do_unpack" diff --git a/meta-xilinx-standalone-experimental/recipes-applications/freertos-lwip-tcp-perf-client/freertos-lwip-tcp-perf-client_git.bb b/meta-xilinx-standalone-experimental/recipes-applications/freertos-lwip-tcp-perf-client/freertos-lwip-tcp-perf-client_git.bb index eb199d39..df6dab62 100644 --- a/meta-xilinx-standalone-experimental/recipes-applications/freertos-lwip-tcp-perf-client/freertos-lwip-tcp-perf-client_git.bb +++ b/meta-xilinx-standalone-experimental/recipes-applications/freertos-lwip-tcp-perf-client/freertos-lwip-tcp-perf-client_git.bb @@ -2,17 +2,20 @@ inherit esw deploy python3native ESW_COMPONENT_SRC = "/lib/sw_apps/freertos_lwip_tcp_perf_client/src/" -DEPENDS += "dtc-native python3-dtc-native libxil lwip xiltimer device-tree python3-pyyaml-native freertos10-xilinx" +DEPENDS += "libxil lwip xiltimer freertos10-xilinx" do_configure_prepend() { cd ${S} - nativepython3 ${S}/scripts/linker_gen.py -d ${DTBFILE} -o ${OECMAKE_SOURCEPATH} + lopper.py ${DTS_FILE} -- baremetallinker_xlnx.py ${ESW_MACHINE} ${S}/${ESW_COMPONENT_SRC} + install -m 0755 memory.ld ${S}/${ESW_COMPONENT_SRC}/ + install -m 0755 *.cmake ${S}/${ESW_COMPONENT_SRC}/ } do_generate_app_data() { # This script should also not rely on relative paths and such cd ${S} - nativepython3 ${S}/scripts/lib_parser.py -d ${DTBFILE} -o ${OECMAKE_SOURCEPATH} + lopper.py ${DTS_FILE} -- bmcmake_metadata_xlnx.py ${S}/${ESW_COMPONENT_SRC} hwcmake_metadata ${S} + install -m 0755 *.cmake ${S}/${ESW_COMPONENT_SRC}/ } addtask do_generate_app_data before do_configure after do_prepare_recipe_sysroot do_prepare_recipe_sysroot[rdeptask] = "do_unpack" diff --git a/meta-xilinx-standalone-experimental/recipes-applications/freertos-lwip-tcp-perf-server/freertos-lwip-tcp-perf-server_git.bb b/meta-xilinx-standalone-experimental/recipes-applications/freertos-lwip-tcp-perf-server/freertos-lwip-tcp-perf-server_git.bb index c2282593..b325c01d 100644 --- a/meta-xilinx-standalone-experimental/recipes-applications/freertos-lwip-tcp-perf-server/freertos-lwip-tcp-perf-server_git.bb +++ b/meta-xilinx-standalone-experimental/recipes-applications/freertos-lwip-tcp-perf-server/freertos-lwip-tcp-perf-server_git.bb @@ -2,17 +2,20 @@ inherit esw deploy python3native ESW_COMPONENT_SRC = "/lib/sw_apps/freertos_lwip_tcp_perf_server/src/" -DEPENDS += "dtc-native python3-dtc-native libxil lwip xiltimer device-tree python3-pyyaml-native freertos10-xilinx" +DEPENDS += "libxil lwip xiltimer freertos10-xilinx" do_configure_prepend() { cd ${S} - nativepython3 ${S}/scripts/linker_gen.py -d ${DTBFILE} -o ${OECMAKE_SOURCEPATH} + lopper.py ${DTS_FILE} -- baremetallinker_xlnx.py ${ESW_MACHINE} ${S}/${ESW_COMPONENT_SRC} + install -m 0755 memory.ld ${S}/${ESW_COMPONENT_SRC}/ + install -m 0755 *.cmake ${S}/${ESW_COMPONENT_SRC}/ } do_generate_app_data() { # This script should also not rely on relative paths and such cd ${S} - nativepython3 ${S}/scripts/lib_parser.py -d ${DTBFILE} -o ${OECMAKE_SOURCEPATH} + lopper.py ${DTS_FILE} -- bmcmake_metadata_xlnx.py ${S}/${ESW_COMPONENT_SRC} hwcmake_metadata ${S} + install -m 0755 *.cmake ${S}/${ESW_COMPONENT_SRC}/ } addtask do_generate_app_data before do_configure after do_prepare_recipe_sysroot do_prepare_recipe_sysroot[rdeptask] = "do_unpack" diff --git a/meta-xilinx-standalone-experimental/recipes-applications/freertos-lwip-udp-perf-client/freertos-lwip-udp-perf-client_git.bb b/meta-xilinx-standalone-experimental/recipes-applications/freertos-lwip-udp-perf-client/freertos-lwip-udp-perf-client_git.bb index ccf8f09e..dcbca99e 100644 --- a/meta-xilinx-standalone-experimental/recipes-applications/freertos-lwip-udp-perf-client/freertos-lwip-udp-perf-client_git.bb +++ b/meta-xilinx-standalone-experimental/recipes-applications/freertos-lwip-udp-perf-client/freertos-lwip-udp-perf-client_git.bb @@ -2,17 +2,20 @@ inherit esw deploy python3native ESW_COMPONENT_SRC = "/lib/sw_apps/freertos_lwip_udp_perf_client/src/" -DEPENDS += "dtc-native python3-dtc-native libxil lwip xiltimer device-tree python3-pyyaml-native freertos10-xilinx" +DEPENDS += "libxil lwip xiltimer freertos10-xilinx" do_configure_prepend() { cd ${S} - nativepython3 ${S}/scripts/linker_gen.py -d ${DTBFILE} -o ${OECMAKE_SOURCEPATH} + lopper.py ${DTS_FILE} -- baremetallinker_xlnx.py ${ESW_MACHINE} ${S}/${ESW_COMPONENT_SRC} + install -m 0755 memory.ld ${S}/${ESW_COMPONENT_SRC}/ + install -m 0755 *.cmake ${S}/${ESW_COMPONENT_SRC}/ } do_generate_app_data() { # This script should also not rely on relative paths and such cd ${S} - nativepython3 ${S}/scripts/lib_parser.py -d ${DTBFILE} -o ${OECMAKE_SOURCEPATH} + lopper.py ${DTS_FILE} -- bmcmake_metadata_xlnx.py ${S}/${ESW_COMPONENT_SRC} hwcmake_metadata ${S} + install -m 0755 *.cmake ${S}/${ESW_COMPONENT_SRC}/ } addtask do_generate_app_data before do_configure after do_prepare_recipe_sysroot do_prepare_recipe_sysroot[rdeptask] = "do_unpack" diff --git a/meta-xilinx-standalone-experimental/recipes-applications/freertos-lwip-udp-perf-server/freertos-lwip-udp-perf-server_git.bb b/meta-xilinx-standalone-experimental/recipes-applications/freertos-lwip-udp-perf-server/freertos-lwip-udp-perf-server_git.bb index f2c9eaed..97bee6af 100644 --- a/meta-xilinx-standalone-experimental/recipes-applications/freertos-lwip-udp-perf-server/freertos-lwip-udp-perf-server_git.bb +++ b/meta-xilinx-standalone-experimental/recipes-applications/freertos-lwip-udp-perf-server/freertos-lwip-udp-perf-server_git.bb @@ -2,17 +2,20 @@ inherit esw deploy python3native ESW_COMPONENT_SRC = "/lib/sw_apps/freertos_lwip_udp_perf_server/src/" -DEPENDS += "dtc-native python3-dtc-native libxil lwip xiltimer device-tree python3-pyyaml-native freertos10-xilinx" +DEPENDS += "libxil lwip xiltimer freertos10-xilinx" do_configure_prepend() { cd ${S} - nativepython3 ${S}/scripts/linker_gen.py -d ${DTBFILE} -o ${OECMAKE_SOURCEPATH} + lopper.py ${DTS_FILE} -- baremetallinker_xlnx.py ${ESW_MACHINE} ${S}/${ESW_COMPONENT_SRC} + install -m 0755 memory.ld ${S}/${ESW_COMPONENT_SRC}/ + install -m 0755 *.cmake ${S}/${ESW_COMPONENT_SRC}/ } do_generate_app_data() { # This script should also not rely on relative paths and such cd ${S} - nativepython3 ${S}/scripts/lib_parser.py -d ${DTBFILE} -o ${OECMAKE_SOURCEPATH} + lopper.py ${DTS_FILE} -- bmcmake_metadata_xlnx.py ${S}/${ESW_COMPONENT_SRC} hwcmake_metadata ${S} + install -m 0755 *.cmake ${S}/${ESW_COMPONENT_SRC}/ } addtask do_generate_app_data before do_configure after do_prepare_recipe_sysroot do_prepare_recipe_sysroot[rdeptask] = "do_unpack" diff --git a/meta-xilinx-standalone-experimental/recipes-applications/fsbl-zynqmp/fsbl_git.bb b/meta-xilinx-standalone-experimental/recipes-applications/fsbl-zynqmp/fsbl_git.bb new file mode 100644 index 00000000..8c98ffe7 --- /dev/null +++ b/meta-xilinx-standalone-experimental/recipes-applications/fsbl-zynqmp/fsbl_git.bb @@ -0,0 +1,35 @@ +inherit esw deploy + +COMPATIBLE_HOST = "aarch64.*-elf" +COMPATIBLE_MACHINE = "none" +COMPATIBLE_MACHINE_zynqmp = ".*" + +ESW_COMPONENT_SRC = "/lib/sw_apps/zynqmp_fsbl/src" + +DEPENDS += "xilstandalone xiltimer xilffs xilsecure xilpm" + +do_install() { + install -d ${D}/${base_libdir}/firmware + # Note that we have to make the ELF executable for it to be stripped + install -m 0755 ${B}/zynqmp_fsbl* ${D}/${base_libdir}/firmware +} + +ZYNQMP_FSBL_BASE_NAME ?= "${BPN}-${PKGE}-${PKGV}-${PKGR}-${MACHINE}-${DATETIME}" +ZYNQMP_FSBL_BASE_NAME[vardepsexclude] = "DATETIME" + +do_deploy() { + + # We need to deploy the stripped elf, hence why not doing it from ${D} + install -Dm 0644 ${WORKDIR}/package/${base_libdir}/firmware/zynqmp_fsbl.elf ${DEPLOYDIR}/${ZYNQMP_FSBL_BASE_NAME}.elf + ln -sf ${ZYNQMP_FSBL_BASE_NAME}.elf ${DEPLOYDIR}/${BPN}-${MACHINE}.elf + ${OBJCOPY} -O binary ${WORKDIR}/package/${base_libdir}/firmware/zynqmp_fsbl.elf ${WORKDIR}/package/${base_libdir}/firmware/zynqmp_fsbl.bin + install -m 0644 ${WORKDIR}/package/${base_libdir}/firmware/zynqmp_fsbl.bin ${DEPLOYDIR}/${ZYNQMP_FSBL_BASE_NAME}.bin + ln -sf ${ZYNQMP_FSBL_BASE_NAME}.bin ${DEPLOYDIR}/${BPN}-${MACHINE}.bin +} + +addtask deploy before do_build after do_package + +CFLAGS_append_aarch64 = " -DARMA53_64" +CFLAGS_append_armrm = " -DARMR5" + +FILES_${PN} = "${base_libdir}/firmware/zynqmp_fsbl*" diff --git a/meta-xilinx-standalone-experimental/recipes-applications/hello-world/hello-world_git.bb b/meta-xilinx-standalone-experimental/recipes-applications/hello-world/hello-world_git.bb index c67fb5f5..ae99df0f 100644 --- a/meta-xilinx-standalone-experimental/recipes-applications/hello-world/hello-world_git.bb +++ b/meta-xilinx-standalone-experimental/recipes-applications/hello-world/hello-world_git.bb @@ -2,13 +2,15 @@ inherit esw deploy ESW_COMPONENT_SRC = "/lib/sw_apps/hello_world/src/" -DEPENDS += "dtc-native python3-dtc-native libxil xiltimer device-tree" +DEPENDS += "libxil xiltimer" inherit python3native do_configure_prepend() { cd ${S} - nativepython3 ${S}/scripts/linker_gen.py -d ${DTBFILE} -o ${OECMAKE_SOURCEPATH} + lopper.py ${DTS_FILE} -- baremetallinker_xlnx.py ${ESW_MACHINE} ${S}/${ESW_COMPONENT_SRC} + install -m 0755 memory.ld ${S}/${ESW_COMPONENT_SRC}/ + install -m 0755 *.cmake ${S}/${ESW_COMPONENT_SRC}/ } do_install() { diff --git a/meta-xilinx-standalone-experimental/recipes-applications/lwip-echo-server/lwip-echo-server_git.bb b/meta-xilinx-standalone-experimental/recipes-applications/lwip-echo-server/lwip-echo-server_git.bb index e0d6f13c..86404751 100644 --- a/meta-xilinx-standalone-experimental/recipes-applications/lwip-echo-server/lwip-echo-server_git.bb +++ b/meta-xilinx-standalone-experimental/recipes-applications/lwip-echo-server/lwip-echo-server_git.bb @@ -2,17 +2,20 @@ inherit esw deploy python3native ESW_COMPONENT_SRC = "/lib/sw_apps/lwip_echo_server/src/" -DEPENDS += "dtc-native python3-dtc-native libxil lwip xiltimer device-tree python3-pyyaml-native" +DEPENDS += "libxil lwip xiltimer" do_configure_prepend() { cd ${S} - nativepython3 ${S}/scripts/linker_gen.py -d ${DTBFILE} -o ${OECMAKE_SOURCEPATH} + lopper.py ${DTS_FILE} -- baremetallinker_xlnx.py ${ESW_MACHINE} ${S}/${ESW_COMPONENT_SRC} + install -m 0755 memory.ld ${S}/${ESW_COMPONENT_SRC}/ + install -m 0755 *.cmake ${S}/${ESW_COMPONENT_SRC}/ } do_generate_app_data() { # This script should also not rely on relative paths and such cd ${S} - nativepython3 ${S}/scripts/lib_parser.py -d ${DTBFILE} -o ${OECMAKE_SOURCEPATH} + lopper.py ${DTS_FILE} -- bmcmake_metadata_xlnx.py ${S}/${ESW_COMPONENT_SRC} hwcmake_metadata ${S} + install -m 0755 *.cmake ${S}/${ESW_COMPONENT_SRC}/ } addtask do_generate_app_data before do_configure after do_prepare_recipe_sysroot do_prepare_recipe_sysroot[rdeptask] = "do_unpack" diff --git a/meta-xilinx-standalone-experimental/recipes-applications/lwip-tcp-perf-client/lwip-tcp-perf-client_git.bb b/meta-xilinx-standalone-experimental/recipes-applications/lwip-tcp-perf-client/lwip-tcp-perf-client_git.bb index 6f0c9b4a..f33b5fd0 100644 --- a/meta-xilinx-standalone-experimental/recipes-applications/lwip-tcp-perf-client/lwip-tcp-perf-client_git.bb +++ b/meta-xilinx-standalone-experimental/recipes-applications/lwip-tcp-perf-client/lwip-tcp-perf-client_git.bb @@ -2,17 +2,20 @@ inherit esw deploy python3native ESW_COMPONENT_SRC = "/lib/sw_apps/lwip_tcp_perf_client/src/" -DEPENDS += "dtc-native python3-dtc-native libxil lwip xiltimer device-tree python3-pyyaml-native" +DEPENDS += "libxil lwip xiltimer" do_configure_prepend() { cd ${S} - nativepython3 ${S}/scripts/linker_gen.py -d ${DTBFILE} -o ${OECMAKE_SOURCEPATH} + lopper.py ${DTS_FILE} -- baremetallinker_xlnx.py ${ESW_MACHINE} ${S}/${ESW_COMPONENT_SRC} + install -m 0755 memory.ld ${S}/${ESW_COMPONENT_SRC}/ + install -m 0755 *.cmake ${S}/${ESW_COMPONENT_SRC}/ } do_generate_app_data() { # This script should also not rely on relative paths and such cd ${S} - nativepython3 ${S}/scripts/lib_parser.py -d ${DTBFILE} -o ${OECMAKE_SOURCEPATH} + lopper.py ${DTS_FILE} -- bmcmake_metadata_xlnx.py ${S}/${ESW_COMPONENT_SRC} hwcmake_metadata ${S} + install -m 0755 *.cmake ${S}/${ESW_COMPONENT_SRC}/ } addtask do_generate_app_data before do_configure after do_prepare_recipe_sysroot do_prepare_recipe_sysroot[rdeptask] = "do_unpack" diff --git a/meta-xilinx-standalone-experimental/recipes-applications/lwip-tcp-perf-server/lwip-tcp-perf-server_git.bb b/meta-xilinx-standalone-experimental/recipes-applications/lwip-tcp-perf-server/lwip-tcp-perf-server_git.bb index d9f990c4..4fc99181 100644 --- a/meta-xilinx-standalone-experimental/recipes-applications/lwip-tcp-perf-server/lwip-tcp-perf-server_git.bb +++ b/meta-xilinx-standalone-experimental/recipes-applications/lwip-tcp-perf-server/lwip-tcp-perf-server_git.bb @@ -2,17 +2,20 @@ inherit esw deploy python3native ESW_COMPONENT_SRC = "/lib/sw_apps/lwip_tcp_perf_server/src/" -DEPENDS += "dtc-native python3-dtc-native libxil lwip xiltimer device-tree python3-pyyaml-native" +DEPENDS += "libxil lwip xiltimer" do_configure_prepend() { cd ${S} - nativepython3 ${S}/scripts/linker_gen.py -d ${DTBFILE} -o ${OECMAKE_SOURCEPATH} + lopper.py ${DTS_FILE} -- baremetallinker_xlnx.py ${ESW_MACHINE} ${S}/${ESW_COMPONENT_SRC} + install -m 0755 memory.ld ${S}/${ESW_COMPONENT_SRC}/ + install -m 0755 *.cmake ${S}/${ESW_COMPONENT_SRC}/ } do_generate_app_data() { # This script should also not rely on relative paths and such cd ${S} - nativepython3 ${S}/scripts/lib_parser.py -d ${DTBFILE} -o ${OECMAKE_SOURCEPATH} + lopper.py ${DTS_FILE} -- bmcmake_metadata_xlnx.py ${S}/${ESW_COMPONENT_SRC} hwcmake_metadata ${S} + install -m 0755 *.cmake ${S}/${ESW_COMPONENT_SRC}/ } addtask do_generate_app_data before do_configure after do_prepare_recipe_sysroot do_prepare_recipe_sysroot[rdeptask] = "do_unpack" diff --git a/meta-xilinx-standalone-experimental/recipes-applications/lwip-udp-perf-client/lwip-udp-perf-client_git.bb b/meta-xilinx-standalone-experimental/recipes-applications/lwip-udp-perf-client/lwip-udp-perf-client_git.bb index fc89c13e..83e9abb0 100644 --- a/meta-xilinx-standalone-experimental/recipes-applications/lwip-udp-perf-client/lwip-udp-perf-client_git.bb +++ b/meta-xilinx-standalone-experimental/recipes-applications/lwip-udp-perf-client/lwip-udp-perf-client_git.bb @@ -2,17 +2,20 @@ inherit esw deploy python3native ESW_COMPONENT_SRC = "/lib/sw_apps/lwip_udp_perf_client/src/" -DEPENDS += "dtc-native python3-dtc-native libxil lwip xiltimer device-tree python3-pyyaml-native" +DEPENDS += "libxil lwip xiltimer" do_configure_prepend() { cd ${S} - nativepython3 ${S}/scripts/linker_gen.py -d ${DTBFILE} -o ${OECMAKE_SOURCEPATH} + lopper.py ${DTS_FILE} -- baremetallinker_xlnx.py ${ESW_MACHINE} ${S}/${ESW_COMPONENT_SRC} + install -m 0755 memory.ld ${S}/${ESW_COMPONENT_SRC}/ + install -m 0755 *.cmake ${S}/${ESW_COMPONENT_SRC}/ } do_generate_app_data() { # This script should also not rely on relative paths and such cd ${S} - nativepython3 ${S}/scripts/lib_parser.py -d ${DTBFILE} -o ${OECMAKE_SOURCEPATH} + lopper.py ${DTS_FILE} -- bmcmake_metadata_xlnx.py ${S}/${ESW_COMPONENT_SRC} hwcmake_metadata ${S} + install -m 0755 *.cmake ${S}/${ESW_COMPONENT_SRC}/ } addtask do_generate_app_data before do_configure after do_prepare_recipe_sysroot do_prepare_recipe_sysroot[rdeptask] = "do_unpack" diff --git a/meta-xilinx-standalone-experimental/recipes-applications/lwip-udp-perf-server/lwip-udp-perf-server_git.bb b/meta-xilinx-standalone-experimental/recipes-applications/lwip-udp-perf-server/lwip-udp-perf-server_git.bb index 8b9114ac..5dde9610 100644 --- a/meta-xilinx-standalone-experimental/recipes-applications/lwip-udp-perf-server/lwip-udp-perf-server_git.bb +++ b/meta-xilinx-standalone-experimental/recipes-applications/lwip-udp-perf-server/lwip-udp-perf-server_git.bb @@ -2,17 +2,20 @@ inherit esw deploy python3native ESW_COMPONENT_SRC = "/lib/sw_apps/lwip_udp_perf_server/src/" -DEPENDS += "dtc-native python3-dtc-native libxil lwip xiltimer device-tree python3-pyyaml-native" +DEPENDS += "libxil lwip xiltimer" do_configure_prepend() { cd ${S} - nativepython3 ${S}/scripts/linker_gen.py -d ${DTBFILE} -o ${OECMAKE_SOURCEPATH} + lopper.py ${DTS_FILE} -- baremetallinker_xlnx.py ${ESW_MACHINE} ${S}/${ESW_COMPONENT_SRC} + install -m 0755 memory.ld ${S}/${ESW_COMPONENT_SRC}/ + install -m 0755 *.cmake ${S}/${ESW_COMPONENT_SRC}/ } do_generate_app_data() { # This script should also not rely on relative paths and such cd ${S} - nativepython3 ${S}/scripts/lib_parser.py -d ${DTBFILE} -o ${OECMAKE_SOURCEPATH} + lopper.py ${DTS_FILE} -- bmcmake_metadata_xlnx.py ${S}/${ESW_COMPONENT_SRC} hwcmake_metadata ${S} + install -m 0755 *.cmake ${S}/${ESW_COMPONENT_SRC}/ } addtask do_generate_app_data before do_configure after do_prepare_recipe_sysroot do_prepare_recipe_sysroot[rdeptask] = "do_unpack" diff --git a/meta-xilinx-standalone-experimental/recipes-applications/memory-tests/memory-tests_git.bb b/meta-xilinx-standalone-experimental/recipes-applications/memory-tests/memory-tests_git.bb new file mode 100644 index 00000000..c2276653 --- /dev/null +++ b/meta-xilinx-standalone-experimental/recipes-applications/memory-tests/memory-tests_git.bb @@ -0,0 +1,37 @@ +inherit esw deploy + +ESW_COMPONENT_SRC = "/lib/sw_apps/memory_tests/src/" + +DEPENDS += "libxil xiltimer" + +inherit python3native + +do_configure_prepend() { + cd ${S} + lopper.py ${DTS_FILE} -- baremetallinker_xlnx.py ${ESW_MACHINE} ${S}/${ESW_COMPONENT_SRC} memtest + install -m 0755 memory.ld ${S}/${ESW_COMPONENT_SRC}/ + install -m 0755 *.cmake ${S}/${ESW_COMPONENT_SRC}/ +} + +do_install() { + install -d ${D}/${base_libdir}/firmware + # Note that we have to make the ELF executable for it to be stripped + install -m 0755 ${B}/memory_test* ${D}/${base_libdir}/firmware +} + +MEMORY_TESTS_BASE_NAME ?= "${BPN}-${PKGE}-${PKGV}-${PKGR}-${MACHINE}-${DATETIME}" +MEMORY_TESTS_BASE_NAME[vardepsexclude] = "DATETIME" + +do_deploy() { + + # We need to deploy the stripped elf, hence why not doing it from ${D} + install -Dm 0644 ${WORKDIR}/package/${base_libdir}/firmware/memory_test.elf ${DEPLOYDIR}/${MEMORY_TESTS_BASE_NAME}.elf + ln -sf ${MEMORY_TESTS_BASE_NAME}.elf ${DEPLOYDIR}/${BPN}-${MACHINE}.elf + ${OBJCOPY} -O binary ${WORKDIR}/package/${base_libdir}/firmware/memory_test.elf ${WORKDIR}/package/${base_libdir}/firmware/memory_test.bin + install -m 0644 ${WORKDIR}/package/${base_libdir}/firmware/memory_test.bin ${DEPLOYDIR}/${MEMORY_TESTS_BASE_NAME}.bin + ln -sf ${MEMORY_TESTS_BASE_NAME}.bin ${DEPLOYDIR}/${BPN}-${MACHINE}.bin +} + +addtask deploy before do_build after do_package + +FILES_${PN} = "${base_libdir}/firmware/memory_test*" diff --git a/meta-xilinx-standalone-experimental/recipes-applications/zynqmp-fsbl/zynqmp-fsbl_git.bb b/meta-xilinx-standalone-experimental/recipes-applications/zynqmp-fsbl/zynqmp-fsbl_git.bb deleted file mode 100644 index a0d2d2b9..00000000 --- a/meta-xilinx-standalone-experimental/recipes-applications/zynqmp-fsbl/zynqmp-fsbl_git.bb +++ /dev/null @@ -1,40 +0,0 @@ -inherit esw deploy - -COMPATIBLE_MACHINE = ".*-zynqmp" - -ESW_COMPONENT_SRC = "/lib/sw_apps/zynqmp_fsbl/src" - -DEPENDS += "xilstandalone xiltimer xilffs xilsecure xilpm device-tree" - -PSU_INIT = "${RECIPE_SYSROOT}/${includedir}/devicetree/psu_init*" - -do_configure_prepend() { - # Copy psu_init* files to fsbl source code - cp ${PSU_INIT} ${S}/${ESW_COMPONENT_SRC} -} - -do_install() { - install -d ${D}/${base_libdir}/firmware - # Note that we have to make the ELF executable for it to be stripped - install -m 0755 ${B}/zynqmp_fsbl* ${D}/${base_libdir}/firmware -} - -ZYNQMP_FSBL_BASE_NAME ?= "${BPN}-${PKGE}-${PKGV}-${PKGR}-${MACHINE}-${DATETIME}" -ZYNQMP_FSBL_BASE_NAME[vardepsexclude] = "DATETIME" - -do_deploy() { - - # We need to deploy the stripped elf, hence why not doing it from ${D} - install -Dm 0644 ${WORKDIR}/package/${base_libdir}/firmware/zynqmp_fsbl.elf ${DEPLOYDIR}/${ZYNQMP_FSBL_BASE_NAME}.elf - ln -sf ${ZYNQMP_FSBL_BASE_NAME}.elf ${DEPLOYDIR}/${BPN}-${MACHINE}.elf - ${OBJCOPY} -O binary ${WORKDIR}/package/${base_libdir}/firmware/zynqmp_fsbl.elf ${WORKDIR}/package/${base_libdir}/firmware/zynqmp_fsbl.bin - install -m 0644 ${WORKDIR}/package/${base_libdir}/firmware/zynqmp_fsbl.bin ${DEPLOYDIR}/${ZYNQMP_FSBL_BASE_NAME}.bin - ln -sf ${ZYNQMP_FSBL_BASE_NAME}.bin ${DEPLOYDIR}/${BPN}-${MACHINE}.bin -} - -addtask deploy before do_build after do_package - -CFLAGS_append_aarch64 = " -DARMA53_64" -CFLAGS_append_armrm = " -DARMR5" - -FILES_${PN} = "${base_libdir}/firmware/zynqmp_fsbl*" diff --git a/meta-xilinx-standalone-experimental/recipes-bsp/embeddedsw/pmu-firmware_git.bbappend b/meta-xilinx-standalone-experimental/recipes-bsp/embeddedsw/pmu-firmware_git.bbappend index 086689f0..12def547 100644 --- a/meta-xilinx-standalone-experimental/recipes-bsp/embeddedsw/pmu-firmware_git.bbappend +++ b/meta-xilinx-standalone-experimental/recipes-bsp/embeddedsw/pmu-firmware_git.bbappend @@ -9,7 +9,7 @@ ESW_COMPONENT_SRC = "/lib/sw_apps/zynqmp_pmufw/src" ESW_COMPONENT = "pmufw.elf" -do_compile() { +do_compile_append() { ${MB_OBJCOPY} -O binary ${B}/${ESW_COMPONENT} ${B}/executable.bin } diff --git a/meta-xilinx-standalone-experimental/recipes-core/meta/meta-xilinx-setup.bb b/meta-xilinx-standalone-experimental/recipes-core/meta/meta-xilinx-setup.bb index f87c74c9..e9ccd07e 100644 --- a/meta-xilinx-standalone-experimental/recipes-core/meta/meta-xilinx-setup.bb +++ b/meta-xilinx-standalone-experimental/recipes-core/meta/meta-xilinx-setup.bb @@ -7,6 +7,7 @@ TOOLCHAIN_HOST_TASK ?= "\ nativesdk-sdk-provides-dummy \ nativesdk-lopper \ nativesdk-xilinx-lops \ + nativesdk-esw-conf \ " MULTIMACH_TARGET_SYS = "${SDK_ARCH}-nativesdk${SDK_VENDOR}-${SDK_OS}" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/avbuf_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/avbuf_git.bb new file mode 100644 index 00000000..e4939951 --- /dev/null +++ b/meta-xilinx-standalone-experimental/recipes-drivers/avbuf_git.bb @@ -0,0 +1,10 @@ +inherit features_check + +REQUIRED_DISTRO_FEATURES = "avbuf" + +inherit esw + +DEPENDS += "xilstandalone xilmem" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/avbuf/src/" +ESW_COMPONENT_NAME = "libavbuf.a" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/axicdma-example_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/axicdma-example_git.bb new file mode 100644 index 00000000..081609dd --- /dev/null +++ b/meta-xilinx-standalone-experimental/recipes-drivers/axicdma-example_git.bb @@ -0,0 +1,5 @@ +inherit esw_examples features_check + +REQUIRED_DISTRO_FEATURES = "axicdma" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/axicdma/examples/" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/axicdma_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/axicdma_git.bb index 442ffb7b..154f31be 100644 --- a/meta-xilinx-standalone-experimental/recipes-drivers/axicdma_git.bb +++ b/meta-xilinx-standalone-experimental/recipes-drivers/axicdma_git.bb @@ -1,3 +1,13 @@ -inherit esw_examples +inherit features_check -ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/axicdma/examples/" +REQUIRED_DISTRO_FEATURES = "axicdma" + +inherit esw python3native + +DEPENDS += "xilstandalone xilmem" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/axicdma/src/" +ESW_COMPONENT_NAME = "libaxicdma.a" + +addtask do_generate_driver_data before do_configure after do_prepare_recipe_sysroot +do_prepare_recipe_sysroot[rdeptask] = "do_unpack" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/axidma-example_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/axidma-example_git.bb new file mode 100644 index 00000000..db8658a1 --- /dev/null +++ b/meta-xilinx-standalone-experimental/recipes-drivers/axidma-example_git.bb @@ -0,0 +1,5 @@ +inherit esw_examples features_check + +REQUIRED_DISTRO_FEATURES = "axidma" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/axidma/examples/" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/axidma_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/axidma_git.bb index 05f4c342..68ef659a 100644 --- a/meta-xilinx-standalone-experimental/recipes-drivers/axidma_git.bb +++ b/meta-xilinx-standalone-experimental/recipes-drivers/axidma_git.bb @@ -1,3 +1,18 @@ -inherit esw_examples +inherit features_check -ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/axidma/examples/" +REQUIRED_DISTRO_FEATURES = "axidma" + +inherit esw python3native + +DEPENDS += "xilstandalone xilmem" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/axidma/src/" +ESW_COMPONENT_NAME = "libaxidma.a" + +do_configure_prepend() { + LOPPER_DTC_FLAGS="-b 0 -@" lopper.py ${DTS_FILE} -- baremetal_xparameters_xlnx.py ${ESW_MACHINE} ${S} + install -m 0755 xparameters.h ${S}/${ESW_COMPONENT_SRC}/ +} + +addtask do_generate_driver_data before do_configure after do_prepare_recipe_sysroot +do_prepare_recipe_sysroot[rdeptask] = "do_unpack" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/axiethernet-example_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/axiethernet-example_git.bb new file mode 100644 index 00000000..8dee5feb --- /dev/null +++ b/meta-xilinx-standalone-experimental/recipes-drivers/axiethernet-example_git.bb @@ -0,0 +1,5 @@ +inherit esw_examples features_check + +REQUIRED_DISTRO_FEATURES = "axiethernet" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/axiethernet/examples/" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/axiethernet_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/axiethernet_git.bb index 1dc83406..1ef2b43b 100644 --- a/meta-xilinx-standalone-experimental/recipes-drivers/axiethernet_git.bb +++ b/meta-xilinx-standalone-experimental/recipes-drivers/axiethernet_git.bb @@ -1,3 +1,13 @@ -inherit esw_examples +inherit features_check -ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/axiethernet/examples/" +REQUIRED_DISTRO_FEATURES = "axiethernet" + +inherit esw python3native + +DEPENDS += "xilstandalone xilmem" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/axiethernet/src/" +ESW_COMPONENT_NAME = "libaxiethernet.a" + +addtask do_generate_driver_data before do_configure after do_prepare_recipe_sysroot +do_prepare_recipe_sysroot[rdeptask] = "do_unpack" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/axis-switch_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/axis-switch_git.bb new file mode 100644 index 00000000..ceca8ebf --- /dev/null +++ b/meta-xilinx-standalone-experimental/recipes-drivers/axis-switch_git.bb @@ -0,0 +1,13 @@ +inherit features_check + +REQUIRED_DISTRO_FEATURES = "axis-switch" + +inherit esw python3native + +DEPENDS += "xilstandalone xilmem" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/axis_switch/src/" +ESW_COMPONENT_NAME = "libaxis_switch.a" + +addtask do_generate_driver_data before do_configure after do_prepare_recipe_sysroot +do_prepare_recipe_sysroot[rdeptask] = "do_unpack" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/axivdma-example_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/axivdma-example_git.bb new file mode 100644 index 00000000..6742356c --- /dev/null +++ b/meta-xilinx-standalone-experimental/recipes-drivers/axivdma-example_git.bb @@ -0,0 +1,5 @@ +inherit esw_examples features_check + +REQUIRED_DISTRO_FEATURES = "axivdma" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/axivdma/examples/" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/axivdma_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/axivdma_git.bb index 415cb9b4..a31e5b38 100644 --- a/meta-xilinx-standalone-experimental/recipes-drivers/axivdma_git.bb +++ b/meta-xilinx-standalone-experimental/recipes-drivers/axivdma_git.bb @@ -1,3 +1,13 @@ -inherit esw_examples +inherit features_check -ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/axivdma/examples/" +REQUIRED_DISTRO_FEATURES = "axivdma" + +inherit esw python3native + +DEPENDS += "xilstandalone xilmem" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/axivdma/src/" +ESW_COMPONENT_NAME = "libaxivdma.a" + +addtask do_generate_driver_data before do_configure after do_prepare_recipe_sysroot +do_prepare_recipe_sysroot[rdeptask] = "do_unpack" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/bram_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/bram_git.bb new file mode 100644 index 00000000..4d43d489 --- /dev/null +++ b/meta-xilinx-standalone-experimental/recipes-drivers/bram_git.bb @@ -0,0 +1,13 @@ +inherit features_check + +REQUIRED_DISTRO_FEATURES = "bram" + +inherit esw python3native + +DEPENDS += "xilstandalone xilmem" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/bram/src/" +ESW_COMPONENT_NAME = "libbram.a" + +addtask do_generate_driver_data before do_configure after do_prepare_recipe_sysroot +do_prepare_recipe_sysroot[rdeptask] = "do_unpack" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/can-example_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/can-example_git.bb new file mode 100644 index 00000000..9e6417ce --- /dev/null +++ b/meta-xilinx-standalone-experimental/recipes-drivers/can-example_git.bb @@ -0,0 +1,5 @@ +inherit esw_examples features_check + +REQUIRED_DISTRO_FEATURES = "can" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/can/examples/" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/can_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/can_git.bb index 3f688c3b..dc9e2197 100644 --- a/meta-xilinx-standalone-experimental/recipes-drivers/can_git.bb +++ b/meta-xilinx-standalone-experimental/recipes-drivers/can_git.bb @@ -1,3 +1,13 @@ -inherit esw_examples +inherit features_check -ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/can/examples/" +REQUIRED_DISTRO_FEATURES = "can" + +inherit esw python3native + +DEPENDS += "xilstandalone xilmem" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/can/src/" +ESW_COMPONENT_NAME = "libcan.a" + +addtask do_generate_driver_data before do_configure after do_prepare_recipe_sysroot +do_prepare_recipe_sysroot[rdeptask] = "do_unpack" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/canfd-example_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/canfd-example_git.bb new file mode 100644 index 00000000..c8395f4e --- /dev/null +++ b/meta-xilinx-standalone-experimental/recipes-drivers/canfd-example_git.bb @@ -0,0 +1,5 @@ +inherit esw_examples features_check + +REQUIRED_DISTRO_FEATURES = "canfd" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/canfd/examples/" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/canfd_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/canfd_git.bb index 36fa367b..5f02d0a9 100644 --- a/meta-xilinx-standalone-experimental/recipes-drivers/canfd_git.bb +++ b/meta-xilinx-standalone-experimental/recipes-drivers/canfd_git.bb @@ -1,3 +1,17 @@ -inherit esw_examples +inherit features_check -ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/canfd/examples/" +REQUIRED_DISTRO_FEATURES = "canfd" + +inherit esw python3native + +DEPENDS += "xilstandalone xilmem" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/canfd/src/" +ESW_COMPONENT_NAME = "libcanfd.a" + +do_configure_prepend() { + LOPPER_DTC_FLAGS="-b 0 -@" lopper.py ${DTS_FILE} -- baremetal_xparameters_xlnx.py ${ESW_MACHINE} ${S} + install -m 0755 xparameters.h ${S}/${ESW_COMPONENT_SRC}/ +} +addtask do_generate_driver_data before do_configure after do_prepare_recipe_sysroot +do_prepare_recipe_sysroot[rdeptask] = "do_unpack" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/canps-example_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/canps-example_git.bb new file mode 100644 index 00000000..17ac3d0c --- /dev/null +++ b/meta-xilinx-standalone-experimental/recipes-drivers/canps-example_git.bb @@ -0,0 +1,5 @@ +inherit esw_examples features_check + +REQUIRED_DISTRO_FEATURES = "canps" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/canps/examples/" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/canps_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/canps_git.bb index ab6f6478..7733fd4f 100644 --- a/meta-xilinx-standalone-experimental/recipes-drivers/canps_git.bb +++ b/meta-xilinx-standalone-experimental/recipes-drivers/canps_git.bb @@ -1,3 +1,18 @@ -inherit esw_examples +inherit features_check -ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/canps/examples/" +REQUIRED_DISTRO_FEATURES = "canps" + +inherit esw python3native + +DEPENDS += "xilstandalone xilmem" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/canps/src/" +ESW_COMPONENT_NAME = "libcanps.a" + +do_configure_prepend() { + LOPPER_DTC_FLAGS="-b 0 -@" lopper.py ${DTS_FILE} -- baremetal_xparameters_xlnx.py ${ESW_MACHINE} ${S} + install -m 0755 xparameters.h ${S}/${ESW_COMPONENT_SRC}/ +} + +addtask do_generate_driver_data before do_configure after do_prepare_recipe_sysroot +do_prepare_recipe_sysroot[rdeptask] = "do_unpack" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/cframe_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/cframe_git.bb new file mode 100644 index 00000000..c443b9a9 --- /dev/null +++ b/meta-xilinx-standalone-experimental/recipes-drivers/cframe_git.bb @@ -0,0 +1,18 @@ +inherit features_check + +REQUIRED_DISTRO_FEATURES = "cframe" + +inherit esw python3native + +DEPENDS += "xilstandalone xilmem" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/cframe/src/" +ESW_COMPONENT_NAME = "libcframe.a" + +do_configure_prepend() { + LOPPER_DTC_FLAGS="-b 0 -@" lopper.py ${DTS_FILE} -- baremetal_xparameters_xlnx.py ${ESW_MACHINE} ${S} + install -m 0755 xparameters.h ${S}/${ESW_COMPONENT_SRC}/ +} + +addtask do_generate_driver_data before do_configure after do_prepare_recipe_sysroot +do_prepare_recipe_sysroot[rdeptask] = "do_unpack" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/cfupmc_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/cfupmc_git.bb new file mode 100644 index 00000000..ca1af7a4 --- /dev/null +++ b/meta-xilinx-standalone-experimental/recipes-drivers/cfupmc_git.bb @@ -0,0 +1,13 @@ +inherit features_check + +REQUIRED_DISTRO_FEATURES = "cfupmc" + +inherit esw python3native + +DEPENDS += "xilstandalone xilmem" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/cfupmc/src/" +ESW_COMPONENT_NAME = "libcfupmc.a" + +addtask do_generate_driver_data before do_configure after do_prepare_recipe_sysroot +do_prepare_recipe_sysroot[rdeptask] = "do_unpack" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/clockps_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/clockps_git.bb index b0bb1ccb..a3b5f8d8 100644 --- a/meta-xilinx-standalone-experimental/recipes-drivers/clockps_git.bb +++ b/meta-xilinx-standalone-experimental/recipes-drivers/clockps_git.bb @@ -1,3 +1,10 @@ -inherit esw_examples +inherit features_check -ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/clockps/examples/" +REQUIRED_DISTRO_FEATURES = "clockps" + +inherit esw + +DEPENDS += "xilstandalone xilmem" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/clockps/src/" +ESW_COMPONENT_NAME = "libclockps.a" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/common_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/common_git.bb new file mode 100644 index 00000000..98415f4a --- /dev/null +++ b/meta-xilinx-standalone-experimental/recipes-drivers/common_git.bb @@ -0,0 +1,23 @@ +inherit features_check + +REQUIRED_DISTRO_FEATURES = "common" + +inherit esw python3native + +DEPENDS += "xilstandalone xilmem" + +PACKAGECONFIG ?= "${@bb.utils.contains("DISTRO_FEATURES", "clockps", "clockps", "", d)} \ + ${@bb.utils.contains("DISTRO_FEATURES", "scugic", "scugic", "", d)} \ + ${@bb.utils.contains("DISTRO_FEATURES", "intc", "intc", "", d)}" +PACKAGECONFIG[clockps] = "${RECIPE_SYSROOT}/usr/lib/libclockps.a,,clockps,," +PACKAGECONFIG[scugic] = "${RECIPE_SYSROOT}/usr/lib/libscugic.a,,scugic,," +PACKAGECONFIG[intc] = "${RECIPE_SYSROOT}/usr/lib/libintc.a,,intc,," + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/common/src/" +ESW_COMPONENT_NAME = "libcommon.a" + +do_configure_prepend() { + LOPPER_DTC_FLAGS="-b 0 -@" lopper.py ${DTS_FILE} -- baremetalconfig_xlnx.py ${ESW_MACHINE} ${S}/XilinxProcessorIPLib/drivers/intc/src/ + LOPPER_DTC_FLAGS="-b 0 -@" lopper.py ${DTS_FILE} -- baremetalconfig_xlnx.py ${ESW_MACHINE} ${S}/XilinxProcessorIPLib/drivers/scugic/src/ + install -m 0755 *.cmake ${S}/${ESW_COMPONENT_SRC}/ +} diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/coresightps-dcc_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/coresightps-dcc_git.bb new file mode 100644 index 00000000..d721b2e1 --- /dev/null +++ b/meta-xilinx-standalone-experimental/recipes-drivers/coresightps-dcc_git.bb @@ -0,0 +1,13 @@ +inherit features_check + +REQUIRED_DISTRO_FEATURES = "coresightps-dcc" + +inherit esw python3native + +DEPENDS += "xilstandalone xilmem" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/coresightps_dcc/src/" +ESW_COMPONENT_NAME = "libcoresightps_dcc.a" + +addtask do_generate_driver_data before do_configure after do_prepare_recipe_sysroot +do_prepare_recipe_sysroot[rdeptask] = "do_unpack" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/csudma-ex_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/csudma-ex_git.bb new file mode 100644 index 00000000..3f5c2138 --- /dev/null +++ b/meta-xilinx-standalone-experimental/recipes-drivers/csudma-ex_git.bb @@ -0,0 +1,5 @@ +inherit esw_examples features_check + +REQUIRED_DISTRO_FEATURES = "csudma" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/csudma/examples/" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/csudma_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/csudma_git.bb index f505a8af..c5e83b67 100644 --- a/meta-xilinx-standalone-experimental/recipes-drivers/csudma_git.bb +++ b/meta-xilinx-standalone-experimental/recipes-drivers/csudma_git.bb @@ -1,3 +1,18 @@ -inherit esw_examples +inherit features_check -ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/csudma/examples/" +REQUIRED_DISTRO_FEATURES = "csudma" + +inherit esw python3native + +DEPENDS += "xilstandalone xilmem" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/csudma/src/" +ESW_COMPONENT_NAME = "libcsudma.a" + +do_configure_prepend() { + LOPPER_DTC_FLAGS="-b 0 -@" lopper.py ${DTS_FILE} -- baremetal_xparameters_xlnx.py ${ESW_MACHINE} ${S} + install -m 0755 xparameters.h ${S}/${ESW_COMPONENT_SRC}/ +} + +addtask do_generate_driver_data before do_configure after do_prepare_recipe_sysroot +do_prepare_recipe_sysroot[rdeptask] = "do_unpack" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/ddrcpsu_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/ddrcpsu_git.bb new file mode 100644 index 00000000..538496f4 --- /dev/null +++ b/meta-xilinx-standalone-experimental/recipes-drivers/ddrcpsu_git.bb @@ -0,0 +1,13 @@ +inherit features_check + +REQUIRED_DISTRO_FEATURES = "ddrcpsu" + +inherit esw python3native + +DEPENDS += "xilstandalone xilmem" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/ddrcpsu/src/" +ESW_COMPONENT_NAME = "libddrcpsu.a" + +addtask do_generate_driver_data before do_configure after do_prepare_recipe_sysroot +do_prepare_recipe_sysroot[rdeptask] = "do_unpack" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/devcfg-example_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/devcfg-example_git.bb new file mode 100644 index 00000000..2b0cd72f --- /dev/null +++ b/meta-xilinx-standalone-experimental/recipes-drivers/devcfg-example_git.bb @@ -0,0 +1,5 @@ +inherit esw_examples features_check + +REQUIRED_DISTRO_FEATURES = "devcfg" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/devcfg/examples/" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/devcfg_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/devcfg_git.bb index 04414465..3f0db543 100644 --- a/meta-xilinx-standalone-experimental/recipes-drivers/devcfg_git.bb +++ b/meta-xilinx-standalone-experimental/recipes-drivers/devcfg_git.bb @@ -1,3 +1,13 @@ -inherit esw_examples +inherit features_check -ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/devcfg/examples/" +REQUIRED_DISTRO_FEATURES = "devcfg" + +inherit esw python3native + +DEPENDS += "xilstandalone xilmem" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/devcfg/src/" +ESW_COMPONENT_NAME = "libdevcfg.a" + +addtask do_generate_driver_data before do_configure after do_prepare_recipe_sysroot +do_prepare_recipe_sysroot[rdeptask] = "do_unpack" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/dmaps-example_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/dmaps-example_git.bb new file mode 100644 index 00000000..77d4ac0c --- /dev/null +++ b/meta-xilinx-standalone-experimental/recipes-drivers/dmaps-example_git.bb @@ -0,0 +1,5 @@ +inherit esw_examples features_check + +REQUIRED_DISTRO_FEATURES = "dmaps" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/dmaps/examples/" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/dpdma_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/dpdma_git.bb new file mode 100644 index 00000000..ccc36172 --- /dev/null +++ b/meta-xilinx-standalone-experimental/recipes-drivers/dpdma_git.bb @@ -0,0 +1,13 @@ +inherit features_check + +REQUIRED_DISTRO_FEATURES = "dpdma" + +inherit esw python3native + +DEPENDS += "xilstandalone xilmem video-common avbuf" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/dpdma/src/" +ESW_COMPONENT_NAME = "libdpdma.a" + +addtask do_generate_driver_data before do_configure after do_prepare_recipe_sysroot +do_prepare_recipe_sysroot[rdeptask] = "do_unpack" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/dppsu_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/dppsu_git.bb new file mode 100644 index 00000000..200c1608 --- /dev/null +++ b/meta-xilinx-standalone-experimental/recipes-drivers/dppsu_git.bb @@ -0,0 +1,13 @@ +inherit features_check + +REQUIRED_DISTRO_FEATURES = "dppsu" + +inherit esw python3native + +DEPENDS += "xilstandalone xilmem video-common" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/dppsu/src/" +ESW_COMPONENT_NAME = "libdppsu.a" + +addtask do_generate_driver_data before do_configure after do_prepare_recipe_sysroot +do_prepare_recipe_sysroot[rdeptask] = "do_unpack" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/emaclite-example_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/emaclite-example_git.bb new file mode 100644 index 00000000..82a66d70 --- /dev/null +++ b/meta-xilinx-standalone-experimental/recipes-drivers/emaclite-example_git.bb @@ -0,0 +1,5 @@ +inherit esw_examples features_check + +REQUIRED_DISTRO_FEATURES = "emaclite" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/emaclite/examples/" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/emaclite_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/emaclite_git.bb index 927bc93b..43c7e88f 100644 --- a/meta-xilinx-standalone-experimental/recipes-drivers/emaclite_git.bb +++ b/meta-xilinx-standalone-experimental/recipes-drivers/emaclite_git.bb @@ -1,3 +1,13 @@ -inherit esw_examples +inherit features_check -ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/emaclite/examples/" +REQUIRED_DISTRO_FEATURES = "emaclite" + +inherit esw python3native + +DEPENDS += "xilstandalone xilmem" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/emaclite/src/" +ESW_COMPONENT_NAME = "libemaclite.a" + +addtask do_generate_driver_data before do_configure after do_prepare_recipe_sysroot +do_prepare_recipe_sysroot[rdeptask] = "do_unpack" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/emacps-example_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/emacps-example_git.bb new file mode 100644 index 00000000..93c2ff59 --- /dev/null +++ b/meta-xilinx-standalone-experimental/recipes-drivers/emacps-example_git.bb @@ -0,0 +1,5 @@ +inherit esw_examples features_check + +REQUIRED_DISTRO_FEATURES = "emacps" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/emacps/examples/" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/emacps_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/emacps_git.bb index 530087a4..cca114f4 100644 --- a/meta-xilinx-standalone-experimental/recipes-drivers/emacps_git.bb +++ b/meta-xilinx-standalone-experimental/recipes-drivers/emacps_git.bb @@ -1,3 +1,18 @@ -inherit esw_examples +inherit features_check -ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/emacps/examples/" +REQUIRED_DISTRO_FEATURES = "emacps" + +inherit esw python3native + +DEPENDS += "xilstandalone xilmem" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/emacps/src/" +ESW_COMPONENT_NAME = "libemacps.a" + +do_configure_prepend() { + LOPPER_DTC_FLAGS="-b 0 -@" lopper.py ${DTS_FILE} -- baremetal_xparameters_xlnx.py ${ESW_MACHINE} ${S} + install -m 0755 xparameters.h ${S}/${ESW_COMPONENT_SRC}/ +} + +addtask do_generate_driver_data before do_configure after do_prepare_recipe_sysroot +do_prepare_recipe_sysroot[rdeptask] = "do_unpack" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/gpio-example_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/gpio-example_git.bb new file mode 100644 index 00000000..1446c92c --- /dev/null +++ b/meta-xilinx-standalone-experimental/recipes-drivers/gpio-example_git.bb @@ -0,0 +1,5 @@ +inherit esw_examples features_check + +REQUIRED_DISTRO_FEATURES = "gpio" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/gpio/examples/" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/gpio_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/gpio_git.bb index 8302d66d..18f170dd 100644 --- a/meta-xilinx-standalone-experimental/recipes-drivers/gpio_git.bb +++ b/meta-xilinx-standalone-experimental/recipes-drivers/gpio_git.bb @@ -1,3 +1,13 @@ -inherit esw_examples +inherit features_check -ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/gpio/examples/" +REQUIRED_DISTRO_FEATURES = "gpio" + +inherit esw python3native + +DEPENDS += "xilstandalone xilmem" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/gpio/src/" +ESW_COMPONENT_NAME = "libgpio.a" + +addtask do_generate_driver_data before do_configure after do_prepare_recipe_sysroot +do_prepare_recipe_sysroot[rdeptask] = "do_unpack" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/gpiops-example_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/gpiops-example_git.bb new file mode 100644 index 00000000..e7050fc4 --- /dev/null +++ b/meta-xilinx-standalone-experimental/recipes-drivers/gpiops-example_git.bb @@ -0,0 +1,5 @@ +inherit esw_examples features_check + +REQUIRED_DISTRO_FEATURES = "gpiops" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/gpiops/examples/" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/gpiops_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/gpiops_git.bb index 9ece49a9..24f50580 100644 --- a/meta-xilinx-standalone-experimental/recipes-drivers/gpiops_git.bb +++ b/meta-xilinx-standalone-experimental/recipes-drivers/gpiops_git.bb @@ -1,3 +1,18 @@ -inherit esw_examples +inherit features_check -ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/gpiops/examples/" +REQUIRED_DISTRO_FEATURES = "gpiops" + +inherit esw python3native + +DEPENDS += "xilstandalone xilmem" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/gpiops/src/" +ESW_COMPONENT_NAME = "libgpiops.a" + +do_configure_prepend() { + LOPPER_DTC_FLAGS="-b 0 -@" lopper.py ${DTS_FILE} -- baremetal_xparameters_xlnx.py ${ESW_MACHINE} ${S} + install -m 0755 xparameters.h ${S}/${ESW_COMPONENT_SRC}/ +} + +addtask do_generate_driver_data before do_configure after do_prepare_recipe_sysroot +do_prepare_recipe_sysroot[rdeptask] = "do_unpack" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/iicps-example_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/iicps-example_git.bb new file mode 100644 index 00000000..fec7256b --- /dev/null +++ b/meta-xilinx-standalone-experimental/recipes-drivers/iicps-example_git.bb @@ -0,0 +1,5 @@ +inherit esw_examples features_check + +REQUIRED_DISTRO_FEATURES = "iicps" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/iicps/examples/" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/iicps_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/iicps_git.bb new file mode 100644 index 00000000..7647b0b0 --- /dev/null +++ b/meta-xilinx-standalone-experimental/recipes-drivers/iicps_git.bb @@ -0,0 +1,18 @@ +inherit features_check + +REQUIRED_DISTRO_FEATURES = "iicps" + +inherit esw python3native + +DEPENDS += "xilstandalone xilmem" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/iicps/src/" +ESW_COMPONENT_NAME = "libiicps.a" + +do_configure_prepend() { + LOPPER_DTC_FLAGS="-b 0 -@" lopper.py ${DTS_FILE} -- baremetal_xparameters_xlnx.py ${ESW_MACHINE} ${S} + install -m 0755 xparameters.h ${S}/${ESW_COMPONENT_SRC}/ +} + +addtask do_generate_driver_data before do_configure after do_prepare_recipe_sysroot +do_prepare_recipe_sysroot[rdeptask] = "do_unpack" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/iomodule_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/iomodule_git.bb new file mode 100644 index 00000000..78bf108d --- /dev/null +++ b/meta-xilinx-standalone-experimental/recipes-drivers/iomodule_git.bb @@ -0,0 +1,18 @@ +inherit features_check + +REQUIRED_DISTRO_FEATURES = "iomodule" + +inherit esw python3native + +DEPENDS += "xilstandalone xilmem" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/iomodule/src/" +ESW_COMPONENT_NAME = "libiomodule.a" + +do_configure_prepend() { + LOPPER_DTC_FLAGS="-b 0 -@" lopper.py ${DTS_FILE} -- baremetal_xparameters_xlnx.py ${ESW_MACHINE} ${S} + install -m 0755 xparameters.h ${S}/${ESW_COMPONENT_SRC}/ +} + +addtask do_generate_driver_data before do_configure after do_prepare_recipe_sysroot +do_prepare_recipe_sysroot[rdeptask] = "do_unpack" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/ipipsu-example_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/ipipsu-example_git.bb new file mode 100644 index 00000000..e007b74e --- /dev/null +++ b/meta-xilinx-standalone-experimental/recipes-drivers/ipipsu-example_git.bb @@ -0,0 +1,5 @@ +inherit esw_examples features_check + +REQUIRED_DISTRO_FEATURES = "ipipsu" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/ipipsu/examples/" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/ipipsu_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/ipipsu_git.bb index 83a107eb..456c4410 100644 --- a/meta-xilinx-standalone-experimental/recipes-drivers/ipipsu_git.bb +++ b/meta-xilinx-standalone-experimental/recipes-drivers/ipipsu_git.bb @@ -1,3 +1,17 @@ -inherit esw_examples +inherit features_check -ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/ipipsu/examples/" +REQUIRED_DISTRO_FEATURES = "ipipsu" + +inherit esw python3native + +DEPENDS += "xilstandalone xilmem" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/ipipsu/src/" +ESW_COMPONENT_NAME = "libipipsu.a" + +do_configure_prepend() { + LOPPER_DTC_FLAGS="-b 0 -@" lopper.py ${DTS_FILE} -- baremetal_xparameters_xlnx.py ${ESW_MACHINE} ${S} + install -m 0755 xparameters.h ${S}/${ESW_COMPONENT_SRC}/ +} +addtask do_generate_driver_data before do_configure after do_prepare_recipe_sysroot +do_prepare_recipe_sysroot[rdeptask] = "do_unpack" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/llfifo-example_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/llfifo-example_git.bb new file mode 100644 index 00000000..da02cbd2 --- /dev/null +++ b/meta-xilinx-standalone-experimental/recipes-drivers/llfifo-example_git.bb @@ -0,0 +1,5 @@ +inherit esw_examples features_check + +REQUIRED_DISTRO_FEATURES = "llfifo" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/llfifo/examples/" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/llfifo_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/llfifo_git.bb index dbc1945f..f1ec3ef9 100644 --- a/meta-xilinx-standalone-experimental/recipes-drivers/llfifo_git.bb +++ b/meta-xilinx-standalone-experimental/recipes-drivers/llfifo_git.bb @@ -1,3 +1,13 @@ -inherit esw_examples +inherit features_check -ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/llfifo/examples/" +REQUIRED_DISTRO_FEATURES = "llfifo" + +inherit esw python3native + +DEPENDS += "xilstandalone xilmem" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/llfifo/src/" +ESW_COMPONENT_NAME = "libllfifo.a" + +addtask do_generate_driver_data before do_configure after do_prepare_recipe_sysroot +do_prepare_recipe_sysroot[rdeptask] = "do_unpack" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/mbox-example_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/mbox-example_git.bb new file mode 100644 index 00000000..3adea549 --- /dev/null +++ b/meta-xilinx-standalone-experimental/recipes-drivers/mbox-example_git.bb @@ -0,0 +1,5 @@ +inherit esw_examples features_check + +REQUIRED_DISTRO_FEATURES = "mbox" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/mbox/examples/" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/mbox_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/mbox_git.bb index 085a459e..ad4a21d1 100644 --- a/meta-xilinx-standalone-experimental/recipes-drivers/mbox_git.bb +++ b/meta-xilinx-standalone-experimental/recipes-drivers/mbox_git.bb @@ -1,3 +1,13 @@ -inherit esw_examples +inherit features_check -ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/mbox/examples/" +REQUIRED_DISTRO_FEATURES = "mbox" + +inherit esw python3native + +DEPENDS += "xilstandalone xilmem" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/mbox/src/" +ESW_COMPONENT_NAME = "libmbox.a" + +addtask do_generate_driver_data before do_configure after do_prepare_recipe_sysroot +do_prepare_recipe_sysroot[rdeptask] = "do_unpack" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/mcdma-example_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/mcdma-example_git.bb new file mode 100644 index 00000000..54622350 --- /dev/null +++ b/meta-xilinx-standalone-experimental/recipes-drivers/mcdma-example_git.bb @@ -0,0 +1,5 @@ +inherit esw_examples features_check + +REQUIRED_DISTRO_FEATURES = "mcdma" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/mcdma/examples/" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/mcdma_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/mcdma_git.bb index 4b45d003..5720437b 100644 --- a/meta-xilinx-standalone-experimental/recipes-drivers/mcdma_git.bb +++ b/meta-xilinx-standalone-experimental/recipes-drivers/mcdma_git.bb @@ -1,3 +1,18 @@ -inherit esw_examples +inherit features_check -ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/mcdma/examples/" +REQUIRED_DISTRO_FEATURES = "mcdma" + +inherit esw python3native + +DEPENDS += "xilstandalone xilmem" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/mcdma/src/" +ESW_COMPONENT_NAME = "libmcdma.a" + +do_configure_prepend() { + LOPPER_DTC_FLAGS="-b 0 -@" lopper.py ${DTS_FILE} -- baremetal_xparameters_xlnx.py ${ESW_MACHINE} ${S} + install -m 0755 xparameters.h ${S}/${ESW_COMPONENT_SRC}/ +} + +addtask do_generate_driver_data before do_configure after do_prepare_recipe_sysroot +do_prepare_recipe_sysroot[rdeptask] = "do_unpack" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/mutex-example_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/mutex-example_git.bb new file mode 100644 index 00000000..ac637d2c --- /dev/null +++ b/meta-xilinx-standalone-experimental/recipes-drivers/mutex-example_git.bb @@ -0,0 +1,5 @@ +inherit esw_examples features_check + +REQUIRED_DISTRO_FEATURES = "mutex" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/mutex/examples/" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/mutex_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/mutex_git.bb index 6a7b39b4..656aa4ff 100644 --- a/meta-xilinx-standalone-experimental/recipes-drivers/mutex_git.bb +++ b/meta-xilinx-standalone-experimental/recipes-drivers/mutex_git.bb @@ -1,3 +1,13 @@ -inherit esw_examples +inherit features_check -ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/mutex/examples/" +REQUIRED_DISTRO_FEATURES = "mutex" + +inherit esw python3native + +DEPENDS += "xilstandalone xilmem" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/mutex/src/" +ESW_COMPONENT_NAME = "libmutex.a" + +addtask do_generate_driver_data before do_configure after do_prepare_recipe_sysroot +do_prepare_recipe_sysroot[rdeptask] = "do_unpack" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/nandpsu-example_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/nandpsu-example_git.bb new file mode 100644 index 00000000..0502471e --- /dev/null +++ b/meta-xilinx-standalone-experimental/recipes-drivers/nandpsu-example_git.bb @@ -0,0 +1,5 @@ +inherit esw_examples features_check + +REQUIRED_DISTRO_FEATURES = "nandpsu" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/nandpsu/examples/" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/nandpsu_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/nandpsu_git.bb index 8fd7251b..82ccf325 100644 --- a/meta-xilinx-standalone-experimental/recipes-drivers/nandpsu_git.bb +++ b/meta-xilinx-standalone-experimental/recipes-drivers/nandpsu_git.bb @@ -1,3 +1,13 @@ -inherit esw_examples +inherit features_check -ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/nandpsu/examples/" +REQUIRED_DISTRO_FEATURES = "canps" + +inherit esw python3native + +DEPENDS += "xilstandalone xilmem" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/canps/src/" +ESW_COMPONENT_NAME = "libcanps.a" + +addtask do_generate_driver_data before do_configure after do_prepare_recipe_sysroot +do_prepare_recipe_sysroot[rdeptask] = "do_unpack" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/ospipsv-example_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/ospipsv-example_git.bb new file mode 100644 index 00000000..c9d68260 --- /dev/null +++ b/meta-xilinx-standalone-experimental/recipes-drivers/ospipsv-example_git.bb @@ -0,0 +1,5 @@ +inherit esw_examples features_check + +REQUIRED_DISTRO_FEATURES = "ospipsv" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/ospipsv/examples/" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/ospipsv_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/ospipsv_git.bb index b98f9b51..e40b7fbb 100644 --- a/meta-xilinx-standalone-experimental/recipes-drivers/ospipsv_git.bb +++ b/meta-xilinx-standalone-experimental/recipes-drivers/ospipsv_git.bb @@ -1,3 +1,13 @@ -inherit esw_examples +inherit features_check -ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/ospipsv/examples/" +REQUIRED_DISTRO_FEATURES = "ospipsv" + +inherit esw python3native + +DEPENDS += "xilstandalone xilmem" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/ospipsv/src/" +ESW_COMPONENT_NAME = "libospipsv.a" + +addtask do_generate_driver_data before do_configure after do_prepare_recipe_sysroot +do_prepare_recipe_sysroot[rdeptask] = "do_unpack" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/pciepsu_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/pciepsu_git.bb new file mode 100644 index 00000000..23600836 --- /dev/null +++ b/meta-xilinx-standalone-experimental/recipes-drivers/pciepsu_git.bb @@ -0,0 +1,13 @@ +inherit features_check + +REQUIRED_DISTRO_FEATURES = "pciepsu" + +inherit esw python3native + +DEPENDS += "xilstandalone xilmem" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/pciepsu/src/" +ESW_COMPONENT_NAME = "libpciepsu.a" + +addtask do_generate_driver_data before do_configure after do_prepare_recipe_sysroot +do_prepare_recipe_sysroot[rdeptask] = "do_unpack" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/qspips-example_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/qspips-example_git.bb new file mode 100644 index 00000000..7a77274d --- /dev/null +++ b/meta-xilinx-standalone-experimental/recipes-drivers/qspips-example_git.bb @@ -0,0 +1,5 @@ +inherit esw_examples features_check + +REQUIRED_DISTRO_FEATURES = "qspips" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/qspips/examples/" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/qspips_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/qspips_git.bb index 1f0a1240..aa8938c5 100644 --- a/meta-xilinx-standalone-experimental/recipes-drivers/qspips_git.bb +++ b/meta-xilinx-standalone-experimental/recipes-drivers/qspips_git.bb @@ -1,3 +1,13 @@ -inherit esw_examples +inherit features_check -ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/qspips/examples/" +REQUIRED_DISTRO_FEATURES = "qspips" + +inherit esw python3native + +DEPENDS += "xilstandalone xilmem" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/qspips/src/" +ESW_COMPONENT_NAME = "libqspips.a" + +addtask do_generate_driver_data before do_configure after do_prepare_recipe_sysroot +do_prepare_recipe_sysroot[rdeptask] = "do_unpack" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/qspipsu-example_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/qspipsu-example_git.bb new file mode 100644 index 00000000..a533c50c --- /dev/null +++ b/meta-xilinx-standalone-experimental/recipes-drivers/qspipsu-example_git.bb @@ -0,0 +1,5 @@ +inherit esw_examples features_check + +REQUIRED_DISTRO_FEATURES = "qspipsu" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/qspipsu/examples/" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/qspipsu_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/qspipsu_git.bb index f1c97e97..4dc09878 100644 --- a/meta-xilinx-standalone-experimental/recipes-drivers/qspipsu_git.bb +++ b/meta-xilinx-standalone-experimental/recipes-drivers/qspipsu_git.bb @@ -1,3 +1,18 @@ -inherit esw_examples +inherit features_check -ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/qspipsu/examples/" +REQUIRED_DISTRO_FEATURES = "qspipsu" + +inherit esw python3native + +DEPENDS += "xilstandalone xilmem" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/qspipsu/src/" +ESW_COMPONENT_NAME = "libqspipsu.a" + +do_configure_prepend() { + LOPPER_DTC_FLAGS="-b 0 -@" lopper.py ${DTS_FILE} -- baremetal_xparameters_xlnx.py ${ESW_MACHINE} ${S} + install -m 0755 xparameters.h ${S}/${ESW_COMPONENT_SRC}/ +} + +addtask do_generate_driver_data before do_configure after do_prepare_recipe_sysroot +do_prepare_recipe_sysroot[rdeptask] = "do_unpack" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/resetps-example_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/resetps-example_git.bb new file mode 100644 index 00000000..86a9acc1 --- /dev/null +++ b/meta-xilinx-standalone-experimental/recipes-drivers/resetps-example_git.bb @@ -0,0 +1,5 @@ +inherit esw_examples features_check + +REQUIRED_DISTRO_FEATURES = "resetps" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/resetps/examples/" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/resetps_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/resetps_git.bb index 51e4eaad..13efa0fb 100644 --- a/meta-xilinx-standalone-experimental/recipes-drivers/resetps_git.bb +++ b/meta-xilinx-standalone-experimental/recipes-drivers/resetps_git.bb @@ -1,3 +1,18 @@ -inherit esw_examples +inherit features_check -ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/resetps/examples/" +REQUIRED_DISTRO_FEATURES = "resetps" + +inherit esw python3native + +DEPENDS += "xilstandalone xilmem" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/resetps/src/" +ESW_COMPONENT_NAME = "libresetps.a" + +do_configure_prepend() { + LOPPER_DTC_FLAGS="-b 0 -@" lopper.py ${DTS_FILE} -- baremetal_xparameters_xlnx.py ${ESW_MACHINE} ${S} + install -m 0755 xparameters.h ${S}/${ESW_COMPONENT_SRC}/ +} + +addtask do_generate_driver_data before do_configure after do_prepare_recipe_sysroot +do_prepare_recipe_sysroot[rdeptask] = "do_unpack" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/rtcpsu-example_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/rtcpsu-example_git.bb new file mode 100644 index 00000000..fc18adeb --- /dev/null +++ b/meta-xilinx-standalone-experimental/recipes-drivers/rtcpsu-example_git.bb @@ -0,0 +1,5 @@ +inherit esw_examples features_check + +REQUIRED_DISTRO_FEATURES = "rtcpsu" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/rtcpsu/examples/" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/rtcpsu_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/rtcpsu_git.bb index 19f17f73..e4b8fbb5 100644 --- a/meta-xilinx-standalone-experimental/recipes-drivers/rtcpsu_git.bb +++ b/meta-xilinx-standalone-experimental/recipes-drivers/rtcpsu_git.bb @@ -1,3 +1,18 @@ -inherit esw_examples +inherit features_check -ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/rtcpsu/examples/" +REQUIRED_DISTRO_FEATURES = "rtcpsu" + +inherit esw python3native + +DEPENDS += "xilstandalone xilmem" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/rtcpsu/src/" +ESW_COMPONENT_NAME = "librtcpsu.a" + +do_configure_prepend() { + LOPPER_DTC_FLAGS="-b 0 -@" lopper.py ${DTS_FILE} -- baremetal_xparameters_xlnx.py ${ESW_MACHINE} ${S} + install -m 0755 xparameters.h ${S}/${ESW_COMPONENT_SRC}/ +} + +addtask do_generate_driver_data before do_configure after do_prepare_recipe_sysroot +do_prepare_recipe_sysroot[rdeptask] = "do_unpack" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/scugic-example_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/scugic-example_git.bb new file mode 100644 index 00000000..5ad0ba17 --- /dev/null +++ b/meta-xilinx-standalone-experimental/recipes-drivers/scugic-example_git.bb @@ -0,0 +1,5 @@ +inherit esw_examples features_check + +REQUIRED_DISTRO_FEATURES = "scugic" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/scugic/examples/" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/scugic_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/scugic_git.bb index f20c8241..c8066183 100644 --- a/meta-xilinx-standalone-experimental/recipes-drivers/scugic_git.bb +++ b/meta-xilinx-standalone-experimental/recipes-drivers/scugic_git.bb @@ -1,3 +1,13 @@ -inherit esw_examples +inherit features_check -ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/scugic/examples/" +REQUIRED_DISTRO_FEATURES = "scugic" + +inherit esw python3native + +DEPENDS += "xilstandalone xilmem" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/scugic/src/" +ESW_COMPONENT_NAME = "libscugic.a" + +addtask do_generate_driver_data before do_configure after do_prepare_recipe_sysroot +do_prepare_recipe_sysroot[rdeptask] = "do_unpack" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/sdps-example_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/sdps-example_git.bb new file mode 100644 index 00000000..9a5c435b --- /dev/null +++ b/meta-xilinx-standalone-experimental/recipes-drivers/sdps-example_git.bb @@ -0,0 +1,5 @@ +inherit esw_examples features_check + +REQUIRED_DISTRO_FEATURES = "sdps" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/sdps/examples/" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/sdps_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/sdps_git.bb index cba4543c..dde6ee47 100644 --- a/meta-xilinx-standalone-experimental/recipes-drivers/sdps_git.bb +++ b/meta-xilinx-standalone-experimental/recipes-drivers/sdps_git.bb @@ -1,3 +1,18 @@ -inherit esw_examples +inherit features_check -ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/sdps/examples/" +REQUIRED_DISTRO_FEATURES = "sdps" + +inherit esw python3native + +DEPENDS += "xilstandalone xilmem" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/sdps/src/" +ESW_COMPONENT_NAME = "libsdps.a" + +do_configure_prepend() { + LOPPER_DTC_FLAGS="-b 0 -@" lopper.py ${DTS_FILE} -- baremetal_xparameters_xlnx.py ${ESW_MACHINE} ${S} + install -m 0755 xparameters.h ${S}/${ESW_COMPONENT_SRC}/ +} + +addtask do_generate_driver_data before do_configure after do_prepare_recipe_sysroot +do_prepare_recipe_sysroot[rdeptask] = "do_unpack" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/spips-example_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/spips-example_git.bb new file mode 100644 index 00000000..bec085bb --- /dev/null +++ b/meta-xilinx-standalone-experimental/recipes-drivers/spips-example_git.bb @@ -0,0 +1,5 @@ +inherit esw_examples features_check + +REQUIRED_DISTRO_FEATURES = "spips" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/spips/examples/" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/spips_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/spips_git.bb index d1395a1e..83e7799b 100644 --- a/meta-xilinx-standalone-experimental/recipes-drivers/spips_git.bb +++ b/meta-xilinx-standalone-experimental/recipes-drivers/spips_git.bb @@ -1,3 +1,13 @@ -inherit esw_examples +inherit features_check -ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/spips/examples/" +REQUIRED_DISTRO_FEATURES = "spips" + +inherit esw python3native + +DEPENDS += "xilstandalone xilmem" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/spips/src/" +ESW_COMPONENT_NAME = "libspips.a" + +addtask do_generate_driver_data before do_configure after do_prepare_recipe_sysroot +do_prepare_recipe_sysroot[rdeptask] = "do_unpack" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/sysmon-example_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/sysmon-example_git.bb new file mode 100644 index 00000000..1ef37ee8 --- /dev/null +++ b/meta-xilinx-standalone-experimental/recipes-drivers/sysmon-example_git.bb @@ -0,0 +1,5 @@ +inherit esw_examples features_check + +REQUIRED_DISTRO_FEATURES = "sysmon" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/sysmon/examples/" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/sysmon_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/sysmon_git.bb index cc10bbc1..aaef1f85 100644 --- a/meta-xilinx-standalone-experimental/recipes-drivers/sysmon_git.bb +++ b/meta-xilinx-standalone-experimental/recipes-drivers/sysmon_git.bb @@ -1,3 +1,13 @@ -inherit esw_examples +inherit features_check -ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/sysmon/examples/" +REQUIRED_DISTRO_FEATURES = "sysmon" + +inherit esw python3native + +DEPENDS += "xilstandalone xilmem" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/sysmon/src/" +ESW_COMPONENT_NAME = "libsysmon.a" + +addtask do_generate_driver_data before do_configure after do_prepare_recipe_sysroot +do_prepare_recipe_sysroot[rdeptask] = "do_unpack" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/sysmonpsu-example_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/sysmonpsu-example_git.bb new file mode 100644 index 00000000..52e5b1e6 --- /dev/null +++ b/meta-xilinx-standalone-experimental/recipes-drivers/sysmonpsu-example_git.bb @@ -0,0 +1,5 @@ +inherit esw_examples features_check + +REQUIRED_DISTRO_FEATURES = "sysmonpsu" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/sysmonpsu/examples/" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/sysmonpsu_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/sysmonpsu_git.bb new file mode 100644 index 00000000..23b53847 --- /dev/null +++ b/meta-xilinx-standalone-experimental/recipes-drivers/sysmonpsu_git.bb @@ -0,0 +1,18 @@ +inherit features_check + +REQUIRED_DISTRO_FEATURES = "sysmonpsu" + +inherit esw python3native + +DEPENDS += "xilstandalone xilmem" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/sysmonpsu/src/" +ESW_COMPONENT_NAME = "libsysmonpsu.a" + +do_configure_prepend() { + LOPPER_DTC_FLAGS="-b 0 -@" lopper.py ${DTS_FILE} -- baremetal_xparameters_xlnx.py ${ESW_MACHINE} ${S} + install -m 0755 xparameters.h ${S}/${ESW_COMPONENT_SRC}/ +} + +addtask do_generate_driver_data before do_configure after do_prepare_recipe_sysroot +do_prepare_recipe_sysroot[rdeptask] = "do_unpack" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/sysmonpsv_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/sysmonpsv_git.bb new file mode 100644 index 00000000..bad984ae --- /dev/null +++ b/meta-xilinx-standalone-experimental/recipes-drivers/sysmonpsv_git.bb @@ -0,0 +1,13 @@ +inherit features_check + +REQUIRED_DISTRO_FEATURES = "sysmonpsv" + +inherit esw python3native + +DEPENDS += "xilstandalone xilmem" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/sysmonpsv/src/" +ESW_COMPONENT_NAME = "libsysmonpsv.a" + +addtask do_generate_driver_data before do_configure after do_prepare_recipe_sysroot +do_prepare_recipe_sysroot[rdeptask] = "do_unpack" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/tmr-inject_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/tmr-inject_git.bb new file mode 100644 index 00000000..59ec1e4a --- /dev/null +++ b/meta-xilinx-standalone-experimental/recipes-drivers/tmr-inject_git.bb @@ -0,0 +1,13 @@ +inherit features_check + +REQUIRED_DISTRO_FEATURES = "tmr-inject" + +inherit esw python3native + +DEPENDS += "xilstandalone xilmem" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/tmr_inject/src/" +ESW_COMPONENT_NAME = "libtmr_inject.a" + +addtask do_generate_driver_data before do_configure after do_prepare_recipe_sysroot +do_prepare_recipe_sysroot[rdeptask] = "do_unpack" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/tmr-manager_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/tmr-manager_git.bb new file mode 100644 index 00000000..9311b522 --- /dev/null +++ b/meta-xilinx-standalone-experimental/recipes-drivers/tmr-manager_git.bb @@ -0,0 +1,13 @@ +inherit features_check + +REQUIRED_DISTRO_FEATURES = "tmr-manager" + +inherit esw python3native + +DEPENDS += "xilstandalone xilmem" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/tmr_manager/src/" +ESW_COMPONENT_NAME = "libtmr_manager.a" + +addtask do_generate_driver_data before do_configure after do_prepare_recipe_sysroot +do_prepare_recipe_sysroot[rdeptask] = "do_unpack" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/tmrctr-example_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/tmrctr-example_git.bb new file mode 100644 index 00000000..cd971139 --- /dev/null +++ b/meta-xilinx-standalone-experimental/recipes-drivers/tmrctr-example_git.bb @@ -0,0 +1,5 @@ +inherit esw_examples features_check + +REQUIRED_DISTRO_FEATURES = "tmrctr" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/tmrctr/examples/" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/tmrctr_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/tmrctr_git.bb index 2e675fb7..bfc027c7 100644 --- a/meta-xilinx-standalone-experimental/recipes-drivers/tmrctr_git.bb +++ b/meta-xilinx-standalone-experimental/recipes-drivers/tmrctr_git.bb @@ -1,3 +1,13 @@ -inherit esw_examples +inherit features_check -ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/tmrctr/examples/" +REQUIRED_DISTRO_FEATURES = "tmrctr" + +inherit esw python3native + +DEPENDS += "xilstandalone xilmem" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/tmrctr/src/" +ESW_COMPONENT_NAME = "libtmrctr.a" + +addtask do_generate_driver_data before do_configure after do_prepare_recipe_sysroot +do_prepare_recipe_sysroot[rdeptask] = "do_unpack" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/ttcps-example_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/ttcps-example_git.bb new file mode 100644 index 00000000..783dce25 --- /dev/null +++ b/meta-xilinx-standalone-experimental/recipes-drivers/ttcps-example_git.bb @@ -0,0 +1,5 @@ +inherit esw_examples features_check + +REQUIRED_DISTRO_FEATURES = "ttcps" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/ttcps/examples/" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/ttcps_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/ttcps_git.bb index 72a21566..505b20af 100644 --- a/meta-xilinx-standalone-experimental/recipes-drivers/ttcps_git.bb +++ b/meta-xilinx-standalone-experimental/recipes-drivers/ttcps_git.bb @@ -1,3 +1,18 @@ -inherit esw_examples +inherit features_check -ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/ttcps/examples/" +REQUIRED_DISTRO_FEATURES = "ttcps" + +inherit esw python3native + +DEPENDS += "xilstandalone xilmem" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/ttcps/src/" +ESW_COMPONENT_NAME = "libttcps.a" + +do_configure_prepend() { + LOPPER_DTC_FLAGS="-b 0 -@" lopper.py ${DTS_FILE} -- baremetal_xparameters_xlnx.py ${ESW_MACHINE} ${S} + install -m 0755 xparameters.h ${S}/${ESW_COMPONENT_SRC}/ +} + +addtask do_generate_driver_data before do_configure after do_prepare_recipe_sysroot +do_prepare_recipe_sysroot[rdeptask] = "do_unpack" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/uartlite-example_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/uartlite-example_git.bb new file mode 100644 index 00000000..f218e604 --- /dev/null +++ b/meta-xilinx-standalone-experimental/recipes-drivers/uartlite-example_git.bb @@ -0,0 +1,5 @@ +inherit esw_examples features_check + +REQUIRED_DISTRO_FEATURES = "uartlite" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/uartlite/examples/" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/uartlite_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/uartlite_git.bb index 0f6d688f..48ab39b1 100644 --- a/meta-xilinx-standalone-experimental/recipes-drivers/uartlite_git.bb +++ b/meta-xilinx-standalone-experimental/recipes-drivers/uartlite_git.bb @@ -1,3 +1,13 @@ -inherit esw_examples +inherit features_check -ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/uartlite/examples/" +REQUIRED_DISTRO_FEATURES = "uartlite" + +inherit esw python3native + +DEPENDS += "xilstandalone xilmem" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/uartlite/src/" +ESW_COMPONENT_NAME = "libuartlite.a" + +addtask do_generate_driver_data before do_configure after do_prepare_recipe_sysroot +do_prepare_recipe_sysroot[rdeptask] = "do_unpack" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/uartps-example_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/uartps-example_git.bb new file mode 100644 index 00000000..f010794a --- /dev/null +++ b/meta-xilinx-standalone-experimental/recipes-drivers/uartps-example_git.bb @@ -0,0 +1,5 @@ +inherit esw_examples features_check + +REQUIRED_DISTRO_FEATURES = "uartps" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/uartps/examples/" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/uartps_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/uartps_git.bb index e898f011..566d7336 100644 --- a/meta-xilinx-standalone-experimental/recipes-drivers/uartps_git.bb +++ b/meta-xilinx-standalone-experimental/recipes-drivers/uartps_git.bb @@ -1,3 +1,16 @@ -inherit esw_examples +inherit features_check -ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/uartps/examples/" +REQUIRED_DISTRO_FEATURES = "uartps" + +inherit esw python3native + +DEPENDS += "xilstandalone xilmem" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/uartps/src/" +ESW_COMPONENT_NAME = "libuartps.a" + +do_configure_prepend() { + LOPPER_DTC_FLAGS="-b 0 -@" lopper.py ${DTS_FILE} -- baremetalconfig_xlnx.py ${ESW_MACHINE} ${S}/${ESW_COMPONENT_SRC} stdin + install -m 0755 *.cmake ${S}/${ESW_COMPONENT_SRC}/ + install -m 0755 xuartps_g.c ${S}/${ESW_COMPONENT_SRC}/ +} diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/uartpsv_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/uartpsv_git.bb new file mode 100644 index 00000000..7ceca4e5 --- /dev/null +++ b/meta-xilinx-standalone-experimental/recipes-drivers/uartpsv_git.bb @@ -0,0 +1,16 @@ +inherit features_check + +REQUIRED_DISTRO_FEATURES = "uartpsv" + +inherit esw python3native + +DEPENDS += "xilstandalone xilmem" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/uartpsv/src/" +ESW_COMPONENT_NAME = "libuartpsv.a" + +do_configure_prepend() { + LOPPER_DTC_FLAGS="-b 0 -@" lopper.py ${DTS_FILE} -- baremetalconfig_xlnx.py ${ESW_MACHINE} ${S}/${ESW_COMPONENT_SRC} stdin + install -m 0755 *.cmake ${S}/${ESW_COMPONENT_SRC}/ + install -m 0755 xuartpsv_g.c ${S}/${ESW_COMPONENT_SRC}/ +} diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/usbpsu-example_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/usbpsu-example_git.bb new file mode 100644 index 00000000..88c983e0 --- /dev/null +++ b/meta-xilinx-standalone-experimental/recipes-drivers/usbpsu-example_git.bb @@ -0,0 +1,5 @@ +inherit esw_examples features_check + +REQUIRED_DISTRO_FEATURES = "usbpsu" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/usbpsu/examples/" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/usbpsu_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/usbpsu_git.bb index 97645375..143bfb9c 100644 --- a/meta-xilinx-standalone-experimental/recipes-drivers/usbpsu_git.bb +++ b/meta-xilinx-standalone-experimental/recipes-drivers/usbpsu_git.bb @@ -1,3 +1,18 @@ -inherit esw_examples +inherit features_check -ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/usbpsu/examples/" +REQUIRED_DISTRO_FEATURES = "usbpsu" + +inherit esw python3native + +DEPENDS += "xilstandalone xilmem" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/usbpsu/src/" +ESW_COMPONENT_NAME = "libusbpsu.a" + +do_configure_prepend() { + LOPPER_DTC_FLAGS="-b 0 -@" lopper.py ${DTS_FILE} -- baremetal_xparameters_xlnx.py ${ESW_MACHINE} ${S} + install -m 0755 xparameters.h ${S}/${ESW_COMPONENT_SRC}/ +} + +addtask do_generate_driver_data before do_configure after do_prepare_recipe_sysroot +do_prepare_recipe_sysroot[rdeptask] = "do_unpack" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/v-csc_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/v-csc_git.bb new file mode 100644 index 00000000..361dde36 --- /dev/null +++ b/meta-xilinx-standalone-experimental/recipes-drivers/v-csc_git.bb @@ -0,0 +1,13 @@ +inherit features_check + +REQUIRED_DISTRO_FEATURES = "v-csc" + +inherit esw python3native + +DEPENDS += "xilstandalone xilmem video-common" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/v_csc/src/" +ESW_COMPONENT_NAME = "libv_csc.a" + +addtask do_generate_driver_data before do_configure after do_prepare_recipe_sysroot +do_prepare_recipe_sysroot[rdeptask] = "do_unpack" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/v-deinterlacer_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/v-deinterlacer_git.bb new file mode 100644 index 00000000..a439a7bd --- /dev/null +++ b/meta-xilinx-standalone-experimental/recipes-drivers/v-deinterlacer_git.bb @@ -0,0 +1,13 @@ +inherit features_check + +REQUIRED_DISTRO_FEATURES = "v-deinterlacer" + +inherit esw python3native + +DEPENDS += "xilstandalone xilmem video-common" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/v_deinterlacer/src/" +ESW_COMPONENT_NAME = "libv_deinterlacer.a" + +addtask do_generate_driver_data before do_configure after do_prepare_recipe_sysroot +do_prepare_recipe_sysroot[rdeptask] = "do_unpack" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/v-hcresampler_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/v-hcresampler_git.bb new file mode 100644 index 00000000..7bb5d68d --- /dev/null +++ b/meta-xilinx-standalone-experimental/recipes-drivers/v-hcresampler_git.bb @@ -0,0 +1,13 @@ +inherit features_check + +REQUIRED_DISTRO_FEATURES = "v-hcresampler" + +inherit esw python3native + +DEPENDS += "xilstandalone xilmem video-common" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/v_hcresampler/src/" +ESW_COMPONENT_NAME = "libv_hcresampler.a" + +addtask do_generate_driver_data before do_configure after do_prepare_recipe_sysroot +do_prepare_recipe_sysroot[rdeptask] = "do_unpack" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/v-hscaler_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/v-hscaler_git.bb new file mode 100644 index 00000000..16b7ad43 --- /dev/null +++ b/meta-xilinx-standalone-experimental/recipes-drivers/v-hscaler_git.bb @@ -0,0 +1,13 @@ +inherit features_check + +REQUIRED_DISTRO_FEATURES = "v-hscaler" + +inherit esw python3native + +DEPENDS += "xilstandalone xilmem video-common" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/v_hscaler/src/" +ESW_COMPONENT_NAME = "libv_hscaler.a" + +addtask do_generate_driver_data before do_configure after do_prepare_recipe_sysroot +do_prepare_recipe_sysroot[rdeptask] = "do_unpack" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/v-letterbox_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/v-letterbox_git.bb new file mode 100644 index 00000000..efb85fa0 --- /dev/null +++ b/meta-xilinx-standalone-experimental/recipes-drivers/v-letterbox_git.bb @@ -0,0 +1,13 @@ +inherit features_check + +REQUIRED_DISTRO_FEATURES = "v-letterbox" + +inherit esw python3native + +DEPENDS += "xilstandalone xilmem video-common" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/v_letterbox/src/" +ESW_COMPONENT_NAME = "libv_letterbox.a" + +addtask do_generate_driver_data before do_configure after do_prepare_recipe_sysroot +do_prepare_recipe_sysroot[rdeptask] = "do_unpack" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/v-tpg_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/v-tpg_git.bb new file mode 100644 index 00000000..418378a1 --- /dev/null +++ b/meta-xilinx-standalone-experimental/recipes-drivers/v-tpg_git.bb @@ -0,0 +1,13 @@ +inherit features_check + +REQUIRED_DISTRO_FEATURES = "v-tpg" + +inherit esw python3native + +DEPENDS += "xilstandalone xilmem" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/v_tpg/src/" +ESW_COMPONENT_NAME = "libv_tpg.a" + +addtask do_generate_driver_data before do_configure after do_prepare_recipe_sysroot +do_prepare_recipe_sysroot[rdeptask] = "do_unpack" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/v-vcresampler_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/v-vcresampler_git.bb new file mode 100644 index 00000000..c36ff3d9 --- /dev/null +++ b/meta-xilinx-standalone-experimental/recipes-drivers/v-vcresampler_git.bb @@ -0,0 +1,13 @@ +inherit features_check + +REQUIRED_DISTRO_FEATURES = "v-vcresampler" + +inherit esw python3native + +DEPENDS += "xilstandalone xilmem video-common" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/v_vcresampler/src/" +ESW_COMPONENT_NAME = "libv_vcresampler.a" + +addtask do_generate_driver_data before do_configure after do_prepare_recipe_sysroot +do_prepare_recipe_sysroot[rdeptask] = "do_unpack" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/v-vscaler_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/v-vscaler_git.bb new file mode 100644 index 00000000..570df89f --- /dev/null +++ b/meta-xilinx-standalone-experimental/recipes-drivers/v-vscaler_git.bb @@ -0,0 +1,13 @@ +inherit features_check + +REQUIRED_DISTRO_FEATURES = "v-vscaler" + +inherit esw python3native + +DEPENDS += "xilstandalone xilmem video-common" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/v_vscaler/src/" +ESW_COMPONENT_NAME = "libv_vscaler.a" + +addtask do_generate_driver_data before do_configure after do_prepare_recipe_sysroot +do_prepare_recipe_sysroot[rdeptask] = "do_unpack" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/video-common_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/video-common_git.bb new file mode 100644 index 00000000..15bb1540 --- /dev/null +++ b/meta-xilinx-standalone-experimental/recipes-drivers/video-common_git.bb @@ -0,0 +1,10 @@ +inherit features_check + +REQUIRED_DISTRO_FEATURES = "video-common" + +inherit esw + +DEPENDS += "xilstandalone xilmem" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/video_common/src/" +ESW_COMPONENT_NAME = "libvideo_common.a" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/vprocss-example_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/vprocss-example_git.bb new file mode 100644 index 00000000..7c44a0f5 --- /dev/null +++ b/meta-xilinx-standalone-experimental/recipes-drivers/vprocss-example_git.bb @@ -0,0 +1,5 @@ +inherit esw_examples features_check + +REQUIRED_DISTRO_FEATURES = "vprocss" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/vprocss/examples/" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/vprocss_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/vprocss_git.bb new file mode 100644 index 00000000..4280718e --- /dev/null +++ b/meta-xilinx-standalone-experimental/recipes-drivers/vprocss_git.bb @@ -0,0 +1,13 @@ +inherit features_check + +REQUIRED_DISTRO_FEATURES = "vprocss" + +inherit esw python3native + +DEPENDS += "xilstandalone xilmem video-common gpio axis-switch axivdma v-csc v-deinterlacer v-hcresampler v-vcresampler v-hscaler v-vscaler v-letterbox" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/vprocss/src/" +ESW_COMPONENT_NAME = "libvprocss.a" + +addtask do_generate_driver_data before do_configure after do_prepare_recipe_sysroot +do_prepare_recipe_sysroot[rdeptask] = "do_unpack" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/vtc_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/vtc_git.bb new file mode 100644 index 00000000..adad8baa --- /dev/null +++ b/meta-xilinx-standalone-experimental/recipes-drivers/vtc_git.bb @@ -0,0 +1,13 @@ +inherit features_check + +REQUIRED_DISTRO_FEATURES = "vtc" + +inherit esw python3native + +DEPENDS += "xilstandalone xilmem video-common" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/vtc/src/" +ESW_COMPONENT_NAME = "libvtc.a" + +addtask do_generate_driver_data before do_configure after do_prepare_recipe_sysroot +do_prepare_recipe_sysroot[rdeptask] = "do_unpack" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/wdtps-example_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/wdtps-example_git.bb new file mode 100644 index 00000000..f3696e60 --- /dev/null +++ b/meta-xilinx-standalone-experimental/recipes-drivers/wdtps-example_git.bb @@ -0,0 +1,5 @@ +inherit esw_examples features_check + +REQUIRED_DISTRO_FEATURES = "wdtps" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/wdtps/examples/" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/wdtps_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/wdtps_git.bb index de70d5fc..2a4e22ab 100644 --- a/meta-xilinx-standalone-experimental/recipes-drivers/wdtps_git.bb +++ b/meta-xilinx-standalone-experimental/recipes-drivers/wdtps_git.bb @@ -1,3 +1,18 @@ -inherit esw_examples +inherit features_check -ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/wdtps/examples/" +REQUIRED_DISTRO_FEATURES = "wdtps" + +inherit esw python3native + +DEPENDS += "xilstandalone xilmem" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/wdtps/src/" +ESW_COMPONENT_NAME = "libwdtps.a" + +do_configure_prepend() { + LOPPER_DTC_FLAGS="-b 0 -@" lopper.py ${DTS_FILE} -- baremetal_xparameters_xlnx.py ${ESW_MACHINE} ${S} + install -m 0755 xparameters.h ${S}/${ESW_COMPONENT_SRC}/ +} + +addtask do_generate_driver_data before do_configure after do_prepare_recipe_sysroot +do_prepare_recipe_sysroot[rdeptask] = "do_unpack" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/wdttb_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/wdttb_git.bb new file mode 100644 index 00000000..944d1d4b --- /dev/null +++ b/meta-xilinx-standalone-experimental/recipes-drivers/wdttb_git.bb @@ -0,0 +1,13 @@ +inherit features_check + +REQUIRED_DISTRO_FEATURES = "wdttb" + +inherit esw python3native + +DEPENDS += "xilstandalone xilmem" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/wdttb/src/" +ESW_COMPONENT_NAME = "libwdttb.a" + +addtask do_generate_driver_data before do_configure after do_prepare_recipe_sysroot +do_prepare_recipe_sysroot[rdeptask] = "do_unpack" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/xadcps-example_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/xadcps-example_git.bb new file mode 100644 index 00000000..bda86f79 --- /dev/null +++ b/meta-xilinx-standalone-experimental/recipes-drivers/xadcps-example_git.bb @@ -0,0 +1,5 @@ +inherit esw_examples features_check + +REQUIRED_DISTRO_FEATURES = "xadcps" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/xadcps/examples/" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/xadcps_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/xadcps_git.bb index 2e607521..a13e2974 100644 --- a/meta-xilinx-standalone-experimental/recipes-drivers/xadcps_git.bb +++ b/meta-xilinx-standalone-experimental/recipes-drivers/xadcps_git.bb @@ -1,3 +1,13 @@ -inherit esw_examples +inherit features_check -ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/xadcps/examples/" +REQUIRED_DISTRO_FEATURES = "xadcps" + +inherit esw python3native + +DEPENDS += "xilstandalone xilmem" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/xadcps/src/" +ESW_COMPONENT_NAME = "libxadcps.a" + +addtask do_generate_driver_data before do_configure after do_prepare_recipe_sysroot +do_prepare_recipe_sysroot[rdeptask] = "do_unpack" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/xxvethernet-example_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/xxvethernet-example_git.bb new file mode 100644 index 00000000..283bea9b --- /dev/null +++ b/meta-xilinx-standalone-experimental/recipes-drivers/xxvethernet-example_git.bb @@ -0,0 +1,5 @@ +inherit esw_examples features_check + +REQUIRED_DISTRO_FEATURES = "xxvethernet" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/xxvethernet/examples/" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/xxvethernet_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/xxvethernet_git.bb index 66e6bcd6..82ccf325 100644 --- a/meta-xilinx-standalone-experimental/recipes-drivers/xxvethernet_git.bb +++ b/meta-xilinx-standalone-experimental/recipes-drivers/xxvethernet_git.bb @@ -1,3 +1,13 @@ -inherit esw_examples +inherit features_check -ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/xxvethernet/examples/" +REQUIRED_DISTRO_FEATURES = "canps" + +inherit esw python3native + +DEPENDS += "xilstandalone xilmem" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/canps/src/" +ESW_COMPONENT_NAME = "libcanps.a" + +addtask do_generate_driver_data before do_configure after do_prepare_recipe_sysroot +do_prepare_recipe_sysroot[rdeptask] = "do_unpack" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/zdma-example_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/zdma-example_git.bb new file mode 100644 index 00000000..afba0f8a --- /dev/null +++ b/meta-xilinx-standalone-experimental/recipes-drivers/zdma-example_git.bb @@ -0,0 +1,5 @@ +inherit esw_examples features_check + +REQUIRED_DISTRO_FEATURES = "zdma" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/zdma/examples/" diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/zdma_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/zdma_git.bb index 584a1b20..aa094e16 100644 --- a/meta-xilinx-standalone-experimental/recipes-drivers/zdma_git.bb +++ b/meta-xilinx-standalone-experimental/recipes-drivers/zdma_git.bb @@ -1,3 +1,18 @@ -inherit esw_examples +inherit features_check -ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/zdma/examples/" +REQUIRED_DISTRO_FEATURES = "zdma" + +inherit esw python3native + +DEPENDS += "xilstandalone xilmem" + +ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/zdma/src/" +ESW_COMPONENT_NAME = "libzdma.a" + +do_configure_prepend() { + LOPPER_DTC_FLAGS="-b 0 -@" lopper.py ${DTS_FILE} -- baremetal_xparameters_xlnx.py ${ESW_MACHINE} ${S} + install -m 0755 xparameters.h ${S}/${ESW_COMPONENT_SRC}/ +} + +addtask do_generate_driver_data before do_configure after do_prepare_recipe_sysroot +do_prepare_recipe_sysroot[rdeptask] = "do_unpack" diff --git a/meta-xilinx-standalone-experimental/recipes-kernel/lopper/device-tree-lops.bb b/meta-xilinx-standalone-experimental/recipes-kernel/lopper/device-tree-lops.bb new file mode 100644 index 00000000..2287218b --- /dev/null +++ b/meta-xilinx-standalone-experimental/recipes-kernel/lopper/device-tree-lops.bb @@ -0,0 +1,78 @@ +SUMMARY = "Device tree lops" +SECTION = "bootloader" +LICENSE = "BSD-3-Clause" +DEPENDS += "lopper-native" + +INHIBIT_DEFAULT_DEPS = '1' + +inherit deploy +inherit python3native + +ESW_MACHINE ?= "${MACHINE}" + +DTB_FILE = "${ESW_MACHINE}-system.dtb" +DTS_FILE = "${ESW_MACHINE}-baremetal.dtb" + +COMPATIBLE_HOST = "^.*" + +LOPS_DIR = "${RECIPE_SYSROOT_NATIVE}/usr/share/lopper/lops" + +# All microblaze +do_compile_microblaze_xilinx-standalone() { + LOPPER_DTC_FLAGS="-b 0 -@" lopper.py -f ${SYSTEM_DTFILE} ${B}/${DTS_FILE} +} + +# All Cortex R5 +do_compile_append_armrm_xilinx-standalone() { + LOPPER_DTC_FLAGS="-b 0 -@" lopper.py -f --enhanced -i ${LOPS_DIR}/lop-r5-imux.dts ${SYSTEM_DTFILE} ${B}/${DTS_FILE} +} + +# Only ZynqMP & Cortex A53 (baremetal) +do_compile_append_zynqmp_aarch64_xilinx-standalone() { + LOPPER_DTC_FLAGS="-b 0 -@" lopper.py -f --enhanced -i ${LOPS_DIR}/lop-a53-imux.dts ${SYSTEM_DTFILE} ${B}/${DTS_FILE} +} + +# Only ZynqMP & Cortex A53 (Linux) +do_compile_append_zynqmp_aarch64_linux() { + LOPPER_DTC_FLAGS="-b 0 -@" lopper.py -f --enhanced -i ${LOPS_DIR}/lop-a53-imux.dts -i ${LOPS_DIR}/lop-domain-linux-a53.dts ${SYSTEM_DTFILE} ${B}/${DTB_FILE} +} + +# Only Versal and Cortex A72 (baremetal) +do_compile_append_versal_aarch64_xilinx-standalone() { + LOPPER_DTC_FLAGS="-b 0 -@" lopper.py -f --enhanced -i ${LOPS_DIR}/lop-a72-imux.dts ${SYSTEM_DTFILE} ${B}/${DTS_FILE} +} + +do_compile_append_versal_aarch64_linux() { + LOPPER_DTC_FLAGS="-b 0 -@" lopper.py -f --enhanced -i ${LOPS_DIR}/lop-a72-imux.dts -i ${LOPS_DIR}/lop-domain-a72.dts ${SYSTEM_DTFILE} ${B}/${DTB_FILE} +} + +do_install() { + : +} + +PACKAGES = "" + +do_fetch[noexec] = "1" +do_unpack[noexec] = "1" +do_patch[noexec] = "1" +do_configure[noexec] = "1" +do_install[noexec] = "1" +deltask do_populate_lic +deltask do_populate_sysroot +deltask do_pacakge +deltask do_package_qa +deltask do_packagedata +deltask do_package_write_ipk +deltask do_package_write_deb +deltask do_package_write_rpm + +# Linux +do_deploy() { + install -Dm 0644 ${B}/${DTB_FILE} ${DEPLOYDIR}/${DTB_FILE} +} + +# Baremetal +do_deploy_xilinx-standalone() { + install -Dm 0644 ${B}/${DTS_FILE} ${DEPLOYDIR}/${DTS_FILE} +} +addtask deploy before do_build after do_install diff --git a/meta-xilinx-standalone-experimental/recipes-libraries/freertos10-xilinx_git.bb b/meta-xilinx-standalone-experimental/recipes-libraries/freertos10-xilinx_git.bb index 870524d2..a722b4da 100644 --- a/meta-xilinx-standalone-experimental/recipes-libraries/freertos10-xilinx_git.bb +++ b/meta-xilinx-standalone-experimental/recipes-libraries/freertos10-xilinx_git.bb @@ -3,10 +3,11 @@ inherit esw python3native ESW_COMPONENT_SRC = "/ThirdParty/bsp/freertos10_xilinx/src/" ESW_COMPONENT_NAME = "libfreertos.a" -DEPENDS += "libxil xilstandalone xilmem dtc-native python3-pyyaml-native python3-dtc-native xiltimer" +DEPENDS += "libxil xilstandalone xilmem xiltimer" do_configure_prepend() { # This script should also not rely on relative paths and such cd ${S} - nativepython3 ${S}/scripts/lib_parser.py -d ${DTBFILE} -o ${OECMAKE_SOURCEPATH} + lopper.py ${DTS_FILE} -- bmcmake_metadata_xlnx.py ${S}/${ESW_COMPONENT_SRC} hwcmake_metadata ${S} + install -m 0755 *.cmake ${S}/${ESW_COMPONENT_SRC}/ } diff --git a/meta-xilinx-standalone-experimental/recipes-libraries/libxil_git.bb b/meta-xilinx-standalone-experimental/recipes-libraries/libxil_git.bb index 4ac7c115..9e8680a0 100644 --- a/meta-xilinx-standalone-experimental/recipes-libraries/libxil_git.bb +++ b/meta-xilinx-standalone-experimental/recipes-libraries/libxil_git.bb @@ -1,27 +1,31 @@ -inherit esw python3native +inherit esw python3native features_check + +require conf/${ESW_MACHINE}-libxil.conf ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/" ESW_COMPONENT_NAME = "libxil.a" -DEPENDS += "dtc-native python3-dtc-native python3-pyyaml-native xilstandalone xilmem device-tree" +DEPENDS += "xilstandalone xilmem" +REQUIRED_DISTRO_FEATURES = "${DISTRO_FEATURES}" +PACKAGECONFIG ?= "${DISTRO_FEATURES} ${MACHINE_FEATURES}" do_configure_prepend() { - # This will generate CMakeLists.txt which contains - # drivers for the libxil - cd ${S} - #TODO - # This call was initially used to get the list of drivers and libraries required - # by the design to the build system to use as dependencies to the application - # being built, at this point this is all done in a single cmake build bundling - # everything in libxil, which is undesired. - DRIVERS_LIST=$(nativepython3 ${S}/scripts/getdrvlist.py -d ${DTBFILE}) + LOPPER_DTC_FLAGS="-b 0 -@" lopper.py ${DTS_FILE} -- baremetal_xparameters_xlnx.py ${ESW_MACHINE} ${S} + install -m 0755 xparameters.h ${S}/${ESW_COMPONENT_SRC}/ } -do_generate_driver_data() { - # This script should also not rely on relative paths and such - cd ${S} - nativepython3 ${S}/scripts/generate_drvdata.py -d ${DTBFILE} +do_compile() { + # Combines the .a archives produced by all of the dependent items + cd ${RECIPE_SYSROOT}/usr/lib/ + echo create libxil.a > libxil.mri + for each in ${REQUIRED_DISTRO_FEATURES}; do + each=$(echo $each | sed 's/-/_/g') + if [ -e lib$each.a ]; then + echo addlib lib$each.a >> libxil.mri + fi + done + echo “save” >> libxil.mri + echo “end” >> libxil.mri + ${AR} -M