├── .gitignore ├── recipes-core ├── busybox │ ├── busybox │ │ ├── nc.cfg │ │ ├── tftpd.cfg │ │ ├── hexdump.cfg │ │ ├── ftp.cfg │ │ ├── ftpd.cfg │ │ ├── telnetd.cfg │ │ ├── inetd.cfg │ │ ├── petalinux.cfg │ │ └── httpd.cfg │ ├── busybox_1.%.bbappend │ └── files │ │ └── inetd.conf ├── meta │ ├── buildtools-tarball.bbappend │ ├── buildtools-extended-tarball.bbappend │ ├── meta-createrepo.bb │ ├── meta-environment.bbappend │ ├── buildtools.inc │ └── meta-xilinx-toolchain.bb ├── readline │ └── readline_%.bbappend ├── base-files │ ├── files │ │ └── xilinx.sh │ ├── base-files_%.bbappend │ ├── base-files-board-variant.bb │ ├── base-files-board.bb │ ├── base-files-soc.bb │ └── base-files-plnx.bb ├── packagegroups │ ├── nativesdk-packagegroup-sdk-host.bbappend │ ├── packagegroup-core-tools-profile.bbappend │ ├── packagegroup-petalinux-v4lutils.bb │ ├── packagegroup-petalinux-networking-debug.bb │ ├── packagegroup-petalinux-display-debug.bb │ ├── packagegroup-cross-canadian.bbappend │ ├── packagegroup-petalinux-self-hosted.bb │ ├── packagegroup-newlib-standalone-sdk-target.bb │ ├── packagegroup-petalinux-runx.bb │ ├── packagegroup-petalinux-tpm.bb │ ├── packagegroup-petalinux-lmsensors.bb │ ├── packagegroup-petalinux-utils.bb │ ├── packagegroup-petalinux-networking-stack.bb │ ├── packagegroup-petalinux-python-modules.bb │ ├── packagegroup-petalinux-benchmarks.bb │ ├── packagegroup-petalinux-mraa.bb │ ├── packagegroup-petalinux-jupyter.bb │ ├── packagegroup-petalinux-opencv.bb │ ├── packagegroup-petalinux-audio.bb │ ├── nativesdk-packagegroup-protobuf-sdk-host.bb │ ├── packagegroup-petalinux-multimedia.bb │ ├── packagegroup-petalinux-x11.bb │ ├── packagegroup-petalinux-gstreamer.bb │ ├── packagegroup-petalinux-qt.bb │ ├── packagegroup-petalinux-weston.bb │ ├── packagegroup-petalinux-ocicontainers.bb │ ├── packagegroup-petalinux-xen.bb │ ├── packagegroup-petalinux-ultra96-webapp.bb │ ├── packagegroup-petalinux-96boards-sensors.bb │ ├── packagegroup-petalinux.bb │ ├── packagegroup-petalinux-vitis-acceleration.bb │ ├── packagegroup-self-hosted.bbappend │ ├── packagegroup-petalinux-matchbox.bb │ ├── packagegroup-petalinux-qt-extended.bb │ └── packagegroup-petalinux-openamp.bb ├── images │ ├── petalinux-image-minimal.bb │ ├── petalinux-image-full.bb │ ├── core-image-tiny-initramfs.bbappend │ ├── core-image-minimal-initramfs.bbappend │ └── petalinux-initramfs-image.bb ├── udev │ ├── eudev │ │ ├── 99-SOM-applications.rules │ │ └── 11-sd-cards-auto-mount.rules │ └── eudev_%.bbappend ├── systemd │ ├── systemd-conf_%.bbappend │ └── systemd_%.bbappend ├── init-ifupdown │ └── init-ifupdown_%.bbappend ├── newlib │ ├── newlib_%.bbappend │ └── libgloss_4.%.bbappend ├── sysvinit │ └── sysvinit-inittab_%.bbappend ├── dropbear │ └── dropbear_%.bbappend └── initrdscripts │ └── plnx-initramfs-framework │ ├── udhcpc │ ├── functions │ ├── e2fs │ └── searche2fs ├── recipes-devtools ├── gdb │ └── gdb_%.bbappend ├── qemu │ ├── qemu-native_%.bbappend │ ├── qemu-system-native_%.bbappend │ ├── qemu-xilinx-native_%.bbappend │ ├── qemu-xilinx-system-native_%.bbappend │ ├── qemu-tpm.inc │ ├── qemu-xilinx_%.bbappend │ ├── qemu_%.bbappend │ └── qemu │ │ ├── 0013-arm-xenpv-fix-TPM-address-print-warning.patch │ │ ├── 0011-meson.build-do-not-set-have_xen_pci_passthrough-for-.patch │ │ ├── 0008-hw-arm-Add-grant-mapping.patch │ │ ├── 0001-xen-pt-fix-syntax-error-that-causes-FTBFS-in-some-co.patch │ │ ├── 0007-xen-mapcache-Fix-build-on-Arm.patch │ │ ├── 0007-xen-skip-ioreq-creation-on-ioreq-registration-failur.patch │ │ └── 0008-accel-xen-xen-all-export-xenstore_record_dm_state.patch ├── diffstat │ └── diffstat_%.bbappend ├── kconfig-frontends │ └── kconfig-frontends_%.bbappend ├── mtd │ ├── mtd-utils_%.bbappend │ └── files │ │ └── 0001-Update-mkfs.jffs-to-support-4K-erase-block.patch ├── gcc │ ├── gcc-cross_%.bbappend │ ├── gcc-source_12.%.bbappend │ ├── gcc-cross-canadian_%.bbappend │ ├── mb-convert-head.sh │ ├── gcc-xilinx-standalone-multilib.inc │ ├── gcc-runtime_%.bbappend │ └── riscv-convert.sh ├── binutils │ └── binutils-cross-canadian%.bbappend └── python │ └── python3-links.bb ├── recipes-gnome └── epiphany │ └── epiphany_%.bbappend ├── recipes-support ├── gnupg │ └── gnupg_%.bbappend ├── npth │ └── npth_%.bbappend ├── libksba │ └── libksba_%.bbappend ├── pinentry │ └── pinentry_%.bbappend ├── ntp │ ├── ntp_%.bbappend │ └── files │ │ └── ntp.conf ├── libgcrypt │ └── libgcrypt_%.bbappend └── opencv │ └── opencv_%.bbappend ├── recipes-daemons ├── tftp-hpa │ └── tftp-hpa_%.bbappend └── ospi-dm │ ├── files │ ├── ov-start.sh │ ├── ov-start.service │ └── ospi-versal.sh │ └── ospi-dm.bb ├── recipes-dbs └── mongodb │ └── mongodb_%.bbappend ├── recipes-qt └── qt5 │ ├── qtwebengine_%.bbappend │ ├── qtmultimedia_%.bbappend │ ├── qtwebkit_%.bbappend │ ├── qtwayland │ ├── 0002-Handle-maximize-minimize-fullscreen-in-xdg_shell_v6.patch │ ├── 0001-qwaylandwindow.cpp-Do-not-destroy-shell-suface-befor.patch │ ├── 0003-qwaylandeglwindow.cpp-Bind-the-context-before-callin.patch │ └── 0001-Fix-regression-in-QWaylandGlContext-makeCurrent-for-.patch │ ├── qtwayland_%.bbappend │ └── qtbase │ └── 0003-qkmsdevice.cpp-Disable-hw-cursor-as-a-default-option.patch ├── recipes-extended ├── tcp-wrappers │ └── tcp-wrappers_%.bbappend ├── tzdata │ └── tzdata%.bbappend ├── procps │ └── procps_%.bbappend ├── sysklogd │ ├── sysklogd_%.bbappend │ └── files │ │ └── enable-kernel-to-console.patch ├── xen │ ├── files │ │ ├── example-simple.cfg │ │ ├── example-pvnet.cfg │ │ ├── example-passnet.cfg │ │ └── passthrough-example-part.dts │ ├── xen-xilinx.inc │ ├── xen-tools_4.17.bb │ ├── xen-arch.inc │ ├── xen_4.17.bb │ ├── xen-tools_%.bbappend │ └── xen_%.bbappend ├── image-builder │ ├── image-builder_2023.1.bb │ ├── image-builder_2023.2.bb │ └── image-builder.inc └── iputils │ └── iputils_%.bbappend ├── recipes-multimedia ├── gstreamer-1.0 │ └── gst-shark_git.bbappend ├── faad │ └── faad2_2.%.bbappend ├── gstreamer │ ├── gstreamer1.0-libav_1.20.5.bbappend │ ├── gstreamer1.0-python_1.20.5.bbappend │ ├── gstreamer1.0-vaapi_1.20.5.bbappend │ ├── gstreamer1.0-rtsp-server_1.20.5.bbappend │ ├── gstreamer1.0-plugins-ugly_1.20.5.bbappend │ ├── gst-devtools_1.20.5.bbappend │ ├── gstreamer1.0-plugins-good_1.20.5.bbappend │ ├── gstreamer-multimedia-notebooks_0.1.inc │ ├── gstreamer1.0-plugins-base_1.20.5.bbappend │ ├── gstreamer1.0-plugins-bad_1.20.5.bbappend │ ├── gstreamer-vdu-notebooks_0.1.bb │ ├── gstreamer1.0_1.20.5.bbappend │ ├── gstreamer-vcu-notebooks_0.1.bb │ ├── gst-perf_1.0.bb │ ├── gstreamer-vdu-examples_0.1.bb │ ├── gstreamer-vcu-examples_0.1.bb │ ├── gst-interpipes_v1.1.8.bb │ └── gstreamer-xilinx-1.20.5.inc ├── v4l2apps │ ├── v4l-utils_%.bbappend │ └── yavta_%.bbappend ├── faac │ └── faac_1.29.%.bbappend ├── pulseaudio │ ├── pulseaudio_%.bbappend │ └── pulseaudio │ │ └── 0001-default.pai.in-disable-tsched-system-timer-based-mod.patch └── sample-content │ ├── bigbuckbunny-2160p30.bb │ └── bigbuckbunny-2160p60.bb ├── recipes-graphics ├── wayland │ └── weston-init%.bbappend ├── xinput-calibrator │ └── xinput-calibrator_git.bbappend ├── xorg-xserver │ └── xserver-xorg_%.bbappend └── drm │ ├── libdrm_%.bbappend │ └── files │ ├── 0004-modetest-fix-smpte-colour-pattern-issue-for-XV20-and.patch │ └── 0001-PATCH-libdrm-Update-drm-header-file-with-XV15-and-XV.patch ├── recipes-kernel └── linux-xlnx │ ├── linux-xlnx │ └── uevent.cfg │ └── linux-xlnx_%.bbappend ├── recipes-utils ├── start-jupyternb │ └── start-jupyternb │ │ ├── jupyter-variables.sh │ │ ├── jupyter_notebook_config.py │ │ ├── jupyter-setup.service │ │ ├── jupyter-setup-ultra96.service │ │ ├── jupyter_notebook_ultra96_config.py │ │ └── start-jupyter.sh ├── ultra96-startup-pages │ └── files │ │ ├── ultra96-startup-commands.sh │ │ ├── ultra96-startup-page.service │ │ └── ultra96-startup-page.sh ├── start-jupyterlab │ └── start-jupyterlab │ │ ├── overrides.json │ │ ├── jupyter_server_config.py │ │ ├── jupyter-setup.service │ │ └── start-jupyter.sh ├── archconfig │ ├── files │ │ ├── archconfig.service │ │ └── archconfig.sh │ └── archconfig.bb ├── ultra96-ap-setup │ ├── files │ │ ├── udhcpd.conf │ │ ├── wpa_ap.conf │ │ ├── ultra96-ap-setup.service │ │ └── ultra96-ap-setup.sh │ └── ultra96-ap-setup_1.0.bb ├── avrdude │ ├── avrdude_6.3.bb │ └── avrdude.inc ├── power-button-handler │ ├── files │ │ ├── Makefile │ │ └── ultra96-power-button.sh │ └── ultra96-power-button_1.0.bb ├── ace-cloud-editor │ └── ace-cloud-editor_%.bbappend └── sensor-mezzanine-examples │ └── files │ ├── 0001-upgrade-humid-temp-examples-to-latest-python3-versio.patch │ ├── 0003-rgb_lcd-Modify-demo-to-run-with-python3.patch │ └── 0005-touch_switch.cpp-Connect-the-touch-sensor-to-differe.patch ├── dynamic-layers ├── xilinx-standalone-exp │ └── recipes-core │ │ └── meta │ │ ├── buildtools-tarball.bbappend │ │ ├── buildtools-extended-tarball.bbappend │ │ └── buildtools-std-exp.inc ├── xilinx-core │ ├── recipes-bsp │ │ ├── device-tree │ │ │ ├── files │ │ │ │ └── system-user.dtsi │ │ │ └── device-tree.bbappend │ │ └── u-boot │ │ │ ├── u-boot-xlnx │ │ │ └── platform-top.h │ │ │ └── u-boot-xlnx_%.bbappend │ └── recipes-kernel │ │ └── linux │ │ └── linux-xlnx_%.bbappend ├── provenrun │ └── recipes-core │ │ └── images │ │ ├── petalinux-image-full.bbappend │ │ ├── petalinux-image-minimal.bbappend │ │ ├── petalinux-image-everything.bbappend │ │ └── petalinux-image-common-provencore.inc ├── xilinx-tools │ └── recipes-bsp │ │ ├── uboot-device-tree │ │ ├── files │ │ │ └── system-user.dtsi │ │ └── uboot-device-tree.bbappend │ │ └── fsboot │ │ └── fs-boot_%.bbappend └── meta-mingw │ └── recipes-devtools │ └── gcc │ └── gcc-runtime_%.bbappend ├── recipes-connectivity ├── ultra96-wlan0-config │ ├── ultra96-wlan0-config │ │ ├── wlan0.network │ │ └── wpa_supplicant-wlan0.conf │ └── ultra96-wlan0-config.bb └── wolfssl │ └── wolfssl_%.bbappend ├── conf ├── distro │ └── include │ │ ├── petalinux-mirrors.conf │ │ ├── petalinux-feed.conf │ │ └── petalinux-version.conf ├── machine │ ├── include │ │ └── baremetal-tc.conf │ └── aarch64-tc.conf └── templates │ └── default │ ├── conf-notes.txt │ ├── site.conf.sample │ └── bblayers.conf.sample ├── recipes-sato └── webkitgtk │ └── webkitgtk_2.4%.bbappend ├── recipes-examples ├── openamp │ ├── openamp-demo-notebooks │ │ ├── pics │ │ │ ├── apu-start-rpu.png │ │ │ └── ampLinuxBMrtos.png │ │ └── LICENSE │ └── openamp-demo-notebooks_0.1.bb ├── gpio-demo │ ├── files │ │ └── Makefile │ └── gpio-demo.bb ├── peekpoke │ ├── files │ │ └── Makefile │ └── peekpoke.bb ├── hellopm │ ├── hellopm_2023.1.bb │ └── hellopm_2023.2.bb └── pm-notebooks │ ├── pm-notebooks_1.0.bb │ └── files │ └── LICENSE ├── recipes-apps ├── resize-partition │ ├── files │ │ ├── resize-partition.service │ │ └── resize-partition.sh │ └── resize-partition.bb ├── sdfec │ └── sdfec_1.1.bb ├── resize-part │ └── resize-part.bb └── image-update │ └── image-update_1.0.bb ├── recipes-bsp ├── rfdc-examples │ ├── rfdc-intr_2023.1.bb │ ├── rfdc-intr_2023.2.bb │ ├── rfdc-selftest_2023.1.bb │ ├── rfdc-selftest_2023.2.bb │ ├── rfdc-read-write_2023.1.bb │ ├── rfdc-read-write_2023.2.bb │ └── rfdc-examples.inc ├── rfdc │ ├── rfdc_2023.1.bb │ └── rfdc_2023.2.bb ├── dfeccf │ ├── dfeccf_2023.1.bb │ └── dfeccf_2023.2.bb ├── dfeequ │ ├── dfeequ_2023.1.bb │ └── dfeequ_2023.2.bb ├── dfemix │ ├── dfemix_2023.1.bb │ └── dfemix_2023.2.bb ├── dfeofdm │ ├── dfeofdm_2023.1.bb │ └── dfeofdm_2023.2.bb ├── dfeprach │ ├── dfeprach_2023.1.bb │ └── dfeprach_2023.2.bb └── rfclk │ ├── rfclk_2023.1.bb │ └── rfclk_2023.2.bb ├── classes ├── deprecate.bbclass ├── jupyter-examples.bbclass ├── plnx-mirrors.bbclass ├── plnx-sanity-meta-petalinux.bbclass ├── plnx-externalsrc.bbclass ├── plnx-useradd-sudoers.bbclass └── plnx-parse-recipes.bbclass ├── oe-core └── meta │ ├── classes │ └── metadata_scm.bbclass │ └── classes-recipe │ └── rootfs-postcommands.bbclass ├── files └── plnx_dev_table.txt ├── recipes-benchmarks └── glmark2 │ ├── glmark2_%.bbappend │ └── files │ ├── 0001-src-gl-state-egl-Use-native_display-to-load-EGL-func.patch │ └── 0001-Make-RGB565-as-default-EGLconfig.patch ├── lib └── devtool │ └── exclude_pkgs.json └── COPYING.MIT /.gitignore: -------------------------------------------------------------------------------- 1 | *.pyc 2 | -------------------------------------------------------------------------------- /recipes-core/busybox/busybox/nc.cfg: -------------------------------------------------------------------------------- 1 | CONFIG_NC=y 2 | -------------------------------------------------------------------------------- /recipes-core/busybox/busybox/tftpd.cfg: -------------------------------------------------------------------------------- 1 | CONFIG_TFTPD=y 2 | -------------------------------------------------------------------------------- /recipes-devtools/gdb/gdb_%.bbappend: -------------------------------------------------------------------------------- 1 | PACKAGECONFIG:append = " tui" 2 | -------------------------------------------------------------------------------- /recipes-devtools/qemu/qemu-native_%.bbappend: -------------------------------------------------------------------------------- 1 | require qemu-tpm.inc 2 | -------------------------------------------------------------------------------- /recipes-gnome/epiphany/epiphany_%.bbappend: -------------------------------------------------------------------------------- 1 | DEPENDS += "libsecret" 2 | -------------------------------------------------------------------------------- /recipes-support/gnupg/gnupg_%.bbappend: -------------------------------------------------------------------------------- 1 | BBCLASSEXTEND += "nativesdk" 2 | -------------------------------------------------------------------------------- /recipes-support/npth/npth_%.bbappend: -------------------------------------------------------------------------------- 1 | BBCLASSEXTEND += "nativesdk" 2 | -------------------------------------------------------------------------------- /recipes-daemons/tftp-hpa/tftp-hpa_%.bbappend: -------------------------------------------------------------------------------- 1 | BBCLASSEXTEND = "nativesdk" 2 | -------------------------------------------------------------------------------- /recipes-dbs/mongodb/mongodb_%.bbappend: -------------------------------------------------------------------------------- 1 | PACKAGECONFIG:remove = "tcmalloc" 2 | -------------------------------------------------------------------------------- /recipes-devtools/diffstat/diffstat_%.bbappend: -------------------------------------------------------------------------------- 1 | BBCLASSEXTEND += "nativesdk" 2 | -------------------------------------------------------------------------------- /recipes-devtools/qemu/qemu-system-native_%.bbappend: -------------------------------------------------------------------------------- 1 | require qemu-tpm.inc 2 | -------------------------------------------------------------------------------- /recipes-devtools/qemu/qemu-xilinx-native_%.bbappend: -------------------------------------------------------------------------------- 1 | require qemu-tpm.inc 2 | -------------------------------------------------------------------------------- /recipes-support/libksba/libksba_%.bbappend: -------------------------------------------------------------------------------- 1 | BBCLASSEXTEND += "nativesdk" 2 | -------------------------------------------------------------------------------- /recipes-support/pinentry/pinentry_%.bbappend: -------------------------------------------------------------------------------- 1 | BBCLASSEXTEND += "nativesdk" 2 | -------------------------------------------------------------------------------- /recipes-devtools/qemu/qemu-xilinx-system-native_%.bbappend: -------------------------------------------------------------------------------- 1 | require qemu-tpm.inc 2 | -------------------------------------------------------------------------------- /recipes-qt/qt5/qtwebengine_%.bbappend: -------------------------------------------------------------------------------- 1 | PACKAGECONFIG:append = " ffmpeg opus" 2 | -------------------------------------------------------------------------------- /recipes-extended/tcp-wrappers/tcp-wrappers_%.bbappend: -------------------------------------------------------------------------------- 1 | BBCLASSEXTEND = "nativesdk" 2 | -------------------------------------------------------------------------------- /recipes-extended/tzdata/tzdata%.bbappend: -------------------------------------------------------------------------------- 1 | DEFAULT_TIMEZONE = "America/Los_Angeles" 2 | -------------------------------------------------------------------------------- /recipes-support/ntp/ntp_%.bbappend: -------------------------------------------------------------------------------- 1 | FILESEXTRAPATHS:prepend := "${THISDIR}/files:" 2 | -------------------------------------------------------------------------------- /recipes-core/meta/buildtools-tarball.bbappend: -------------------------------------------------------------------------------- 1 | require recipes-core/meta/buildtools.inc 2 | -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer-1.0/gst-shark_git.bbappend: -------------------------------------------------------------------------------- 1 | DEPENDS += "pkgconfig-native" 2 | -------------------------------------------------------------------------------- /recipes-core/readline/readline_%.bbappend: -------------------------------------------------------------------------------- 1 | FILESEXTRAPATHS:prepend := "${THISDIR}/files:" 2 | 3 | -------------------------------------------------------------------------------- /recipes-devtools/kconfig-frontends/kconfig-frontends_%.bbappend: -------------------------------------------------------------------------------- 1 | BBCLASSEXTEND += "nativesdk" 2 | -------------------------------------------------------------------------------- /recipes-graphics/wayland/weston-init%.bbappend: -------------------------------------------------------------------------------- 1 | FILESEXTRAPATHS:prepend:zynqmp := "${THISDIR}/files:" 2 | -------------------------------------------------------------------------------- /recipes-core/base-files/files/xilinx.sh: -------------------------------------------------------------------------------- 1 | export PATH=/opt/xilinx/bin:${PATH}:/usr/local/sbin:/usr/sbin:/sbin 2 | -------------------------------------------------------------------------------- /recipes-kernel/linux-xlnx/linux-xlnx/uevent.cfg: -------------------------------------------------------------------------------- 1 | CONFIG_UEVENT_HELPER=y 2 | CONFIG_UEVENT_HELPER_PATH="" 3 | 4 | -------------------------------------------------------------------------------- /recipes-utils/start-jupyternb/start-jupyternb/jupyter-variables.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | export BOARD="PLACEHOLDER" 3 | -------------------------------------------------------------------------------- /dynamic-layers/xilinx-standalone-exp/recipes-core/meta/buildtools-tarball.bbappend: -------------------------------------------------------------------------------- 1 | require buildtools-std-exp.inc 2 | -------------------------------------------------------------------------------- /recipes-core/busybox/busybox/hexdump.cfg: -------------------------------------------------------------------------------- 1 | CONFIG_HEXDUMP=y 2 | CONFIG_FEATURE_HEXDUMP_REVERSE=y 3 | CONFIG_HD=y 4 | -------------------------------------------------------------------------------- /dynamic-layers/xilinx-core/recipes-bsp/device-tree/files/system-user.dtsi: -------------------------------------------------------------------------------- 1 | /include/ "system-conf.dtsi" 2 | / { 3 | }; 4 | -------------------------------------------------------------------------------- /recipes-core/busybox/busybox/ftp.cfg: -------------------------------------------------------------------------------- 1 | CONFIG_FTPGET=y 2 | CONFIG_FTPPUT=y 3 | CONFIG_FEATURE_FTPGETPUT_LONG_OPTIONS=y 4 | -------------------------------------------------------------------------------- /recipes-daemons/ospi-dm/files/ov-start.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | start-stop-daemon --start -b -x /usr/bin/ospi-versal.sh 4 | -------------------------------------------------------------------------------- /dynamic-layers/provenrun/recipes-core/images/petalinux-image-full.bbappend: -------------------------------------------------------------------------------- 1 | require petalinux-image-common-provencore.inc 2 | -------------------------------------------------------------------------------- /dynamic-layers/provenrun/recipes-core/images/petalinux-image-minimal.bbappend: -------------------------------------------------------------------------------- 1 | require petalinux-image-common-provencore.inc 2 | -------------------------------------------------------------------------------- /dynamic-layers/xilinx-standalone-exp/recipes-core/meta/buildtools-extended-tarball.bbappend: -------------------------------------------------------------------------------- 1 | require buildtools-std-exp.inc 2 | -------------------------------------------------------------------------------- /dynamic-layers/xilinx-tools/recipes-bsp/uboot-device-tree/files/system-user.dtsi: -------------------------------------------------------------------------------- 1 | /include/ "system-conf.dtsi" 2 | / { 3 | }; 4 | -------------------------------------------------------------------------------- /recipes-core/packagegroups/nativesdk-packagegroup-sdk-host.bbappend: -------------------------------------------------------------------------------- 1 | RDEPENDS:${PN}:append = "\ 2 | nativesdk-qemu \ 3 | " 4 | -------------------------------------------------------------------------------- /recipes-multimedia/faad/faad2_2.%.bbappend: -------------------------------------------------------------------------------- 1 | LIC_FILES_CHKSUM:append = " file://README;md5=0eee580528145c2bccaf37ed83c5c6c0" 2 | -------------------------------------------------------------------------------- /dynamic-layers/provenrun/recipes-core/images/petalinux-image-everything.bbappend: -------------------------------------------------------------------------------- 1 | require petalinux-image-common-provencore.inc 2 | -------------------------------------------------------------------------------- /recipes-core/busybox/busybox/ftpd.cfg: -------------------------------------------------------------------------------- 1 | CONFIG_FTPD=y 2 | CONFIG_FEATURE_FTP_WRITE=y 3 | CONFIG_FEATURE_FTPD_ACCEPT_BROKEN_LIST=y 4 | -------------------------------------------------------------------------------- /recipes-connectivity/ultra96-wlan0-config/ultra96-wlan0-config/wlan0.network: -------------------------------------------------------------------------------- 1 | [Match] 2 | Name=wlan0 3 | 4 | [Network] 5 | DHCP=ipv4 6 | -------------------------------------------------------------------------------- /recipes-core/busybox/busybox/telnetd.cfg: -------------------------------------------------------------------------------- 1 | CONFIG_TELNETD=y 2 | CONFIG_FEATURE_TELNETD_STANDALONE=y 3 | CONFIG_FEATURE_TELNETD_INETD_WAIT=y 4 | -------------------------------------------------------------------------------- /recipes-extended/procps/procps_%.bbappend: -------------------------------------------------------------------------------- 1 | do_configure:append() { 2 | echo "kernel.printk = 4 4 1 7" >> ${WORKDIR}/sysctl.conf 3 | } 4 | -------------------------------------------------------------------------------- /recipes-extended/sysklogd/sysklogd_%.bbappend: -------------------------------------------------------------------------------- 1 | FILESEXTRAPATHS:prepend := "${THISDIR}/files:" 2 | SRC_URI += "file://enable-kernel-to-console.patch" 3 | -------------------------------------------------------------------------------- /recipes-utils/ultra96-startup-pages/files/ultra96-startup-commands.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | python3 /usr/share/ultra96-startup-pages/webapp/webserver.py 4 | -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer/gstreamer1.0-libav_1.20.5.bbappend: -------------------------------------------------------------------------------- 1 | require gstreamer-xilinx-1.20.5.inc 2 | 3 | S = "${WORKDIR}/git/subprojects/gst-libav" 4 | -------------------------------------------------------------------------------- /recipes-extended/xen/files/example-simple.cfg: -------------------------------------------------------------------------------- 1 | name = "guest0" 2 | kernel = "/boot/Image" 3 | extra = "console=hvc0 rdinit=/sbin/init" 4 | memory = 256 5 | vcpus = 2 -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer/gstreamer1.0-python_1.20.5.bbappend: -------------------------------------------------------------------------------- 1 | require gstreamer-xilinx-1.20.5.inc 2 | 3 | S = "${WORKDIR}/git/subprojects/gst-python" 4 | 5 | -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer/gstreamer1.0-vaapi_1.20.5.bbappend: -------------------------------------------------------------------------------- 1 | require gstreamer-xilinx-1.20.5.inc 2 | 3 | S = "${WORKDIR}/git/subprojects/gstreamer-vaapi" 4 | -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer/gstreamer1.0-rtsp-server_1.20.5.bbappend: -------------------------------------------------------------------------------- 1 | require gstreamer-xilinx-1.20.5.inc 2 | 3 | S = "${WORKDIR}/git/subprojects/gst-rtsp-server" 4 | -------------------------------------------------------------------------------- /recipes-utils/start-jupyterlab/start-jupyterlab/overrides.json: -------------------------------------------------------------------------------- 1 | { 2 | "@jupyterlab/apputils-extension:themes": { 3 | "theme": "JupyterLab Dark" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /conf/distro/include/petalinux-mirrors.conf: -------------------------------------------------------------------------------- 1 | INHERIT += "own-mirrors" 2 | SOURCE_MIRROR_URL ?= "http://petalinux.xilinx.com/sswreleases/rel-v${XILINX_VER_MAIN}/downloads" 3 | -------------------------------------------------------------------------------- /recipes-core/images/petalinux-image-minimal.bb: -------------------------------------------------------------------------------- 1 | DESCRIPTION = "OSL image definition for Xilinx boards" 2 | LICENSE = "MIT" 3 | 4 | require petalinux-image-common.inc 5 | -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer/gstreamer1.0-plugins-ugly_1.20.5.bbappend: -------------------------------------------------------------------------------- 1 | require gstreamer-xilinx-1.20.5.inc 2 | 3 | S = "${WORKDIR}/git/subprojects/gst-plugins-ugly" 4 | -------------------------------------------------------------------------------- /recipes-connectivity/ultra96-wlan0-config/ultra96-wlan0-config/wpa_supplicant-wlan0.conf: -------------------------------------------------------------------------------- 1 | ctrl_interface=/var/run/wpa_supplicant 2 | ctrl_interface_group=0 3 | update_config=1 4 | -------------------------------------------------------------------------------- /recipes-devtools/mtd/mtd-utils_%.bbappend: -------------------------------------------------------------------------------- 1 | FILESEXTRAPATHS:prepend := "${THISDIR}/files:" 2 | SRC_URI:append = " file://0001-Update-mkfs.jffs-to-support-4K-erase-block.patch" 3 | -------------------------------------------------------------------------------- /recipes-extended/image-builder/image-builder_2023.1.bb: -------------------------------------------------------------------------------- 1 | BRANCH = "xlnx_rel_v2023.1" 2 | SRCREV = "37ba04b63cb2c01d8e683f31a9eb3878f1e80305" 3 | 4 | include image-builder.inc 5 | -------------------------------------------------------------------------------- /recipes-extended/image-builder/image-builder_2023.2.bb: -------------------------------------------------------------------------------- 1 | BRANCH = "xlnx_rel_v2023.2" 2 | SRCREV = "297a48f8635713a14469a92d49f7e292554dedc9" 3 | 4 | include image-builder.inc 5 | -------------------------------------------------------------------------------- /recipes-support/libgcrypt/libgcrypt_%.bbappend: -------------------------------------------------------------------------------- 1 | # Using amd64 assembly fails when building for mingw32 2 | EXTRA_OECONF:append:mingw32 = " --disable-amd64-as-feature-detection" 3 | -------------------------------------------------------------------------------- /recipes-multimedia/v4l2apps/v4l-utils_%.bbappend: -------------------------------------------------------------------------------- 1 | SRC_URI:append = " file://0001-v4l-utils-Add-support-for-new-media-bus-codes.patch" 2 | FILESEXTRAPATHS:prepend := "${THISDIR}/files:" 3 | -------------------------------------------------------------------------------- /recipes-daemons/ospi-dm/files/ov-start.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=ospi-versal 3 | 4 | [Service] 5 | ExecStart=/usr/bin/ospi-versal.sh 6 | 7 | [Install] 8 | WantedBy=multi-user.target 9 | -------------------------------------------------------------------------------- /recipes-extended/xen/files/example-pvnet.cfg: -------------------------------------------------------------------------------- 1 | name = "guest0" 2 | kernel = "/boot/Image" 3 | extra = "console=hvc0 rdinit=/sbin/init" 4 | memory = 256 5 | vcpus = 2 6 | vif = [ 'bridge=xenbr0' ] -------------------------------------------------------------------------------- /recipes-sato/webkitgtk/webkitgtk_2.4%.bbappend: -------------------------------------------------------------------------------- 1 | FILESEXTRAPATHS:prepend := "${THISDIR}/files:" 2 | SRC_URI:append = " file://0001-egl-GLContextEGL.cpp-Check-the-spported-EGL-version-.patch" 3 | -------------------------------------------------------------------------------- /recipes-utils/archconfig/files/archconfig.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=archconfig 3 | 4 | [Service] 5 | ExecStart=/usr/bin/archconfig.sh 6 | 7 | [Install] 8 | WantedBy=multi-user.target 9 | -------------------------------------------------------------------------------- /recipes-core/images/petalinux-image-full.bb: -------------------------------------------------------------------------------- 1 | DESCRIPTION = "An image containing the full set of packages in the Petalinux distro." 2 | LICENSE = "MIT" 3 | 4 | require petalinux-image-full.inc 5 | -------------------------------------------------------------------------------- /recipes-core/udev/eudev/99-SOM-applications.rules: -------------------------------------------------------------------------------- 1 | SUBSYSTEM=="i2c", DEVPATH=="*0-005*", RUN+="/bin/chown root:petalinux /sys$env{DEVPATH}/eeprom", RUN+="/bin/chmod 0640 /sys$env{DEVPATH}/eeprom" 2 | -------------------------------------------------------------------------------- /recipes-examples/openamp/openamp-demo-notebooks/pics/apu-start-rpu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xilinx/meta-petalinux/HEAD/recipes-examples/openamp/openamp-demo-notebooks/pics/apu-start-rpu.png -------------------------------------------------------------------------------- /recipes-graphics/xinput-calibrator/xinput-calibrator_git.bbappend: -------------------------------------------------------------------------------- 1 | do_install:append() { 2 | # Do not install the boot time auto launcher 3 | rm -rf ${D}${sysconfdir}/xdg/autostart 4 | } 5 | -------------------------------------------------------------------------------- /recipes-examples/openamp/openamp-demo-notebooks/pics/ampLinuxBMrtos.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xilinx/meta-petalinux/HEAD/recipes-examples/openamp/openamp-demo-notebooks/pics/ampLinuxBMrtos.png -------------------------------------------------------------------------------- /recipes-devtools/qemu/qemu-tpm.inc: -------------------------------------------------------------------------------- 1 | PACKAGECONFIG:append = "${@bb.utils.contains('DISTRO_FEATURES', 'tpm', ' tpm', '', d)}" 2 | 3 | PACKAGECONFIG[tpm] = "--enable-tpm,--disable-tpm,,swtpm libtpm" 4 | 5 | -------------------------------------------------------------------------------- /recipes-utils/ultra96-ap-setup/files/udhcpd.conf: -------------------------------------------------------------------------------- 1 | start 192.168.2.2 2 | end 192.168.2.254 3 | interface wlan1 4 | remaining yes 5 | opt subnet 255.255.255.0 6 | opt router 192.168.2.1 7 | opt lease 864000 8 | -------------------------------------------------------------------------------- /recipes-utils/start-jupyternb/start-jupyternb/jupyter_notebook_config.py: -------------------------------------------------------------------------------- 1 | c.NotebookApp.notebook_dir = '/usr/share/example-notebooks' 2 | c.NotebookApp.allow_root=True 3 | c.NotebookApp.open_browser=False 4 | 5 | 6 | -------------------------------------------------------------------------------- /recipes-devtools/gcc/gcc-cross_%.bbappend: -------------------------------------------------------------------------------- 1 | require gcc-xilinx-standalone-multilib.inc 2 | 3 | # We want to use the stock multilib configs, when available 4 | EXTRACONFFUNCS:xilinx-standalone:baremetal-multilib-tc = "" 5 | -------------------------------------------------------------------------------- /recipes-multimedia/faac/faac_1.29.%.bbappend: -------------------------------------------------------------------------------- 1 | HOMEPAGE = "http://www.audiocoding.com/faac.html" 2 | 3 | LICENSE_FLAGS = "commercial" 4 | LIC_FILES_CHKSUM:append = " file://README;md5=1b57f0cd75e553f79714e9894b23aabe" 5 | -------------------------------------------------------------------------------- /recipes-utils/avrdude/avrdude_6.3.bb: -------------------------------------------------------------------------------- 1 | require avrdude.inc 2 | 3 | SRC_URI[md5sum] = "58bb42049122cf80fe4f4d0ce36d92ee" 4 | SRC_URI[sha256sum] = "0f9f731b6394ca7795b88359689a7fa1fba818c6e1d962513eb28da670e0a196" 5 | 6 | -------------------------------------------------------------------------------- /recipes-utils/start-jupyterlab/start-jupyterlab/jupyter_server_config.py: -------------------------------------------------------------------------------- 1 | c.ServerApp.port = 8888 2 | c.ServerApp.iopub_data_rate_limit = 100000000 3 | c.ServerApp.allow_root=True 4 | c.ServerApp.open_browser=False 5 | 6 | -------------------------------------------------------------------------------- /recipes-core/meta/buildtools-extended-tarball.bbappend: -------------------------------------------------------------------------------- 1 | require recipes-core/meta/buildtools.inc 2 | 3 | TOOLCHAIN_HOST_TASK += "\ 4 | nativesdk-libyaml-dev \ 5 | nativesdk-zlib-dev \ 6 | nativesdk-ncurses-dev \ 7 | " 8 | -------------------------------------------------------------------------------- /recipes-core/systemd/systemd-conf_%.bbappend: -------------------------------------------------------------------------------- 1 | python () { 2 | if d.getVar('WITHIN_PLNX_FLOW') and d.getVar('SYSCONFIG_DIR'): 3 | d.prependVar('FILESEXTRAPATHS', '%s/systemd-conf:' % d.getVar('SYSCONFIG_DIR')) 4 | } 5 | -------------------------------------------------------------------------------- /recipes-core/init-ifupdown/init-ifupdown_%.bbappend: -------------------------------------------------------------------------------- 1 | python () { 2 | if d.getVar('WITHIN_PLNX_FLOW') and d.getVar('SYSCONFIG_DIR'): 3 | d.prependVar('FILESEXTRAPATHS', '%s/init-ifupdown:' % d.getVar('SYSCONFIG_DIR')) 4 | } 5 | -------------------------------------------------------------------------------- /recipes-devtools/gcc/gcc-source_12.%.bbappend: -------------------------------------------------------------------------------- 1 | # Add MicroBlaze Patches (only when using MicroBlaze) 2 | FILESEXTRAPATHS:append := ":${THISDIR}/gcc-12" 3 | SRC_URI += " \ 4 | file://additional-microblaze-multilibs.patch \ 5 | " 6 | -------------------------------------------------------------------------------- /recipes-devtools/qemu/qemu-xilinx_%.bbappend: -------------------------------------------------------------------------------- 1 | require qemu-tpm.inc 2 | require qemu-xen.inc 3 | 4 | # We do not want QEMU, on the target to be configured with OpenGL 5 | PACKAGECONFIG:remove:class-target:petalinux = "virglrenderer epoxy gtk+" 6 | -------------------------------------------------------------------------------- /recipes-extended/iputils/iputils_%.bbappend: -------------------------------------------------------------------------------- 1 | do_install:append() { 2 | if [ -e ${D}/bin/ping ]; then 3 | chmod u+rxs ${D}/bin/ping 4 | elif [ -e ${D}/${bindir}/ping ]; then 5 | chmod u+rxs ${D}/${bindir}/ping 6 | fi 7 | } 8 | -------------------------------------------------------------------------------- /recipes-utils/ultra96-startup-pages/files/ultra96-startup-page.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Start ultra96 python flask server 3 | 4 | [Service] 5 | ExecStart=/usr/bin/ultra96-startup-commands.sh 6 | 7 | [Install] 8 | WantedBy=multi-user.target 9 | -------------------------------------------------------------------------------- /recipes-core/newlib/newlib_%.bbappend: -------------------------------------------------------------------------------- 1 | # Fix for multilib newlib installations 2 | do_install:prepend:xilinx-standalone:baremetal-multilib-tc () { 3 | mkdir -p $(dirname ${D}${libdir}) 4 | mkdir -p $(dirname ${D}${includedir}) 5 | } 6 | 7 | -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer/gst-devtools_1.20.5.bbappend: -------------------------------------------------------------------------------- 1 | require gstreamer-xilinx-1.20.5.inc 2 | 3 | SRC_URI:append = " \ 4 | file://0001-connect-has-a-different-signature-on-musl.patch \ 5 | " 6 | 7 | S = "${WORKDIR}/git/subprojects/gst-devtools" 8 | -------------------------------------------------------------------------------- /recipes-utils/power-button-handler/files/Makefile: -------------------------------------------------------------------------------- 1 | LDFLAGS=-lmraa 2 | CFLAGS=-Wall -g -O3 3 | TARGETS=ultra96-power-button-check 4 | 5 | all: 6 | $(CXX) $(CFLAGS) ultra96-power-button-check.c -o $(TARGETS) $(LDFLAGS) 7 | clean: 8 | rm -f ${TARGETS} 9 | -------------------------------------------------------------------------------- /recipes-apps/resize-partition/files/resize-partition.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=resize-partition 3 | 4 | [Service] 5 | ExecStart=/usr/bin/resize-partition.sh 6 | StandardOutput=journal+console 7 | 8 | [Install] 9 | WantedBy=multi-user.target 10 | -------------------------------------------------------------------------------- /recipes-core/sysvinit/sysvinit-inittab_%.bbappend: -------------------------------------------------------------------------------- 1 | FILESEXTRAPATHS:prepend := "${THISDIR}/files:" 2 | 3 | USE_VT:microblaze ?= "0" 4 | 5 | # In order to support serial autologin, we need a real getty not busybox 6 | RDEPENDS:${PN} += "util-linux-agetty" 7 | -------------------------------------------------------------------------------- /recipes-core/packagegroups/packagegroup-core-tools-profile.bbappend: -------------------------------------------------------------------------------- 1 | RDEPENDS:${PN}:remove = "${LTTNGMODULES} ${LTTNGTOOLS}" 2 | RDEPENDS:${PN}:remove:microblaze = "systemtap icu" 3 | VALGRIND:microblaze = "" 4 | LTTNGUST:microblaze = "" 5 | PERF:microblaze = "" 6 | -------------------------------------------------------------------------------- /recipes-multimedia/v4l2apps/yavta_%.bbappend: -------------------------------------------------------------------------------- 1 | FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" 2 | SRC_URI:append = " \ 3 | file://0001-Add-support-for-3-planar-YUV444P-8bpc.patch \ 4 | file://0002-Add-support-3-planar-YUV-444-10bpc-pixel-format-in-c.patch \ 5 | " 6 | -------------------------------------------------------------------------------- /recipes-utils/ultra96-ap-setup/files/wpa_ap.conf: -------------------------------------------------------------------------------- 1 | ctrl_interface=/var/run/wpa_supplicant 2 | ctrl_interface_group=0 3 | update_config=1 4 | 5 | network={ 6 | ssid="Ultra96" 7 | mode=2 8 | key_mgmt=NONE 9 | frequency=2437 10 | } 11 | -------------------------------------------------------------------------------- /recipes-utils/ultra96-ap-setup/files/ultra96-ap-setup.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Enable Access point for Ultra96 3 | After=network.target 4 | 5 | [Service] 6 | Type=forking 7 | ExecStart=/usr/share/wpa_ap/ap.sh 8 | 9 | [Install] 10 | WantedBy=multi-user.target 11 | -------------------------------------------------------------------------------- /recipes-core/packagegroups/packagegroup-petalinux-v4lutils.bb: -------------------------------------------------------------------------------- 1 | DESCRIPTION = "PetaLinux packages to handle multimedia data" 2 | 3 | inherit packagegroup 4 | 5 | V4LUTILS_PACKAGES = " \ 6 | v4l-utils \ 7 | yavta \ 8 | " 9 | 10 | RDEPENDS:${PN} = "${V4LUTILS_PACKAGES}" 11 | -------------------------------------------------------------------------------- /recipes-utils/start-jupyternb/start-jupyternb/jupyter-setup.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=jupyter setup scripts 3 | Requires=network-online.target 4 | After=network-online.target 5 | 6 | [Service] 7 | ExecStart=/sbin/start-jupyter.sh 8 | 9 | [Install] 10 | WantedBy=default.target 11 | -------------------------------------------------------------------------------- /recipes-extended/xen/xen-xilinx.inc: -------------------------------------------------------------------------------- 1 | SRCREV = "970ab2e80a80cd5de7a36015657ed5576ddc7cb3" 2 | XEN_URI = "git://github.com/Xilinx/xen.git;protocol=https" 3 | XEN_BRANCH = "xlnx_rebase_4.17" 4 | 5 | PV .= "-xilinx+git${SRCPV}" 6 | 7 | DEPENDS += "image-builder-native" 8 | DEFAULT_PREFERENCE = "+1" 9 | -------------------------------------------------------------------------------- /recipes-utils/start-jupyterlab/start-jupyterlab/jupyter-setup.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=jupyter setup scripts 3 | Requires=network-online.target 4 | After=network-online.target 5 | 6 | [Service] 7 | ExecStart=/sbin/start-jupyter.sh 8 | 9 | [Install] 10 | WantedBy=default.target 11 | -------------------------------------------------------------------------------- /recipes-core/busybox/busybox/inetd.cfg: -------------------------------------------------------------------------------- 1 | CONFIG_INETD=y 2 | CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_ECHO=y 3 | CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_DISCARD=y 4 | CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_TIME=y 5 | CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_DAYTIME=y 6 | CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_CHARGEN=y 7 | -------------------------------------------------------------------------------- /recipes-core/packagegroups/packagegroup-petalinux-networking-debug.bb: -------------------------------------------------------------------------------- 1 | DESCRIPTION = "PetaLinux packages to debug network related issues" 2 | 3 | inherit packagegroup 4 | 5 | NETWORKING_DEBUG_PACKAGES = " \ 6 | tcpdump \ 7 | wireshark \ 8 | " 9 | 10 | RDEPENDS:${PN} = "${NETWORKING_DEBUG_PACKAGES}" 11 | -------------------------------------------------------------------------------- /recipes-devtools/qemu/qemu_%.bbappend: -------------------------------------------------------------------------------- 1 | require qemu-tpm.inc 2 | # Disable qemu-xen settings, these have not been ported to the latest version. 3 | #require qemu-xen.inc 4 | 5 | # We do not want QEMU, on the target to be configured with OpenGL 6 | PACKAGECONFIG:remove:class-target:petalinux = "virglrenderer epoxy gtk+" 7 | -------------------------------------------------------------------------------- /recipes-examples/gpio-demo/files/Makefile: -------------------------------------------------------------------------------- 1 | APP = gpio-demo 2 | 3 | # Add any other object files to this list below 4 | APP_OBJS = gpio-demo.o 5 | 6 | all: $(APP) 7 | 8 | $(APP): $(APP_OBJS) 9 | $(CC) $(LDFLAGS) -o $@ $(APP_OBJS) $(LDLIBS) 10 | 11 | clean: 12 | -rm -f $(APP) *.elf *.gdb *.o 13 | 14 | 15 | -------------------------------------------------------------------------------- /conf/distro/include/petalinux-feed.conf: -------------------------------------------------------------------------------- 1 | PACKAGE_FEED_URIS ?= "http://petalinux.xilinx.com/sswreleases/rel-v${@d.getVar('XILINX_VER_MAIN').split('.')[0]}/generic/rpm" 2 | 3 | # Package feed names always use '_', while ARCH names might include - 4 | PACKAGE_FEED_ARCHS ?= "${@d.getVar('PACKAGE_ARCHS').replace('-','_')}" 5 | 6 | -------------------------------------------------------------------------------- /conf/machine/include/baremetal-tc.conf: -------------------------------------------------------------------------------- 1 | # This is specific to baremetal toolchains only. 2 | # 3 | # Some of the operations we want to do are different then regular Yocto 4 | # Project SDK workflows, so wrap baremetal toolchain items in a custom 5 | # override: 6 | 7 | MACHINEOVERRIDES:append = ":baremetal-multilib-tc" 8 | -------------------------------------------------------------------------------- /recipes-core/images/core-image-tiny-initramfs.bbappend: -------------------------------------------------------------------------------- 1 | # BSPs use IMAGE_FSTYPES: which would override 2 | # an assignment to IMAGE_FSTYPES so we need anon python 3 | IMAGE_FSTYPES:forcevariable = "${INITRAMFS_FSTYPES}" 4 | python () { 5 | d.setVar("IMAGE_FSTYPES", d.getVar("INITRAMFS_FSTYPES")) 6 | } 7 | -------------------------------------------------------------------------------- /recipes-extended/xen/files/example-passnet.cfg: -------------------------------------------------------------------------------- 1 | name = "guest0" 2 | kernel = "/boot/Image" 3 | extra = "console=hvc0 rdinit=/sbin/init" 4 | memory = 256 5 | vcpus = 2 6 | dtdev = [ "/amba/ethernet@ff0e0000" ] 7 | device_tree = "/etc/xen/passthrough-example-part.dtb" 8 | irqs = [ 95 ] 9 | iomem = [ "0xff0e0,1" ] 10 | -------------------------------------------------------------------------------- /recipes-core/images/core-image-minimal-initramfs.bbappend: -------------------------------------------------------------------------------- 1 | # BSPs use IMAGE_FSTYPES: which would override 2 | # an assignment to IMAGE_FSTYPES so we need anon python 3 | IMAGE_FSTYPES:forcevariable = "${INITRAMFS_FSTYPES}" 4 | python () { 5 | d.setVar("IMAGE_FSTYPES", d.getVar("INITRAMFS_FSTYPES")) 6 | } 7 | -------------------------------------------------------------------------------- /dynamic-layers/meta-mingw/recipes-devtools/gcc/gcc-runtime_%.bbappend: -------------------------------------------------------------------------------- 1 | FILES:libquadmath:append:mingw32 = "\ 2 | ${bindir}/libquadmath-0.dll \ 3 | " 4 | FILES:libquadmath-staticdev:append:mingw32 = "\ 5 | ${libdir}/libquadmath.dll.a \ 6 | " 7 | -------------------------------------------------------------------------------- /recipes-apps/resize-partition/files/resize-partition.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Expand the sd card partition to 100% from unpartitioned space. 4 | # 5 | # Usage: resize-part "/dev/mmcblk0p3" 6 | 7 | partition="/dev/mmcblk0p3" 8 | 9 | echo "Expanding the Partition:${partition} to 100%" 10 | /usr/bin/resize-part ${partition} 11 | -------------------------------------------------------------------------------- /recipes-utils/start-jupyternb/start-jupyternb/jupyter-setup-ultra96.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=jupyter setup scripts 3 | Requires=network-online.target 4 | After=network-online.target 5 | 6 | [Service] 7 | Environment="BOARD=Ultra96" 8 | ExecStart=/sbin/start-jupyter.sh 9 | 10 | [Install] 11 | WantedBy=default.target 12 | -------------------------------------------------------------------------------- /recipes-devtools/gcc/gcc-cross-canadian_%.bbappend: -------------------------------------------------------------------------------- 1 | require gcc-xilinx-standalone-multilib.inc 2 | 3 | # We want to use the stock multilib configs, when available 4 | EXTRACONFFUNCS:xilinx-standalone:baremetal-multilib-tc = "" 5 | 6 | EXTRA_OECONF:append:xilinx-standalone:baremetal-multilib-tc = " \ 7 | --enable-multilib \ 8 | " 9 | -------------------------------------------------------------------------------- /recipes-core/packagegroups/packagegroup-petalinux-display-debug.bb: -------------------------------------------------------------------------------- 1 | DESCRIPTION = "PetaLinux packages to test and debug display ports" 2 | 3 | PACKAGE_ARCH = "${TUNE_PKGARCH}" 4 | 5 | inherit packagegroup 6 | 7 | DISPLAY_DEBUG_PACKAGES = " \ 8 | libdrm \ 9 | libdrm-tests \ 10 | " 11 | RDEPENDS:${PN} = "${DISPLAY_DEBUG_PACKAGES}" 12 | -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.20.5.bbappend: -------------------------------------------------------------------------------- 1 | PACKAGECONFIG:append = " vpx" 2 | 3 | require gstreamer-xilinx-1.20.5.inc 4 | 5 | SRC_URI:append = " \ 6 | file://0001-qt-include-ext-qt-gstqtgl.h-instead-of-gst-gl-gstglf.patch \ 7 | " 8 | 9 | S = "${WORKDIR}/git/subprojects/gst-plugins-good" 10 | -------------------------------------------------------------------------------- /dynamic-layers/provenrun/recipes-core/images/petalinux-image-common-provencore.inc: -------------------------------------------------------------------------------- 1 | PROVENCORE_INSTALL = " \ 2 | provencore-driver \ 3 | libprovencore \ 4 | provenrun-uppercase \ 5 | " 6 | 7 | IMAGE_INSTALL:append = " \ 8 | ${@bb.utils.contains('MACHINE_FEATURES', 'provencore', '${PROVENCORE_INSTALL}', '', d)} \ 9 | " 10 | -------------------------------------------------------------------------------- /recipes-core/packagegroups/packagegroup-cross-canadian.bbappend: -------------------------------------------------------------------------------- 1 | # Avoid installing all of the alternative toolchains 2 | # due to multilib enabled in the primary toolchain. 3 | 4 | RDEPENDS:${PN}:xilinx-standalone:baremetal-multilib-tc = " \ 5 | ${BINUTILS} \ 6 | ${GCC} \ 7 | ${GDB} \ 8 | meta-environment-${MACHINE} \ 9 | " 10 | -------------------------------------------------------------------------------- /recipes-core/packagegroups/packagegroup-petalinux-self-hosted.bb: -------------------------------------------------------------------------------- 1 | DESCRIPTION = "PetaLinux self hosted tools packages" 2 | 3 | inherit packagegroup features_check 4 | REQUIRED_DISTRO_FEATURES = "x11 opengl" 5 | 6 | SELF_HOSTED_PACKAGES = " \ 7 | packagegroup-self-hosted \ 8 | vim \ 9 | " 10 | 11 | RDEPENDS:${PN} = "${SELF_HOSTED_PACKAGES}" 12 | -------------------------------------------------------------------------------- /recipes-core/packagegroups/packagegroup-newlib-standalone-sdk-target.bb: -------------------------------------------------------------------------------- 1 | COMPATIBLE_HOST = "${HOST_SYS}" 2 | 3 | SUMMARY = "Target packages for the standalone SDK" 4 | 5 | PACKAGE_ARCH = "${TUNE_PKGARCH}" 6 | 7 | inherit packagegroup 8 | 9 | RDEPENDS:${PN} = "\ 10 | libgcc-dev \ 11 | libstdc++-dev \ 12 | ${LIBC_DEPENDENCIES} \ 13 | " 14 | -------------------------------------------------------------------------------- /recipes-bsp/rfdc-examples/rfdc-intr_2023.1.bb: -------------------------------------------------------------------------------- 1 | SUMMARY = "Simple rfdc-intr application" 2 | 3 | require rfdc-examples.inc 4 | 5 | do_compile() { 6 | make all BOARD_FLAG=${FLAG} OUTS=${B}/rfdc-intr RFDC_OBJS=xrfdc_intr_example.o 7 | } 8 | 9 | do_install() { 10 | install -d ${D}${bindir} 11 | install -m 0755 ${B}/rfdc-intr ${D}${bindir} 12 | } 13 | 14 | -------------------------------------------------------------------------------- /recipes-bsp/rfdc-examples/rfdc-intr_2023.2.bb: -------------------------------------------------------------------------------- 1 | SUMMARY = "Simple rfdc-intr application" 2 | 3 | require rfdc-examples.inc 4 | 5 | do_compile() { 6 | make all BOARD_FLAG=${FLAG} OUTS=${B}/rfdc-intr RFDC_OBJS=xrfdc_intr_example.o 7 | } 8 | 9 | do_install() { 10 | install -d ${D}${bindir} 11 | install -m 0755 ${B}/rfdc-intr ${D}${bindir} 12 | } 13 | 14 | -------------------------------------------------------------------------------- /recipes-core/base-files/base-files_%.bbappend: -------------------------------------------------------------------------------- 1 | FILESEXTRAPATHS:prepend := "${THISDIR}/files:" 2 | 3 | SRC_URI += "file://xilinx.sh" 4 | 5 | dirs755:append = " ${sysconfdir}/profile.d" 6 | 7 | do_install:append () { 8 | install -m 0755 ${WORKDIR}/xilinx.sh ${D}${sysconfdir}/profile.d/xilinx.sh 9 | } 10 | 11 | RRECOMMENDS:${PN}:append = " base-files-plnx" 12 | -------------------------------------------------------------------------------- /recipes-multimedia/pulseaudio/pulseaudio_%.bbappend: -------------------------------------------------------------------------------- 1 | # This change appears to only affect ZynqMP configurations 2 | # but needs to be applied generically to all aarch64 since it affects a lot of 3 | # dependencies. 4 | FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" 5 | SRC_URI:append = " \ 6 | file://0001-default.pai.in-disable-tsched-system-timer-based-mod.patch \ 7 | " 8 | -------------------------------------------------------------------------------- /recipes-connectivity/wolfssl/wolfssl_%.bbappend: -------------------------------------------------------------------------------- 1 | # Automatically add the armasm option if the crypto extensions are available on armv8 2 | PACKAGECONFIG_CRYPTO = "" 3 | PACKAGECONFIG_CRYPTO:aarch64 = "${@bb.utils.contains("TUNE_FEATURES", "crypto", "armasm", "",d)}" 4 | 5 | PACKAGECONFIG += "${PACKAGECONFIG_CRYPTO}" 6 | PACKAGECONFIG[armasm] = "--enable-armasm,--disable-armasm" 7 | -------------------------------------------------------------------------------- /recipes-bsp/rfdc-examples/rfdc-selftest_2023.1.bb: -------------------------------------------------------------------------------- 1 | SUMMARY = "Simple rfdc-selftest application" 2 | 3 | require rfdc-examples.inc 4 | 5 | do_compile (){ 6 | make all BOARD_FLAG=${FLAG} OUTS=${B}/rfdc-selftest RFDC_OBJS=xrfdc_selftest_example.o 7 | } 8 | 9 | do_install() { 10 | install -d ${D}${bindir} 11 | install -m 0755 ${B}/rfdc-selftest ${D}${bindir} 12 | } 13 | -------------------------------------------------------------------------------- /recipes-bsp/rfdc-examples/rfdc-selftest_2023.2.bb: -------------------------------------------------------------------------------- 1 | SUMMARY = "Simple rfdc-selftest application" 2 | 3 | require rfdc-examples.inc 4 | 5 | do_compile (){ 6 | make all BOARD_FLAG=${FLAG} OUTS=${B}/rfdc-selftest RFDC_OBJS=xrfdc_selftest_example.o 7 | } 8 | 9 | do_install() { 10 | install -d ${D}${bindir} 11 | install -m 0755 ${B}/rfdc-selftest ${D}${bindir} 12 | } 13 | -------------------------------------------------------------------------------- /recipes-core/packagegroups/packagegroup-petalinux-runx.bb: -------------------------------------------------------------------------------- 1 | DESCRIPTION = "PetaLinux runX related packages" 2 | 3 | inherit packagegroup features_check 4 | 5 | REQUIRED_DISTRO_FEATURES = " virtualization vmsep" 6 | 7 | RUNX_PACKAGES = " \ 8 | runx-xlnx \ 9 | socat \ 10 | daemonize \ 11 | packagegroup-petalinux-xen \ 12 | " 13 | 14 | RDEPENDS:${PN} = "${RUNX_PACKAGES}" 15 | -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer/gstreamer-multimedia-notebooks_0.1.inc: -------------------------------------------------------------------------------- 1 | BRANCH ?= "xlnx_rel_v2023.2" 2 | REPO ?= "git://github.com/Xilinx/multimedia-notebooks.git;protocol=https" 3 | SRCREV ?= "ef7a7236144a04977cb5bb800d6d7cf319e52b58" 4 | 5 | BRANCHARG = "${@['nobranch=1', 'branch=${BRANCH}'][d.getVar('BRANCH') != '']}" 6 | SRC_URI = "${REPO};${BRANCHARG}" 7 | 8 | PV .= "+git${SRCPV}" 9 | -------------------------------------------------------------------------------- /dynamic-layers/xilinx-core/recipes-kernel/linux/linux-xlnx_%.bbappend: -------------------------------------------------------------------------------- 1 | python () { 2 | if d.getVar('WITHIN_PLNX_FLOW') and d.getVar('KERNEL_AUTO_CONFIG'): 3 | sysconfig_dir = d.getVar('SYSCONFIG_DIR') or '' 4 | if sysconfig_dir: 5 | d.prependVar('FILESEXTRAPATHS', '%s/linux-xlnx:' % sysconfig_dir) 6 | d.appendVar('SRC_URI', ' file://plnx_kernel.cfg') 7 | } 8 | -------------------------------------------------------------------------------- /recipes-bsp/rfdc-examples/rfdc-read-write_2023.1.bb: -------------------------------------------------------------------------------- 1 | SUMMARY = "Simple rfdc-read-write application" 2 | 3 | require rfdc-examples.inc 4 | 5 | do_compile () { 6 | make all BOARD_FLAG=${FLAG} OUTS=${B}/rfdc-read-write RFDC_OBJS=xrfdc_read_write_example.o 7 | } 8 | 9 | do_install() { 10 | install -d ${D}${bindir} 11 | install -m 0755 ${B}/rfdc-read-write ${D}${bindir} 12 | } 13 | 14 | -------------------------------------------------------------------------------- /recipes-bsp/rfdc-examples/rfdc-read-write_2023.2.bb: -------------------------------------------------------------------------------- 1 | SUMMARY = "Simple rfdc-read-write application" 2 | 3 | require rfdc-examples.inc 4 | 5 | do_compile () { 6 | make all BOARD_FLAG=${FLAG} OUTS=${B}/rfdc-read-write RFDC_OBJS=xrfdc_read_write_example.o 7 | } 8 | 9 | do_install() { 10 | install -d ${D}${bindir} 11 | install -m 0755 ${B}/rfdc-read-write ${D}${bindir} 12 | } 13 | 14 | -------------------------------------------------------------------------------- /recipes-core/packagegroups/packagegroup-petalinux-tpm.bb: -------------------------------------------------------------------------------- 1 | DESCRIPTION = "TPM related packages" 2 | 3 | PACKAGE_ARCH = "${TUNE_PKGARCH}" 4 | 5 | inherit packagegroup 6 | 7 | TPM_PACKAGES = " \ 8 | tpm2-abrmd \ 9 | tpm2-pkcs11 \ 10 | tpm2-tools \ 11 | tpm2-tss \ 12 | tpm2-tss-engine \ 13 | libtpm \ 14 | swtpm \ 15 | libtss2-tcti-device \ 16 | " 17 | 18 | RDEPENDS:${PN} = "${TPM_PACKAGES}" 19 | -------------------------------------------------------------------------------- /classes/deprecate.bbclass: -------------------------------------------------------------------------------- 1 | ALTERNATIVE ?= "" 2 | 3 | python do_deprecate() { 4 | package = d.getVar('PN') 5 | alternative = d.getVar('ALTERNATIVE') 6 | if alternative: 7 | bb.warn("Deprecated package %s, use %s instead" % (package, alternative)) 8 | else: 9 | bb.warn("Deprecated package %s") 10 | } 11 | addtask deprecate before do_fetch do_unpack do_patch do_populate_lic do_preconfigure 12 | -------------------------------------------------------------------------------- /oe-core/meta/classes/metadata_scm.bbclass: -------------------------------------------------------------------------------- 1 | # Switch the metadata branch and revision to meta-petalinux 2 | 3 | METADATA_BRANCH := "${@oe.buildcfg.get_metadata_git_branch(d.getVar('PETALINUX_COREBASE'))}" 4 | METADATA_BRANCH[vardepvalue] = "${METADATA_BRANCH}" 5 | METADATA_REVISION := "${@oe.buildcfg.get_metadata_git_revision(d.getVar('PETALINUX_COREBASE'))}" 6 | METADATA_REVISION[vardepvalue] = "${METADATA_REVISION}" 7 | -------------------------------------------------------------------------------- /recipes-core/meta/meta-createrepo.bb: -------------------------------------------------------------------------------- 1 | TOOLCHAIN_OUTPUTNAME ?= "${SDK_ARCH}-createrepo-nativesdk-standalone-${DISTRO_VERSION}" 2 | 3 | require recipes-core/meta/buildtools-tarball.bb 4 | 5 | PLNX_ADD_VAI_SDK = "" 6 | 7 | TOOLCHAIN_TARGET_TASK = "" 8 | TOOLCHAIN_HOST_TASK = "nativesdk-sdk-provides-dummy meta-environment-${MACHINE} nativesdk-createrepo-c" 9 | 10 | SDK_TITLE = "DNF Repository Indexing" 11 | 12 | -------------------------------------------------------------------------------- /recipes-graphics/xorg-xserver/xserver-xorg_%.bbappend: -------------------------------------------------------------------------------- 1 | # See meta-virtualization recipes-graphics/xorg-xserver/xserver-xorg_xen.inc 2 | 3 | # We want the configuration to remain optimized, if a user wants the removal 4 | # behavior, then they can set one of the below using 'glamor' as in the 5 | # xserver-xorg_xen.inc file. 6 | XEN_REMOVED_OPENGL_PKGCONFIGS:zynqmp ?= "" 7 | XEN_REMOVED_OPENGL_PKGCONFIGS:versal ?= "" 8 | 9 | -------------------------------------------------------------------------------- /recipes-core/packagegroups/packagegroup-petalinux-lmsensors.bb: -------------------------------------------------------------------------------- 1 | DESCRIPTION = "PetaLinux packages that provides tools and drivers for monitoring temperatures, voltage" 2 | 3 | PACKAGE_ARCH = "${TUNE_PKGARCH}" 4 | 5 | inherit packagegroup 6 | 7 | LMSENSORS_PACKAGES = " \ 8 | lmsensors-sensors \ 9 | lmsensors-libsensors \ 10 | lmsensors-sensorsdetect \ 11 | " 12 | 13 | RDEPENDS:${PN} = "${LMSENSORS_PACKAGES}" 14 | -------------------------------------------------------------------------------- /recipes-core/packagegroups/packagegroup-petalinux-utils.bb: -------------------------------------------------------------------------------- 1 | DESCRIPTION = "PetaLinux miscellaneous utilities packages" 2 | 3 | inherit packagegroup 4 | 5 | UTILS_PACKAGES = " \ 6 | util-linux \ 7 | cpufrequtils \ 8 | bridge-utils \ 9 | mtd-utils \ 10 | usbutils \ 11 | pciutils \ 12 | can-utils \ 13 | i2c-tools \ 14 | smartmontools \ 15 | e2fsprogs \ 16 | " 17 | 18 | RDEPENDS:${PN} = "${UTILS_PACKAGES}" 19 | -------------------------------------------------------------------------------- /recipes-core/packagegroups/packagegroup-petalinux-networking-stack.bb: -------------------------------------------------------------------------------- 1 | DESCRIPTION = "PetaLinux packages to extend network stack" 2 | 3 | inherit packagegroup 4 | 5 | NETWORKING_STACK_PACKAGES = " \ 6 | ethtool \ 7 | phytool \ 8 | netcat \ 9 | net-tools \ 10 | dnsmasq \ 11 | iproute2 \ 12 | iptables \ 13 | rpcbind \ 14 | iperf2 \ 15 | iperf3 \ 16 | " 17 | 18 | RDEPENDS:${PN} = "${NETWORKING_STACK_PACKAGES}" 19 | -------------------------------------------------------------------------------- /recipes-utils/start-jupyternb/start-jupyternb/jupyter_notebook_ultra96_config.py: -------------------------------------------------------------------------------- 1 | c.NotebookApp.ip = '192.168.2.1' 2 | c.NotebookApp.notebook_dir = '/usr/share/notebooks' 3 | c.NotebookApp.password = 'sha1:46c5ef4fa52f:ee46dad5008c6270a52f6272828a51b16336b492' 4 | c.NotebookApp.port = 8888 5 | c.NotebookApp.iopub_data_rate_limit = 100000000 6 | c.NotebookApp.allow_root=True 7 | c.NotebookApp.open_browser=False 8 | 9 | 10 | -------------------------------------------------------------------------------- /classes/jupyter-examples.bbclass: -------------------------------------------------------------------------------- 1 | S = "${WORKDIR}" 2 | 3 | FILES:${PN} += "${JUPYTER_DIR}" 4 | 5 | RDEPENDS:${PN} ?= "packagegroup-petalinux-jupyter" 6 | 7 | JUPYTER_DIR ?= "${datadir}/example-notebooks" 8 | 9 | do_install() { 10 | install -d ${D}/${JUPYTER_DIR}/${PN} 11 | install -m 0755 ${S}/*.ipynb ${D}/${JUPYTER_DIR}/${PN}/ 12 | } 13 | 14 | EXCLUDE_FROM_WORLD = "1" 15 | 16 | PACKAGE_ARCH = "${SOC_FAMILY_ARCH}" 17 | 18 | -------------------------------------------------------------------------------- /recipes-graphics/drm/libdrm_%.bbappend: -------------------------------------------------------------------------------- 1 | FILESEXTRAPATHS:prepend := "${THISDIR}/files:" 2 | 3 | 4 | SRC_URI:append = " \ 5 | file://0001-PATCH-libdrm-Update-drm-header-file-with-XV15-and-XV.patch \ 6 | file://0003-modetest-Add-semiplanar-10bit-pattern-support-for-mo.patch \ 7 | file://0004-modetest-fix-smpte-colour-pattern-issue-for-XV20-and.patch \ 8 | file://0001-modetest-Add-YUV444-and-X403-format-support-for-mode.patch \ 9 | " 10 | -------------------------------------------------------------------------------- /recipes-core/packagegroups/packagegroup-petalinux-python-modules.bb: -------------------------------------------------------------------------------- 1 | DESCRIPTION = "PetaLinux python module packages" 2 | 3 | inherit packagegroup 4 | 5 | # Packages 6 | PYTHON_MODULES = " \ 7 | python3-pip\ 8 | python3-multiprocessing \ 9 | python3-numpy \ 10 | python3-shell \ 11 | python3-threading \ 12 | python3-threading \ 13 | python3-pyserial \ 14 | python3-h5py \ 15 | " 16 | 17 | RDEPENDS:${PN} = "${PYTHON_MODULES}" 18 | 19 | -------------------------------------------------------------------------------- /recipes-core/packagegroups/packagegroup-petalinux-benchmarks.bb: -------------------------------------------------------------------------------- 1 | DESCRIPTION = "PetaLinux packages for Benchmarks" 2 | 3 | inherit packagegroup 4 | 5 | BENCHMARKS_EXTRAS = " \ 6 | hdparm \ 7 | iotop \ 8 | nicstat \ 9 | lmbench \ 10 | iptraf \ 11 | net-snmp \ 12 | lsof \ 13 | babeltrace \ 14 | sysstat \ 15 | dool \ 16 | dhrystone \ 17 | linpack \ 18 | whetstone \ 19 | iperf3 \ 20 | " 21 | RDEPENDS:${PN} = "${BENCHMARKS_EXTRAS}" 22 | -------------------------------------------------------------------------------- /recipes-core/packagegroups/packagegroup-petalinux-mraa.bb: -------------------------------------------------------------------------------- 1 | DESCRIPTION = "PetaLinux mraa and upm supported packages" 2 | 3 | PACKAGE_ARCH = "${TUNE_PKGARCH}" 4 | 5 | inherit packagegroup 6 | 7 | MRAA_UPM_PACKAGES = " \ 8 | mraa \ 9 | mraa-dev \ 10 | python3-mraa \ 11 | mraa-utils \ 12 | upm \ 13 | upm-dev \ 14 | python3-upm \ 15 | nodejs \ 16 | nodejs-dev \ 17 | nodejs-npm \ 18 | " 19 | 20 | RDEPENDS:${PN} = "${MRAA_UPM_PACKAGES}" 21 | -------------------------------------------------------------------------------- /recipes-examples/peekpoke/files/Makefile: -------------------------------------------------------------------------------- 1 | PEEK = peek 2 | POKE = poke 3 | 4 | # Add any other object files to this list below 5 | PEEK_OBJS = peek.o 6 | POKE_OBJS = poke.o 7 | 8 | all: $(PEEK) $(POKE) 9 | 10 | $(POKE): $(POKE_OBJS) 11 | $(CC) $(LDFLAGS) -o $@ $(POKE_OBJS) $(LDLIBS) 12 | 13 | $(PEEK): $(PEEK_OBJS) 14 | $(CC) $(LDFLAGS) -o $@ $(PEEK_OBJS) $(LDLIBS) 15 | 16 | clean: 17 | -rm -f $(POKE) $(PEEK) *.elf *.gdb *.o 18 | 19 | 20 | -------------------------------------------------------------------------------- /recipes-core/packagegroups/packagegroup-petalinux-jupyter.bb: -------------------------------------------------------------------------------- 1 | DESCRIPTION = "Required packges for running jupyter notebook with python3 " 2 | 3 | inherit packagegroup 4 | 5 | JUPYTER_NOTEBOOK_PACKAGES = " \ 6 | packagegroup-python3-jupyter \ 7 | python3-core \ 8 | python3-ipywidgets \ 9 | python3-pydot \ 10 | liberation-fonts \ 11 | ttf-bitstream-vera \ 12 | start-jupyter \ 13 | " 14 | 15 | RDEPENDS:${PN} = "${JUPYTER_NOTEBOOK_PACKAGES}" 16 | -------------------------------------------------------------------------------- /recipes-utils/ace-cloud-editor/ace-cloud-editor_%.bbappend: -------------------------------------------------------------------------------- 1 | FILES:${PN}:ultra96-zynqmp = "/usr/share/ultra96-startup-pages/webapp/static/src-noconflict" 2 | 3 | do_install:ultra96-zynqmp () { 4 | install -d ${D}/${datadir}/ultra96-startup-pages/webapp/static/src-noconflict 5 | rsync -r --exclude=".*" ${S}/src-noconflict/* ${D}/${datadir}/ultra96-startup-pages/webapp/static/src-noconflict 6 | } 7 | 8 | PACKAGE_ARCH:ultra96-zynqmp = "${MACHINE_ARCH}" 9 | -------------------------------------------------------------------------------- /recipes-core/packagegroups/packagegroup-petalinux-opencv.bb: -------------------------------------------------------------------------------- 1 | DESCRIPTION = "PetaLinux opencv supported packages" 2 | 3 | PACKAGE_ARCH = "${TUNE_PKGARCH}" 4 | 5 | inherit packagegroup 6 | 7 | OPENCV_PACKAGES = " \ 8 | opencv \ 9 | libopencv-core \ 10 | libopencv-highgui \ 11 | libopencv-imgproc \ 12 | libopencv-objdetect \ 13 | libopencv-ml \ 14 | libopencv-calib3d \ 15 | libopencv-ccalib \ 16 | " 17 | 18 | RDEPENDS:${PN} = "${OPENCV_PACKAGES}" 19 | -------------------------------------------------------------------------------- /conf/distro/include/petalinux-version.conf: -------------------------------------------------------------------------------- 1 | # Main release version 2 | XILINX_VER_MAIN = "2023.2" 3 | 4 | # Set to "release" for major releases and "update-1" for update releases 5 | XILINX_VER_UPDATE = "snapshot" 6 | 7 | # This will be set in local.conf for CI builds 8 | XILINX_VER_BUILD ?= "${@'${METADATA_REVISION}' if d.getVar('METADATA_REVISION') != '' else 'unknown'}" 9 | 10 | # Petalinux version 11 | PETALINUX_VERSION = "${XILINX_VER_MAIN}" 12 | -------------------------------------------------------------------------------- /classes/plnx-mirrors.bbclass: -------------------------------------------------------------------------------- 1 | MIRRORS += "\ 2 | git://xenbits.xen.org/xen.git git://xenbits.xen.org/git-http/xen.git;protocol=https \n \ 3 | git://git.eclipse.org/gitroot/tcf/org.eclipse.tcf.agent git://git.eclipse.org/r/tcf/org.eclipse.tcf.agent;protocol=https \n \ 4 | git://git.savannah.gnu.org/config.git git://git.savannah.gnu.org/config.git;protocol=https \n \ 5 | git://git.infradead.org/mtd-utils.git git://git.infradead.org/mtd-utils.git;protocol=https \n \ 6 | " 7 | 8 | -------------------------------------------------------------------------------- /recipes-core/meta/meta-environment.bbappend: -------------------------------------------------------------------------------- 1 | # If this is a baremetal build, we want to further optimize the toolchain 2 | # scripts 3 | BAREMETAL_ENV = "" 4 | BAREMETAL_ENV:xilinx-standalone:baremetal-multilib-tc = "plnx-baremetal-toolchain-scripts" 5 | 6 | inherit ${BAREMETAL_ENV} 7 | 8 | ORIGINAL_TARGET_ARCH := "${TARGET_ARCH}" 9 | ORIGINAL_TARGET_VENDOR := "${TARGET_VENDOR}" 10 | ORIGINAL_TARGET_SYS := "${TARGET_SYS}" 11 | ORIGINAL_TARGET_PREFIX := "${TARGET_PREFIX}" 12 | -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.20.5.bbappend: -------------------------------------------------------------------------------- 1 | require gstreamer-xilinx-1.20.5.inc 2 | 3 | SRC_URI:append = " \ 4 | file://0001-ENGR00312515-get-caps-from-src-pad-when-query-caps.patch \ 5 | file://0003-viv-fb-Make-sure-config.h-is-included.patch \ 6 | file://0002-ssaparse-enhance-SSA-text-lines-parsing.patch \ 7 | " 8 | 9 | PACKAGECONFIG:append = " opus" 10 | 11 | S = "${WORKDIR}/git/subprojects/gst-plugins-base" 12 | -------------------------------------------------------------------------------- /recipes-core/busybox/busybox/petalinux.cfg: -------------------------------------------------------------------------------- 1 | CONFIG_EXTRA_COMPAT=y 2 | CONFIG_INCLUDE_SUSv2=y 3 | CONFIG_FEATURE_VERBOSE_USAGE=y 4 | CONFIG_UNICODE_SUPPORT=y 5 | CONFIG_SHA512SUM=y 6 | CONFIG_MKFS_VFAT=y 7 | CONFIG_FEATURE_TOP_SMP_CPU=y 8 | CONFIG_FEATURE_TOP_DECIMALS=y 9 | CONFIG_FEATURE_TOP_SMP_PROCESS=y 10 | CONFIG_FEATURE_TOPMEM=y 11 | CONFIG_FEATURE_MOUNT_VERBOSE=y 12 | CONFIG_FEATURE_MOUNT_HELPERS=y 13 | CONFIG_FEATURE_MOUNT_CIFS=y 14 | CONFIG_WATCHDOG=y 15 | CONFIG_DEVMEM=y 16 | CONFIG_LSPCI=y 17 | -------------------------------------------------------------------------------- /recipes-core/packagegroups/packagegroup-petalinux-audio.bb: -------------------------------------------------------------------------------- 1 | DESCRIPTION = "PetaLinux ASLA supported packages" 2 | 3 | PACKAGE_ARCH = "${TUNE_PKGARCH}" 4 | 5 | inherit packagegroup 6 | 7 | ALSA_PACKAGES = " \ 8 | libasound \ 9 | alsa-plugins \ 10 | alsa-tools \ 11 | alsa-utils \ 12 | alsa-utils-scripts \ 13 | sox \ 14 | ${@bb.utils.contains('DISTRO_FEATURES', 'pulseaudio', 'pulseaudio-server pulseaudio-client-conf-sato pulseaudio-misc', '', d)} \ 15 | " 16 | RDEPENDS:${PN} = "${ALSA_PACKAGES}" 17 | -------------------------------------------------------------------------------- /recipes-core/busybox/busybox/httpd.cfg: -------------------------------------------------------------------------------- 1 | CONFIG_HTTPD=y 2 | CONFIG_FEATURE_HTTPD_RANGES=y 3 | CONFIG_FEATURE_HTTPD_USE_SENDFILE=y 4 | CONFIG_FEATURE_HTTPD_SETUID=y 5 | CONFIG_FEATURE_HTTPD_BASIC_AUTH=y 6 | CONFIG_FEATURE_HTTPD_AUTH_MD5=y 7 | CONFIG_FEATURE_HTTPD_CGI=y 8 | CONFIG_FEATURE_HTTPD_CONFIG_WITH_SCRIPT_INTERPR=y 9 | CONFIG_FEATURE_HTTPD_SET_REMOTE_PORT_TO_ENV=y 10 | CONFIG_FEATURE_HTTPD_ENCODE_URL_STR=y 11 | CONFIG_FEATURE_HTTPD_ERROR_PAGES=y 12 | CONFIG_FEATURE_HTTPD_PROXY=y 13 | CONFIG_FEATURE_HTTPD_GZIP=y 14 | -------------------------------------------------------------------------------- /recipes-core/packagegroups/nativesdk-packagegroup-protobuf-sdk-host.bb: -------------------------------------------------------------------------------- 1 | SUMMARY = "Host packages for the standalone SDK or external toolchain providing protobuf" 2 | 3 | # It just can't be all, which packagegroup will default to 4 | PACKAGE_ARCH = "${MACHINE_ARCH}" 5 | inherit packagegroup nativesdk 6 | 7 | PACKAGEGROUP_DISABLE_COMPLEMENTARY = "1" 8 | 9 | RDEPENDS:${PN} = " \ 10 | nativesdk-protobuf \ 11 | nativesdk-protobuf-c \ 12 | nativesdk-protobuf-compiler \ 13 | nativesdk-protobuf-dev \ 14 | " 15 | -------------------------------------------------------------------------------- /recipes-core/packagegroups/packagegroup-petalinux-multimedia.bb: -------------------------------------------------------------------------------- 1 | DESCRIPTION = "PetaLinux packages to enhance out of box multimedia experience" 2 | 3 | inherit packagegroup features_check 4 | 5 | REQUIRED_DISTRO_FEATURES = "x11" 6 | 7 | MULTIMEDIA_PACKAGES = " \ 8 | packagegroup-petalinux-gstreamer \ 9 | packagegroup-petalinux-matchbox \ 10 | packagegroup-petalinux-x11 \ 11 | packagegroup-petalinux-display-debug \ 12 | packagegroup-petalinux-qt \ 13 | ffmpeg \ 14 | " 15 | 16 | RDEPENDS:${PN} = "${MULTIMEDIA_PACKAGES}" 17 | -------------------------------------------------------------------------------- /recipes-devtools/gcc/mb-convert-head.sh: -------------------------------------------------------------------------------- 1 | #! /bin/bash 2 | 3 | # Call using: 4 | #../microblaze/sysroots/x86_64-oesdk-linux/usr/bin/microblaze-xilinx-elf/microblaze-xilinx-elf-gcc -print-multi-lib | mb-convert-head.sh 5 | 6 | # Then copy the output into the special microblaze-tc BSP 7 | 8 | sed -e 's,;, ,' | 9 | while read mlib args ; do 10 | if [ $mlib = '.' ]; then 11 | continue 12 | fi 13 | multilib="libmb$(echo $mlib | sed -e 's,/,,g')" 14 | 15 | echo 'MULTILIBS += "multilib:'${multilib}'"' 16 | done 17 | -------------------------------------------------------------------------------- /recipes-core/dropbear/dropbear_%.bbappend: -------------------------------------------------------------------------------- 1 | PACKAGECONFIG += "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11-fwd', '', d)}" 2 | 3 | PACKAGECONFIG[x11-fwd] = "" 4 | 5 | do_configure:append() { 6 | if ${@bb.utils.contains('PACKAGECONFIG', 'x11-fwd', 'true', 'false', d)} ; then 7 | echo "#define DROPBEAR_X11FWD 1" >> ${B}/localoptions.h 8 | # Fixed a bug in dropbear, see https://github.com/mkj/dropbear/issues/156 9 | echo "#define DROPBEAR_CHANNEL_PRIO_INTERACTIVE DROPBEAR_PRIO_LOWDELAY" >> ${B}/localoptions.h 10 | fi 11 | } 12 | -------------------------------------------------------------------------------- /recipes-extended/xen/xen-tools_4.17.bb: -------------------------------------------------------------------------------- 1 | # xen 4.17.0 release sha 2 | SRCREV ?= "11560248ffda3f00f20bbdf3ae088af474f7f2a3" 3 | 4 | XEN_URI ?= "git://xenbits.xen.org/xen.git" 5 | XEN_REL ?= "4.17" 6 | XEN_BRANCH ?= "stable-${XEN_REL}" 7 | 8 | SRC_URI = " \ 9 | ${XEN_URI};branch=${XEN_BRANCH} \ 10 | file://0001-python-pygrub-pass-DISTUTILS-xen-4.15.patch \ 11 | " 12 | 13 | LIC_FILES_CHKSUM ?= "file://COPYING;md5=d1a1e216f80b6d8da95fec897d0dbec9" 14 | 15 | S = "${WORKDIR}/git" 16 | 17 | require xen.inc 18 | require xen-tools.inc 19 | -------------------------------------------------------------------------------- /recipes-core/packagegroups/packagegroup-petalinux-x11.bb: -------------------------------------------------------------------------------- 1 | DESCRIPTION = "PetaLinux X11 related packages" 2 | 3 | PACKAGE_ARCH = "${TUNE_PKGARCH}" 4 | 5 | inherit packagegroup features_check 6 | 7 | REQUIRED_DISTRO_FEATURES = "x11" 8 | 9 | X11_PACKAGES = " \ 10 | packagegroup-core-x11 \ 11 | xclock \ 12 | xcursor-transparent-theme \ 13 | xeyes \ 14 | xinit \ 15 | xinput \ 16 | xkbcomp \ 17 | xkeyboard-config \ 18 | xkeyboard-config-locale-en-gb \ 19 | dbus \ 20 | liberation-fonts \ 21 | " 22 | 23 | RDEPENDS:${PN} = "${X11_PACKAGES}" 24 | -------------------------------------------------------------------------------- /files/plnx_dev_table.txt: -------------------------------------------------------------------------------- 1 | # 2 | #/dev/mem c 640 0 0 1 1 0 0 - 3 | # 4 | #type can be one of: 5 | # f A regular file 6 | # d Directory 7 | # c Character special device file 8 | # b Block special device file 9 | # p Fifo (named pipe) 10 | 11 | /dev d 755 root root - - - - - 12 | /dev/console c 662 root tty 5 1 - - - 13 | -------------------------------------------------------------------------------- /recipes-core/initrdscripts/plnx-initramfs-framework/udhcpc: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | udhcpc_enabled() { 4 | return 0 5 | } 6 | 7 | run_udhcpc() { 8 | status=$1 9 | module=$2 10 | if [ "$status" = "pre" ] && [ "$module" = "finish" ]; then 11 | if [ ! -d $ROOTFS_DIR/dev ]; then 12 | if [ -x $_UDHCPC ]; then 13 | $_UDHCPC $_UDHCPC_ARGS 14 | fi 15 | fi 16 | fi 17 | return 0 18 | } 19 | 20 | _UDHCPC="/sbin/udhcpc" 21 | # -n to exit if no lease 22 | _UDHCPC_ARGS="-n" 23 | 24 | udhcpc_run() { 25 | add_module_pre_hook "run_udhcpc" 26 | } 27 | -------------------------------------------------------------------------------- /dynamic-layers/xilinx-core/recipes-bsp/u-boot/u-boot-xlnx/platform-top.h: -------------------------------------------------------------------------------- 1 | #if defined(CONFIG_MICROBLAZE) 2 | #include 3 | #define CONFIG_SYS_BOOTM_LEN 0xF000000 4 | #endif 5 | #if defined(CONFIG_ARCH_ZYNQ) 6 | #include 7 | #endif 8 | #if defined(CONFIG_ARCH_ZYNQMP) 9 | #include 10 | #endif 11 | #if defined(CONFIG_ARCH_VERSAL) 12 | #include 13 | #endif 14 | #if defined(CONFIG_ARCH_VERSAL_NET) 15 | #include 16 | #endif 17 | 18 | -------------------------------------------------------------------------------- /recipes-core/packagegroups/packagegroup-petalinux-gstreamer.bb: -------------------------------------------------------------------------------- 1 | DESCRIPTION = "PetaLinux GSTREAMER supported packages" 2 | 3 | PACKAGE_ARCH = "${MACHINE_ARCH}" 4 | 5 | inherit packagegroup 6 | 7 | GSTREAMER_PACKAGES = " \ 8 | gstreamer1.0 \ 9 | gstreamer1.0-python \ 10 | gstreamer1.0-meta-base \ 11 | gstreamer1.0-plugins-base \ 12 | gstreamer1.0-plugins-good \ 13 | gstreamer1.0-plugins-bad \ 14 | gstreamer1.0-rtsp-server \ 15 | gst-shark \ 16 | gstd \ 17 | gst-perf \ 18 | gstreamer1.0-omx \ 19 | " 20 | 21 | RDEPENDS:${PN} = "${GSTREAMER_PACKAGES}" 22 | -------------------------------------------------------------------------------- /recipes-devtools/binutils/binutils-cross-canadian%.bbappend: -------------------------------------------------------------------------------- 1 | # When building for petalinux, we want to enable multilib support 2 | EXTRA_OECONF:append:xilinx-standalone:baremetal-multilib-tc = " \ 3 | --enable-multilib \ 4 | " 5 | 6 | # PetaLinux adds SIZE to the environment 7 | do_install:append () { 8 | mkdir -p ${D}${SDKPATHNATIVE}/environment-setup.d 9 | echo "export SIZE=\"${TARGET_PREFIX}size\"" > ${D}${SDKPATHNATIVE}/environment-setup.d/binutils.sh 10 | } 11 | 12 | FILES:${PN} += "${SDKPATHNATIVE}/environment-setup.d/binutils.sh" 13 | -------------------------------------------------------------------------------- /recipes-extended/xen/xen-arch.inc: -------------------------------------------------------------------------------- 1 | 2 | valid_xen_archs = " \ 3 | x86_64 x86_32 \ 4 | arm32 arm64 \ 5 | " 6 | 7 | def map_xen_arch(a, d): 8 | import re 9 | valid_archs = d.getVar('valid_xen_archs').split() 10 | 11 | if re.match("i.86", a): return "x86_32" 12 | elif re.match("x86.64", a): return "x86_64" 13 | elif re.match("arm.*", a): return "arm32" 14 | elif re.match("aarch64.*", a): return "arm64" 15 | elif a in valid_archs: return a 16 | else: 17 | return "INVALID" 18 | 19 | -------------------------------------------------------------------------------- /recipes-core/packagegroups/packagegroup-petalinux-qt.bb: -------------------------------------------------------------------------------- 1 | DESCRIPTION = "PetaLinux Qt supported packages" 2 | 3 | # Workaround for DISTRO_FEATURES wayland only set on 64-bit ARM machines 4 | PACKAGE_ARCH = "${TUNE_PKGARCH}" 5 | 6 | inherit packagegroup features_check 7 | 8 | ANY_OF_DISTRO_FEATURES = "x11 fbdev wayland" 9 | 10 | QT_PACKAGES = " \ 11 | qtbase \ 12 | qtbase-plugins \ 13 | qtbase-examples \ 14 | qtquickcontrols-qmlplugins \ 15 | qtcharts \ 16 | ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'qtwayland', '', d)} \ 17 | " 18 | RDEPENDS:${PN} = "${QT_PACKAGES}" 19 | -------------------------------------------------------------------------------- /recipes-core/newlib/libgloss_4.%.bbappend: -------------------------------------------------------------------------------- 1 | # When building multiple, we need to depend on the multilib newlib 2 | DEPENDS:append:xilinx-standalone:baremetal-multilib-tc = " ${MLPREFIX}newlib" 3 | 4 | # RISC-V mulitlib compiler expects the newlib to be in the 'libdir', but places it in ${D}/usr/lib 5 | do_install:append:xilinx-standalone:baremetal-multilib-tc () { 6 | if [ "/usr/lib" != "${libdir}" ]; then 7 | for each in ${D}/usr/lib/* ; do 8 | if [ -f ${each} ]; then 9 | mv -v ${each} ${D}/${libdir} 10 | fi 11 | done 12 | fi 13 | } 14 | -------------------------------------------------------------------------------- /recipes-core/packagegroups/packagegroup-petalinux-weston.bb: -------------------------------------------------------------------------------- 1 | DESCRIPTION = "PetaLinux Weston packages" 2 | 3 | inherit packagegroup features_check 4 | 5 | REQUIRED_DISTRO_FEATURES = "wayland" 6 | 7 | WESTON_PACKAGES = " \ 8 | weston \ 9 | weston-init \ 10 | weston-examples \ 11 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'weston-xwayland', '', d)} \ 12 | " 13 | 14 | WAYLAND_PACKAGES = " \ 15 | wayland \ 16 | wayland-protocols \ 17 | " 18 | 19 | BENCHMARKS_EXTRA = " \ 20 | glmark2 \ 21 | " 22 | 23 | RDEPENDS:${PN} = "${WESTON_PACKAGES} ${WAYLAND_PACKAGES} ${BENCHMARKS_EXTRA}" 24 | -------------------------------------------------------------------------------- /recipes-extended/xen/xen_4.17.bb: -------------------------------------------------------------------------------- 1 | # xen 4.17.0 release sha 2 | SRCREV ?= "11560248ffda3f00f20bbdf3ae088af474f7f2a3" 3 | 4 | XEN_URI ?= "git://xenbits.xen.org/xen.git" 5 | XEN_REL ?= "4.17" 6 | XEN_BRANCH ?= "stable-${XEN_REL}" 7 | 8 | SRC_URI = " \ 9 | ${XEN_URI};branch=${XEN_BRANCH} \ 10 | file://0001-menuconfig-mconf-cfg-Allow-specification-of-ncurses-location.patch \ 11 | file://xen-flask-race-fix.patch \ 12 | " 13 | 14 | LIC_FILES_CHKSUM ?= "file://COPYING;md5=d1a1e216f80b6d8da95fec897d0dbec9" 15 | 16 | S = "${WORKDIR}/git" 17 | 18 | require xen.inc 19 | require xen-hypervisor.inc 20 | -------------------------------------------------------------------------------- /recipes-bsp/rfdc-examples/rfdc-examples.inc: -------------------------------------------------------------------------------- 1 | LICENSE = "BSD" 2 | 3 | inherit xlnx-embeddedsw 4 | 5 | COMPATIBLE_MACHINE = "^$" 6 | COMPATIBLE_MACHINE:zynqmp-dr = "zynqmp-dr" 7 | 8 | PACKAGE_ARCH = "${SOC_VARIANT_ARCH}" 9 | 10 | DEPENDS = "rfdc" 11 | RDEPENDS:${PN} = "rfdc" 12 | 13 | PACKAGES = "${PN}-dbg ${PN}" 14 | 15 | S = "${WORKDIR}/git" 16 | B = "${WORKDIR}/build" 17 | 18 | FLAG = "" 19 | FLAG:zcu111-zynqmp = "-DXPS_BOARD_ZCU111" 20 | 21 | RFDC_SUBDIR = "XilinxProcessorIPLib/drivers/rfdc/examples" 22 | 23 | do_compile:prepend () { 24 | cd ${S}/${RFDC_SUBDIR} 25 | cp Makefile.Linux Makefile 26 | } 27 | -------------------------------------------------------------------------------- /recipes-examples/gpio-demo/gpio-demo.bb: -------------------------------------------------------------------------------- 1 | # 2 | # This is the GPIO-DEMO apllication recipe 3 | # 4 | # 5 | 6 | SUMMARY = "gpio-demo application" 7 | SECTION = "PETALINUX/apps" 8 | LICENSE = "MIT" 9 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" 10 | SRC_URI = "file://gpio-demo.c \ 11 | file://Makefile \ 12 | " 13 | S = "${WORKDIR}" 14 | CFLAGS:prepend = "-I ${S}/include" 15 | do_compile() { 16 | oe_runmake 17 | } 18 | do_install() { 19 | install -d ${D}${bindir} 20 | install -m 0755 ${S}/gpio-demo ${D}${bindir} 21 | 22 | } 23 | 24 | -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.20.5.bbappend: -------------------------------------------------------------------------------- 1 | require gstreamer-xilinx-1.20.5.inc 2 | 3 | SRC_URI:append = " \ 4 | file://0001-fix-maybe-uninitialized-warnings-when-compiling-with.patch \ 5 | file://0002-avoid-including-sys-poll.h-directly.patch \ 6 | file://0004-opencv-resolve-missing-opencv-data-dir-in-yocto-buil.patch \ 7 | " 8 | 9 | PACKAGECONFIG[mediasrcbin] = "-Dmediasrcbin=enabled,-Dmediasrcbin=disabled,media-ctl" 10 | PACKAGECONFIG:append = " faac kms faad opusparse mediasrcbin" 11 | 12 | S = "${WORKDIR}/git/subprojects/gst-plugins-bad" 13 | -------------------------------------------------------------------------------- /recipes-utils/avrdude/avrdude.inc: -------------------------------------------------------------------------------- 1 | DESCRIPTION = "AVRDUDE is software for programming Atmel AVR Microcontrollers." 2 | SUMMARY = "AVRDUDE is a utility to download/upload/manipulate the ROM and EEPROM contents of AVR microcontrollers using the in-system programming technique (ISP)." 3 | 4 | HOMEPAGE = "http://www.nongnu.org/avrdude/" 5 | 6 | LICENSE = "GPL-2.0-only" 7 | LIC_FILES_CHKSUM = "file://COPYING;md5=4f51bb496ef8872ccff73f440f2464a8" 8 | 9 | DEPENDS = "virtual/libusb0 ncurses bison-native" 10 | 11 | SRC_URI = "http://savannah.nongnu.org/download/avrdude/avrdude-${PV}.tar.gz" 12 | 13 | inherit autotools 14 | -------------------------------------------------------------------------------- /conf/templates/default/conf-notes.txt: -------------------------------------------------------------------------------- 1 | ### Shell environment set up for builds. ### 2 | 3 | You can now run 'bitbake ' 4 | 5 | Common targets are: 6 | petalinux-image-minimal 7 | petalinux-image-full 8 | petalinux-image-everything 9 | meta-qemu-xilinx 10 | meta-xilinx-toolchain 11 | 12 | You can also run generated qemu images with a command like 'runqemu qemux86-64'. 13 | 14 | Other commonly useful commands are: 15 | - 'devtool' and 'recipetool' handle common recipe tasks 16 | - 'bitbake-layers' handles common layer tasks 17 | - 'oe-pkgdata-util' handles common target package tasks 18 | 19 | -------------------------------------------------------------------------------- /recipes-support/ntp/files/ntp.conf: -------------------------------------------------------------------------------- 1 | # /etc/ntp.conf, configuration for ntpd; see ntp.conf(5) for help 2 | 3 | driftfile /var/lib/ntp/ntp.drift 4 | 5 | # You do need to talk to an NTP server or two (or three). 6 | #server ntp.your-provider.example 7 | 8 | # pool.ntp.org maps to about 1000 low-stratum NTP servers. Your server will 9 | # pick a different set every time it starts up. Please consider joining the 10 | # pool: 11 | server 0.debian.pool.ntp.org iburst 12 | server 1.debian.pool.ntp.org iburst 13 | server 2.debian.pool.ntp.org iburst 14 | server 3.debian.pool.ntp.org iburst 15 | 16 | -------------------------------------------------------------------------------- /recipes-core/packagegroups/packagegroup-petalinux-ocicontainers.bb: -------------------------------------------------------------------------------- 1 | DESCRIPTION = "PetaLinux oci containers related packages" 2 | 3 | inherit packagegroup features_check 4 | 5 | REQUIRED_DISTRO_FEATURES = " virtualization" 6 | REQUIRED_DISTRO_FEATURES:append:zynqmp = " vmsep" 7 | REQUIRED_DISTRO_FEATURES:append:versal = " vmsep" 8 | 9 | OCI_PACKAGES = " \ 10 | docker \ 11 | runc-opencontainers \ 12 | containerd-opencontainers \ 13 | cgroup-lite \ 14 | " 15 | OCI_PACKAGES:append = " ${@bb.utils.contains('DISTRO_FEATURES', 'vmsep', 'packagegroup-petalinux-runx', '', d)}" 16 | 17 | RDEPENDS:${PN} = "${OCI_PACKAGES}" 18 | -------------------------------------------------------------------------------- /recipes-qt/qt5/qtmultimedia_%.bbappend: -------------------------------------------------------------------------------- 1 | # Links to libmali-xlnx, so it becomes MACHINE_ARCH specific 2 | DEFAULT_PACKAGE_ARCH := "${PACKAGE_ARCH}" 3 | MALI_PACKAGE_ARCH[vardepsexclude] = "MACHINE_ARCH" 4 | MALI_PACKAGE_ARCH = "${@'${MACHINE_ARCH}' if d.getVar('PREFERRED_PROVIDER_virtual/libgles1') == 'libmali-xlnx' else '${DEFAULT_PACKAGE_ARCH}'}" 5 | PACKAGE_ARCH[vardepsexclude] = "MALI_PACKAGE_ARCH" 6 | PACKAGE_ARCH = "${@bb.utils.contains_any('DEPENDS', 'gstreamer1.0-plugins-base', '${MALI_PACKAGE_ARCH}', '${DEFAULT_PACKAGE_ARCH}', d)}" 7 | # Note: gstreamer1.0-plugins-base has a dependency on opengl, which infects directly linking to it 8 | -------------------------------------------------------------------------------- /recipes-kernel/linux-xlnx/linux-xlnx_%.bbappend: -------------------------------------------------------------------------------- 1 | PLNX_XEN_DEPLOY = "${@ 'image-xlnx-xen' if d.getVar('IMAGE_PLNX_XEN_DEPLOY') == '1' else '' }" 2 | inherit deploy ${PLNX_XEN_DEPLOY} 3 | FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" 4 | SRC_URI:append:aarch64 = " ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'file://uevent.cfg', '', d)}" 5 | 6 | python() { 7 | initramfs = d.getVar('INITRAMFS_IMAGE') or '' 8 | xen_deploy = d.getVar('IMAGE_PLNX_XEN_DEPLOY') or '' 9 | if initramfs and xen_deploy: 10 | d.appendVarFlag('do_deploy', 'postfuncs', ' plnx_compile_image_builder') 11 | } 12 | 13 | DT_SEARCH_ARG="-name *.dtb" 14 | -------------------------------------------------------------------------------- /recipes-qt/qt5/qtwebkit_%.bbappend: -------------------------------------------------------------------------------- 1 | # Links to libmali-xlnx, so it becomes MACHINE_ARCH specific 2 | DEFAULT_PACKAGE_ARCH := "${PACKAGE_ARCH}" 3 | MALI_PACKAGE_ARCH[vardepsexclude] = "MACHINE_ARCH" 4 | MALI_PACKAGE_ARCH = "${@'${MACHINE_ARCH}' if d.getVar('PREFERRED_PROVIDER_virtual/libgles1') == 'libmali-xlnx' else '${DEFAULT_PACKAGE_ARCH}'}" 5 | PACKAGE_ARCH[vardepsexclude] = "MALI_PACKAGE_ARCH" 6 | PACKAGE_ARCH = "${@bb.utils.contains_any('DEPENDS', 'qtmultimedia', '${MALI_PACKAGE_ARCH}', '${DEFAULT_PACKAGE_ARCH}', d)}" 7 | # Note: qtmultimedia has a dependency on gstreamer1.0-plugins-base, which has a dependency on opengl, which infects directly linking to it 8 | 9 | -------------------------------------------------------------------------------- /recipes-core/packagegroups/packagegroup-petalinux-xen.bb: -------------------------------------------------------------------------------- 1 | DESCRIPTION = "PetaLinux Xen supported packages" 2 | 3 | PACKAGE_ARCH = "${TUNE_PKGARCH}" 4 | 5 | inherit packagegroup features_check 6 | 7 | REQUIRED_DISTRO_FEATURES = "xen" 8 | 9 | XEN_EXTRA_PACKAGES = " \ 10 | kernel-module-xen-blkback \ 11 | kernel-module-xen-gntalloc \ 12 | kernel-module-xen-gntdev \ 13 | kernel-module-xen-netback \ 14 | kernel-module-xen-wdt \ 15 | xen \ 16 | xen-tools \ 17 | xen-tools-xenstat \ 18 | qemu-system-aarch64 \ 19 | ${@bb.utils.contains('DISTRO_FEATURES', 'vmsep', 'qemu-keymaps', 'qemu', d)} \ 20 | " 21 | 22 | RDEPENDS:${PN} = "${XEN_EXTRA_PACKAGES}" 23 | -------------------------------------------------------------------------------- /dynamic-layers/xilinx-standalone-exp/recipes-core/meta/buildtools-std-exp.inc: -------------------------------------------------------------------------------- 1 | FILESEXTRAPATHS:append := ":${META_XILINX_STANDALONE_EXP_PATH}/recipes-core/meta/files" 2 | 3 | SRC_URI += " \ 4 | file://dt-processor.sh \ 5 | file://README-setup \ 6 | " 7 | 8 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" 9 | 10 | TOOLCHAIN_HOST_TASK += "\ 11 | nativesdk-xilinx-lops \ 12 | nativesdk-esw-conf \ 13 | " 14 | 15 | create_sdk_files:append () { 16 | install -m 0644 ${WORKDIR}/README-setup ${SDK_OUTPUT}/${SDKPATH}/. 17 | install -m 0755 ${WORKDIR}/dt-processor.sh ${SDK_OUTPUT}/${SDKPATH}/. 18 | } 19 | -------------------------------------------------------------------------------- /recipes-core/packagegroups/packagegroup-petalinux-ultra96-webapp.bb: -------------------------------------------------------------------------------- 1 | DESCRIPTION = "Required packages for ultra96 startup pages" 2 | 3 | COMPATIBLE_MACHINE:ultra96-zynqmp = "${MACHINE}" 4 | 5 | PACKAGE_ARCH = "${MACHINE_ARCH}" 6 | 7 | inherit packagegroup 8 | 9 | ULTRA96_STARTUP_PAGES_PACKAGES = " \ 10 | ace-cloud-editor \ 11 | python3-flask \ 12 | python3-werkzeug \ 13 | python3-jinja2 \ 14 | python3-markupsafe \ 15 | python3-itsdangerous \ 16 | " 17 | 18 | ULTRA96_STARTUP_PAGES_PACKAGES:append:ultra96-zynqmp = " \ 19 | ultra96-ap-setup \ 20 | ultra96-startup-pages \ 21 | ultra96-wlan0-config \ 22 | " 23 | 24 | RDEPENDS:${PN} = "${ULTRA96_STARTUP_PAGES_PACKAGES}" 25 | -------------------------------------------------------------------------------- /recipes-core/packagegroups/packagegroup-petalinux-96boards-sensors.bb: -------------------------------------------------------------------------------- 1 | DESCRIPTION = "Required packages for 96boards sensor mezzanine examples" 2 | 3 | PACKAGE_ARCH = "${MACHINE_ARCH}" 4 | 5 | inherit packagegroup 6 | 7 | 96BOARD_SENSOR_PACKAGES = " \ 8 | avrdude \ 9 | ntp \ 10 | packagegroup-core-buildessential \ 11 | packagegroup-petalinux-mraa \ 12 | python3-pyserial \ 13 | readline \ 14 | libftdi \ 15 | " 16 | 17 | 96BOARD_SENSOR_PACKAGES:append:ultra96-zynqmp = " \ 18 | sensor-mezzanine-examples \ 19 | arduino-toolchain \ 20 | python3-oauthlib \ 21 | python3-requests-oauthlib \ 22 | python3-twitter \ 23 | " 24 | 25 | RDEPENDS:${PN} = "${96BOARD_SENSOR_PACKAGES}" 26 | -------------------------------------------------------------------------------- /recipes-core/udev/eudev_%.bbappend: -------------------------------------------------------------------------------- 1 | FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" 2 | 3 | MOUNT_DIR ?= "/media" 4 | SRC_URI += " \ 5 | file://11-sd-cards-auto-mount.rules \ 6 | file://99-SOM-applications.rules \ 7 | " 8 | 9 | do_install:append() { 10 | install -d ${D}${sysconfdir}/udev/rules.d 11 | install -m 0644 ${WORKDIR}/11-sd-cards-auto-mount.rules ${D}${sysconfdir}/udev/rules.d/11-sd-cards-auto-mount.rules 12 | install -m 0644 ${WORKDIR}/99-SOM-applications.rules ${D}${sysconfdir}/udev/rules.d/99-SOM-applications.rules 13 | } 14 | 15 | do_configure:append() { 16 | sed -i -e "s|@@MOUNT_DIR@@|${MOUNT_DIR}|g" "${WORKDIR}/11-sd-cards-auto-mount.rules" 17 | } 18 | -------------------------------------------------------------------------------- /recipes-examples/peekpoke/peekpoke.bb: -------------------------------------------------------------------------------- 1 | # 2 | # This is the peekpoke apllication recipe 3 | # 4 | # 5 | 6 | SUMMARY = "peekpoke application" 7 | SECTION = "PETALINUX/apps" 8 | LICENSE = "MIT" 9 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" 10 | SRC_URI = "file://peek.c \ 11 | file://poke.c \ 12 | file://Makefile \ 13 | " 14 | S = "${WORKDIR}" 15 | CFLAGS:prepend = "-I ${S}/include" 16 | do_compile() { 17 | oe_runmake 18 | } 19 | do_install() { 20 | install -d ${D}${bindir} 21 | install -m 0755 ${S}/peek ${D}${bindir} 22 | install -m 0755 ${S}/poke ${D}${bindir} 23 | 24 | } 25 | 26 | -------------------------------------------------------------------------------- /recipes-core/udev/eudev/11-sd-cards-auto-mount.rules: -------------------------------------------------------------------------------- 1 | KERNEL!="mmcblk[0-9]p[0-9]", GOTO="sd_cards_auto_mount_end" 2 | 3 | # Global mount options 4 | ACTION=="add", ENV{mount_options}="relatime" 5 | # Filesystem specific options 6 | ACTION=="add", IMPORT{program}="/sbin/blkid -o udev -p %N" 7 | ACTION=="add", ENV{ID_FS_TYPE}=="vfat|ntfs", ENV{mount_options}="$env{mount_options},utf8,gid=100,umask=002" 8 | 9 | ACTION=="add", RUN+="/bin/mkdir -p @@MOUNT_DIR@@/sd-%k", RUN+="/bin/ln -s @@MOUNT_DIR@@/sd-%k /mnt/sd-%k", RUN+="/bin/mount -o $env{mount_options} /dev/%k @@MOUNT_DIR@@/sd-%k" 10 | ACTION=="remove", RUN+="/bin/umount -l @@MOUNT_DIR@@/sd-%k", RUN+="/bin/rmdir @@MOUNT_DIR@@/sd-%k" 11 | LABEL="sd_cards_auto_mount_end" 12 | -------------------------------------------------------------------------------- /classes/plnx-sanity-meta-petalinux.bbclass: -------------------------------------------------------------------------------- 1 | addhandler plnx_sanity_check 2 | plnx_sanity_check[eventmask] = "bb.event.SanityCheck" 3 | python plnx_sanity_check() { 4 | skip_check = e.data.getVar('SKIP_META_PETALINUX_SANITY_CHECK') == "1" 5 | if skip_check: 6 | return 7 | 8 | provencore_layer = 'provenrun' in e.data.getVar('BBFILE_COLLECTIONS').split() 9 | provencore_feature = 'provencore' in e.data.getVar('MACHINE_FEATURES').split() 10 | if not provencore_layer and provencore_feature: 11 | bb.warn("You have enabled provencore in MACHINE_FEATURES, but not \ 12 | included the provencore layer in your project. This will prevent the \ 13 | provencore components from being available.") 14 | } 15 | 16 | -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer/gstreamer-vdu-notebooks_0.1.bb: -------------------------------------------------------------------------------- 1 | DESCRIPTION = "Jupyter notebook examples for VDU in Versal" 2 | LICENSE = "BSD-3-Clause" 3 | LIC_FILES_CHKSUM = "file://LICENSE.md;md5=17e31b2e971eed6471a361c7dc4faa18" 4 | 5 | inherit jupyter-examples 6 | 7 | require gstreamer-multimedia-notebooks_0.1.inc 8 | 9 | S = "${WORKDIR}/git" 10 | 11 | inherit features_check 12 | 13 | REQUIRED_MACHINE_FEATURES = "vdu" 14 | PACKAGE_ARCH = "${MACHINE_ARCH}" 15 | 16 | RDEPENDS:${PN} = "packagegroup-petalinux-jupyter packagegroup-petalinux-gstreamer gstreamer-vdu-examples start-jupyter" 17 | 18 | EXTRA_OEMAKE = 'D=${D} JUPYTER_DIR=${JUPYTER_DIR}' 19 | 20 | do_install() { 21 | oe_runmake -C ${S}/vdu install_vdu_notebooks 22 | } 23 | -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer/gstreamer1.0_1.20.5.bbappend: -------------------------------------------------------------------------------- 1 | require gstreamer-xilinx-1.20.5.inc 2 | 3 | SRC_URI:append = " \ 4 | file://run-ptest \ 5 | file://0001-tests-respect-the-idententaion-used-in-meson.patch;striplevel=3 \ 6 | file://0002-tests-add-support-for-install-the-tests.patch;striplevel=3 \ 7 | file://0003-tests-use-a-dictionaries-for-environment.patch;striplevel=3 \ 8 | file://0004-tests-add-helper-script-to-run-the-installed_tests.patch;striplevel=3 \ 9 | file://0005-bin-Fix-race-conditions-in-tests.patch;striplevel=3 \ 10 | " 11 | 12 | PACKAGECONFIG:append = " tracer-hooks coretracers" 13 | 14 | S = "${WORKDIR}/git/subprojects/gstreamer" 15 | -------------------------------------------------------------------------------- /recipes-core/packagegroups/packagegroup-petalinux.bb: -------------------------------------------------------------------------------- 1 | DESCRIPTION = "PetaLinux miscellaneous packages" 2 | 3 | PACKAGE_ARCH = "${SOC_FAMILY_ARCH}" 4 | 5 | inherit packagegroup 6 | 7 | # Packages 8 | RDEPENDS:${PN} = "\ 9 | bash \ 10 | bzip2 \ 11 | flex \ 12 | gmp \ 13 | libnet \ 14 | libpng \ 15 | libusb-compat \ 16 | libusb1 \ 17 | popt \ 18 | unzip \ 19 | zlib \ 20 | tcf-agent \ 21 | " 22 | 23 | ZYNQ_EXTRAS = " \ 24 | dnf \ 25 | libattr \ 26 | libinput \ 27 | gdb \ 28 | libftdi \ 29 | cmake \ 30 | " 31 | 32 | RDEPENDS:${PN}:append:zynq = " \ 33 | ${ZYNQ_EXTRAS} \ 34 | " 35 | 36 | RDEPENDS:${PN}:append:zynqmp = " \ 37 | ${ZYNQ_EXTRAS} \ 38 | " 39 | RDEPENDS:${PN}:append:versal = " \ 40 | ${ZYNQ_EXTRAS} \ 41 | " 42 | -------------------------------------------------------------------------------- /recipes-devtools/gcc/gcc-xilinx-standalone-multilib.inc: -------------------------------------------------------------------------------- 1 | # Both arm and armv*r overrides are set w/ cortex r5 2 | # So only set rmprofile if armv*r is defined. 3 | ARM_PROFILE = "aprofile" 4 | ARM_PROFILE:armv7r = "rmprofile" 5 | ARM_PROFILE:armv8r = "rmprofile" 6 | EXTRA_OECONF:append:xilinx-standalone:arm:baremetal-multilib-tc = " \ 7 | --with-multilib-list=${ARM_PROFILE} \ 8 | " 9 | 10 | # RISC V configuration 11 | EXTRA_OECONF:append:xilinx-standalone:riscv:baremetal-mulitlib-tc = " \ 12 | --with-multilib-generator='rv32i-ilp32--c;rv32im-ilp32--c;rv32imc-ilp32--;rv32iac-ilp32--;rv32imac-ilp32--;rv32imafc-ilp32f--;rv32imafdc-ilp32d--;rv64i-lp64--;rv64im-lp64--;rv64imac-lp64--;rv64imafdc-lp64d--' \ 13 | " 14 | 15 | -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer/gstreamer-vcu-notebooks_0.1.bb: -------------------------------------------------------------------------------- 1 | DESCRIPTION = "Jupyter notebook examples for VCU in ZynqMP-EV devices" 2 | LICENSE = "BSD-3-Clause" 3 | LIC_FILES_CHKSUM = "file://LICENSE.md;md5=17e31b2e971eed6471a361c7dc4faa18" 4 | 5 | inherit jupyter-examples 6 | 7 | require gstreamer-multimedia-notebooks_0.1.inc 8 | 9 | S = "${WORKDIR}/git" 10 | 11 | inherit features_check 12 | 13 | REQUIRED_MACHINE_FEATURES = "vcu" 14 | PACKAGE_ARCH = "${MACHINE_ARCH}" 15 | 16 | RDEPENDS:${PN} = "packagegroup-petalinux-jupyter packagegroup-petalinux-gstreamer gstreamer-vcu-examples start-jupyter" 17 | 18 | EXTRA_OEMAKE = 'D=${D} JUPYTER_DIR=${JUPYTER_DIR}' 19 | 20 | do_install() { 21 | oe_runmake -C ${S}/vcu install_vcu_notebooks 22 | } 23 | -------------------------------------------------------------------------------- /recipes-multimedia/sample-content/bigbuckbunny-2160p30.bb: -------------------------------------------------------------------------------- 1 | SUMMARY = "Big Buck Bunny Movie - 3840*2160@30fps" 2 | LICENSE = "CC-BY-3.0" 3 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/CC-BY-3.0;md5=dfa02b5755629022e267f10b9c0a2ab7" 4 | 5 | SRC_URI = "http://ftp.nluug.nl/pub/graphics/blender/demo/movies/BBB/bbb_sunflower_2160p_30fps_normal.mp4" 6 | SRC_URI[md5sum] = "fca22c88d7cf72c02df69a6157d2185b" 7 | SRC_URI[sha256sum] = "37f0ff251a606c2dcfa26c19fe6bf843234b4e7a8889cfab50bc26f644e55520" 8 | 9 | inherit allarch 10 | 11 | do_install() { 12 | install -d ${D}${datadir}/movies 13 | install -m 0644 ${WORKDIR}/bbb_sunflower_2160p_30fps_normal.mp4 ${D}${datadir}/movies/ 14 | } 15 | 16 | FILES:${PN} += "${datadir}/movies" 17 | -------------------------------------------------------------------------------- /recipes-multimedia/sample-content/bigbuckbunny-2160p60.bb: -------------------------------------------------------------------------------- 1 | SUMMARY = "Big Buck Bunny Movie - 3840*2160@60fps" 2 | LICENSE = "CC-BY-3.0" 3 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/CC-BY-3.0;md5=dfa02b5755629022e267f10b9c0a2ab7" 4 | 5 | SRC_URI = "http://ftp.nluug.nl/pub/graphics/blender/demo/movies/BBB/bbb_sunflower_2160p_60fps_normal.mp4" 6 | SRC_URI[md5sum] = "fb20ba0a7f531eabb345a5abcce33d78" 7 | SRC_URI[sha256sum] = "35db9a007021f1b0066993e1d2c4448c83a8b279f799c97d33cbba73980a8a36" 8 | 9 | inherit allarch 10 | 11 | do_install() { 12 | install -d ${D}${datadir}/movies 13 | install -m 0644 ${WORKDIR}/bbb_sunflower_2160p_60fps_normal.mp4 ${D}${datadir}/movies/ 14 | } 15 | 16 | FILES:${PN} += "${datadir}/movies" 17 | -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer/gst-perf_1.0.bb: -------------------------------------------------------------------------------- 1 | SUMMARY = "GStreamer Perf 1.0" 2 | DESCRIPTION = "GStreamer element to measure fps and performance" 3 | HOMEPAGE = "https://github.com/RidgeRun/gst-perf-autotools" 4 | SECTION = "multimedia" 5 | LICENSE = "LGPL-2.0-or-later" 6 | 7 | LIC_FILES_CHKSUM = "file://LICENSE;md5=5f30f0716dfdd0d91eb439ebec522ec2" 8 | 9 | inherit autotools pkgconfig gettext 10 | 11 | DEPENDS += "gstreamer1.0 gstreamer1.0-plugins-base gstreamer1.0-plugins-bad" 12 | 13 | SRCBRANCH ?= "master" 14 | SRCREV ?= "d50ddc4a8c0dedd4f2de77d7f3f570548a1a0d76" 15 | SRC_URI = "git://github.com/RidgeRun/gst-perf.git;protocol=https;branch=${SRCBRANCH}" 16 | 17 | S = "${WORKDIR}/git" 18 | 19 | FILES:${PN} += "${libdir}/gstreamer-1.0/libgstperf.so" 20 | 21 | -------------------------------------------------------------------------------- /recipes-devtools/python/python3-links.bb: -------------------------------------------------------------------------------- 1 | SUMMARY = "Symlinks for python version files" 2 | LICENSE = "MIT" 3 | SECTION = "devel/python" 4 | 5 | do_configure[noexec] = '1' 6 | do_compile[noexec] = '1' 7 | 8 | INHIBIT_DEFAULT_DEPS = '1' 9 | 10 | RDEPENDS:${PN} = 'python3-core' 11 | 12 | do_install() { 13 | mkdir -p ${D}${bindir} 14 | # Install symlinks for utilities that try to call specific versions 15 | ln -s python3.7 ${D}${bindir}/python3.0 16 | ln -s python3.7 ${D}${bindir}/python3.1 17 | ln -s python3.7 ${D}${bindir}/python3.2 18 | ln -s python3.7 ${D}${bindir}/python3.3 19 | ln -s python3.7 ${D}${bindir}/python3.4 20 | ln -s python3.7 ${D}${bindir}/python3.5 21 | ln -s python3.7 ${D}${bindir}/python3.6 22 | } 23 | 24 | BBCLASSEXTEND = "nativesdk" 25 | -------------------------------------------------------------------------------- /recipes-extended/sysklogd/files/enable-kernel-to-console.patch: -------------------------------------------------------------------------------- 1 | syslog.conf: Enable kernel output to console 2 | 3 | Enable kernel output to console to warning priority or higher 4 | 5 | Upstream-Status: Inappropriate [PetaLinux specific] 6 | 7 | Signed-off-by: Vishal Patel 8 | --- 9 | CR-1106256 10 | 11 | Index: git/syslog.conf 12 | =================================================================== 13 | --- git.orig/syslog.conf 14 | +++ git/syslog.conf 15 | @@ -12,6 +12,7 @@ auth,authpriv.* /var/log/auth.log 16 | #cron.* /var/log/cron.log 17 | #daemon.* -/var/log/daemon.log 18 | kern.* -/var/log/kern.log 19 | +kern.warning -/dev/console 20 | #lpr.* -/var/log/lpr.log 21 | mail.* -/var/log/mail.log 22 | #user.* -/var/log/user.log 23 | -------------------------------------------------------------------------------- /recipes-core/packagegroups/packagegroup-petalinux-vitis-acceleration.bb: -------------------------------------------------------------------------------- 1 | DESCRIPTION = "Packages for Vitis compatible platforms" 2 | 3 | PACKAGE_ARCH = "${MACHINE_ARCH}" 4 | 5 | inherit packagegroup 6 | 7 | PACKAGES += "${PN}-essential ${PN}-recommends" 8 | 9 | RDEPENDS:${PN}-essential:zynqmp = " \ 10 | xrt \ 11 | zocl \ 12 | " 13 | 14 | RDEPENDS:${PN}-essential:versal = " \ 15 | xrt \ 16 | zocl \ 17 | " 18 | 19 | RDEPENDS:${PN}-essential = " \ 20 | opencl-headers \ 21 | packagegroup-petalinux-opencv \ 22 | packagegroup-petalinux-x11 \ 23 | " 24 | 25 | RRECOMMENDS:${PN}-recommends = " \ 26 | gdb \ 27 | valgrind \ 28 | resize-part \ 29 | htop \ 30 | iperf3 \ 31 | meson \ 32 | dnf \ 33 | " 34 | 35 | RDEPENDS:${PN}-essential:append:versal-ai-core = "ai-engine-driver" 36 | -------------------------------------------------------------------------------- /recipes-support/opencv/opencv_%.bbappend: -------------------------------------------------------------------------------- 1 | PACKAGECONFIG:append:class-native = " \ 2 | libav \ 3 | dnn \ 4 | freetype \ 5 | text \ 6 | " 7 | 8 | do_install:append() { 9 | sed -i '/TARGET correspondence/d' ${D}${libdir}/cmake/opencv4/OpenCVModules-release.cmake 10 | sed -i '/_IMPORT_CHECK_TARGETS correspondence/d' ${D}${libdir}/cmake/opencv4/OpenCVModules-release.cmake 11 | 12 | sed -i '/TARGET numeric/d' ${D}${libdir}/cmake/opencv4/OpenCVModules-release.cmake 13 | sed -i '/_IMPORT_CHECK_TARGETS numeric/d' ${D}${libdir}/cmake/opencv4/OpenCVModules-release.cmake 14 | 15 | sed -i '/TARGET multiview/d' ${D}${libdir}/cmake/opencv4/OpenCVModules-release.cmake 16 | sed -i '/_IMPORT_CHECK_TARGETS multiview/d' ${D}${libdir}/cmake/opencv4/OpenCVModules-release.cmake 17 | } 18 | -------------------------------------------------------------------------------- /recipes-core/base-files/base-files-board-variant.bb: -------------------------------------------------------------------------------- 1 | SUMMARY = "Petalinux identification files for the base system" 2 | DESCRIPTION = "Identify the configuration that was used to generate this rootfs" 3 | SECTION = "base" 4 | PV = "${PETALINUX_VERSION}" 5 | LICENSE = "MIT" 6 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" 7 | 8 | INHIBIT_DEFAULT_DEPS = "1" 9 | 10 | PACKAGE_ARCH = "${MACHINE_ARCH}" 11 | 12 | do_configure[noexec] = '1' 13 | do_compile[noexec] = '1' 14 | 15 | do_install () { 16 | install -d -m 0755 ${D}${sysconfdir}/${DISTRO} 17 | 18 | echo "${MACHINEOVERRIDES}" > ${D}${sysconfdir}/${DISTRO}/board-variant 19 | } 20 | 21 | FILES:${PN} = "${sysconfdir}/${DISTRO}" 22 | CONFFILES:${PN} = " \ 23 | ${sysconfdir}/${DISTRO}/board-variant \ 24 | " 25 | -------------------------------------------------------------------------------- /recipes-core/packagegroups/packagegroup-self-hosted.bbappend: -------------------------------------------------------------------------------- 1 | REQUIRED_DISTRO_FEATURES:remove = "x11" 2 | 3 | PACKAGES:remove = " \ 4 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11', '', 'packagegroup-self-hosted-graphics', d)} \ 5 | " 6 | 7 | RDEPENDS:packagegroup-self-hosted:remove = " \ 8 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11', '', 'packagegroup-self-hosted-graphics', d)} \ 9 | " 10 | 11 | RDEPENDS:packagegroup-self-hosted-extended:remove = " \ 12 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11', '', 'settings-daemon', d)} \ 13 | openssh-ssh \ 14 | openssh-scp \ 15 | openssh-sftp-server \ 16 | " 17 | 18 | RDEPENDS:packagegroup-self-hosted-graphics:remove = " \ 19 | builder \ 20 | ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', '', 'libgl libgl-dev libglu libglu-dev', d)} \ 21 | " 22 | -------------------------------------------------------------------------------- /recipes-core/meta/buildtools.inc: -------------------------------------------------------------------------------- 1 | TOOLCHAIN_HOST_TASK += "\ 2 | nativesdk-python3-sqlite3 \ 3 | nativesdk-python3-pyyaml \ 4 | nativesdk-qemu \ 5 | nativesdk-bootgen \ 6 | nativesdk-lopper \ 7 | " 8 | 9 | # Add petalinux host dependencies 10 | TOOLCHAIN_HOST_TASK += "\ 11 | nativesdk-dos2unix \ 12 | nativesdk-gawk \ 13 | nativesdk-socat \ 14 | nativesdk-unzip \ 15 | nativesdk-gzip \ 16 | nativesdk-python3 \ 17 | nativesdk-python3-links \ 18 | nativesdk-tftp-hpa \ 19 | nativesdk-diffstat \ 20 | nativesdk-gnupg \ 21 | nativesdk-bzip2 \ 22 | nativesdk-xz \ 23 | nativesdk-cpio \ 24 | nativesdk-file \ 25 | nativesdk-kconfig-frontends \ 26 | nativesdk-u-boot-tools \ 27 | nativesdk-tcl \ 28 | " 29 | 30 | create_sdk_files:append () { 31 | echo 'export PETALINUX_NATIVE_SYSROOT="${SDKPATHNATIVE}"' >> $script 32 | } 33 | -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer/gstreamer-vdu-examples_0.1.bb: -------------------------------------------------------------------------------- 1 | DESCRIPTION = "Demo scripts to run common usecases involving VDU in Versal" 2 | LICENSE = "MIT" 3 | LIC_FILES_CHKSUM = "file://LICENSE.md;md5=17e31b2e971eed6471a361c7dc4faa18" 4 | 5 | require gstreamer-multimedia-notebooks_0.1.inc 6 | 7 | S = "${WORKDIR}/git" 8 | 9 | inherit features_check 10 | 11 | REQUIRED_MACHINE_FEATURES = "vdu" 12 | PACKAGE_ARCH = "${MACHINE_ARCH}" 13 | 14 | RDEPENDS:${PN} = "gstreamer1.0-omx gstreamer1.0-plugins-bad bash python3-pip alsa-utils" 15 | 16 | EXTRA_OEMAKE = 'D=${D} bindir=${bindir} datadir=${datadir}' 17 | 18 | do_install() { 19 | oe_runmake -C ${S}/vdu install_vdu_examples 20 | } 21 | 22 | # These libraries shouldn't get installed in world builds unless something 23 | # explicitly depends upon them. 24 | 25 | EXCLUDE_FROM_WORLD = "1" 26 | -------------------------------------------------------------------------------- /recipes-examples/hellopm/hellopm_2023.1.bb: -------------------------------------------------------------------------------- 1 | # 2 | # This recipe installs start script hellopm.sh in /usr/bin directory 3 | # 4 | 5 | DESCRIPTION = "This is a Power management Linux application which will allow user to do various operations such as suspend,wakeup,reboot,shutdown the system." 6 | SUMMARY = "Hello PM Management Linux Application" 7 | LICENSE = "Proprietary" 8 | LIC_FILES_CHKSUM = "file://${WORKDIR}/hellopm.sh;beginline=3;endline=28;md5=bae95b94bf30629240b67f175cfd05ed" 9 | 10 | COMPATIBLE_MACHINE = "^$" 11 | COMPATIBLE_MACHINE:zynqmp = "zynqmp" 12 | 13 | SRC_URI = "\ 14 | file://hellopm.sh \ 15 | " 16 | 17 | S = "${WORKDIR}" 18 | 19 | FILESEXTRAPATHS:prepend := "${THISDIR}/files:" 20 | 21 | do_install() { 22 | install -Dm 0755 ${S}/hellopm.sh ${D}${bindir}/hellopm 23 | } 24 | 25 | PACKAGE_ARCH = "${SOC_FAMILY_ARCH}" 26 | -------------------------------------------------------------------------------- /recipes-examples/hellopm/hellopm_2023.2.bb: -------------------------------------------------------------------------------- 1 | # 2 | # This recipe installs start script hellopm.sh in /usr/bin directory 3 | # 4 | 5 | DESCRIPTION = "This is a Power management Linux application which will allow user to do various operations such as suspend,wakeup,reboot,shutdown the system." 6 | SUMMARY = "Hello PM Management Linux Application" 7 | LICENSE = "Proprietary" 8 | LIC_FILES_CHKSUM = "file://${WORKDIR}/hellopm.sh;beginline=3;endline=28;md5=bae95b94bf30629240b67f175cfd05ed" 9 | 10 | COMPATIBLE_MACHINE = "^$" 11 | COMPATIBLE_MACHINE:zynqmp = "zynqmp" 12 | 13 | SRC_URI = "\ 14 | file://hellopm.sh \ 15 | " 16 | 17 | S = "${WORKDIR}" 18 | 19 | FILESEXTRAPATHS:prepend := "${THISDIR}/files:" 20 | 21 | do_install() { 22 | install -Dm 0755 ${S}/hellopm.sh ${D}${bindir}/hellopm 23 | } 24 | 25 | PACKAGE_ARCH = "${SOC_FAMILY_ARCH}" 26 | -------------------------------------------------------------------------------- /recipes-benchmarks/glmark2/glmark2_%.bbappend: -------------------------------------------------------------------------------- 1 | FILESEXTRAPATHS:prepend := "${THISDIR}/files:" 2 | 3 | # TODO: Two patches are disabled as they do not apply to the current version of glmark2 4 | # This will need review by someone familiar with that code 5 | SRC_URI:append = " file://0001-Make-RGB565-as-default-EGLconfig.patch \ 6 | file://0001-src-options.cpp-Add-options-to-configure-bpp-and-dep.patch;apply=0 \ 7 | file://0001-src-gl-state-egl-Use-native_display-to-load-EGL-func.patch;apply=0 \ 8 | " 9 | 10 | PACKAGECONFIG = " \ 11 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'x11-gl x11-gles2', '', d)} \ 12 | ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'drm-gles2 wayland-gles2', '', d)} \ 13 | ${@bb.utils.contains('DISTRO_FEATURES', 'fbdev', 'fbdev-glesv2', '', d)} \ 14 | " 15 | -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer/gstreamer-vcu-examples_0.1.bb: -------------------------------------------------------------------------------- 1 | DESCRIPTION = "Demo scripts to run common usecases involving VCU in ZynqMP" 2 | LICENSE = "MIT" 3 | LIC_FILES_CHKSUM = "file://LICENSE.md;md5=17e31b2e971eed6471a361c7dc4faa18" 4 | 5 | require gstreamer-multimedia-notebooks_0.1.inc 6 | 7 | S = "${WORKDIR}/git" 8 | 9 | inherit features_check 10 | 11 | REQUIRED_MACHINE_FEATURES = "vcu" 12 | PACKAGE_ARCH = "${MACHINE_ARCH}" 13 | 14 | RDEPENDS:${PN} = "gstreamer1.0-omx gstreamer1.0-plugins-bad bash python3-pip alsa-utils matchbox-desktop" 15 | 16 | EXTRA_OEMAKE = 'D=${D} bindir=${bindir} datadir=${datadir}' 17 | 18 | do_install() { 19 | oe_runmake -C ${S}/vcu install_vcu_examples 20 | } 21 | 22 | # These libraries shouldn't get installed in world builds unless something 23 | # explicitly depends upon them. 24 | 25 | EXCLUDE_FROM_WORLD = "1" 26 | -------------------------------------------------------------------------------- /recipes-core/packagegroups/packagegroup-petalinux-matchbox.bb: -------------------------------------------------------------------------------- 1 | DESCRIPTION = "PetaLinux Matchbox related packages" 2 | 3 | inherit packagegroup features_check 4 | 5 | REQUIRED_DISTRO_FEATURES = "x11" 6 | 7 | FILEMANAGER ?= "pcmanfm" 8 | 9 | MATCHBOX_PACKAGES = " \ 10 | matchbox-config-gtk \ 11 | matchbox-desktop \ 12 | matchbox-keyboard \ 13 | matchbox-keyboard-applet \ 14 | matchbox-panel-2 \ 15 | matchbox-session \ 16 | matchbox-terminal \ 17 | matchbox-theme-sato \ 18 | matchbox-session-sato \ 19 | matchbox-wm \ 20 | settings-daemon \ 21 | adwaita-icon-theme \ 22 | l3afpad \ 23 | ${FILEMANAGER} \ 24 | shutdown-desktop \ 25 | ${@bb.utils.contains('DISTRO_FEATURES', 'pulseaudio', 'pulseaudio-server pulseaudio-client-conf-sato pulseaudio-misc', '', d)} \ 26 | " 27 | 28 | RDEPENDS:${PN} = "packagegroup-petalinux-x11 ${MATCHBOX_PACKAGES}" 29 | -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer/gst-interpipes_v1.1.8.bb: -------------------------------------------------------------------------------- 1 | SUMMARY = "Gstreamer Interpipe 1.1.8" 2 | DESCRIPTION = "GStreamer plug-in that allows communication between two independent pipelines" 3 | HOMEPAGE = "https://developer.ridgerun.com/wiki/index.php?title=GstInterpipe" 4 | SECTION = "multimedia" 5 | LICENSE = "LGPL-2.1-only" 6 | 7 | LIC_FILES_CHKSUM = "file://COPYING;md5=3191ae9476980e87e3494d2d8ebe4584" 8 | 9 | DEPENDS = "gstreamer1.0 gstreamer1.0-plugins-base gtk-doc-native" 10 | 11 | SRCBRANCH ?= "master" 12 | # v1.1.8 Tag 13 | SRCREV = "814982ecd735e42ff2d14ce7c43039c259ec928b" 14 | SRC_URI = "gitsm://github.com/RidgeRun/gst-interpipe.git;protocol=https;branch=${SRCBRANCH}" 15 | 16 | S = "${WORKDIR}/git" 17 | 18 | FILES:${PN} += "${libdir}/gstreamer-1.0/libgstinterpipe.so" 19 | 20 | EXTRA_OEMESON = "-Denable-gtk-doc=false" 21 | 22 | inherit meson pkgconfig 23 | -------------------------------------------------------------------------------- /recipes-core/base-files/base-files-board.bb: -------------------------------------------------------------------------------- 1 | SUMMARY = "Petalinux identification files for the base system" 2 | DESCRIPTION = "Identify the configuration that was used to generate this rootfs" 3 | SECTION = "base" 4 | PV = "${PETALINUX_VERSION}" 5 | LICENSE = "MIT" 6 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" 7 | 8 | INHIBIT_DEFAULT_DEPS = "1" 9 | 10 | # We assume the machine is generic and the swtiching is based on board or soc variants. 11 | PACKAGE_ARCH = "${MACHINE_ARCH}" 12 | 13 | do_configure[noexec] = '1' 14 | do_compile[noexec] = '1' 15 | 16 | do_install () { 17 | install -d -m 0755 ${D}${sysconfdir}/${DISTRO} 18 | 19 | echo "${MACHINE}" > ${D}${sysconfdir}/${DISTRO}/board 20 | } 21 | 22 | FILES:${PN} = "${sysconfdir}/${DISTRO}" 23 | CONFFILES:${PN} = " \ 24 | ${sysconfdir}/${DISTRO}/board \ 25 | " 26 | -------------------------------------------------------------------------------- /recipes-qt/qt5/qtwayland/0002-Handle-maximize-minimize-fullscreen-in-xdg_shell_v6.patch: -------------------------------------------------------------------------------- 1 | From 75ac221b9d78d97c121b984ffc633c8cdbe3a92d Mon Sep 17 00:00:00 2001 2 | From: Giulio Camuffo 3 | Date: Mon, 7 May 2018 17:40:57 -0700 4 | Subject: [PATCH 2/3] Handle maximize/minimize/fullscreen in xdg_shell_v6 5 | 6 | [ChangeLog][QPA plugin] Implement support for maximization, minimization 7 | and fullscreen with xdg-shell unstable v6. 8 | 9 | Task-number: QTBUG-63417 10 | Task-number: QTBUG-63748 11 | Change-Id: I385eb3279d91f1c38d2f5d46bc63b324f0456ca4 12 | 13 | signed-off-by: Giulio Camuffo 14 | Signed-off-by: Madhurkiran Harikrishnan 15 | Upstream-Status: Backport 16 | --- 17 | src/client/qwaylandxdgshellv6.cpp | 22 ++++++++++++++++++++++ 18 | src/client/qwaylandxdgshellv6_p.h | 4 ++++ 19 | 2 files changed, 26 insertions(+) 20 | 21 | -------------------------------------------------------------------------------- /lib/devtool/exclude_pkgs.json: -------------------------------------------------------------------------------- 1 | { 2 | "matched-recipe-files": [ 3 | "-native", 4 | "nativesdk-", 5 | "Summary:", 6 | "-image", 7 | "buildtools-", 8 | "binutils-cross", 9 | "gcc-cross", 10 | "gdb-cross", 11 | "go-cross", 12 | "-canadian-", 13 | "uninative-tarball", 14 | "initramfs-", 15 | "meta-environment-", 16 | "-toolchain" 17 | ], 18 | "full-recipe-files": [ 19 | "linux-xlnx", 20 | "u-boot-xlnx", 21 | "fsboot", 22 | "fsbl", 23 | "fsbl-firmware", 24 | "pmu-firmware", 25 | "psmfw", 26 | "psm-firmware", 27 | "plm", 28 | "plm-firmwar", 29 | "arm-trusted-firmwar", 30 | "qemu-devicetrees", 31 | "qemu-xilinx", 32 | "qemuwrapper-cross", 33 | "image-builder", 34 | "meta-qemu-xilinx", 35 | "run-postinsts", 36 | "systemd", 37 | "sysvinit", 38 | "u-boot-xlnx-scr", 39 | "u-boot-xlnx-uenv", 40 | "uboot-device-tree", 41 | "wic-tools", 42 | "xilinx-bootbin", 43 | "open-amp" 44 | ] 45 | } 46 | -------------------------------------------------------------------------------- /recipes-apps/sdfec/sdfec_1.1.bb: -------------------------------------------------------------------------------- 1 | # 2 | # This file is the sdfec recipe. 3 | # 4 | 5 | SUMMARY = "sdfec applications" 6 | 7 | LICENSE = "MIT" 8 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" 9 | 10 | SRC_URI = "git://github.com/Xilinx/linux-examples.git;protocol=https;branch=xlnx_rel_v2023.2" 11 | SRCREV = "91a9fc9b6758959f34fef92dbfd3bb3556181f3e" 12 | 13 | COMPATIBLE_MACHINE = "^$" 14 | COMPATIBLE_MACHINE:zynqmp-dr = "zynqmp-dr" 15 | 16 | PACKAGE_ARCH = "${SOC_VARIANT_ARCH}" 17 | 18 | S = "${WORKDIR}/git/sd-fec-1.1" 19 | 20 | TARGETS_APPS ?= "sdfec-demo sdfec-interrupts sdfec-multi-ldpc-codes" 21 | 22 | do_compile() { 23 | for app_name in ${TARGETS_APPS}; do 24 | oe_runmake -C ${S}/$app_name/files 25 | done 26 | } 27 | 28 | do_install() { 29 | install -d ${D}${bindir} 30 | for app_name in ${TARGETS_APPS}; do 31 | install -m 0755 ${S}/$app_name/files/$app_name ${D}${bindir} 32 | done 33 | } 34 | -------------------------------------------------------------------------------- /recipes-examples/openamp/openamp-demo-notebooks_0.1.bb: -------------------------------------------------------------------------------- 1 | DESCRIPTION = "Jupyter notebooks for openAMP" 2 | LICENSE = "BSD-3-Clause" 3 | LIC_FILES_CHKSUM = "file://LICENSE;md5=268f2517fdae6d70f4ea4c55c4090aa8" 4 | 5 | inherit jupyter-examples 6 | 7 | SRC_URI = "file://LICENSE \ 8 | file://apu-start-rpu.ipynb \ 9 | file://pics/ampLinuxBMrtos.png \ 10 | file://pics/apu-start-rpu.png " 11 | 12 | COMPATIBLE_MACHINE = "^$" 13 | COMPATIBLE_MACHINE:zynqmp = "zynqmp" 14 | COMPATIBLE_MACHINE:versal = "versal" 15 | 16 | RDEPENDS:${PN} = " packagegroup-petalinux-jupyter \ 17 | packagegroup-petalinux-openamp" 18 | 19 | do_install() { 20 | install -d ${D}/${JUPYTER_DIR}/openamp-notebooks 21 | install -d ${D}/${JUPYTER_DIR}/openamp-notebooks/pics 22 | 23 | install -m 0755 ${S}/*.ipynb ${D}/${JUPYTER_DIR}/openamp-notebooks 24 | install -m 0755 ${S}/pics/*.png ${D}/${JUPYTER_DIR}/openamp-notebooks/pics 25 | } 26 | -------------------------------------------------------------------------------- /recipes-apps/resize-part/resize-part.bb: -------------------------------------------------------------------------------- 1 | # 2 | # This recipe is used to resize SD card partition. 3 | # 4 | 5 | SUMMARY = "Resize sd card partition application" 6 | LICENSE = "MIT" 7 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" 8 | 9 | SRC_URI = " \ 10 | file://resize-part \ 11 | " 12 | 13 | S = "${WORKDIR}" 14 | 15 | INSANE_SKIP:${PN} += "installed-vs-shipped" 16 | 17 | FILESEXTRAPATHS:prepend := "${THISDIR}/files:" 18 | 19 | RDEPENDS:${PN} = "parted e2fsprogs-resize2fs" 20 | 21 | COMPATIBLE_MACHINE = "^$" 22 | COMPATIBLE_MACHINE:zynq = "zynq" 23 | COMPATIBLE_MACHINE:zynqmp = "zynqmp" 24 | COMPATIBLE_MACHINE:versal = "versal" 25 | 26 | 27 | do_install() { 28 | install -d ${D}/${bindir} 29 | install -d ${D}/${datadir}/resize_fs 30 | install -m 0755 ${S}/resize-part ${D}/${datadir}/resize_fs 31 | ln -sf -r ${D}${datadir}/resize_fs/resize-part ${D}/${bindir}/resize-part 32 | } 33 | 34 | FILES:${PN} += "${datadir}/*" 35 | -------------------------------------------------------------------------------- /recipes-bsp/rfdc/rfdc_2023.1.bb: -------------------------------------------------------------------------------- 1 | SUMMARY = "rfdc Library" 2 | SECTION = "rfdc" 3 | LICENSE = "BSD" 4 | 5 | inherit pkgconfig xlnx-embeddedsw 6 | 7 | COMPATIBLE_MACHINE = "^$" 8 | COMPATIBLE_MACHINE:zynqmp-dr = "zynqmp-dr" 9 | 10 | FILESEXTRAPATHS:prepend := "${THISDIR}/files:" 11 | 12 | S = "${WORKDIR}/git" 13 | 14 | PACKAGE_ARCH = "${SOC_VARIANT_ARCH}" 15 | 16 | DEPENDS = "libmetal" 17 | 18 | PROVIDES = "rfdc" 19 | 20 | RFDC_SUBDIR = "XilinxProcessorIPLib/drivers/rfdc/src" 21 | 22 | do_compile:prepend() { 23 | cd ${S}/${RFDC_SUBDIR} 24 | cp Makefile.Linux Makefile 25 | } 26 | 27 | do_install() { 28 | install -d ${D}${libdir} 29 | install -d ${D}${includedir} 30 | 31 | cd ${S}/${RFDC_SUBDIR} 32 | oe_libinstall -so librfdc ${D}${libdir} 33 | install -m 0644 xrfdc_hw.h ${D}${includedir}/xrfdc_hw.h 34 | install -m 0644 xrfdc.h ${D}${includedir}/xrfdc.h 35 | } 36 | 37 | FILES:${PN} = "${libdir}/*.so.*" 38 | FILES:${PN}-dev = "${libdir}/*.so ${includedir}/*" 39 | -------------------------------------------------------------------------------- /recipes-bsp/rfdc/rfdc_2023.2.bb: -------------------------------------------------------------------------------- 1 | SUMMARY = "rfdc Library" 2 | SECTION = "rfdc" 3 | LICENSE = "BSD" 4 | 5 | inherit pkgconfig xlnx-embeddedsw 6 | 7 | COMPATIBLE_MACHINE = "^$" 8 | COMPATIBLE_MACHINE:zynqmp-dr = "zynqmp-dr" 9 | 10 | FILESEXTRAPATHS:prepend := "${THISDIR}/files:" 11 | 12 | S = "${WORKDIR}/git" 13 | 14 | PACKAGE_ARCH = "${SOC_VARIANT_ARCH}" 15 | 16 | DEPENDS = "libmetal" 17 | 18 | PROVIDES = "rfdc" 19 | 20 | RFDC_SUBDIR = "XilinxProcessorIPLib/drivers/rfdc/src" 21 | 22 | do_compile:prepend() { 23 | cd ${S}/${RFDC_SUBDIR} 24 | cp Makefile.Linux Makefile 25 | } 26 | 27 | do_install() { 28 | install -d ${D}${libdir} 29 | install -d ${D}${includedir} 30 | 31 | cd ${S}/${RFDC_SUBDIR} 32 | oe_libinstall -so librfdc ${D}${libdir} 33 | install -m 0644 xrfdc_hw.h ${D}${includedir}/xrfdc_hw.h 34 | install -m 0644 xrfdc.h ${D}${includedir}/xrfdc.h 35 | } 36 | 37 | FILES:${PN} = "${libdir}/*.so.*" 38 | FILES:${PN}-dev = "${libdir}/*.so ${includedir}/*" 39 | -------------------------------------------------------------------------------- /recipes-core/initrdscripts/plnx-initramfs-framework/functions: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | check_fsck() { 4 | boot_device="$1" 5 | boot_device_type="$2" 6 | if ! command -v fsck >/dev/null 2>&1; then 7 | msg "Warning: fsck not present, so skipping $boot_device file system" 8 | return 0 9 | fi 10 | if [ "${bootparam_fsckfix}" = "no" ]; then 11 | msg "Warning: fsckfix=no provided in bootargs, so skipping file system check" 12 | return 0 13 | fi 14 | if ! fsck -a -T -t $boot_device_type $boot_device; then 15 | msg "Warning: fsck failed, try running fsck manually" 16 | fi 17 | } 18 | 19 | check_init () { 20 | rootfs_dir="$1" 21 | for inittest in ${bootparam_init:-/sbin/init} /etc; do 22 | real_file="$(readlink ${rootfs_dir}/${inittest})" 23 | if [ ! -e "${rootfs_dir}/${inittest}" ] \ 24 | && [ ! -e "${rootfs_dir}/${real_file}" ]; then 25 | msg "Warning: ${inittest} file/directory missing in file system, so skipping file system" 26 | return 1 27 | fi 28 | done 29 | return 0 30 | } 31 | 32 | -------------------------------------------------------------------------------- /oe-core/meta/classes-recipe/rootfs-postcommands.bbclass: -------------------------------------------------------------------------------- 1 | require ${COREBASE}/meta/classes-recipe/rootfs-postcommands.bbclass 2 | 3 | # Allow autologin when both sysvinit AND systemd are enabled 4 | 5 | # 6 | # Autologin the 'root' user on the serial terminal, 7 | # if empty-root-password' AND 'serial-autologin-root are enabled 8 | # 9 | serial_autologin_root () { 10 | if ${@bb.utils.contains("DISTRO_FEATURES", "sysvinit", "true", "false", d)}; then 11 | if [ -e "${IMAGE_ROOTFS}${base_bindir}/start_getty" ]; then 12 | # add autologin option to util-linux getty only 13 | sed -i 's/options="/&--autologin root /' \ 14 | "${IMAGE_ROOTFS}${base_bindir}/start_getty" 15 | fi 16 | fi 17 | if ${@bb.utils.contains("DISTRO_FEATURES", "systemd", "true", "false", d)}; then 18 | if [ -e ${IMAGE_ROOTFS}${systemd_system_unitdir}/serial-getty@.service ]; then 19 | sed -i '/^\s*ExecStart\b/ s/getty /&--autologin root /' \ 20 | "${IMAGE_ROOTFS}${systemd_system_unitdir}/serial-getty@.service" 21 | fi 22 | fi 23 | } 24 | -------------------------------------------------------------------------------- /recipes-bsp/dfeccf/dfeccf_2023.1.bb: -------------------------------------------------------------------------------- 1 | SUMMARY = "dfeccf Library" 2 | SECTION = "dfeccf" 3 | LICENSE = "BSD" 4 | 5 | inherit pkgconfig xlnx-embeddedsw 6 | 7 | COMPATIBLE_MACHINE = "^$" 8 | COMPATIBLE_MACHINE:zynqmp-dr = "zynqmp-dr" 9 | 10 | FILESEXTRAPATHS:prepend := "${THISDIR}/files:" 11 | 12 | S = "${WORKDIR}/git" 13 | 14 | PACKAGE_ARCH = "${SOC_VARIANT_ARCH}" 15 | 16 | DEPENDS = "libmetal" 17 | 18 | PROVIDES = "dfeccf" 19 | 20 | DFECCF_SUBDIR = "XilinxProcessorIPLib/drivers/dfeccf/src" 21 | 22 | do_compile:prepend() { 23 | cd ${S}/${DFECCF_SUBDIR} 24 | cp Makefile.Linux Makefile 25 | } 26 | 27 | do_install() { 28 | install -d ${D}${libdir} 29 | install -d ${D}${includedir} 30 | 31 | cd ${S}/${DFECCF_SUBDIR} 32 | oe_libinstall -so libdfeccf ${D}${libdir} 33 | install -m 0644 xdfeccf_hw.h ${D}${includedir}/xdfeccf_hw.h 34 | install -m 0644 xdfeccf.h ${D}${includedir}/xdfeccf.h 35 | } 36 | 37 | FILES:${PN} = "${libdir}/*.so.*" 38 | FILES:${PN}-dev = "${libdir}/*.so ${includedir}/*" 39 | -------------------------------------------------------------------------------- /recipes-bsp/dfeccf/dfeccf_2023.2.bb: -------------------------------------------------------------------------------- 1 | SUMMARY = "dfeccf Library" 2 | SECTION = "dfeccf" 3 | LICENSE = "BSD" 4 | 5 | inherit pkgconfig xlnx-embeddedsw 6 | 7 | COMPATIBLE_MACHINE = "^$" 8 | COMPATIBLE_MACHINE:zynqmp-dr = "zynqmp-dr" 9 | 10 | FILESEXTRAPATHS:prepend := "${THISDIR}/files:" 11 | 12 | S = "${WORKDIR}/git" 13 | 14 | PACKAGE_ARCH = "${SOC_VARIANT_ARCH}" 15 | 16 | DEPENDS = "libmetal" 17 | 18 | PROVIDES = "dfeccf" 19 | 20 | DFECCF_SUBDIR = "XilinxProcessorIPLib/drivers/dfeccf/src" 21 | 22 | do_compile:prepend() { 23 | cd ${S}/${DFECCF_SUBDIR} 24 | cp Makefile.Linux Makefile 25 | } 26 | 27 | do_install() { 28 | install -d ${D}${libdir} 29 | install -d ${D}${includedir} 30 | 31 | cd ${S}/${DFECCF_SUBDIR} 32 | oe_libinstall -so libdfeccf ${D}${libdir} 33 | install -m 0644 xdfeccf_hw.h ${D}${includedir}/xdfeccf_hw.h 34 | install -m 0644 xdfeccf.h ${D}${includedir}/xdfeccf.h 35 | } 36 | 37 | FILES:${PN} = "${libdir}/*.so.*" 38 | FILES:${PN}-dev = "${libdir}/*.so ${includedir}/*" 39 | -------------------------------------------------------------------------------- /recipes-bsp/dfeequ/dfeequ_2023.1.bb: -------------------------------------------------------------------------------- 1 | SUMMARY = "dfeequ Library" 2 | SECTION = "dfeequ" 3 | LICENSE = "BSD" 4 | 5 | inherit pkgconfig xlnx-embeddedsw 6 | 7 | COMPATIBLE_MACHINE = "^$" 8 | COMPATIBLE_MACHINE:zynqmp-dr = "zynqmp-dr" 9 | 10 | FILESEXTRAPATHS:prepend := "${THISDIR}/files:" 11 | 12 | S = "${WORKDIR}/git" 13 | 14 | PACKAGE_ARCH = "${SOC_VARIANT_ARCH}" 15 | 16 | DEPENDS = "libmetal" 17 | 18 | PROVIDES = "dfeequ" 19 | 20 | DFEEQU_SUBDIR = "XilinxProcessorIPLib/drivers/dfeequ/src" 21 | 22 | do_compile:prepend() { 23 | cd ${S}/${DFEEQU_SUBDIR} 24 | cp Makefile.Linux Makefile 25 | } 26 | 27 | do_install() { 28 | install -d ${D}${libdir} 29 | install -d ${D}${includedir} 30 | 31 | cd ${S}/${DFEEQU_SUBDIR} 32 | oe_libinstall -so libdfeequ ${D}${libdir} 33 | install -m 0644 xdfeequ_hw.h ${D}${includedir}/xdfeequ_hw.h 34 | install -m 0644 xdfeequ.h ${D}${includedir}/xdfeequ.h 35 | } 36 | 37 | FILES:${PN} = "${libdir}/*.so.*" 38 | FILES:${PN}-dev = "${libdir}/*.so ${includedir}/*" 39 | -------------------------------------------------------------------------------- /recipes-bsp/dfeequ/dfeequ_2023.2.bb: -------------------------------------------------------------------------------- 1 | SUMMARY = "dfeequ Library" 2 | SECTION = "dfeequ" 3 | LICENSE = "BSD" 4 | 5 | inherit pkgconfig xlnx-embeddedsw 6 | 7 | COMPATIBLE_MACHINE = "^$" 8 | COMPATIBLE_MACHINE:zynqmp-dr = "zynqmp-dr" 9 | 10 | FILESEXTRAPATHS:prepend := "${THISDIR}/files:" 11 | 12 | S = "${WORKDIR}/git" 13 | 14 | PACKAGE_ARCH = "${SOC_VARIANT_ARCH}" 15 | 16 | DEPENDS = "libmetal" 17 | 18 | PROVIDES = "dfeequ" 19 | 20 | DFEEQU_SUBDIR = "XilinxProcessorIPLib/drivers/dfeequ/src" 21 | 22 | do_compile:prepend() { 23 | cd ${S}/${DFEEQU_SUBDIR} 24 | cp Makefile.Linux Makefile 25 | } 26 | 27 | do_install() { 28 | install -d ${D}${libdir} 29 | install -d ${D}${includedir} 30 | 31 | cd ${S}/${DFEEQU_SUBDIR} 32 | oe_libinstall -so libdfeequ ${D}${libdir} 33 | install -m 0644 xdfeequ_hw.h ${D}${includedir}/xdfeequ_hw.h 34 | install -m 0644 xdfeequ.h ${D}${includedir}/xdfeequ.h 35 | } 36 | 37 | FILES:${PN} = "${libdir}/*.so.*" 38 | FILES:${PN}-dev = "${libdir}/*.so ${includedir}/*" 39 | -------------------------------------------------------------------------------- /recipes-bsp/dfemix/dfemix_2023.1.bb: -------------------------------------------------------------------------------- 1 | SUMMARY = "dfemix Library" 2 | SECTION = "dfemix" 3 | LICENSE = "BSD" 4 | 5 | inherit pkgconfig xlnx-embeddedsw 6 | 7 | COMPATIBLE_MACHINE = "^$" 8 | COMPATIBLE_MACHINE:zynqmp-dr = "zynqmp-dr" 9 | 10 | FILESEXTRAPATHS:prepend := "${THISDIR}/files:" 11 | 12 | S = "${WORKDIR}/git" 13 | 14 | PACKAGE_ARCH = "${SOC_VARIANT_ARCH}" 15 | 16 | DEPENDS = "libmetal" 17 | 18 | PROVIDES = "dfemix" 19 | 20 | DFEMIX_SUBDIR = "XilinxProcessorIPLib/drivers/dfemix/src" 21 | 22 | do_compile:prepend() { 23 | cd ${S}/${DFEMIX_SUBDIR} 24 | cp Makefile.Linux Makefile 25 | } 26 | 27 | do_install() { 28 | install -d ${D}${libdir} 29 | install -d ${D}${includedir} 30 | 31 | cd ${S}/${DFEMIX_SUBDIR} 32 | oe_libinstall -so libdfemix ${D}${libdir} 33 | install -m 0644 xdfemix_hw.h ${D}${includedir}/xdfemix_hw.h 34 | install -m 0644 xdfemix.h ${D}${includedir}/xdfemix.h 35 | } 36 | 37 | FILES:${PN} = "${libdir}/*.so.*" 38 | FILES:${PN}-dev = "${libdir}/*.so ${includedir}/*" 39 | -------------------------------------------------------------------------------- /recipes-bsp/dfemix/dfemix_2023.2.bb: -------------------------------------------------------------------------------- 1 | SUMMARY = "dfemix Library" 2 | SECTION = "dfemix" 3 | LICENSE = "BSD" 4 | 5 | inherit pkgconfig xlnx-embeddedsw 6 | 7 | COMPATIBLE_MACHINE = "^$" 8 | COMPATIBLE_MACHINE:zynqmp-dr = "zynqmp-dr" 9 | 10 | FILESEXTRAPATHS:prepend := "${THISDIR}/files:" 11 | 12 | S = "${WORKDIR}/git" 13 | 14 | PACKAGE_ARCH = "${SOC_VARIANT_ARCH}" 15 | 16 | DEPENDS = "libmetal" 17 | 18 | PROVIDES = "dfemix" 19 | 20 | DFEMIX_SUBDIR = "XilinxProcessorIPLib/drivers/dfemix/src" 21 | 22 | do_compile:prepend() { 23 | cd ${S}/${DFEMIX_SUBDIR} 24 | cp Makefile.Linux Makefile 25 | } 26 | 27 | do_install() { 28 | install -d ${D}${libdir} 29 | install -d ${D}${includedir} 30 | 31 | cd ${S}/${DFEMIX_SUBDIR} 32 | oe_libinstall -so libdfemix ${D}${libdir} 33 | install -m 0644 xdfemix_hw.h ${D}${includedir}/xdfemix_hw.h 34 | install -m 0644 xdfemix.h ${D}${includedir}/xdfemix.h 35 | } 36 | 37 | FILES:${PN} = "${libdir}/*.so.*" 38 | FILES:${PN}-dev = "${libdir}/*.so ${includedir}/*" 39 | -------------------------------------------------------------------------------- /recipes-core/busybox/busybox_1.%.bbappend: -------------------------------------------------------------------------------- 1 | FILESEXTRAPATHS:prepend := "${THISDIR}/files:" 2 | FILESEXTRAPATHS:prepend := "${THISDIR}/busybox:" 3 | 4 | python () { 5 | if d.getVar('WITHIN_PLNX_FLOW') and d.getVar('SYSCONFIG_DIR'): 6 | d.prependVar('FILESEXTRAPATHS', '%s/busybox:' % d.getVar('SYSCONFIG_DIR')) 7 | } 8 | 9 | PACKAGES =+ "${PN}-inetd" 10 | FILES:${PN}-inetd = "${sysconfdir}/init.d/inetd.busybox ${sysconfdir}/inetd.conf" 11 | 12 | INITSCRIPT_NAME:${PN}-inetd = "inetd.busybox" 13 | INITSCRIPT_PACKAGES += "${PN}-inetd" 14 | 15 | RRECOMMENDS:${PN} += "${PN}-inetd" 16 | 17 | SRC_URI += " \ 18 | file://inetd.conf \ 19 | file://petalinux.cfg \ 20 | file://ftp.cfg \ 21 | file://ftpd.cfg \ 22 | file://hexdump.cfg \ 23 | file://httpd.cfg \ 24 | file://inetd.cfg \ 25 | file://nc.cfg \ 26 | file://telnetd.cfg \ 27 | file://tftpd.cfg \ 28 | " 29 | 30 | -------------------------------------------------------------------------------- /recipes-extended/image-builder/image-builder.inc: -------------------------------------------------------------------------------- 1 | SUMMARY = "Xen Image Builder" 2 | LICENSE = "MIT" 3 | LIC_FILES_CHKSUM = "file://LICENSE;md5=d2794c0df5b907fdace235a619d80314" 4 | 5 | REPO ?= "git://github.com/Xilinx/imagebuilder.git;protocol=https" 6 | BRANCHARG = "${@['nobranch=1', 'branch=${BRANCH}'][d.getVar('BRANCH') != '']}" 7 | SRC_URI = "${REPO};${BRANCHARG}" 8 | 9 | S = "${WORKDIR}/git" 10 | 11 | inherit deploy 12 | 13 | DEPENDS += " \ 14 | u-boot-mkimage-native \ 15 | " 16 | 17 | RDEPENDS:${PN} += " \ 18 | bash \ 19 | " 20 | 21 | do_install () { 22 | install -d ${D}${bindir} 23 | chmod -R 777 ${S}/scripts/* 24 | install -m 0755 ${S}/scripts/* ${D}${bindir} 25 | ln -sf ${D}${bindir}/uboot-script-gen uboot-script-gen 26 | } 27 | 28 | do_deploy() { 29 | : 30 | } 31 | 32 | do_deploy:class-native() { 33 | install -d ${DEPLOYDIR} 34 | install -m 0755 ${S}/scripts/uboot-script-gen ${DEPLOYDIR}/ 35 | } 36 | 37 | addtask do_deploy after do_install 38 | 39 | BBCLASSEXTEND = "native nativesdk" 40 | -------------------------------------------------------------------------------- /dynamic-layers/xilinx-core/recipes-bsp/u-boot/u-boot-xlnx_%.bbappend: -------------------------------------------------------------------------------- 1 | FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" 2 | SRC_URI:append = " file://platform-top.h" 3 | 4 | python () { 5 | soc_family = d.getVar('SOC_FAMILY') 6 | tune_features = (d.getVar('TUNE_FEATURES') or []).split() 7 | if 'microblaze' in tune_features: 8 | soc_family = 'microblaze' 9 | if d.getVar('WITHIN_PLNX_FLOW'): 10 | if (soc_family == 'microblaze' and d.getVar('U_BOOT_AUTO_CONFIG')) or soc_family != 'microblaze': 11 | sysconfig_dir = d.getVar('SYSCONFIG_DIR') or '' 12 | if sysconfig_dir: 13 | d.prependVar('FILESEXTRAPATHS', '%s/u-boot-xlnx:' % sysconfig_dir) 14 | if os.path.exists(os.path.join(sysconfig_dir, 'u-boot-xlnx', 'config.cfg')): 15 | d.appendVar('SRC_URI', ' file://config.cfg') 16 | } 17 | 18 | do_configure:append () { 19 | if [ x"${WITHIN_PLNX_FLOW}" = x1 ]; then 20 | install ${WORKDIR}/platform-top.h ${S}/include/configs/ 21 | fi 22 | } 23 | -------------------------------------------------------------------------------- /recipes-bsp/dfeofdm/dfeofdm_2023.1.bb: -------------------------------------------------------------------------------- 1 | SUMMARY = "dfeofdm Library" 2 | SECTION = "dfeofdm" 3 | LICENSE = "BSD-3-Clause" 4 | 5 | inherit pkgconfig xlnx-embeddedsw 6 | 7 | COMPATIBLE_MACHINE = "^$" 8 | COMPATIBLE_MACHINE:zynqmp-dr = "zynqmp-dr" 9 | 10 | FILESEXTRAPATHS:prepend := "${THISDIR}/files:" 11 | 12 | S = "${WORKDIR}/git" 13 | 14 | PACKAGE_ARCH = "${SOC_VARIANT_ARCH}" 15 | 16 | DEPENDS = "libmetal" 17 | 18 | PROVIDES = "dfeofdm" 19 | 20 | DFEOFDM_SUBDIR = "XilinxProcessorIPLib/drivers/dfeofdm/src" 21 | 22 | do_compile:prepend() { 23 | cd ${S}/${DFEOFDM_SUBDIR} 24 | cp Makefile.Linux Makefile 25 | } 26 | 27 | do_install() { 28 | install -d ${D}${libdir} 29 | install -d ${D}${includedir} 30 | 31 | cd ${S}/${DFEOFDM_SUBDIR} 32 | oe_libinstall -so libdfeofdm ${D}${libdir} 33 | install -m 0644 xdfeofdm_hw.h ${D}${includedir}/xdfeofdm_hw.h 34 | install -m 0644 xdfeofdm.h ${D}${includedir}/xdfeofdm.h 35 | } 36 | 37 | FILES:${PN} = "${libdir}/*.so.*" 38 | FILES:${PN}-dev = "${libdir}/*.so ${includedir}/*" 39 | -------------------------------------------------------------------------------- /recipes-bsp/dfeofdm/dfeofdm_2023.2.bb: -------------------------------------------------------------------------------- 1 | SUMMARY = "dfeofdm Library" 2 | SECTION = "dfeofdm" 3 | LICENSE = "BSD-3-Clause" 4 | 5 | inherit pkgconfig xlnx-embeddedsw 6 | 7 | COMPATIBLE_MACHINE = "^$" 8 | COMPATIBLE_MACHINE:zynqmp-dr = "zynqmp-dr" 9 | 10 | FILESEXTRAPATHS:prepend := "${THISDIR}/files:" 11 | 12 | S = "${WORKDIR}/git" 13 | 14 | PACKAGE_ARCH = "${SOC_VARIANT_ARCH}" 15 | 16 | DEPENDS = "libmetal" 17 | 18 | PROVIDES = "dfeofdm" 19 | 20 | DFEOFDM_SUBDIR = "XilinxProcessorIPLib/drivers/dfeofdm/src" 21 | 22 | do_compile:prepend() { 23 | cd ${S}/${DFEOFDM_SUBDIR} 24 | cp Makefile.Linux Makefile 25 | } 26 | 27 | do_install() { 28 | install -d ${D}${libdir} 29 | install -d ${D}${includedir} 30 | 31 | cd ${S}/${DFEOFDM_SUBDIR} 32 | oe_libinstall -so libdfeofdm ${D}${libdir} 33 | install -m 0644 xdfeofdm_hw.h ${D}${includedir}/xdfeofdm_hw.h 34 | install -m 0644 xdfeofdm.h ${D}${includedir}/xdfeofdm.h 35 | } 36 | 37 | FILES:${PN} = "${libdir}/*.so.*" 38 | FILES:${PN}-dev = "${libdir}/*.so ${includedir}/*" 39 | -------------------------------------------------------------------------------- /recipes-bsp/dfeprach/dfeprach_2023.1.bb: -------------------------------------------------------------------------------- 1 | SUMMARY = "dfeprach Library" 2 | SECTION = "dfeprach" 3 | LICENSE = "BSD" 4 | 5 | inherit pkgconfig xlnx-embeddedsw 6 | 7 | COMPATIBLE_MACHINE = "^$" 8 | COMPATIBLE_MACHINE:zynqmp-dr = "zynqmp-dr" 9 | 10 | FILESEXTRAPATHS:prepend := "${THISDIR}/files:" 11 | 12 | S = "${WORKDIR}/git" 13 | 14 | PACKAGE_ARCH = "${SOC_VARIANT_ARCH}" 15 | 16 | DEPENDS = "libmetal" 17 | 18 | PROVIDES = "dfeprach" 19 | 20 | DFEMIX_SUBDIR = "XilinxProcessorIPLib/drivers/dfeprach/src" 21 | 22 | do_compile:prepend() { 23 | cd ${S}/${DFEMIX_SUBDIR} 24 | cp Makefile.Linux Makefile 25 | } 26 | 27 | do_install() { 28 | install -d ${D}${libdir} 29 | install -d ${D}${includedir} 30 | 31 | cd ${S}/${DFEMIX_SUBDIR} 32 | oe_libinstall -so libdfeprach ${D}${libdir} 33 | install -m 0644 xdfeprach_hw.h ${D}${includedir}/xdfeprach_hw.h 34 | install -m 0644 xdfeprach.h ${D}${includedir}/xdfeprach.h 35 | } 36 | 37 | FILES:${PN} = "${libdir}/*.so.*" 38 | FILES:${PN}-dev = "${libdir}/*.so ${includedir}/*" 39 | -------------------------------------------------------------------------------- /recipes-bsp/dfeprach/dfeprach_2023.2.bb: -------------------------------------------------------------------------------- 1 | SUMMARY = "dfeprach Library" 2 | SECTION = "dfeprach" 3 | LICENSE = "BSD" 4 | 5 | inherit pkgconfig xlnx-embeddedsw 6 | 7 | COMPATIBLE_MACHINE = "^$" 8 | COMPATIBLE_MACHINE:zynqmp-dr = "zynqmp-dr" 9 | 10 | FILESEXTRAPATHS:prepend := "${THISDIR}/files:" 11 | 12 | S = "${WORKDIR}/git" 13 | 14 | PACKAGE_ARCH = "${SOC_VARIANT_ARCH}" 15 | 16 | DEPENDS = "libmetal" 17 | 18 | PROVIDES = "dfeprach" 19 | 20 | DFEMIX_SUBDIR = "XilinxProcessorIPLib/drivers/dfeprach/src" 21 | 22 | do_compile:prepend() { 23 | cd ${S}/${DFEMIX_SUBDIR} 24 | cp Makefile.Linux Makefile 25 | } 26 | 27 | do_install() { 28 | install -d ${D}${libdir} 29 | install -d ${D}${includedir} 30 | 31 | cd ${S}/${DFEMIX_SUBDIR} 32 | oe_libinstall -so libdfeprach ${D}${libdir} 33 | install -m 0644 xdfeprach_hw.h ${D}${includedir}/xdfeprach_hw.h 34 | install -m 0644 xdfeprach.h ${D}${includedir}/xdfeprach.h 35 | } 36 | 37 | FILES:${PN} = "${libdir}/*.so.*" 38 | FILES:${PN}-dev = "${libdir}/*.so ${includedir}/*" 39 | -------------------------------------------------------------------------------- /recipes-core/base-files/base-files-soc.bb: -------------------------------------------------------------------------------- 1 | SUMMARY = "Petalinux identification files for the base system" 2 | DESCRIPTION = "Identify the configuration that was used to generate this rootfs" 3 | SECTION = "base" 4 | PV = "${PETALINUX_VERSION}" 5 | LICENSE = "MIT" 6 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" 7 | 8 | INHIBIT_DEFAULT_DEPS = "1" 9 | 10 | # We assume the machine is generic and the swtiching is based on board or soc variants. 11 | SOC_FAMILY_ARCH ??= "${TUNE_PKGARCH}" 12 | SOC_VARIANT_ARCH ??= "${SOC_FAMILY_ARCH}" 13 | PACKAGE_ARCH = "${SOC_VARIANT_ARCH}" 14 | 15 | do_configure[noexec] = '1' 16 | do_compile[noexec] = '1' 17 | 18 | do_install () { 19 | install -d -m 0755 ${D}${sysconfdir}/${DISTRO} 20 | 21 | if [ "${SOC_FAMILY}" != "" ]; then 22 | echo "${SOC_FAMILY}-${SOC_VARIANT}" > ${D}${sysconfdir}/${DISTRO}/soc 23 | fi 24 | } 25 | 26 | FILES:${PN} = "${sysconfdir}/${DISTRO}" 27 | CONFFILES:${PN} = " \ 28 | ${sysconfdir}/${DISTRO}/soc \ 29 | " 30 | -------------------------------------------------------------------------------- /recipes-devtools/qemu/qemu/0013-arm-xenpv-fix-TPM-address-print-warning.patch: -------------------------------------------------------------------------------- 1 | From c5b128668d9cd1e1cb4da80d5bc8aaebc6ff2e19 Mon Sep 17 00:00:00 2001 2 | From: Vikram Garhwal 3 | Date: Fri, 23 Dec 2022 00:06:29 +0000 4 | Subject: [PATCH 13/16] arm: xenpv: fix TPM address print warning 5 | 6 | Signed-off-by: Vikram Garhwal 7 | Acked-by: Stefano Stabellini 8 | --- 9 | hw/arm/xen_arm.c | 2 +- 10 | 1 file changed, 1 insertion(+), 1 deletion(-) 11 | 12 | diff --git a/hw/arm/xen_arm.c b/hw/arm/xen_arm.c 13 | index f248b5744a..153cedfeb4 100644 14 | --- a/hw/arm/xen_arm.c 15 | +++ b/hw/arm/xen_arm.c 16 | @@ -118,7 +118,7 @@ static void xen_enable_tpm(void) 17 | sysbus_realize_and_unref(busdev, &error_fatal); 18 | sysbus_mmio_map(busdev, 0, GUEST_TPM_BASE); 19 | 20 | - DPRINTF("Connected tpmdev at address 0x%lx\n", GUEST_TPM_BASE); 21 | + DPRINTF("Connected tpmdev at address 0x%llx\n", GUEST_TPM_BASE); 22 | #endif 23 | } 24 | 25 | -- 26 | 2.17.1 27 | 28 | -------------------------------------------------------------------------------- /recipes-daemons/ospi-dm/files/ospi-versal.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | LOGFILE="/var/log/ospi_logs" 3 | 4 | function write_log() { 5 | now_time='['$(date +"%Y-%m-%d %H:%M:%S")']' 6 | echo $now_time $1 | tee -a "$LOGFILE" 7 | } 8 | 9 | write_log 'Start OSPI Versal Daemon' 10 | 11 | SYSFSDIR="/sys/devices/platform/amba/20103008000.ospi_versal/" 12 | READYFILE="${SYSFSDIR}pdi_ready" 13 | DONEFILE="${SYSFSDIR}pdi_done" 14 | PDIFILE="versal_pdi" 15 | HOMEDIR="/home/root/" 16 | MTD0="/dev/mtd0" 17 | 18 | while true 19 | do 20 | READYVALUE=$(cat $READYFILE) 21 | 22 | if [ $READYVALUE == 1 ] 23 | then 24 | write_log 'programing the flash...' 25 | write_log "cp ${SYSFSDIR}${PDIFILE} ${HOMEDIR}" 26 | cp ${SYSFSDIR}${PDIFILE} ${HOMEDIR} 27 | write_log "flashcp ${HOMEDIR}${PDIFILE} ${MTD0}" 28 | flashcp ${HOMEDIR}${PDIFILE} ${MTD0} 29 | if [ $? == 0 ] 30 | then 31 | write_log 'program done' 32 | echo '1' > ${DONEFILE} 33 | else 34 | write_log 'program fail' 35 | echo '2' > ${DONEFILE} 36 | fi 37 | fi 38 | 39 | sleep 5 40 | done 41 | -------------------------------------------------------------------------------- /recipes-bsp/rfclk/rfclk_2023.1.bb: -------------------------------------------------------------------------------- 1 | SUMMARY = "rfclk Library" 2 | SECTION = "rfclk" 3 | 4 | inherit pkgconfig xlnx-embeddedsw 5 | 6 | COMPATIBLE_MACHINE = "^$" 7 | COMPATIBLE_MACHINE:zynqmp-dr = "zynqmp-dr" 8 | 9 | FILESEXTRAPATHS:prepend := "${THISDIR}/files:" 10 | 11 | S = "${WORKDIR}/git" 12 | 13 | PACKAGE_ARCH = "${SOC_VARIANT_ARCH}" 14 | 15 | PROVIDES = "rfclk" 16 | 17 | RFCLK_SUBDIR = "XilinxProcessorIPLib/drivers/board_common/src/rfclk/src" 18 | 19 | do_compile:prepend() { 20 | cd ${S}/${RFCLK_SUBDIR} 21 | cp Makefile.Linux Makefile 22 | } 23 | 24 | do_install() { 25 | install -d ${D}${libdir} 26 | install -d ${D}${includedir} 27 | 28 | cd ${S}/${RFCLK_SUBDIR} 29 | oe_libinstall -so librfclk ${D}${libdir} 30 | install -m 0644 xrfclk.h ${D}${includedir}/xrfclk.h 31 | install -m 0644 xrfclk_LMK_conf.h ${D}${includedir}/xrfclk_LMK_conf.h 32 | install -m 0644 xrfclk_LMX_conf.h ${D}${includedir}/xrfclk_LMX_conf.h 33 | } 34 | 35 | FILES:${PN} = "${libdir}/*.so.*" 36 | FILES:${PN}-dev = "${libdir}/*.so ${includedir}/*" 37 | -------------------------------------------------------------------------------- /recipes-bsp/rfclk/rfclk_2023.2.bb: -------------------------------------------------------------------------------- 1 | SUMMARY = "rfclk Library" 2 | SECTION = "rfclk" 3 | 4 | inherit pkgconfig xlnx-embeddedsw 5 | 6 | COMPATIBLE_MACHINE = "^$" 7 | COMPATIBLE_MACHINE:zynqmp-dr = "zynqmp-dr" 8 | 9 | FILESEXTRAPATHS:prepend := "${THISDIR}/files:" 10 | 11 | S = "${WORKDIR}/git" 12 | 13 | PACKAGE_ARCH = "${SOC_VARIANT_ARCH}" 14 | 15 | PROVIDES = "rfclk" 16 | 17 | RFCLK_SUBDIR = "XilinxProcessorIPLib/drivers/board_common/src/rfclk/src" 18 | 19 | do_compile:prepend() { 20 | cd ${S}/${RFCLK_SUBDIR} 21 | cp Makefile.Linux Makefile 22 | } 23 | 24 | do_install() { 25 | install -d ${D}${libdir} 26 | install -d ${D}${includedir} 27 | 28 | cd ${S}/${RFCLK_SUBDIR} 29 | oe_libinstall -so librfclk ${D}${libdir} 30 | install -m 0644 xrfclk.h ${D}${includedir}/xrfclk.h 31 | install -m 0644 xrfclk_LMK_conf.h ${D}${includedir}/xrfclk_LMK_conf.h 32 | install -m 0644 xrfclk_LMX_conf.h ${D}${includedir}/xrfclk_LMX_conf.h 33 | } 34 | 35 | FILES:${PN} = "${libdir}/*.so.*" 36 | FILES:${PN}-dev = "${libdir}/*.so ${includedir}/*" 37 | -------------------------------------------------------------------------------- /recipes-apps/image-update/image-update_1.0.bb: -------------------------------------------------------------------------------- 1 | DESCRIPTION = "Image update is used to update alternate image on SOM." 2 | SUMMARY = "Image update is used to update alternate image on SOM. \ 3 | If the current image is ImageA, ImageB will get updated and vice versa. \ 4 | Usage: image_update " 5 | 6 | LICENSE = "MIT" 7 | LIC_FILES_CHKSUM = "file://${WORKDIR}/git/LICENSES/MIT;md5=2ac09a7a37dd6ee0ba23ce497d57d09b" 8 | 9 | BRANCH = "xlnx_rel_v2023.2" 10 | SRC_URI = "git://github.com/Xilinx/linux-image_update.git;branch=${BRANCH};protocol=https" 11 | SRCREV = "c1117cad92d967d7adca7fd2ba655808f4687516" 12 | 13 | RDEPENDS:${PN} += "freeipmi" 14 | 15 | S = "${WORKDIR}/git" 16 | 17 | COMPATIBLE_MACHINE = "^$" 18 | COMPATIBLE_MACHINE:zynqmp = "zynqmp" 19 | 20 | PACKAGE_ARCH:zynqmp = "${SOC_FAMILY_ARCH}" 21 | 22 | # Force the make system to use the flags we want! 23 | EXTRA_OEMAKE = 'CC="${CC} ${TARGET_CFLAGS} ${TARGET_LDFLAGS}" all' 24 | 25 | do_install () { 26 | install -d ${D}${bindir} 27 | install -m 0755 ${S}/image_update ${D}${bindir}/ 28 | } 29 | -------------------------------------------------------------------------------- /recipes-qt/qt5/qtwayland_%.bbappend: -------------------------------------------------------------------------------- 1 | FILESEXTRAPATHS:prepend := "${THISDIR}/qtwayland:" 2 | # file://0001-qwaylandwindow.cpp-Do-not-destroy-shell-suface-befor.patch 3 | # file://0002-Handle-maximize-minimize-fullscreen-in-xdg_shell_v6.patch 4 | SRC_URI:append = " \ 5 | file://0003-qwaylandeglwindow.cpp-Bind-the-context-before-callin.patch \ 6 | " 7 | # file://0001-Fix-regression-in-QWaylandGlContext-makeCurrent-for-.patch 8 | 9 | PACKAGECONFIG = " \ 10 | wayland-client \ 11 | wayland-server \ 12 | wayland-egl \ 13 | wayland-drm-egl-server-buffer \ 14 | " 15 | 16 | # Links to libmali-xlnx, so it becomes MACHINE_ARCH specific 17 | DEFAULT_PACKAGE_ARCH := "${PACKAGE_ARCH}" 18 | MALI_PACKAGE_ARCH[vardepsexclude] = "MACHINE_ARCH" 19 | MALI_PACKAGE_ARCH = "${@'${MACHINE_ARCH}' if d.getVar('PREFERRED_PROVIDER_virtual/libgles1') == 'libmali-xlnx' else '${DEFAULT_PACKAGE_ARCH}'}" 20 | PACKAGE_ARCH[vardepsexclude] = "MALI_PACKAGE_ARCH" 21 | PACKAGE_ARCH = "${@bb.utils.contains_any('DEPENDS', 'virtual/libgles1 virtual/libgles2 virtual/egl virtual/libgbm', '${MALI_PACKAGE_ARCH}', '${DEFAULT_PACKAGE_ARCH}', d)}" 22 | -------------------------------------------------------------------------------- /COPYING.MIT: -------------------------------------------------------------------------------- 1 | Copyright (c) 2016 Xilinx Inc 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /recipes-extended/xen/xen-tools_%.bbappend: -------------------------------------------------------------------------------- 1 | require xen-xilinx.inc 2 | 3 | # Only include the sysvinit scripts if sysvinit is enabled. 4 | do_install:append () { 5 | if [ -e ${D}/usr/lib/xen/bin/pygrub ]; then 6 | sed -i -e '1c#!/usr/bin/env python3' ${D}/usr/lib/xen/bin/pygrub 7 | fi 8 | 9 | if [ "${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'sysvinit', '', d)}" != 'sysvinit' ]; then 10 | rm -f ${D}/etc/init.d/xendomains 11 | rm -f ${D}/etc/init.d/xencommons 12 | rm -f ${D}/etc/init.d/xendriverdomain 13 | rm -f ${D}/etc/init.d/xen-watchdog 14 | fi 15 | } 16 | 17 | # If we're in a hybrid configuration, we want to stop the system from 18 | # running any Xen sysvinit scripts 19 | # This has a side effect of, on a hybrid system, if the init manager is 20 | # sysvinit, the user will need to manually enable Xen. 21 | INHIBIT_UPDATERCD_BBCLASS = "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '1', '', d)}" 22 | 23 | FILES:${PN} += " \ 24 | ${libdir}/xen/bin/init-dom0less \ 25 | ${libdir}/xen/bin/get_overlay \ 26 | ${libdir}/xen/bin/get_overlay.sh \ 27 | " 28 | -------------------------------------------------------------------------------- /recipes-core/busybox/files/inetd.conf: -------------------------------------------------------------------------------- 1 | #/etc/inetd.conf: see inetd(8) for further informations. 2 | # 3 | # Internet server configuration database 4 | # 5 | # If you want to disable an entry so it isn't touched during 6 | # package updates just comment it out with a single '#' character. 7 | # 8 | # 9 | # 10 | #:INTERNAL: Internal services 11 | #echo stream tcp nowait root internal 12 | #echo dgram udp wait root internal 13 | #chargen stream tcp nowait root internal 14 | #chargen dgram udp wait root internal 15 | #discard stream tcp nowait root internal 16 | #discard dgram udp wait root internal 17 | #daytime stream tcp nowait root internal 18 | #daytime dgram udp wait root internal 19 | #time stream tcp nowait root internal 20 | #time dgram udp wait root internal 21 | #telnet stream tcp nowait root telnetd telnetd -i 22 | #ftp stream tcp nowait root ftpd ftpd -w /var/ftp/ 23 | -------------------------------------------------------------------------------- /classes/plnx-externalsrc.bbclass: -------------------------------------------------------------------------------- 1 | # The build (TOPDIR) and TMPDIR may not be inside of EXTERNALSRC or 2 | # EXTERNALSRC_BUILD 3 | # 4 | # This can result in errors about files (usually lockfiles) going 5 | # away during a build, such as: 6 | # 7 | # FileNotFoundError: [Errno 2] No such file or directory: '.../singletask.lock 8 | 9 | python () { 10 | if bb.data.inherits_class('externalsrc', d): 11 | topdir = d.getVar('TOPDIR') 12 | tmpdir = d.getVar('TMPDIR') 13 | externalsrc = d.getVar('EXTERNALSRC') 14 | externalsrcbuild = d.getVar('EXTERNALSRC_BUILD') 15 | 16 | if externalsrc and topdir.startswith(externalsrc): 17 | bb.error("TOPDIR may not be inside of EXTERNALSRC") 18 | if externalsrcbuild and topdir.startswith(externalsrc): 19 | bb.error("TOPDIR may not be inside of EXTERNALSRC_BUILD") 20 | if externalsrc and tmpdir.startswith(externalsrc): 21 | bb.error("TMPDIR may not be inside of EXTERNALSRC") 22 | if externalsrcbuild and tmpdir.startswith(externalsrc): 23 | bb.error("TMPDIR may not be inside of EXTERNALSRC_BUILD") 24 | } 25 | -------------------------------------------------------------------------------- /recipes-utils/ultra96-startup-pages/files/ultra96-startup-page.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | ### BEGIN INIT INFO 4 | # Provides: Ultra96 startup script 5 | # Required-Start: 6 | # Required-Stop: 7 | # Default-Start:S 8 | # Default-Stop: 9 | # Short-Description: Opens up ultra96 startup page upon boot 10 | # Description: Starts the flask server to display startup webpage upon boot. 11 | ### END INIT INFO 12 | 13 | FLASK_SERVER="/usr/share/ultra96-startup-pages/webapp/webserver.py" 14 | FLASK_CMD="python3 ${FLASK_SERVER}" 15 | FLASK_PID_NAME="ultra96-startup-page" 16 | 17 | test -e "$FLASK_SERVER" || exit 0 18 | 19 | case "$1" in 20 | start) 21 | echo -n "Starting Flask server deamon to serve Ultra96 startup page" 22 | start-stop-daemon --start --quiet --background --make-pidfile --pidfile /var/run/$FLASK_PID_NAME.pid --exec $FLASK_CMD 23 | echo "." 24 | ;; 25 | stop) 26 | echo -n "Stopping Flask server deamon" 27 | start-stop-daemon --stop --quiet --pidfile /var/run/$FLASK_PID_NAME.pid 28 | ;; 29 | *) 30 | echo "Usage: /etc/init.d/ultra96-startup-page.sh {start|stop}" 31 | exit 1 32 | esac 33 | 34 | exit 0 35 | 36 | -------------------------------------------------------------------------------- /recipes-extended/xen/files/passthrough-example-part.dts: -------------------------------------------------------------------------------- 1 | /dts-v1/; 2 | 3 | / { 4 | #address-cells = <0x2>; 5 | #size-cells = <0x1>; 6 | 7 | passthrough { 8 | compatible = "simple-bus"; 9 | ranges; 10 | #address-cells = <0x2>; 11 | #size-cells = <0x1>; 12 | 13 | misc_clk: misc_clk { 14 | #clock-cells = <0x0>; 15 | clock-frequency = <0x7735940>; 16 | compatible = "fixed-clock"; 17 | }; 18 | 19 | gem3: ethernet@ff0e0000 { 20 | compatible = "cdns,zynqmp-gem"; 21 | status = "okay"; 22 | interrupt-parent = <0x1>; 23 | interrupts = <0 63 4>, <0 63 4>; 24 | reg = <0x0 0xff0e0000 0x1000>; 25 | clock-names = "pclk", "hclk", "tx_clk", "rx_clk"; 26 | #address-cells = <1>; 27 | #size-cells = <0>; 28 | clocks = <&misc_clk &misc_clk &misc_clk &misc_clk>; 29 | phy-mode = "rgmii-id"; 30 | xlnx,ptp-enet-clock = <0x0>; 31 | local-mac-address = [00 0a 35 00 22 01]; 32 | phy-handle = <&phy1>; 33 | 34 | phy1: phy@c { 35 | reg = <0xc>; 36 | ti,rx-internal-delay = <0x8>; 37 | ti,tx-internal-delay = <0xa>; 38 | ti,fifo-depth = <0x1>; 39 | ti,rxctrl-strap-worka; 40 | }; 41 | }; 42 | }; 43 | }; 44 | -------------------------------------------------------------------------------- /recipes-utils/ultra96-ap-setup/files/ultra96-ap-setup.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | ### BEGIN INIT INFO 4 | # Provides: Access point on Ultra96 5 | # Required-Start: 6 | # Required-Stop: 7 | # Default-Start:S 8 | # Default-Stop: 9 | # Short-Description: Starts access point(AP) on Ultra96 10 | # Description: This script runs a utility which will create a managed interface and runs 11 | # an AP using the new interface. 12 | ### END INIT INFO 13 | 14 | DESC="ultra96-ap-setup.sh will start AP on ultra96" 15 | APSETUPUTIL="/usr/share/wpa_ap/ap.sh" 16 | APSETUPUTIL_PID_NAME="ultra96-ap-setup" 17 | 18 | test -x "$APSETUPUTIL" || exit 0 19 | 20 | case "$1" in 21 | start) 22 | echo -n "Starting Ultra96 AP setup daemon" 23 | start-stop-daemon --start --quiet --background --make-pidfile --pidfile /var/run/$APSETUPUTIL_PID_NAME.pid --exec $APSETUPUTIL 24 | echo "." 25 | ;; 26 | stop) 27 | echo -n "Stopping Ultra96 AP setup daemon" 28 | start-stop-daemon --stop --quiet --pidfile /var/run/$APSETUPUTIL_PID_NAME.pid 29 | ;; 30 | *) 31 | echo "Usage: /etc/init.d/ultra96-ap-setup.sh {start|stop}" 32 | exit 1 33 | esac 34 | 35 | exit 0 36 | 37 | -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer/gstreamer-xilinx-1.20.5.inc: -------------------------------------------------------------------------------- 1 | BRANCH ?= "xlnx-rebase-v1.20.5" 2 | REPO ?= "git://github.com/Xilinx/gstreamer.git;protocol=https" 3 | 4 | BRANCHARG = "${@['nobranch=1', 'branch=${BRANCH}'][d.getVar('BRANCH') != '']}" 5 | 6 | PV = "1.20.5+git${SRCPV}" 7 | 8 | # We need a common PRSERV_PV_AUTOINC for all variations of gstreamer packages 9 | # Need to inject a custom setting, so based on package.bbclass version 10 | PACKAGE_ARCH:task-packagedata = "all" 11 | 12 | # However, if we change PACKAGE_ARCH in a task, it changes the WORKDIR and breaks things 13 | # restore the WORKDIR's arch directory (MULTIMACH_TARGET_SYS) to the previous setting! 14 | python() { 15 | # Anonymous python runs before the task override is evaluated, so set the 16 | # MULTIMACH_TARGET_SYS (used by WORKDIR) 17 | d.setVar('MULTIMACH_TARGET_SYS', d.getVar('MULTIMACH_TARGET_SYS')) 18 | } 19 | 20 | # Cause all of the variants to rebuild now that we have a common PV 21 | PE = '1' 22 | 23 | SRC_URI = " \ 24 | ${REPO};${BRANCHARG};name=gstreamer-xlnx \ 25 | " 26 | 27 | SRCREV_gstreamer-xlnx = "d7a39e850385ed5d5838839bdcc67d6cb44c2188" 28 | SRCREV_FORMAT = "gstreamer-xlnx" 29 | -------------------------------------------------------------------------------- /classes/plnx-useradd-sudoers.bbclass: -------------------------------------------------------------------------------- 1 | # Add one or more users to the sudoers 2 | # This is done by creating a new /etc/sudoers.d/99-petalinux.conf 3 | 4 | # Provide a list of users, and their associated access info in 5 | # EXTRA_USERS_SUDOERS, such as: 6 | # 7 | # USERADDEXTENSION:append = " plnx-useradd-sudoers" 8 | # 9 | # EXTRA_USERS_SUDOERS = "\ 10 | # xilinx ALL = (ALL) ALL;\ 11 | # %wheel ALL = (ALL) ALL;\ 12 | # " 13 | 14 | PACKAGE_INSTALL:append = " ${@['', 'sudo'][bool(d.getVar('EXTRA_USERS_SUDOERS'))]}" 15 | 16 | ROOTFS_POSTPROCESS_COMMAND:append = " set_sudoers;" 17 | 18 | set_sudoers () { 19 | sudoers_settings="${EXTRA_USERS_SUDOERS}" 20 | export PSEUDO="${FAKEROOTENV} ${STAGING_DIR_NATIVE}${bindir}/pseudo" 21 | setting=`echo $sudoers_settings | cut -d ';' -f1` 22 | remaining=`echo $sudoers_settings | cut -d ';' -f2-` 23 | while test "x$setting" != "x"; do 24 | eval "$PSEUDO echo \"$setting\" >> \"${IMAGE_ROOTFS}\"/etc/sudoers.d/99-petalinux" 25 | setting=`echo $remaining | cut -d ';' -f1` 26 | remaining=`echo $remaining | cut -d ';' -f2-` 27 | done 28 | if [ -f "${IMAGE_ROOTFS}/etc/sudoers.d/99-petalinux" ]; then 29 | eval "$PSEUDO chmod 0440 \"${IMAGE_ROOTFS}\"/etc/sudoers.d/99-petalinux" 30 | fi 31 | } 32 | -------------------------------------------------------------------------------- /recipes-core/base-files/base-files-plnx.bb: -------------------------------------------------------------------------------- 1 | PETALINUX_BSP ?= "${MACHINE}" 2 | PETALINUX_PRODUCT ?= "${MACHINE}" 3 | 4 | SUMMARY = "Petalinux identification files for the base system" 5 | DESCRIPTION = "Identify the configuration that was used to generate this rootfs" 6 | SECTION = "base" 7 | PV = "${PETALINUX_VERSION}" 8 | LICENSE = "MIT" 9 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" 10 | 11 | INHIBIT_DEFAULT_DEPS = "1" 12 | 13 | # We assume the machine is generic and the swtiching is based on board or soc variants. 14 | PACKAGE_ARCH = "${MACHINE_ARCH}" 15 | 16 | do_configure[noexec] = '1' 17 | do_compile[noexec] = '1' 18 | 19 | do_install () { 20 | install -d -m 0755 ${D}${sysconfdir}/${DISTRO} 21 | 22 | echo "${PETALINUX_BSP}" > ${D}${sysconfdir}/${DISTRO}/bsp 23 | echo "${PETALINUX_PRODUCT}" > ${D}${sysconfdir}/${DISTRO}/product 24 | echo "${DISTRO_VERSION}" > ${D}${sysconfdir}/${DISTRO}/version 25 | } 26 | 27 | RRECOMMENDS:${PN} = "base-files-board base-files-board-variant base-files-soc" 28 | FILES:${PN} = "${sysconfdir}/${DISTRO}" 29 | CONFFILES:${PN} = " \ 30 | ${sysconfdir}/${DISTRO}/bsp \ 31 | ${sysconfdir}/${DISTRO}/product \ 32 | ${sysconfdir}/${DISTRO}/version \ 33 | " 34 | -------------------------------------------------------------------------------- /recipes-core/packagegroups/packagegroup-petalinux-qt-extended.bb: -------------------------------------------------------------------------------- 1 | DESCRIPTION = "PetaLinux Qt additional supported packages" 2 | 3 | PACKAGE_ARCH = "${TUNE_PKGARCH}" 4 | 5 | inherit packagegroup features_check 6 | 7 | ANY_OF_DISTRO_FEATURES = "x11 fbdev wayland" 8 | 9 | QT_EXTENDED_PACKAGES = " \ 10 | ruby \ 11 | packagegroup-petalinux-qt \ 12 | qtbase-mkspecs \ 13 | qtbase-plugins \ 14 | qtsystems-mkspecs \ 15 | qttranslations-qtbase \ 16 | qttranslations-qthelp \ 17 | qtconnectivity-mkspecs \ 18 | qttranslations-qtconnectivity \ 19 | qtdeclarative-mkspecs \ 20 | qttranslations-qtdeclarative \ 21 | qtimageformats-plugins \ 22 | qtlocation-mkspecs \ 23 | qtlocation-plugins \ 24 | qttranslations-qtmultimedia \ 25 | qtscript-mkspecs \ 26 | qttranslations-qtscript \ 27 | qtsensors-mkspecs \ 28 | qtsensors-plugins \ 29 | qtserialport-mkspecs \ 30 | qtsvg-mkspecs \ 31 | qtsvg-plugins \ 32 | qtwebsockets-mkspecs \ 33 | qttranslations-qtwebsockets \ 34 | qtwebchannel-mkspecs \ 35 | qtxmlpatterns-mkspecs \ 36 | qttranslations-qtxmlpatterns \ 37 | qtwebkit-mkspecs \ 38 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'qtx11extras', '', d)} \ 39 | qtgraphicaleffects-qmlplugins \ 40 | " 41 | RDEPENDS:${PN} = "${QT_EXTENDED_PACKAGES}" 42 | -------------------------------------------------------------------------------- /recipes-qt/qt5/qtwayland/0001-qwaylandwindow.cpp-Do-not-destroy-shell-suface-befor.patch: -------------------------------------------------------------------------------- 1 | From 30f5d53244ef4173544413124f319af272235cfd Mon Sep 17 00:00:00 2001 2 | From: Madhurkiran Harikrishnan 3 | Date: Wed, 16 May 2018 17:16:53 -0700 4 | Subject: [PATCH 1/3] qwaylandwindow.cpp: Do not destroy shell suface before 5 | eglDestroySurface 6 | 7 | The call to reset results in a race condition resulting in destruction 8 | of shell surface before the eglSurface thereby crashing libwayland-client. 9 | 10 | Signed-off-by: Madhurkiran Harikrishnan 11 | Upstream-Status: Pending 12 | --- 13 | src/client/qwaylandwindow.cpp | 2 -- 14 | 1 file changed, 2 deletions(-) 15 | 16 | diff --git a/src/client/qwaylandwindow.cpp b/src/client/qwaylandwindow.cpp 17 | index 6d7c088..94c89a3 100644 18 | --- a/src/client/qwaylandwindow.cpp 19 | +++ b/src/client/qwaylandwindow.cpp 20 | @@ -385,8 +385,6 @@ void QWaylandWindow::setVisible(bool visible) 21 | QWindowSystemInterface::flushWindowSystemEvents(); 22 | if (!deleteGuard.isNull() && window()->type() == Qt::Popup) 23 | closePopups(this); 24 | - if (!deleteGuard.isNull()) 25 | - reset(); 26 | } 27 | } 28 | 29 | -- 30 | 2.7.4 31 | 32 | -------------------------------------------------------------------------------- /recipes-connectivity/ultra96-wlan0-config/ultra96-wlan0-config.bb: -------------------------------------------------------------------------------- 1 | SUMMARY = "Configuration files for networkd and wpa_supplicant for ultra96" 2 | LICENSE = "MIT" 3 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" 4 | 5 | inherit features_check 6 | 7 | REQUIRED_DISTRO_FEATURES = "systemd" 8 | 9 | COMPATIBLE_MACHINE = "^$" 10 | COMPATIBLE_MACHINE:ultra96-zynqmp = "${MACHINE}" 11 | PACKAGE_ARCH = "${MACHINE_ARCH}" 12 | 13 | SRC_URI = " \ 14 | file://wlan0.network \ 15 | file://wpa_supplicant-wlan0.conf \ 16 | " 17 | 18 | RDEPENDS:${PN} = "wpa-supplicant" 19 | 20 | do_configure[noexec] = "1" 21 | do_compile[noexec] = "1" 22 | 23 | do_install() { 24 | install -d ${D}${nonarch_base_libdir}/systemd/network 25 | install -m 644 ${WORKDIR}/wlan0.network ${D}${nonarch_base_libdir}/systemd/network/wlan0.network 26 | 27 | install -d ${D}${sysconfdir}/wpa_supplicant 28 | install -m 600 ${WORKDIR}/wpa_supplicant-wlan0.conf ${D}${sysconfdir}/wpa_supplicant/wpa_supplicant-wlan0.conf 29 | } 30 | 31 | pkg_postinst_ontarget:${PN}() { 32 | if systemctl > /dev/null 2>&1 ; then 33 | systemctl enable wpa_supplicant@wlan0.service 34 | fi 35 | } 36 | 37 | FILES:${PN} += "${nonarch_base_libdir}/systemd/network" 38 | -------------------------------------------------------------------------------- /recipes-utils/power-button-handler/ultra96-power-button_1.0.bb: -------------------------------------------------------------------------------- 1 | DESCRIPTION = "User space power off support for ultra96" 2 | SUMMARY = "A mraa based power button montior to display power-off message on LCD" 3 | 4 | LICENSE = "Proprietary" 5 | LIC_FILES_CHKSUM = "file://ultra96-power-button-check.c;beginline=1;endline=25;md5=1c552ff04522a3bd79001dbc21152402" 6 | 7 | SRC_URI = " \ 8 | file://Makefile \ 9 | file://ultra96-power-button.sh \ 10 | file://ultra96-power-button-check.c \ 11 | file://groove-rgb-lcd.py \ 12 | " 13 | 14 | inherit update-rc.d 15 | 16 | S = "${WORKDIR}" 17 | 18 | COMPATIBLE_MACHINE = "^$" 19 | COMPATIBLE_MACHINE:ultra96-zynqmp = "${MACHINE}" 20 | 21 | PACKAGE_ARCH = "${MACHINE_ARCH}" 22 | 23 | INITSCRIPT_NAME = "ultra96-power-button.sh" 24 | INITSCRIPT_PARAMS = "start 99 S ." 25 | 26 | DEPENDS = "mraa" 27 | RDEPENDS:${PN} = "mraa" 28 | 29 | TARGET_CC_ARCH += "${LDFLAGS}" 30 | 31 | do_install() { 32 | install -d ${D}${base_sbindir} 33 | install -d ${D}${sysconfdir}/init.d/ 34 | install -m 0755 ultra96-power-button-check ${D}${base_sbindir} 35 | install -m 0755 groove-rgb-lcd.py ${D}${base_sbindir} 36 | install -m 0755 ${S}/ultra96-power-button.sh ${D}${sysconfdir}/init.d/ultra96-power-button.sh 37 | } 38 | 39 | FILES:${PN} += "${base_sbindir}" 40 | -------------------------------------------------------------------------------- /recipes-multimedia/pulseaudio/pulseaudio/0001-default.pai.in-disable-tsched-system-timer-based-mod.patch: -------------------------------------------------------------------------------- 1 | From 059f28d8eae7a1ef237eccbaaa7493480f83b764 Mon Sep 17 00:00:00 2001 2 | From: Rohit Visavalia 3 | Date: Fri, 2 Sep 2022 01:56:47 -0700 4 | Subject: [PATCH] default.pai.in: disable tsched (system-timer based model) 5 | 6 | With tsched enabled we see clicking noise on DisplayPort for initial 5 sec 7 | every time audio is played. Disabling the same fixes the issue. 8 | 9 | Upstream-Status: Inappropriate [disable feature] 10 | 11 | Signed-off-by: Rohit Visavalia 12 | --- 13 | src/daemon/default.pa.in | 2 +- 14 | 1 file changed, 1 insertion(+), 1 deletion(-) 15 | 16 | diff --git a/src/daemon/default.pa.in b/src/daemon/default.pa.in 17 | index a3ddad9..37af3f2 100755 18 | --- a/src/daemon/default.pa.in 19 | +++ b/src/daemon/default.pa.in 20 | @@ -55,7 +55,7 @@ ifelse(@HAVE_MKFIFO@, 1, [dnl 21 | ### Automatically load driver modules depending on the hardware available 22 | ifelse(@HAVE_UDEV@, 1, [dnl 23 | .ifexists module-udev-detect@PA_SOEXT@ 24 | -load-module module-udev-detect 25 | +load-module module-udev-detect tsched=0 26 | .else 27 | ], @HAVE_COREAUDIO@, 1, [dnl 28 | .ifexists module-coreaudio-detect@PA_SOEXT@ 29 | -- 30 | 2.17.1 31 | 32 | -------------------------------------------------------------------------------- /recipes-core/initrdscripts/plnx-initramfs-framework/e2fs: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Copyright (C) 2011 O.S. Systems Software LTDA. 3 | # Licensed on MIT 4 | 5 | # sourcing the required functions 6 | . /scripts/functions 7 | 8 | e2fs_enabled() { 9 | return 0 10 | } 11 | 12 | 13 | e2fs_run() { 14 | if [ -n "$bootparam_launch_ramdisk_init" ]; then 15 | msg "launch_ramdisk_init is set, Launching ramdisk init" 16 | return 0 17 | fi 18 | filesystems="ext4 ext3 ext2" 19 | 20 | # load modules 21 | for fs in $filesystems; do 22 | load_kernel_module $fs 23 | done 24 | 25 | for fs in $filesystems; do 26 | eval "fs_options=\$bootparam_${fs}" 27 | if [ -n "$fs_options" ]; then 28 | dev=`expr "$fs_options" : '\([^:]*\).*'` 29 | path=`expr "$fs_options" : '[^:]*:\([^:]*\).*'` 30 | 31 | info "Mounting $dev as $fs on $path as $fs..." 32 | mkdir -p $path 33 | count=30 34 | for i in $(seq $count); do 35 | if [ -b "$dev" ]; then 36 | check_fsck "$dev" "$fs" 37 | mount -t $fs $dev $path 38 | if ! check_init $path; then 39 | umount $path 40 | fi 41 | return 0 42 | fi 43 | msg "Waiting for $dev to pop up (attempt $i)" 44 | sleep 0.1 45 | done 46 | msg "Device $dev not found" 47 | fi 48 | done 49 | } 50 | -------------------------------------------------------------------------------- /recipes-daemons/ospi-dm/ospi-dm.bb: -------------------------------------------------------------------------------- 1 | SUMMARY = "OSPI Versal daemon" 2 | SECTION = "PETALINUX/apps" 3 | LICENSE = "MIT" 4 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" 5 | 6 | inherit update-rc.d systemd 7 | 8 | SRC_URI = "\ 9 | file://ospi-versal.sh \ 10 | file://ov-start.sh \ 11 | file://ov-start.service \ 12 | " 13 | 14 | COMPATIBLE_MACHINE = "^$" 15 | COMPATIBLE_MACHINE:vck5000-versal = "${MACHINE}" 16 | 17 | INITSCRIPT_NAME = "ov-start.sh" 18 | INITSCRIPT_PARAMS = "start 99 S ." 19 | 20 | SYSTEMD_PACKAGES="${PN}" 21 | SYSTEMD_SERVICE:${PN}="ov-start.service" 22 | SYSTEMD_AUTO_ENABLE:${PN}="enable" 23 | 24 | do_install() { 25 | install -d ${D}${bindir}/ 26 | install -m 0755 ${WORKDIR}/ospi-versal.sh ${D}${bindir}/ospi-versal.sh 27 | 28 | if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then 29 | install -d ${D}${sysconfdir}/init.d/ 30 | install -m 0755 ${WORKDIR}/ov-start.sh ${D}${sysconfdir}/init.d/ov-start.sh 31 | fi 32 | 33 | install -d ${D}${systemd_system_unitdir} 34 | install -m 0644 ${WORKDIR}/ov-start.service ${D}${systemd_system_unitdir} 35 | } 36 | 37 | FILES:${PN} += "\ 38 | ${@bb.utils.contains('DISTRO_FEATURES','sysvinit','${sysconfdir}/init.d/ov-start.sh', '', d)} ${systemd_system_unitdir} \ 39 | " 40 | -------------------------------------------------------------------------------- /recipes-devtools/qemu/qemu/0011-meson.build-do-not-set-have_xen_pci_passthrough-for-.patch: -------------------------------------------------------------------------------- 1 | From f4ff3490639dea08fb70ec69d60fe73ef479073b Mon Sep 17 00:00:00 2001 2 | From: Stefano Stabellini 3 | Date: Thu, 7 Jul 2022 14:03:41 -0700 4 | Subject: [PATCH 11/16] meson.build: do not set have_xen_pci_passthrough for 5 | aarch64 targets 6 | MIME-Version: 1.0 7 | Content-Type: text/plain; charset=UTF-8 8 | Content-Transfer-Encoding: 8bit 9 | 10 | have_xen_pci_passthrough is only used for Xen x86 VMs. 11 | 12 | Signed-off-by: Stefano Stabellini 13 | Reviewed-by: Alex Bennée 14 | --- 15 | meson.build | 2 ++ 16 | 1 file changed, 2 insertions(+) 17 | 18 | diff --git a/meson.build b/meson.build 19 | index b94f0cd76e..a4965251ab 100644 20 | --- a/meson.build 21 | +++ b/meson.build 22 | @@ -1469,6 +1469,8 @@ have_xen_pci_passthrough = get_option('xen_pci_passthrough') \ 23 | error_message: 'Xen PCI passthrough requested but Xen not enabled') \ 24 | .require(targetos == 'linux', 25 | error_message: 'Xen PCI passthrough not available on this platform') \ 26 | + .require(cpu == 'x86' or cpu == 'x86_64', 27 | + error_message: 'Xen PCI passthrough not available on this platform') \ 28 | .allowed() 29 | 30 | 31 | -- 32 | 2.17.1 33 | 34 | -------------------------------------------------------------------------------- /recipes-examples/pm-notebooks/pm-notebooks_1.0.bb: -------------------------------------------------------------------------------- 1 | DESCRIPTION = "Jupyter notebook examples for Platform Management (PM) in Versal devices" 2 | LICENSE = "BSD-3-Clause" 3 | LIC_FILES_CHKSUM = "file://../../LICENSE;md5=268f2517fdae6d70f4ea4c55c4090aa8" 4 | 5 | inherit jupyter-examples 6 | 7 | SRC_URI = "git://github.com/Xilinx/platform-management-notebooks.git;branch=xlnx_rel_v2023.2;protocol=https \ 8 | file://LICENSE \ 9 | " 10 | 11 | SRCREV = "c502be361b6857e21ab903f31c9ead69e3a0d9ba" 12 | 13 | S = "${WORKDIR}/git/pm-notebooks" 14 | 15 | COMPATIBLE_MACHINE = "^$" 16 | COMPATIBLE_MACHINE:versal = "versal" 17 | 18 | RDEPENDS:${PN} = "packagegroup-petalinux-jupyter \ 19 | python3-ipywidgets \ 20 | python3-pydot \ 21 | graphviz \ 22 | " 23 | 24 | do_install() { 25 | install -d ${D}/${JUPYTER_DIR}/pm-notebooks 26 | install -d ${D}/${JUPYTER_DIR}/pm-notebooks/pmutil 27 | install -d ${D}/${JUPYTER_DIR}/pm-notebooks/pmutil/data 28 | 29 | install -m 0644 ${S}/README ${D}/${JUPYTER_DIR}/pm-notebooks 30 | install -m 0755 ${S}/*.ipynb ${D}/${JUPYTER_DIR}/pm-notebooks 31 | install -m 0755 ${S}/pmutil/*.py ${D}/${JUPYTER_DIR}/pm-notebooks/pmutil 32 | install -m 0755 ${S}/pmutil/data/*.png ${D}/${JUPYTER_DIR}/pm-notebooks/pmutil/data 33 | } 34 | 35 | -------------------------------------------------------------------------------- /recipes-utils/archconfig/archconfig.bb: -------------------------------------------------------------------------------- 1 | DESCRIPTION = "ARCHCONFIG" 2 | LICENSE = "MIT" 3 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" 4 | 5 | inherit update-rc.d systemd 6 | 7 | RDEPENDS:${PN} = " \ 8 | bash \ 9 | freeipmi \ 10 | dnf \ 11 | " 12 | 13 | INITSCRIPT_NAME = "archconfig.sh" 14 | INITSCRIPT_PARAMS = "start 99 S ." 15 | SRC_URI = "file://archconfig.sh \ 16 | file://archconfig.service \ 17 | " 18 | 19 | SYSTEMD_PACKAGES="${PN}" 20 | SYSTEMD_SERVICE:${PN}="archconfig.service" 21 | SYSTEMD_AUTO_ENABLE:${PN}="enable" 22 | 23 | 24 | 25 | do_install() { 26 | if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then 27 | install -d ${D}${sysconfdir}/init.d/ 28 | install -m 0755 ${WORKDIR}/archconfig.sh ${D}${sysconfdir}/init.d/ 29 | fi 30 | 31 | install -d ${D}${systemd_system_unitdir} 32 | install -d ${D}${bindir} 33 | 34 | install -m 0644 ${WORKDIR}/archconfig.service ${D}${systemd_system_unitdir} 35 | install -m 0755 ${WORKDIR}/archconfig.sh ${D}${bindir} 36 | } 37 | 38 | do_configure() { 39 | sed -i -e "s|@@PACKAGE_FEED_URIS@@|${PACKAGE_FEED_URIS}|g" "${WORKDIR}/archconfig.sh" 40 | } 41 | 42 | FILES:${PN} += "${@bb.utils.contains('DISTRO_FEATURES','sysvinit','${sysconfdir}/init.d/archconfig.sh', '', d)} ${systemd_system_unitdir}" 43 | -------------------------------------------------------------------------------- /conf/templates/default/site.conf.sample: -------------------------------------------------------------------------------- 1 | # 2 | # local.conf covers user settings, site.conf covers site specific information 3 | # such as proxy server addresses and optionally any shared download location 4 | # 5 | # SITE_CONF_VERSION is increased each time build/conf/site.conf 6 | # changes incompatibly 7 | SCONF_VERSION = "1" 8 | 9 | # Uncomment to cause CVS to use the proxy host specified 10 | #CVS_PROXY_HOST = "proxy.example.com" 11 | #CVS_PROXY_PORT = "81" 12 | 13 | # For svn, you need to create ~/.subversion/servers containing: 14 | #[global] 15 | #http-proxy-host = proxy.example.com 16 | #http-proxy-port = 81 17 | # 18 | 19 | # To use git with a proxy, you must use an external git proxy command, such as 20 | # the one provided by scripts/oe-git-proxy. To use this script, copy it to 21 | # your PATH and uncomment the following: 22 | #GIT_PROXY_COMMAND ?= "oe-git-proxy" 23 | #ALL_PROXY ?= "socks://socks.example.com:1080" 24 | #or 25 | #ALL_PROXY ?= "https://proxy.example.com:8080" 26 | # If you wish to use certain hosts without the proxy, specify them in NO_PROXY. 27 | # See the script for details on syntax. The script oe-git-proxy uses some tools 28 | # that may not be included on HOSTTOOLS, thus add them manually through 29 | # HOSTTOOLS += "getent" 30 | 31 | # Uncomment this to use a shared download directory 32 | #DL_DIR = "/some/shared/download/directory/" 33 | 34 | -------------------------------------------------------------------------------- /recipes-utils/sensor-mezzanine-examples/files/0001-upgrade-humid-temp-examples-to-latest-python3-versio.patch: -------------------------------------------------------------------------------- 1 | From c96804732283ad78e382829286c5d1ef444d27a7 Mon Sep 17 00:00:00 2001 2 | From: Sai Hari Chandana Kalluri 3 | Date: Thu, 30 Apr 2020 17:38:34 -0700 4 | Subject: [master][sensor-mezzanine-examples][PATCH] upgrade humid temp 5 | examples to latest python3 version 6 | 7 | Signed-off-by: Sai Hari Chandana Kalluri 8 | --- 9 | humid_temp/Makefile | 2 +- 10 | humid_temp/run_me.sh | 2 +- 11 | 2 files changed, 2 insertions(+), 2 deletions(-) 12 | 13 | diff --git a/humid_temp/Makefile b/humid_temp/Makefile 14 | index 0fdd390..40c0ade 100644 15 | --- a/humid_temp/Makefile 16 | +++ b/humid_temp/Makefile 17 | @@ -1,5 +1,5 @@ 18 | MONITOR_PORT=/dev/ttyS2 19 | include /usr/share/arduino/Arduino.mk 20 | run: upload 21 | - python3.5 humid_temp.py 22 | + python3 humid_temp.py 23 | 24 | diff --git a/humid_temp/run_me.sh b/humid_temp/run_me.sh 25 | index ca66e12..926e5ea 100755 26 | --- a/humid_temp/run_me.sh 27 | +++ b/humid_temp/run_me.sh 28 | @@ -1,4 +1,4 @@ 29 | #!/bin/bash 30 | -export PYTHONPATH=$PYTHONPATH:/usr/lib/python3.5/site-packages/upm 31 | +export PYTHONPATH=$PYTHONPATH:/usr/lib/python3.7/site-packages/upm 32 | cd /usr/share/Sensor_Mezzanine_Getting_Started/humid_temp 33 | make run 34 | -- 35 | 2.7.4 36 | 37 | -------------------------------------------------------------------------------- /recipes-qt/qt5/qtbase/0003-qkmsdevice.cpp-Disable-hw-cursor-as-a-default-option.patch: -------------------------------------------------------------------------------- 1 | From b8bdd78fc2836f7ecb8777c3bd99fc2d48dfeda4 Mon Sep 17 00:00:00 2001 2 | From: Madhurkiran Harikrishnan 3 | Date: Fri, 8 Mar 2019 16:23:29 -0800 4 | Subject: [PATCH] qkmsdevice.cpp: Disable hw cursor as a default option. 5 | 6 | Zynqmp does not support hardware cursor, hence disable it as a default 7 | choice and enable pbuffer. 8 | 9 | Signed-off-by: Madhurkiran Harikrishnan 10 | Upstream-Status: Inappropriate [Xilinx specific] 11 | 12 | --- 13 | src/platformsupport/kmsconvenience/qkmsdevice.cpp | 4 ++-- 14 | 1 file changed, 2 insertions(+), 2 deletions(-) 15 | 16 | diff --git a/src/platformsupport/kmsconvenience/qkmsdevice.cpp b/src/platformsupport/kmsconvenience/qkmsdevice.cpp 17 | index 657b3d553e..64aafb2247 100644 18 | --- a/src/platformsupport/kmsconvenience/qkmsdevice.cpp 19 | +++ b/src/platformsupport/kmsconvenience/qkmsdevice.cpp 20 | @@ -1028,9 +1028,9 @@ QKmsScreenConfig *QKmsDevice::screenConfig() const 21 | 22 | QKmsScreenConfig::QKmsScreenConfig() 23 | : m_headless(false) 24 | - , m_hwCursor(true) 25 | + , m_hwCursor(false) 26 | , m_separateScreens(false) 27 | - , m_pbuffers(false) 28 | + , m_pbuffers(true) 29 | , m_virtualDesktopLayout(VirtualDesktopLayoutHorizontal) 30 | { 31 | loadConfig(); 32 | -------------------------------------------------------------------------------- /recipes-benchmarks/glmark2/files/0001-src-gl-state-egl-Use-native_display-to-load-EGL-func.patch: -------------------------------------------------------------------------------- 1 | From 534a0f99b38f7a32fc07562bec3e992dfad448c0 Mon Sep 17 00:00:00 2001 2 | From: Madhurkiran Harikrishnan 3 | Date: Mon, 3 Feb 2020 13:00:36 -0800 4 | Subject: [PATCH] src: gl-state-egl: Use native_display to load EGL funcs 5 | through glad 6 | 7 | EGL_DEFAULT_DISPLAY may not be suiitable for all the backends like GBM. 8 | Instead, use the already initialized display and only fallback to 9 | EGL_DEFAULT_DISPLAY if the display is unintialized (which is already 10 | been taken care). 11 | 12 | Signed-off-by: Madhurkiran Harikrishnan 13 | Upstream-status: Pending 14 | --- 15 | src/gl-state-egl.cpp | 2 +- 16 | 1 file changed, 1 insertion(+), 1 deletion(-) 17 | 18 | diff --git a/src/gl-state-egl.cpp b/src/gl-state-egl.cpp 19 | index 8d7d66e..316b856 100644 20 | --- a/src/gl-state-egl.cpp 21 | +++ b/src/gl-state-egl.cpp 22 | @@ -317,7 +317,7 @@ GLStateEGL::init_display(void* native_display, GLVisualConfig& visual_config) 23 | return false; 24 | } 25 | 26 | - if (gladLoadEGLUserPtr(EGL_NO_DISPLAY, load_egl_func, &egl_lib_) == 0) { 27 | + if (gladLoadEGLUserPtr(native_display, load_egl_func, &egl_lib_) == 0) { 28 | Log::error("Loading EGL entry points failed\n"); 29 | return false; 30 | } 31 | -- 32 | 2.7.4 33 | 34 | -------------------------------------------------------------------------------- /conf/machine/aarch64-tc.conf: -------------------------------------------------------------------------------- 1 | require conf/machine/include/machine-xilinx-qemu.inc 2 | require conf/multilib.conf 3 | require conf/machine/include/arm/armv8a/tune-cortexa72-cortexa53.inc 4 | require conf/machine/include/baremetal-tc.conf 5 | 6 | # Define ilp32 variant (not in tune files) 7 | TUNEVALID[ilp32] = "ilp32 ABI" 8 | 9 | TUNE_CCARGS .= '${@bb.utils.contains("TUNE_FEATURES", "ilp32", " -mabi=ilp32", "", d)}' 10 | 11 | # ILP request an alternative machine dictionary 12 | INHERIT += "xlnx-standalone" 13 | PACKAGEQA_EXTRA_MACHDEFFUNCS .= '${@bb.utils.contains("TUNE_FEATURES", "ilp32", " xlnx_ilp32_dict", "", d)}' 14 | 15 | # Define all of the multilibs supported by this configuration 16 | MULTILIB_GLOBAL_VARIANTS = "${@extend_variants(d,'MULTILIBS','multilib')}" 17 | MULTILIBS = "multilib:libilp32" 18 | 19 | # Base configuration 20 | # CFLAGS: 21 | DEFAULTTUNE = "cortexa72-cortexa53" 22 | 23 | # CFLAGS: -mabi=ilp32 24 | DEFAULTTUNE:virtclass-multilib-libilp32 = "cortexa72-cortexa53-ilp32" 25 | 26 | AVAILTUNES += "cortexa72-cortexa53-ilp32" 27 | ARMPKGARCH:tune-cortexa72-cortexa53-ilp32 = "${ARMPKGARCH:tune-cortexa72-cortexa53}-ilp32" 28 | TUNE_FEATURES:tune-cortexa72-cortexa53-ilp32 = "${TUNE_FEATURES:tune-cortexa72-cortexa53} ilp32" 29 | PACKAGE_EXTRA_ARCHS:tune-cortexa72-cortexa53-ilp32 = "${PACKAGE_EXTRA_ARCHS:tune-cortexa72-cortexa53} cortexa72-cortexa53-ilp32" 30 | BASE_LIB:tune-cortexa72-cortexa53-ilp32 = "lib/ilp32" 31 | -------------------------------------------------------------------------------- /recipes-core/packagegroups/packagegroup-petalinux-openamp.bb: -------------------------------------------------------------------------------- 1 | DESCRIPTION = "PetaLinux OpenAMP supported packages" 2 | 3 | PACKAGE_ARCH = "${MACHINE_ARCH}" 4 | 5 | inherit packagegroup features_check 6 | 7 | REQUIRED_DISTRO_FEATURES = "openamp" 8 | 9 | PACKAGES = "\ 10 | packagegroup-petalinux-openamp-echo-test \ 11 | packagegroup-petalinux-openamp-matrix-mul \ 12 | packagegroup-petalinux-openamp-rpc-demo \ 13 | packagegroup-petalinux-openamp \ 14 | " 15 | 16 | RDEPENDS:${PN}-echo-test = "rpmsg-echo-test" 17 | #RDEPENDS:${PN}-echo-test:append:kria = " openamp-fw-echo-testd" 18 | #RDEPENDS:${PN}-echo-test:append:zcu102-zynqmp = " openamp-fw-echo-testd" 19 | 20 | RDEPENDS:${PN}-matrix-mul = "rpmsg-mat-mul" 21 | #RDEPENDS:${PN}-matrix-mul:append:kria = " openamp-fw-mat-muld" 22 | #RDEPENDS:${PN}-matrix-mul:append:zcu102-zynqmp = " openamp-fw-mat-muld" 23 | 24 | RDEPENDS:${PN}-rpc-demo = "rpmsg-proxy-app" 25 | #RDEPENDS:${PN}-rpc-demo:append:kria = " openamp-fw-rpc-demo" 26 | #RDEPENDS:${PN}-rpc-demo:append:zcu102-zynqmp = " openamp-fw-rpc-demo" 27 | 28 | RDEPENDS:${PN}:append = " ${@'open-amp-device-tree' if d.getVar('ENABLE_OPENAMP_DTSI') != '1' else ''}" 29 | 30 | RDEPENDS:${PN}:append = " \ 31 | libmetal \ 32 | libmetal-demos \ 33 | open-amp \ 34 | open-amp-demos \ 35 | packagegroup-petalinux-openamp-echo-test \ 36 | packagegroup-petalinux-openamp-matrix-mul \ 37 | packagegroup-petalinux-openamp-rpc-demo \ 38 | " 39 | -------------------------------------------------------------------------------- /recipes-core/meta/meta-xilinx-toolchain.bb: -------------------------------------------------------------------------------- 1 | SUMMARY = "Meta package for building a Xilinx prebuilt installable toolchain" 2 | LICENSE = "MIT" 3 | 4 | FILESEXTRAPATHS:append = ":${PETALINUX_PATH}/scripts" 5 | 6 | SRC_URI += " \ 7 | file://relocate-wrapper.py \ 8 | " 9 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" 10 | 11 | inherit populate_sdk 12 | 13 | COMPATIBLE_HOST = "${HOST_SYS}" 14 | 15 | # This is a bare minimum toolchain, so limit to only the basic host 16 | # dependencies 17 | HOST_DEPENDS = " \ 18 | nativesdk-sdk-provides-dummy \ 19 | " 20 | 21 | PLNX_ADD_VAI_SDK = "" 22 | 23 | TOOLCHAIN_HOST_TASK = "${HOST_DEPENDS} packagegroup-cross-canadian-${MACHINE}" 24 | TOOLCHAIN_TARGET_TASK:xilinx-standalone:baremetal-multilib-tc = "${@multilib_pkg_extend(d, 'packagegroup-newlib-standalone-sdk-target')}" 25 | 26 | TOOLCHAIN_SHAR_EXT_TMPL = "${PETALINUX_PATH}/files/toolchain-shar-extract.sh" 27 | TOOLCHAIN_SHAR_REL_TMPL = "${PETALINUX_PATH}/files/toolchain-shar-relocate.sh" 28 | 29 | create_sdk_files:append () { 30 | cp ${WORKDIR}/relocate-wrapper.py ${SDK_OUTPUT}/${SDKPATH}/ 31 | } 32 | 33 | # The wrappers don't do anything, remove them! 34 | create_sdk_files:append:sdkmingw32 () { 35 | rm -f ${SDK_OUTPUT}/${SDKPATH}/relocate-wrapper.py 36 | rm -f ${SDK_OUTPUT}/${SDKPATH}/relocate_sdk.py 37 | rm -f ${SDK_OUTPUT}/${SDKPATH}/post-relocate-setup.sh 38 | } 39 | -------------------------------------------------------------------------------- /recipes-devtools/qemu/qemu/0008-hw-arm-Add-grant-mapping.patch: -------------------------------------------------------------------------------- 1 | From b5e5f60de37bb6f71bc34ecb989c31ef5c834272 Mon Sep 17 00:00:00 2001 2 | From: Vikram Garhwal 3 | Date: Tue, 31 Jan 2023 21:46:43 +0000 4 | Subject: [PATCH 8/8] hw: arm: Add grant mapping. 5 | 6 | Add support for grant mapping and change qemu machine name to xenpvh. 7 | 8 | Signed-off-by: Vikram Garhwal 9 | Acked-by: Stefano Stabellini 10 | --- 11 | hw/arm/xen_arm.c | 5 ++++- 12 | 1 file changed, 4 insertions(+), 1 deletion(-) 13 | 14 | diff --git a/hw/arm/xen_arm.c b/hw/arm/xen_arm.c 15 | index 4ac425a3c5..392bed7367 100644 16 | --- a/hw/arm/xen_arm.c 17 | +++ b/hw/arm/xen_arm.c 18 | @@ -35,7 +35,7 @@ 19 | #include "sysemu/tpm.h" 20 | #include "hw/xen/arch_hvm.h" 21 | 22 | -#define TYPE_XEN_ARM MACHINE_TYPE_NAME("xenpv") 23 | +#define TYPE_XEN_ARM MACHINE_TYPE_NAME("xenpvh") 24 | OBJECT_DECLARE_SIMPLE_TYPE(XenArmState, XEN_ARM) 25 | 26 | static MemoryListener xen_memory_listener = { 27 | @@ -115,6 +115,9 @@ static void xen_init_ram(MachineState *machine) 28 | DPRINTF("Initialized region xen.ram.hi: base 0x%llx size 0x%lx\n", 29 | GUEST_RAM1_BASE, ram_size[1]); 30 | } 31 | + 32 | + DPRINTF("init grant ram mapping for XEN\n"); 33 | + ram_grants = *xen_init_grant_ram(); 34 | } 35 | 36 | void arch_handle_ioreq(XenIOState *state, ioreq_t *req) 37 | -- 38 | 2.25.1 39 | 40 | -------------------------------------------------------------------------------- /recipes-benchmarks/glmark2/files/0001-Make-RGB565-as-default-EGLconfig.patch: -------------------------------------------------------------------------------- 1 | From 43cdcd9dbb032d32e66bab9c25d5e7000797efb8 Mon Sep 17 00:00:00 2001 2 | From: Madhurkiran Harikrishnan 3 | Date: Wed, 26 Sep 2018 14:44:11 -0700 4 | Subject: [PATCH 1/3] Make RGB565 as default EGLconfig 5 | 6 | Make RGB565 as default EGL config as that way user need not pass 7 | explicit parameters for RGB565 EGLconfig. In the orignial scenario, if 8 | user does not pass the gl-visual-config to RGB565 there will be color 9 | conversion resulting in lower performance. 10 | 11 | Signed-off-by: Madhurkiran Harikrishnan 12 | Reviewed-by: Hyun Kwon 13 | Upstream-Status: Inappropriate [Xilinx specific] 14 | Signed-off-by: Mark Hatle 15 | --- 16 | src/gl-visual-config.h | 2 +- 17 | 1 file changed, 1 insertion(+), 1 deletion(-) 18 | 19 | Index: git/src/gl-visual-config.h 20 | =================================================================== 21 | --- git.orig/src/gl-visual-config.h 22 | +++ git/src/gl-visual-config.h 23 | @@ -31,7 +31,7 @@ class GLVisualConfig 24 | { 25 | public: 26 | GLVisualConfig(): 27 | - id(0), red(1), green(1), blue(1), alpha(1), depth(1), stencil(0), buffer(1), samples(0) {} 28 | + id(0), red(5), green(6), blue(5), alpha(0), depth(16), stencil(0), buffer(16), samples(0) {} 29 | GLVisualConfig(const std::string &s); 30 | 31 | /** 32 | -------------------------------------------------------------------------------- /classes/plnx-parse-recipes.bbclass: -------------------------------------------------------------------------------- 1 | OUTFILE_NAME = "${TOPDIR}/pnlist.json" 2 | python () { 3 | import re 4 | outfile_name = d.getVar('OUTFILE_NAME') or '' 5 | pn = d.getVar('PN') 6 | pv = d.getVar('PV') 7 | description = d.getVar('DESCRIPTION') 8 | rdepends = d.getVar('RDEPENDS:%s' % pn) or '' 9 | rdepends = re.sub("[\(\[].*?[\)\]]", "", rdepends) 10 | packages = d.getVar('PACKAGES') or '' 11 | packages = re.sub("[\(\[].*?[\)\]]", "", packages) 12 | 13 | # Add -dev,-dbg,-ptest manually if packagegroup inherited 14 | if bb.data.inherits_class('packagegroup', d): 15 | packages += ' %s-dev %s-dbg' % (pn, pn) 16 | if bb.utils.contains('DISTRO_FEATURES', 'ptest', True, False, d): 17 | packages += ' %s-ptest' % pn 18 | 19 | with open(outfile_name, 'a') as outfile_name_f: 20 | string = '"%s": {\n' \ 21 | ' "version": "%s",\n' \ 22 | ' "description": "%s",\n' \ 23 | ' "rdepends": [%s],\n' \ 24 | ' "packages": [%s]\n },\n' % (pn, \ 25 | pv, \ 26 | re.sub(r'["|\'|\t|\\]+', ' ',description), \ 27 | ', '.join(['"{}"'.format(c) for c in rdepends.split()]), \ 28 | ', '.join(['"{}"'.format(c) for c in packages.split()])) 29 | outfile_name_f.write(string) 30 | outfile_name_f.close() 31 | } 32 | -------------------------------------------------------------------------------- /dynamic-layers/xilinx-core/recipes-bsp/device-tree/device-tree.bbappend: -------------------------------------------------------------------------------- 1 | FILESEXTRAPATHS:prepend := "${@'${THISDIR}/files:' \ 2 | if ((d.getVar('WITHIN_PLNX_FLOW') or '') != '' and \ 3 | not d.getVar("SYSTEM_DTFILE")) else ''}" 4 | 5 | python () { 6 | if d.getVar("CONFIG_DISABLE"): 7 | d.setVarFlag("do_configure", "noexec", "1") 8 | 9 | if d.getVar("WITHIN_PLNX_FLOW") and not d.getVar("SYSTEM_DTFILE"): 10 | d.appendVar('SRC_URI', ' file://config file://system-user.dtsi') 11 | sysconfig_dir = d.getVar('SYSCONFIG_DIR') or '' 12 | plnx_scriptspath = d.getVar('PLNX_SCRIPTS_PATH') or '' 13 | if sysconfig_dir: 14 | d.prependVar('FILESEXTRAPATHS', '%s:' % sysconfig_dir) 15 | if plnx_scriptspath: 16 | d.prependVar('FILESEXTRAPATHS', '%s:' % plnx_scriptspath) 17 | d.appendVar('SRC_URI', ' file://%s' % plnx_scriptspath) 18 | } 19 | 20 | do_configure:append () { 21 | if [ x"${WITHIN_PLNX_FLOW}" = x1 ] && [ -z "${SYSTEM_DTFILE}" ]; then 22 | xsct_args="${WORKDIR}/${PLNX_SCRIPTS_PATH}/petalinux_hsm_bridge.tcl" 23 | xsct_args="${xsct_args} -c ${WORKDIR}/config -hdf ${DT_FILES_PATH}/hardware_description.${HDF_EXT}" 24 | xsct_args="${xsct_args} -repo ${S} -data ${WORKDIR}/${PLNX_SCRIPTS_PATH}/data/ -sw ${DT_FILES_PATH}" 25 | xsct_args="${xsct_args} -o ${DT_FILES_PATH} -a soc_mapping" 26 | echo "cmd is: xsct -sdx -nodisp $xsct_args" 27 | eval xsct -sdx -nodisp $xsct_args 28 | fi 29 | } 30 | -------------------------------------------------------------------------------- /recipes-core/systemd/systemd_%.bbappend: -------------------------------------------------------------------------------- 1 | # Prevent boot delay on devices with multiple network interfaces 2 | 3 | # From the systemd-networkd-wait-online.service man page: 4 | # NAME 5 | # systemd-networkd-wait-online.service, 6 | # systemd-networkd-wait-online@.service, systemd-networkd-wait-online - 7 | # Wait for network to come online 8 | # 9 | # DESCRIPTION 10 | # systemd-networkd-wait-online is a oneshot system service (see 11 | # systemd.service(5)), that waits for the network to be configured. By 12 | # default, it will wait for all links it is aware of and which are 13 | # managed by systemd-networkd.service(8) to be fully configured or 14 | # failed, and for at least one link to be online. Here, online means 15 | # that the link's operational state is equal or higher than "degraded". 16 | # The threshold can be configured by --operational-state= option. 17 | # 18 | # ... 19 | # OPTIONS 20 | # ... 21 | # --any 22 | # 23 | # Even if several interfaces are in configuring state, 24 | # systemd-networkd-wait-online exits with success when at least one 25 | # interface becomes online. When this option is specified with 26 | # --interface=, then systemd-networkd-wait-online waits for one of the 27 | # specified interfaces to be online. This option is useful when some 28 | # interfaces may not have carrier on boot. 29 | # 30 | 31 | do_install:append() { 32 | sed -i '/ExecStart/ s/$/ --any/' ${D}${systemd_system_unitdir}/systemd-networkd-wait-online.service 33 | } 34 | -------------------------------------------------------------------------------- /dynamic-layers/xilinx-tools/recipes-bsp/uboot-device-tree/uboot-device-tree.bbappend: -------------------------------------------------------------------------------- 1 | FILESEXTRAPATHS:prepend := "${@'${THISDIR}/files:' \ 2 | if ((d.getVar('WITHIN_PLNX_FLOW') or '') != '' and \ 3 | not d.getVar("SYSTEM_DTFILE")) else ''}" 4 | 5 | python () { 6 | if d.getVar("CONFIG_DISABLE"): 7 | d.setVarFlag("do_configure", "noexec", "1") 8 | 9 | if d.getVar("WITHIN_PLNX_FLOW") and not d.getVar("SYSTEM_DTFILE"): 10 | d.appendVar('SRC_URI', ' file://config file://system-user.dtsi') 11 | sysconfig_dir = d.getVar('SYSCONFIG_DIR') or '' 12 | plnx_scriptspath = d.getVar('PLNX_SCRIPTS_PATH') or '' 13 | if sysconfig_dir: 14 | d.prependVar('FILESEXTRAPATHS', '%s:' % sysconfig_dir) 15 | if plnx_scriptspath: 16 | d.prependVar('FILESEXTRAPATHS', '%s:' % plnx_scriptspath) 17 | d.appendVar('SRC_URI', ' file://%s' % plnx_scriptspath) 18 | } 19 | 20 | do_configure:append () { 21 | if [ x"${WITHIN_PLNX_FLOW}" = x1 ] && [ -z "${SYSTEM_DTFILE}" ]; then 22 | xsct_args="${WORKDIR}/${PLNX_SCRIPTS_PATH}/petalinux_hsm_bridge.tcl" 23 | xsct_args="${xsct_args} -c ${WORKDIR}/config -hdf ${DT_FILES_PATH}/hardware_description.${HDF_EXT}" 24 | xsct_args="${xsct_args} -repo ${S} -data ${WORKDIR}/${PLNX_SCRIPTS_PATH}/data/ -sw ${DT_FILES_PATH}" 25 | xsct_args="${xsct_args} -o ${DT_FILES_PATH} -a soc_mapping" 26 | echo "cmd is: xsct -sdx -nodisp $xsct_args" 27 | eval xsct -sdx -nodisp $xsct_args 28 | fi 29 | } 30 | -------------------------------------------------------------------------------- /recipes-devtools/qemu/qemu/0001-xen-pt-fix-syntax-error-that-causes-FTBFS-in-some-co.patch: -------------------------------------------------------------------------------- 1 | From ba24456b93a205b728475d5f0880f3ec495e383a Mon Sep 17 00:00:00 2001 2 | From: Chuck Zmudzinski 3 | Date: Mon, 31 Oct 2022 17:35:52 -0400 4 | Subject: [PATCH] xen/pt: fix syntax error that causes FTBFS in some 5 | configurations 6 | MIME-Version: 1.0 7 | Content-Type: text/plain; charset=UTF-8 8 | Content-Transfer-Encoding: 8bit 9 | 10 | When Qemu is built with --enable-xen and --disable-xen-pci-passthrough 11 | and the target os is linux, the build fails with: 12 | 13 | meson.build:3477:2: ERROR: File xen_pt_stub.c does not exist. 14 | 15 | Fixes: 582ea95f5f93 ("meson: convert hw/xen") 16 | 17 | Signed-off-by: Chuck Zmudzinski 18 | Reviewed-by: Philippe Mathieu-Daudé 19 | Message-Id: <5f1342a13c09af77b1a7b0aeaba5955bcea89731.1667242033.git.brchuckz@aol.com> 20 | Signed-off-by: Laurent Vivier 21 | --- 22 | hw/xen/meson.build | 2 +- 23 | 1 file changed, 1 insertion(+), 1 deletion(-) 24 | 25 | diff --git a/hw/xen/meson.build b/hw/xen/meson.build 26 | index 08dc1f6857..ae0ace3046 100644 27 | --- a/hw/xen/meson.build 28 | +++ b/hw/xen/meson.build 29 | @@ -18,7 +18,7 @@ if have_xen_pci_passthrough 30 | 'xen_pt_msi.c', 31 | )) 32 | else 33 | - xen_specific_ss.add('xen_pt_stub.c') 34 | + xen_specific_ss.add(files('xen_pt_stub.c')) 35 | endif 36 | 37 | specific_ss.add_all(when: ['CONFIG_XEN', xen], if_true: xen_specific_ss) 38 | -- 39 | 2.17.0 40 | 41 | -------------------------------------------------------------------------------- /dynamic-layers/xilinx-tools/recipes-bsp/fsboot/fs-boot_%.bbappend: -------------------------------------------------------------------------------- 1 | python () { 2 | if d.getVar('WITHIN_PLNX_FLOW') and not d.getVar('SYSTEM_DTFILE'): 3 | sysconfig_dir = d.getVar('SYSCONFIG_DIR') or '' 4 | plnx_scriptspath = d.getVar('PLNX_SCRIPTS_PATH') or '' 5 | if sysconfig_dir: 6 | d.prependVar('FILESEXTRAPATHS', '%s:' % sysconfig_dir) 7 | d.appendVar('SRC_URI', ' file://config') 8 | if plnx_scriptspath: 9 | d.prependVar('FILESEXTRAPATHS', '%s:' % plnx_scriptspath) 10 | d.appendVar('SRC_URI', ' file://%s' % plnx_scriptspath) 11 | d.setVar('YAML_FILE_PATH', '${WORKDIR}/fsboot.yaml') 12 | d.appendVar('EXTRA_OEMAKE_APP', ' CFLAGS=-O3\ -DCONFIG_FS_BOOT_OFFSET=${boot_offset}') 13 | } 14 | 15 | HSM_OUTFILE = "${WORKDIR}/offsets" 16 | do_configure:append () { 17 | if [ x"${WITHIN_PLNX_FLOW}" = x1 ] && [ -z "${SYSTEM_DTFILE}" ]; then 18 | touch ${HSM_OUTFILE} 19 | xsct_args="${WORKDIR}/${PLNX_SCRIPTS_PATH}/petalinux_hsm.tcl" 20 | xsct_args="${xsct_args} get_flash_width_parts ${WORKDIR}/config" 21 | xsct_args="${xsct_args} ${WORKDIR}/${PLNX_SCRIPTS_PATH}/data/ipinfo.yaml" 22 | xsct_args="${xsct_args} ${XSCTH_HDF} ${HSM_OUTFILE}" 23 | echo "cmd is: xsct -sdx -nodisp $xsct_args" 24 | xsct -sdx -nodisp $xsct_args 25 | fi 26 | } 27 | 28 | do_compile:prepend () { 29 | if [ x"${WITHIN_PLNX_FLOW}" = x1 ] && [ -z "${SYSTEM_DTFILE}" ]; then 30 | boot_offset=$(egrep -e "^boot=" "${HSM_OUTFILE}" | cut -d "=" -f 2 | cut -d " " -f 1) 31 | fi 32 | } 33 | -------------------------------------------------------------------------------- /recipes-graphics/drm/files/0004-modetest-fix-smpte-colour-pattern-issue-for-XV20-and.patch: -------------------------------------------------------------------------------- 1 | From ede95ded932a8f722f339fa345c098c705f40f08 Mon Sep 17 00:00:00 2001 2 | From: Anil Kumar M 3 | Date: Wed, 16 Sep 2020 22:42:47 +0530 4 | Subject: [PATCH 4/5] modetest: fix smpte colour pattern issue for XV20 and 5 | XV15 formats 6 | 7 | Fix smpte colour issue for XV15 and XV20 formats. 8 | 9 | Upstream-Status: Pending 10 | 11 | Signed-off-by: Anil Kumar M 12 | --- 13 | tests/util/pattern.c | 8 ++++---- 14 | 1 file changed, 4 insertions(+), 4 deletions(-) 15 | 16 | diff --git a/tests/util/pattern.c b/tests/util/pattern.c 17 | index e29d160..0fe2e5f 100644 18 | --- a/tests/util/pattern.c 19 | +++ b/tests/util/pattern.c 20 | @@ -1121,11 +1121,11 @@ static void fill_smpte(const struct util_format_info *info, 21 | return fill_smpte_yuv_packed(&info->yuv, planes[0], width, 22 | height, stride); 23 | case DRM_FORMAT_XV20: 24 | - return fill_tiles_xv20(info, planes[0], planes[1], planes[1], 25 | - width, height, stride); 26 | + return fill_smpte_yuv_semiplanar_10b(&info->yuv, planes[0], planes[1], 27 | + width, height, stride); 28 | case DRM_FORMAT_XV15: 29 | - return fill_tiles_xv15(info, planes[0], planes[1], planes[2], 30 | - width, height, stride); 31 | + return fill_smpte_yuv_semiplanar_10b(&info->yuv, planes[0], planes[1], 32 | + width, height, stride); 33 | case DRM_FORMAT_NV12: 34 | case DRM_FORMAT_NV21: 35 | case DRM_FORMAT_NV16: 36 | -- 37 | 2.7.4 38 | 39 | -------------------------------------------------------------------------------- /recipes-utils/power-button-handler/files/ultra96-power-button.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | ### BEGIN INIT INFO 4 | # Provides: Ultra96 power button monitoring script 5 | # Required-Start: 6 | # Required-Stop: 7 | # Default-Start:S 8 | # Default-Stop: 9 | # Short-Description: Monitors the power button and powers off the board 10 | # Description: This script runs a utility that monitors GPIO pin 364 and 11 | # powers off the Ultra96 board when the button is pushed. 12 | ### END INIT INFO 13 | 14 | DESC="ultra96-power-button.sh powers off the board when the power button is pushed" 15 | PWRUTIL="/sbin/ultra96-power-button-check" 16 | PWRUTIL_CMD="/sbin/poweroff" 17 | PWRUTIL_BASE=$(grep -il zynqmp_gpio /sys/class/gpio/gpiochip*/label | grep -o "[0-9]*") 18 | PWRUTIL_PIN=$[PWRUTIL_BASE+26] 19 | PWRUTIL_PID_NAME="ultra96-power-button" 20 | 21 | test -x "$PWRUTIL" || exit 0 22 | test -x "$PWRUTIL_CMD" || exit 0 23 | [ ! -z $PWRUTIL_BASE ] || exit 0 24 | 25 | PWRUTIL_OPTS="$PWRUTIL_PIN $PWRUTIL_CMD" 26 | 27 | case "$1" in 28 | start) 29 | echo -n "Starting Ultra96 Power Button daemon" 30 | start-stop-daemon --start --quiet --background --make-pidfile --pidfile /var/run/$PWRUTIL_PID_NAME.pid --exec $PWRUTIL -- $PWRUTIL_OPTS 31 | echo "." 32 | ;; 33 | stop) 34 | echo -n "Stopping Ultra96 Power Button daemon" 35 | start-stop-daemon --stop --quiet --pidfile /var/run/$PWRUTIL_PID_NAME.pid 36 | ;; 37 | *) 38 | echo "Usage: /etc/init.d/ultra96-power-button.sh {start|stop}" 39 | exit 1 40 | esac 41 | 42 | exit 0 43 | 44 | -------------------------------------------------------------------------------- /recipes-devtools/qemu/qemu/0007-xen-mapcache-Fix-build-on-Arm.patch: -------------------------------------------------------------------------------- 1 | From 2aca3ff63a5d5897cd32e0030569623f0c454f2c Mon Sep 17 00:00:00 2001 2 | From: Oleksandr Tyshchenko 3 | Date: Mon, 19 Sep 2022 21:59:55 +0300 4 | Subject: [PATCH 7/8] xen-mapcache: Fix build on Arm 5 | MIME-Version: 1.0 6 | Content-Type: text/plain; charset=UTF-8 7 | Content-Transfer-Encoding: 8bit 8 | 9 | ../hw/xen/xen-mapcache.c: In function ‘xen_map_grant_dyn’: 10 | ../hw/xen/xen-mapcache.c:668:9: error: ‘refs’ may be used uninitialized 11 | in this function [-Werror=maybe-uninitialized] 12 | 668 | g_free(refs); 13 | | ^~~~~~~~~~~~ 14 | cc1: all warnings being treated as errors 15 | 16 | Signed-off-by: Oleksandr Tyshchenko 17 | Acked-by: Stefano Stabellini 18 | --- 19 | hw/xen/xen-mapcache.c | 2 +- 20 | 1 file changed, 1 insertion(+), 1 deletion(-) 21 | 22 | diff --git a/hw/xen/xen-mapcache.c b/hw/xen/xen-mapcache.c 23 | index f81b75d216..6544e331e0 100644 24 | --- a/hw/xen/xen-mapcache.c 25 | +++ b/hw/xen/xen-mapcache.c 26 | @@ -620,7 +620,7 @@ static void *xen_map_grant_dyn(MemoryRegion **mr, hwaddr addr, hwaddr *plen, 27 | unsigned int i; 28 | unsigned int nrefs = (page_off + *plen + XC_PAGE_SIZE - 1) >> XC_PAGE_SHIFT; 29 | uint32_t ref = (addr - XEN_GRANT_ADDR_OFF) >> XC_PAGE_SHIFT; 30 | - uint32_t *refs; 31 | + uint32_t *refs = NULL; 32 | unsigned int prot = PROT_READ; 33 | struct XENMappedGrantRegion *mgr = NULL; 34 | 35 | -- 36 | 2.25.1 37 | 38 | -------------------------------------------------------------------------------- /recipes-qt/qt5/qtwayland/0003-qwaylandeglwindow.cpp-Bind-the-context-before-callin.patch: -------------------------------------------------------------------------------- 1 | From 7067fce80a6e863532a86a5aeb9d6f53e538b387 Mon Sep 17 00:00:00 2001 2 | From: Madhurkiran Harikrishnan 3 | Date: Wed, 5 Sep 2018 14:08:16 -0700 4 | Subject: [PATCH 3/3] qwaylandeglwindow.cpp: Bind the context before calling 5 | eglDestroySurface 6 | 7 | Call eglMakeCurrent to bind the context to the current rendering thread 8 | before calling eglDestroySurface to avoid a crash caused by the post 9 | processing activity of GPU driver. 10 | 11 | Signed-off-by: Madhurkiran Harikrishnan 12 | Upstream-Status: Pending 13 | --- 14 | src/hardwareintegration/client/wayland-egl/qwaylandeglwindow.cpp | 2 ++ 15 | 1 file changed, 2 insertions(+) 16 | 17 | diff --git a/src/hardwareintegration/client/wayland-egl/qwaylandeglwindow.cpp b/src/hardwareintegration/client/wayland-egl/qwaylandeglwindow.cpp 18 | index 6b5c532..77cc433 100644 19 | --- a/src/hardwareintegration/client/wayland-egl/qwaylandeglwindow.cpp 20 | +++ b/src/hardwareintegration/client/wayland-egl/qwaylandeglwindow.cpp 21 | @@ -171,6 +171,8 @@ void QWaylandEglWindow::doInvalidateSurface() 22 | void QWaylandEglWindow::invalidateSurface() 23 | { 24 | if (m_eglSurface) { 25 | + eglMakeCurrent(m_clientBufferIntegration->eglDisplay(), EGL_NO_SURFACE, 26 | + EGL_NO_SURFACE, EGL_NO_CONTEXT); 27 | eglDestroySurface(m_clientBufferIntegration->eglDisplay(), m_eglSurface); 28 | m_eglSurface = 0; 29 | } 30 | -- 31 | 2.7.4 32 | 33 | -------------------------------------------------------------------------------- /conf/templates/default/bblayers.conf.sample: -------------------------------------------------------------------------------- 1 | BBPATH = "${TOPDIR}" 2 | BBFILES ?= "" 3 | 4 | BBLAYERS ?= " \ 5 | ##OEROOT##/meta \ 6 | ##OEROOT##/meta-poky \ 7 | ##OEROOT##/../meta-xilinx/meta-microblaze \ 8 | ##OEROOT##/../meta-xilinx/meta-xilinx-core \ 9 | ##OEROOT##/../meta-xilinx/meta-xilinx-standalone \ 10 | ##OEROOT##/../meta-xilinx/meta-xilinx-bsp \ 11 | ##OEROOT##/../meta-xilinx/meta-xilinx-vendor \ 12 | ##OEROOT##/../meta-xilinx-tools \ 13 | ##OEROOT##/../meta-openembedded/meta-perl \ 14 | ##OEROOT##/../meta-openembedded/meta-python \ 15 | ##OEROOT##/../meta-openembedded/meta-filesystems \ 16 | ##OEROOT##/../meta-openembedded/meta-gnome \ 17 | ##OEROOT##/../meta-openembedded/meta-multimedia \ 18 | ##OEROOT##/../meta-openembedded/meta-networking \ 19 | ##OEROOT##/../meta-openembedded/meta-webserver \ 20 | ##OEROOT##/../meta-openembedded/meta-xfce \ 21 | ##OEROOT##/../meta-openembedded/meta-initramfs \ 22 | ##OEROOT##/../meta-openembedded/meta-oe \ 23 | ##OEROOT##/../meta-xilinx/meta-xilinx-contrib \ 24 | ##OEROOT##/../meta-virtualization \ 25 | ##OEROOT##/../meta-openamp \ 26 | ##OEROOT##/../meta-kria \ 27 | ##OEROOT##/../meta-security \ 28 | ##OEROOT##/../meta-security/meta-tpm \ 29 | ##OEROOT##/../meta-xilinx-tsn \ 30 | ##OEROOT##/../meta-petalinux \ 31 | ##OEROOT##/../meta-qt5 \ 32 | ##OEROOT##/../meta-aws \ 33 | ##OEROOT##/../meta-jupyter \ 34 | ##OEROOT##/../meta-system-controller \ 35 | ##OEROOT##/../meta-ros/meta-ros-common \ 36 | ##OEROOT##/../meta-ros/meta-ros2 \ 37 | ##OEROOT##/../meta-ros/meta-ros2-humble \ 38 | " 39 | -------------------------------------------------------------------------------- /recipes-apps/resize-partition/resize-partition.bb: -------------------------------------------------------------------------------- 1 | 2 | DESCRIPTION = "Init script to extend the rootfs partition size \ 3 | during runtime" 4 | 5 | SUMMARY = "Init script to extend the rootfs partition size \ 6 | during runtime \ 7 | " 8 | 9 | LICENSE = "MIT" 10 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" 11 | 12 | SRC_URI = "file://resize-partition.sh \ 13 | file://resize-partition.service \ 14 | " 15 | 16 | inherit update-rc.d systemd 17 | 18 | RDEPENDS:${PN} += "resize-part" 19 | 20 | INSANE_SKIP:${PN} += "installed-vs-shipped" 21 | 22 | INITSCRIPT_NAME = "resize-partition.sh" 23 | INITSCRIPT_PARAMS = "start 99 S ." 24 | 25 | SYSTEMD_PACKAGES = "${PN}" 26 | SYSTEMD_SERVICE:${PN} = "resize-partition.service" 27 | SYSTEMD_AUTO_ENABLE:${PN}="enable" 28 | 29 | COMPATIBLE_MACHINE = "^$" 30 | COMPATIBLE_MACHINE:zynqmp = "zynqmp" 31 | 32 | do_install () { 33 | if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then 34 | install -d ${D}${sysconfdir}/init.d/ 35 | install -m 0755 ${WORKDIR}/resize-partition.sh ${D}${sysconfdir}/init.d/ 36 | fi 37 | 38 | install -d ${D}${bindir} 39 | install -m 0755 ${WORKDIR}/resize-partition.sh ${D}${bindir}/ 40 | install -d ${D}${systemd_system_unitdir} 41 | install -m 0644 ${WORKDIR}/resize-partition.service ${D}${systemd_system_unitdir} 42 | } 43 | 44 | FILES:${PN} += "${@bb.utils.contains('DISTRO_FEATURES','sysvinit','${sysconfdir}/init.d/resize-partition.sh', '', d)}" 45 | -------------------------------------------------------------------------------- /recipes-devtools/gcc/gcc-runtime_%.bbappend: -------------------------------------------------------------------------------- 1 | # Both arm and armv7r/armv8r overrides are set w/ cortex r5 2 | # So only set rmprofile if armv*r is defined. 3 | ARM_PROFILE = "aprofile" 4 | ARM_PROFILE:armv7r = "rmprofile" 5 | ARM_PROFILE:armv8r = "rmprofile" 6 | 7 | EXTRA_OECONF:append:xilinx-standalone:arm:class-target:baremetal-multilib-tc = " \ 8 | --with-multilib-list=${ARM_PROFILE} \ 9 | " 10 | 11 | do_install:append:xilinx-standalone:class-target:baremetal-multilib-tc () { 12 | # The multilibs have different headers, so stop combining them! 13 | if [ "${TARGET_VENDOR_MULTILIB_ORIGINAL}" != "" -a "${TARGET_VENDOR}" != "${TARGET_VENDOR_MULTILIB_ORIGINAL}" ]; then 14 | rm -rf ${D}${includedir}/c++/${BINV}/${TARGET_ARCH}${TARGET_VENDOR_MULTILIB_ORIGINAL}-${TARGET_OS} 15 | fi 16 | 17 | # link the C++ header into the place that multilib gcc expects 18 | # C++ compiler looks at usr/include/c++/version/canonical-arch/mlib 19 | if [ "${TARGET_SYS_MULTILIB_ORIGINAL}" != "" -a "${TARGET_SYS_MULTILIB_ORIGINAL}" != "${TARGET_SYS}" ]; then 20 | mlib=${BASE_LIB:tune-${DEFAULTTUNE}} 21 | mlib=${mlib##lib/} 22 | 23 | link_name=${D}${includedir}/c++/${BINV}/${TARGET_SYS_MULTILIB_ORIGINAL}/${mlib} 24 | target=${D}${includedir}/c++/${BINV}/${TARGET_SYS} 25 | 26 | echo mkdir -p $link_name 27 | mkdir -p $link_name 28 | for each in bits ext ; do 29 | relpath=$(python3 -c "import os.path; print(os.path.relpath('$target/$each', '$(dirname $link_name/$each)'))") 30 | 31 | echo ln -s $relpath $link_name/$each 32 | ln -s $relpath $link_name/$each 33 | done 34 | fi 35 | } 36 | -------------------------------------------------------------------------------- /recipes-graphics/drm/files/0001-PATCH-libdrm-Update-drm-header-file-with-XV15-and-XV.patch: -------------------------------------------------------------------------------- 1 | From 7edb14622061e87bb4810fb648017b43e767d4c6 Mon Sep 17 00:00:00 2001 2 | From: Sai Hari Chandana Kalluri 3 | Date: Mon, 1 Nov 2021 12:59:36 -0700 4 | Subject: [PATCH 1/5] [PATCH] libdrm: Update drm header file with XV15 and XV20 5 | 6 | This patch updates drm header file with YUV 420 and 7 | YUV422 10 bit formats. 8 | 9 | Signed-off-by: Satish Kumar Nagireddy 10 | Upstream-Status: Pending 11 | Signed-off-by: Sai Hari Chandana Kalluri 12 | --- 13 | include/drm/drm_fourcc.h | 8 ++++++++ 14 | 1 file changed, 8 insertions(+) 15 | 16 | diff --git a/include/drm/drm_fourcc.h b/include/drm/drm_fourcc.h 17 | index ed0258c..c5cdaed 100644 18 | --- a/include/drm/drm_fourcc.h 19 | +++ b/include/drm/drm_fourcc.h 20 | @@ -318,6 +318,14 @@ extern "C" { 21 | #define DRM_FORMAT_Q401 fourcc_code('Q', '4', '0', '1') 22 | 23 | /* 24 | + * 2 plane 10 bit per component YCbCr 25 | + * index 0 = Y plane, [31:0] x:Y2:Y1:Y0 2:10:10:10 little endian 26 | + * index 1 = Cb:Cr plane, [63:0] x:Cb2:Cr2:Cb1:x:Cr1:Cb0:Cr0 2:10:10:10:2:10:10:10 little endian 27 | + */ 28 | +#define DRM_FORMAT_XV15 fourcc_code('X', 'V', '1', '5') /* 2x2 subsampled Cb:Cr plane 2:10:10:10 */ 29 | +#define DRM_FORMAT_XV20 fourcc_code('X', 'V', '2', '0') /* 2x1 subsampled Cb:Cr plane 2:10:10:10 */ 30 | + 31 | +/* 32 | * 3 plane YCbCr 33 | * index 0: Y plane, [7:0] Y 34 | * index 1: Cb plane, [7:0] Cb 35 | -- 36 | 2.7.4 37 | 38 | -------------------------------------------------------------------------------- /recipes-qt/qt5/qtwayland/0001-Fix-regression-in-QWaylandGlContext-makeCurrent-for-.patch: -------------------------------------------------------------------------------- 1 | From eb44571eab0036a9a1bcd7c423f0187abcbf7a37 Mon Sep 17 00:00:00 2001 2 | From: Johan Klokkhammer Helsing 3 | Date: Thu, 30 Aug 2018 09:31:33 +0200 4 | Subject: [PATCH] Fix regression in QWaylandGlContext::makeCurrent for 5 | offscreen surfaces 6 | 7 | [ChangeLog][QPA plugin] Fixed a bug where offscreen surfaces would get 8 | surfaceless EGL contexts. 9 | 10 | Fixes a regression in in bf09c7a1. 11 | 12 | The call, window->updateSurface(window->isExposed()), is problematic because 13 | offscreen textures are never exposed, and consequently, eglSurface will be 14 | EGL_NO_SURFACE, which will then create a surfaceless context in the call: 15 | 16 | eglMakeCurrent(m_eglDisplay, eglSurface, eglSurface, m_context) 17 | 18 | This reverts to the old behavior of always trying to create an EGL surface, 19 | unless the window doesn't have a valid wl_surface, in which case it doesn't 20 | make sense (which is what bf09c7a1 fixed, QTBUG-65553). 21 | 22 | Task-number: QTBUG-70242 23 | Task-number: QTBUG-68605 24 | Task-number: QTBUG-67601 25 | Change-Id: I44b07bb8bf4b33c73c6379a1de8e9e5cfd220b51 26 | 27 | Signed-off-by: Johan Helsing 28 | Signed-off-by: Madhurkiran Harikrishnan 29 | Upstream-Status: Backport 30 | --- 31 | src/hardwareintegration/client/wayland-egl/qwaylandeglwindow.cpp | 9 ++++++--- 32 | src/hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp | 2 +- 33 | 2 files changed, 7 insertions(+), 4 deletions(-) 34 | 35 | -------------------------------------------------------------------------------- /recipes-core/initrdscripts/plnx-initramfs-framework/searche2fs: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | export PATH=/sbin:/usr/sbin:/bin:/usr/bin 4 | 5 | # sourcing the required functions 6 | . /scripts/functions 7 | 8 | searche2fs_enabled() { 9 | return 0 10 | } 11 | 12 | searche2fs_run() { 13 | if [ -n "$bootparam_launch_ramdisk_init" ]; then 14 | msg "launch_ramdisk_init is set, Launching ramdisk init" 15 | return 0 16 | fi 17 | if [ -z "$ROOTFS_DIR" ]; then 18 | return 0 19 | fi 20 | if [ -z "${bootparam_ext2}" ] && [ -z "${bootparam_ext3}" ] && [ -z "${bootparam_ext4}" ]; then 21 | boot_devices="" 22 | block_devices="" 23 | sleep 2 24 | block_devices=$(ls /sys/block/ | grep -e "sd[a-z]\{1,\}$" -e "mmcblk[0-9]\{1,\}$") 25 | for block_device in $block_devices; do 26 | boot_devices=$(blkid /dev/${block_device}* | grep "TYPE=\"ext" | cut -d: -f 1) 27 | for boot_device in $boot_devices; do 28 | if [ -e ${boot_device} ]; then 29 | boot_device_type="$(blkid ${boot_device} | grep -o 'TYPE=.*' | cut -d\" -f 2)" 30 | mkdir -p "$ROOTFS_DIR" 31 | check_fsck "$boot_device" "$boot_device_type" 32 | if ! mount -t $boot_device_type $boot_device $ROOTFS_DIR; then 33 | msg "Failed to mount selected root filesystem ($boot_device)" 34 | fi 35 | if [ ! -d $ROOTFS_DIR/dev ]; then 36 | umount $ROOTFS_DIR 37 | msg "There's no '/dev' on $boot_device_type(${boot_device}) partition." 38 | else 39 | if ! check_init $ROOTFS_DIR; then 40 | umount $ROOTFS_DIR 41 | fi 42 | return 0 43 | fi 44 | fi 45 | done 46 | done 47 | fi 48 | } 49 | -------------------------------------------------------------------------------- /recipes-examples/pm-notebooks/files/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2019, Xilinx 2 | All rights reserved. 3 | 4 | Redistribution and use in source and binary forms, with or without 5 | modification, are permitted provided that the following conditions are met: 6 | 7 | * Redistributions of source code must retain the above copyright notice, this 8 | list of conditions and the following disclaimer. 9 | 10 | * Redistributions in binary form must reproduce the above copyright notice, 11 | this list of conditions and the following disclaimer in the documentation 12 | and/or other materials provided with the distribution. 13 | 14 | * Neither the name of the copyright holder nor the names of its 15 | contributors may be used to endorse or promote products derived from 16 | this software without specific prior written permission. 17 | 18 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 19 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 20 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 21 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE 22 | FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 23 | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 24 | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 25 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 26 | OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 | -------------------------------------------------------------------------------- /recipes-examples/openamp/openamp-demo-notebooks/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2019, Xilinx 2 | All rights reserved. 3 | 4 | Redistribution and use in source and binary forms, with or without 5 | modification, are permitted provided that the following conditions are met: 6 | 7 | * Redistributions of source code must retain the above copyright notice, this 8 | list of conditions and the following disclaimer. 9 | 10 | * Redistributions in binary form must reproduce the above copyright notice, 11 | this list of conditions and the following disclaimer in the documentation 12 | and/or other materials provided with the distribution. 13 | 14 | * Neither the name of the copyright holder nor the names of its 15 | contributors may be used to endorse or promote products derived from 16 | this software without specific prior written permission. 17 | 18 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 19 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 20 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 21 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE 22 | FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 23 | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 24 | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 25 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 26 | OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 | -------------------------------------------------------------------------------- /recipes-core/images/petalinux-initramfs-image.bb: -------------------------------------------------------------------------------- 1 | # Simple petalinux initramfs image. 2 | DESCRIPTION = "Small image capable of booting a device. The kernel includes \ 3 | the Minimal RAM-based Initial Root Filesystem (initramfs), which finds the \ 4 | first 'init' program more efficiently." 5 | 6 | INITRAMFS_SCRIPTS ?= " \ 7 | plnx-initramfs-framework-base \ 8 | plnx-initramfs-module-e2fs \ 9 | plnx-initramfs-module-udhcpc \ 10 | plnx-initramfs-module-searche2fs \ 11 | " 12 | 13 | INITRAMFS_SCRIPTS:append:kria = " plnx-initramfs-module-exec" 14 | 15 | INITRAMFS_PACKAGES ?= "${VIRTUAL-RUNTIME_base-utils} \ 16 | base-passwd \ 17 | e2fsprogs \ 18 | ${ROOTFS_BOOTSTRAP_INSTALL} \ 19 | " 20 | 21 | BAD_RECOMMENDATIONS += "plnx-initramfs-module-rootfs" 22 | PACKAGE_INSTALL ?= "${INITRAMFS_PACKAGES} ${INITRAMFS_SCRIPTS}" 23 | 24 | # Do not pollute the initrd image with rootfs features 25 | IMAGE_FEATURES = "" 26 | 27 | export IMAGE_BASENAME = "petalinux-initramfs-image" 28 | IMAGE_LINGUAS = "" 29 | 30 | LICENSE = "MIT" 31 | 32 | # BSPs use IMAGE_FSTYPES: which would override 33 | # an assignment to IMAGE_FSTYPES so we need anon python 34 | IMAGE_FSTYPES:forcevariable = "${INITRAMFS_FSTYPES}" 35 | python () { 36 | d.setVar("IMAGE_FSTYPES", d.getVar("INITRAMFS_FSTYPES")) 37 | } 38 | 39 | inherit core-image 40 | inherit image_types_plnx 41 | 42 | # Skip /boot when generating a cpio 43 | PLNX_IMAGE_CPIO_SKIP += "! -path './boot/*'" 44 | 45 | IMAGE_ROOTFS_SIZE = "8192" 46 | IMAGE_ROOTFS_EXTRA_SPACE = "0" 47 | 48 | rm_work_rootfs[noexec] = "1" 49 | rm_work_rootfs[cleandirs] = "" 50 | RM_WORK_EXCLUDE_ITEMS += "rootfs" 51 | -------------------------------------------------------------------------------- /recipes-utils/start-jupyterlab/start-jupyterlab/start-jupyter.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | #******************************************************************************* 3 | # 4 | # Copyright (C) 2019 Xilinx, Inc. All rights reserved. 5 | # 6 | # Permission is hereby granted, free of charge, to any person obtaining 7 | # a copy of this software and associated documentation files (the 8 | # "Software"), to deal in the Software without restriction, including 9 | # without limitation the rights to use, copy, modify, merge, publish, 10 | # distribute, sublicense, and/or sell copies of the Software, and to 11 | # permit persons to whom the Software is furnished to do so, subject to the following conditions: 12 | # 13 | # The above copyright notice and this permission notice shall be 14 | # included in all copies or substantial portions of the Software. 15 | # 16 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 17 | # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 19 | # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS 20 | # BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN 21 | # ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 22 | # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 23 | # 24 | #********************************************************************** 25 | 26 | ip=$(ip -4 addr show eth0 | grep -oE "inet ([0-9]{1,3}[\.]){3}[0-9]{1,3}" | cut -d ' ' -f2) 27 | if [ -z $ip ]; then 28 | echo "ERROR: Invalid IP address" 29 | exit 1 30 | fi 31 | jupyter-lab --no-browser --allow-root --ip=$ip 32 | -------------------------------------------------------------------------------- /recipes-extended/xen/xen_%.bbappend: -------------------------------------------------------------------------------- 1 | require xen-xilinx.inc 2 | 3 | FILESEXTRAPATHS:prepend := "${THISDIR}/files:" 4 | 5 | SRC_URI += " \ 6 | file://example-passnet.cfg \ 7 | file://example-pvnet.cfg \ 8 | file://example-simple.cfg \ 9 | file://passthrough-example-part.dts \ 10 | " 11 | 12 | RDEPENDS:${PN}-efi += "bash python3" 13 | 14 | do_compile:append() { 15 | dtc -I dts -O dtb ${WORKDIR}/passthrough-example-part.dts -o ${WORKDIR}/passthrough-example-part.dtb 16 | } 17 | 18 | do_deploy:append() { 19 | # Mimic older behavior for compatibility 20 | if [ -f ${DEPLOYDIR}/xen-${MACHINE} ]; then 21 | ln -s xen-${MACHINE} ${DEPLOYDIR}/xen 22 | fi 23 | 24 | if [ -f ${DEPLOYDIR}/xen-${MACHINE}.gz ]; then 25 | ln -s xen-${MACHINE}.gz ${DEPLOYDIR}/xen.gz 26 | fi 27 | 28 | if [ -f ${DEPLOYDIR}/xen-${MACHINE}.efi ]; then 29 | ln -s xen-${MACHINE}.efi ${DEPLOYDIR}/xen.efi 30 | fi 31 | } 32 | 33 | do_install:append() { 34 | install -d -m 0755 ${D}${sysconfdir}/xen 35 | install -m 0644 ${WORKDIR}/example-passnet.cfg ${D}${sysconfdir}/xen/example-passnet.cfg 36 | install -m 0644 ${WORKDIR}/example-pvnet.cfg ${D}${sysconfdir}/xen/example-pvnet.cfg 37 | install -m 0644 ${WORKDIR}/example-simple.cfg ${D}${sysconfdir}/xen/example-simple.cfg 38 | install -m 0644 ${WORKDIR}/passthrough-example-part.dtb ${D}${sysconfdir}/xen/passthrough-example-part.dtb 39 | } 40 | 41 | FILES:${PN} += " \ 42 | ${sysconfdir}/xen/example-passnet.cfg \ 43 | ${sysconfdir}/xen/example-pvnet.cfg \ 44 | ${sysconfdir}/xen/example-simple.cfg \ 45 | ${sysconfdir}/xen/passthrough-example-part.dtb \ 46 | " 47 | -------------------------------------------------------------------------------- /recipes-utils/sensor-mezzanine-examples/files/0003-rgb_lcd-Modify-demo-to-run-with-python3.patch: -------------------------------------------------------------------------------- 1 | From 99d5613cab1bc86beb7b519b1130097eccd79f5c Mon Sep 17 00:00:00 2001 2 | From: Sai Hari Chandana Kalluri 3 | Date: Mon, 23 Apr 2018 12:05:15 -0700 4 | Subject: [sensor-mezzanine-examples][master][PATCH 3/7] rgb_lcd *: Modify demo 5 | to run with python3 6 | 7 | Modify the examples to work with python3. Change the message displayed 8 | on the screen. 9 | 10 | Signed-off-by: Sai Hari Chandana Kalluri 11 | --- 12 | rgb_lcd_demo/Makefile | 2 +- 13 | rgb_lcd_demo/rgb_lcd_demo.cpp | 6 +++--- 14 | 2 files changed, 4 insertions(+), 4 deletions(-) 15 | 16 | diff --git a/rgb_lcd_demo/Makefile b/rgb_lcd_demo/Makefile 17 | index 50b60da..429271a 100644 18 | --- a/rgb_lcd_demo/Makefile 19 | +++ b/rgb_lcd_demo/Makefile 20 | @@ -1,4 +1,4 @@ 21 | -LDFLAGS=-lupm-i2clcd -lupm-jhd1313m1 22 | +LDFLAGS=-lupm-lcd -lupm-jhd1313m1 23 | CXXFLAGS=-Wall -g -I/usr/include/upm 24 | TARGETS=rgb_lcd_demo 25 | 26 | diff --git a/rgb_lcd_demo/rgb_lcd_demo.cpp b/rgb_lcd_demo/rgb_lcd_demo.cpp 27 | index d8e52b9..a4bbe47 100644 28 | --- a/rgb_lcd_demo/rgb_lcd_demo.cpp 29 | +++ b/rgb_lcd_demo/rgb_lcd_demo.cpp 30 | @@ -31,9 +31,9 @@ void display(string str1, string str2, int red, int green, int blue) 31 | 32 | int main(int argc, char* argv[]) 33 | { 34 | - string str1 = "96Boards!"; 35 | - string str2 = "Grove Sensors!"; 36 | - string str3 = "Linaro!"; 37 | + string str1 = "Avnet"; 38 | + string str2 = "Ultra96!"; 39 | + string str3 = "Board!"; 40 | 41 | lcd = new upm::Jhd1313m1(I2C_BUS, 0x3e, 0x62); 42 | 43 | -- 44 | 2.7.4 45 | 46 | -------------------------------------------------------------------------------- /recipes-devtools/qemu/qemu/0007-xen-skip-ioreq-creation-on-ioreq-registration-failur.patch: -------------------------------------------------------------------------------- 1 | From fa475ec44fc78ff246e6536c8b9d408abadbb4a4 Mon Sep 17 00:00:00 2001 2 | From: Stefano Stabellini 3 | Date: Fri, 1 Jul 2022 18:50:59 -0700 4 | Subject: [PATCH 07/16] xen: skip ioreq creation on ioreq registration failure 5 | 6 | On ARM it is possible to have a functioning xenpv machine with only the 7 | PV backends and no IOREQ server. If the IOREQ server creation fails 8 | continue to the PV backends initialization. 9 | 10 | Signed-off-by: Stefano Stabellini 11 | --- 12 | hw/xen/xen-hvm-common.c | 7 ++++++- 13 | 1 file changed, 6 insertions(+), 1 deletion(-) 14 | 15 | diff --git a/hw/xen/xen-hvm-common.c b/hw/xen/xen-hvm-common.c 16 | index 67f76f6010..7e7d23397f 100644 17 | --- a/hw/xen/xen-hvm-common.c 18 | +++ b/hw/xen/xen-hvm-common.c 19 | @@ -780,7 +780,11 @@ void xen_register_ioreq(XenIOState *state, unsigned int max_cpus, 20 | goto err; 21 | } 22 | 23 | - xen_create_ioreq_server(xen_domid, &state->ioservid); 24 | + rc = xen_create_ioreq_server(xen_domid, &state->ioservid); 25 | + if (rc) { 26 | + DPRINTF("xen: failed to create ioreq server\n"); 27 | + goto no_ioreq; 28 | + } 29 | 30 | state->exit.notify = xen_exit_notifier; 31 | qemu_add_exit_notifier(&state->exit); 32 | @@ -845,6 +849,7 @@ void xen_register_ioreq(XenIOState *state, unsigned int max_cpus, 33 | QLIST_INIT(&state->dev_list); 34 | device_listener_register(&state->device_listener); 35 | 36 | +no_ioreq: 37 | xen_bus_init(); 38 | 39 | /* Initialize backend core & drivers */ 40 | -- 41 | 2.17.1 42 | 43 | -------------------------------------------------------------------------------- /recipes-utils/ultra96-ap-setup/ultra96-ap-setup_1.0.bb: -------------------------------------------------------------------------------- 1 | DESCRIPTION = "Creates access point(AP) on ultra96" 2 | SUMMARY = "Reads MAC address from board and splits the interface to create AP" 3 | 4 | LICENSE = "Proprietary" 5 | LIC_FILES_CHKSUM = "file://ap.sh;beginline=2;endline=26;md5=27af9029002476f1d14c5035d94e65e7" 6 | 7 | SRC_URI = "file://ap.sh \ 8 | file://udhcpd.conf \ 9 | file://wpa_ap.conf \ 10 | file://ultra96-ap-setup.sh \ 11 | file://ultra96-ap-setup.service \ 12 | " 13 | 14 | FILES:${PN} += "${datadir}/wpa_ap" 15 | 16 | inherit update-rc.d systemd 17 | 18 | INITSCRIPT_NAME = "ultra96-ap-setup.sh" 19 | INITSCRIPT_PARAMS = "start 99 S ." 20 | 21 | SYSTEMD_PACKAGES="${PN}" 22 | SYSTEMD_SERVICE:${PN}="ultra96-ap-setup.service" 23 | SYSTEMD_AUTO_ENABLE:${PN}="enable" 24 | 25 | COMPATIBLE_MACHINE = "^$" 26 | COMPATIBLE_MACHINE:ultra96-zynqmp = "${MACHINE}" 27 | 28 | PACKAGE_ARCH = "${MACHINE_ARCH}" 29 | 30 | RDEPENDS:${PN} = "wpa-supplicant busybox" 31 | 32 | S = "${WORKDIR}" 33 | 34 | do_install () { 35 | install -d ${D}${datadir}/wpa_ap 36 | install -m 0644 ${WORKDIR}/wpa_ap.conf ${D}${datadir}/wpa_ap/wpa_ap.conf 37 | install -m 0644 ${WORKDIR}/udhcpd.conf ${D}${datadir}/wpa_ap/udhcpd.conf 38 | install -m 0755 ${WORKDIR}/ap.sh ${D}${datadir}/wpa_ap/ap.sh 39 | 40 | if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then 41 | install -d ${D}${sysconfdir}/init.d/ 42 | install -m 0755 ${WORKDIR}/ultra96-ap-setup.sh ${D}${sysconfdir}/init.d/ultra96-ap-setup.sh 43 | fi 44 | 45 | install -d ${D}${systemd_system_unitdir} 46 | install -m 0644 ${WORKDIR}/ultra96-ap-setup.service ${D}${systemd_system_unitdir} 47 | 48 | } 49 | -------------------------------------------------------------------------------- /recipes-devtools/mtd/files/0001-Update-mkfs.jffs-to-support-4K-erase-block.patch: -------------------------------------------------------------------------------- 1 | From 49ffea9fef91cbff4452bda8cc74234b2f3c2a8a Mon Sep 17 00:00:00 2001 2 | From: Amit Kumar Mahapatra 3 | Date: Tue, 2 Jun 2020 16:02:32 +0530 4 | Subject: [PATCH] Update mkfs.jffs to support 4K erase block 5 | 6 | Flash erase size granularity can be starting from 4k, 8k upto 128K. 7 | When we use 4k as erase sector with jffs2, then we get erase block 8 | size error, this patch removes that check in order to support lower 9 | granularities like 4k. 10 | 11 | Upstream-Status: Inappropriate [Xilinx board specific] 12 | 13 | Signed-off-by: Amit Kumar Mahapatra 14 | --- 15 | jffsX-utils/mkfs.jffs2.c | 12 +++++------- 16 | 1 file changed, 5 insertions(+), 7 deletions(-) 17 | 18 | diff --git a/jffsX-utils/mkfs.jffs2.c b/jffsX-utils/mkfs.jffs2.c 19 | index 9cc5eaf..8852281 100644 20 | --- a/jffsX-utils/mkfs.jffs2.c 21 | +++ b/jffsX-utils/mkfs.jffs2.c 22 | @@ -1667,13 +1667,11 @@ int main(int argc, char **argv) 23 | } 24 | erase_block_size *= units; 25 | 26 | - /* If it's less than 8KiB, they're not allowed */ 27 | - if (erase_block_size < 0x2000) { 28 | - fprintf(stderr, "Erase size 0x%x too small. Increasing to 8KiB minimum\n", 29 | - erase_block_size); 30 | - erase_block_size = 0x2000; 31 | - } 32 | - break; 33 | + /* If it's less than 8KiB, print a warning message*/ 34 | + if (erase_block_size < 0x2000) 35 | + fprintf(stderr, "Erase size 0x%x too small. It may cause data corruption.\n", 36 | + erase_block_size); 37 | + break; 38 | } 39 | 40 | case 'l': 41 | -- 42 | 2.7.4 43 | 44 | -------------------------------------------------------------------------------- /recipes-utils/start-jupyternb/start-jupyternb/start-jupyter.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | #******************************************************************************* 3 | # 4 | # Copyright (C) 2019 Xilinx, Inc. All rights reserved. 5 | # 6 | # Permission is hereby granted, free of charge, to any person obtaining 7 | # a copy of this software and associated documentation files (the 8 | # "Software"), to deal in the Software without restriction, including 9 | # without limitation the rights to use, copy, modify, merge, publish, 10 | # distribute, sublicense, and/or sell copies of the Software, and to 11 | # permit persons to whom the Software is furnished to do so, subject to the following conditions: 12 | # 13 | # The above copyright notice and this permission notice shall be 14 | # included in all copies or substantial portions of the Software. 15 | # 16 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 17 | # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 19 | # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS 20 | # BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN 21 | # ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 22 | # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 23 | # 24 | #********************************************************************** 25 | 26 | 27 | ip=$(ip -4 addr show eth0 | grep -oE "inet ([0-9]{1,3}[\.]){3}[0-9]{1,3}" | cut -d ' ' -f2) 28 | if [ -z $ip ]; then 29 | echo "ERROR: Invalid IP address" 30 | exit 1 31 | fi 32 | jupyter nbextension enable --py widgetsnbextension 33 | jupyter notebook --no-browser --allow-root --ip=$ip 34 | 35 | -------------------------------------------------------------------------------- /recipes-devtools/gcc/riscv-convert.sh: -------------------------------------------------------------------------------- 1 | #! /bin/bash 2 | 3 | # Call using: 4 | #../riscv/sysroots/x86_64-oesdk-linux/usr/bin/riscv-xilinx-elf/riscv-xilinx-elf-gcc -print-multi-lib | riscv-convert.sh 5 | 6 | # Then copy the output into the special riscv-tc BSP 7 | 8 | sed -e 's,;, ,' | 9 | while read mlib args ; do 10 | if [ $mlib = '.' ]; then 11 | echo '# Base configuration' 12 | echo '# CFLAGS:' 13 | echo 'DEFAULTTUNE = "riscv"' 14 | echo 15 | echo 'AVAILTUNES += "riscv"' 16 | echo 'PACKAGE_EXTRA_ARCHS:tune-riscv = "${TUNE_PKGARCH:tune-riscv}"' 17 | echo 'BASE_LIB:tune-riscv = "lib"' 18 | echo 'TUNE_FEATURES:tune-riscv = "riscv"' 19 | echo 'TUNE_CCARGS:tune-riscv = ""' 20 | echo 'TUNE_PKGARCH:tune-riscv = "riscv32"' 21 | echo 'TUNE_ARCH:tune-riscv = "riscv32"' 22 | continue 23 | fi 24 | 25 | cflags=$(echo $args | sed -e 's,@, -,g') 26 | multilib="lib$(echo $mlib | sed -e 's,/,,g')" 27 | tune="$(echo $mlib | sed -e 's,/,,g')" 28 | case $mlib in 29 | .) arch="riscv32" ;; 30 | rv32*) arch="riscv32" ;; 31 | rv64*) arch="riscv64" ;; 32 | *) arch="unknwon" ;; 33 | esac 34 | echo 35 | echo 36 | echo "# $mlib" 37 | echo "# CFLAGS:${cflags}" 38 | echo "DEFAULTTUNE:virtclass-multilib-$multilib = \"$tune\"" 39 | echo 40 | echo "AVAILTUNES += \"$tune\"" 41 | echo "PACKAGE_EXTRA_ARCHS:tune-$tune = \"\${TUNE_PKGARCH:tune-$tune}\"" 42 | echo "BASE_LIB:tune-$tune = \"lib/$mlib\"" 43 | echo "TUNE_FEATURES:tune-$tune = \"riscv\"" 44 | echo "TUNE_CCARGS:tune-$tune = \"$cflags\"" 45 | echo "TUNE_PKGARCH:tune-$tune = \"$tune\"" 46 | echo "TUNE_ARCH:tune-$tune = \"$arch\"" 47 | done 48 | -------------------------------------------------------------------------------- /recipes-utils/sensor-mezzanine-examples/files/0005-touch_switch.cpp-Connect-the-touch-sensor-to-differe.patch: -------------------------------------------------------------------------------- 1 | From 7cc2028fe71ddc93bf1f64b2b0a76a54c8f8cb69 Mon Sep 17 00:00:00 2001 2 | From: Sai Hari Chandana Kalluri 3 | Date: Fri, 26 Oct 2018 10:16:28 -0700 4 | Subject: [sensor-mezzanine-examples][master][PATCH 5/7] touch_switch.cpp: 5 | Connect the touch sensor to different GPIO pin 6 | 7 | In the current example, the touch sensor is connected on G3 GPIO pin. In 8 | the current Ultra96 BSP GPIO pins E-L are being used by the hardware 9 | desing to support MIPI Camera. The following pins are used by the 10 | design: 11 | 1. GPIO-G: Strobe 2. GPIO-H: ULPM 12 | 3. GPIO-I: CAM1_RESET 4. GPIO-J: CAM1_PWDN 13 | 5. GPIO-K: CAM2_RESET 6. GPIO-L: CAM2_PWDN 14 | 15 | The above pins cannot be used by the sensor mezzanine adapter to drive 16 | input, only output is possible. Hence the relay is connected to G2 while 17 | the touch sensor is moved to GPIO pin AB 18 | 19 | Signed-off-by: Sai Hari Chandana Kalluri 20 | --- 21 | touch_switch/touch_switch.cpp | 2 +- 22 | 1 file changed, 1 insertion(+), 1 deletion(-) 23 | 24 | diff --git a/touch_switch/touch_switch.cpp b/touch_switch/touch_switch.cpp 25 | index 6d4e811..01b044a 100644 26 | --- a/touch_switch/touch_switch.cpp 27 | +++ b/touch_switch/touch_switch.cpp 28 | @@ -12,7 +12,7 @@ void sig_handler(int signo) 29 | } 30 | int main(int argc, char* argv[]) 31 | { 32 | - mraa::Gpio* touch_gpio = new mraa::Gpio(29); 33 | + mraa::Gpio* touch_gpio = new mraa::Gpio(23); 34 | mraa::Gpio* relay_gpio = new mraa::Gpio(27); 35 | mraa::Result response; 36 | int touch; 37 | -- 38 | 2.7.4 39 | 40 | -------------------------------------------------------------------------------- /recipes-devtools/qemu/qemu/0008-accel-xen-xen-all-export-xenstore_record_dm_state.patch: -------------------------------------------------------------------------------- 1 | From 13443fe86bb100849c55b41873f48e0b121c7bc0 Mon Sep 17 00:00:00 2001 2 | From: Vikram Garhwal 3 | Date: Fri, 1 Jul 2022 17:28:14 -0700 4 | Subject: [PATCH 08/16] accel/xen/xen-all: export xenstore_record_dm_state 5 | 6 | Signed-off-by: Vikram Garhwal 7 | Signed-off-by: Stefano Stabellini 8 | Reviewed-by: Stefano Stabellini 9 | --- 10 | accel/xen/xen-all.c | 2 +- 11 | include/hw/xen/xen.h | 2 ++ 12 | 2 files changed, 3 insertions(+), 1 deletion(-) 13 | 14 | diff --git a/accel/xen/xen-all.c b/accel/xen/xen-all.c 15 | index 69aa7d018b..276625b78b 100644 16 | --- a/accel/xen/xen-all.c 17 | +++ b/accel/xen/xen-all.c 18 | @@ -100,7 +100,7 @@ void xenstore_store_pv_console_info(int i, Chardev *chr) 19 | } 20 | 21 | 22 | -static void xenstore_record_dm_state(struct xs_handle *xs, const char *state) 23 | +void xenstore_record_dm_state(struct xs_handle *xs, const char *state) 24 | { 25 | char path[50]; 26 | 27 | diff --git a/include/hw/xen/xen.h b/include/hw/xen/xen.h 28 | index afdf9c436a..31e9538a5c 100644 29 | --- a/include/hw/xen/xen.h 30 | +++ b/include/hw/xen/xen.h 31 | @@ -9,6 +9,7 @@ 32 | */ 33 | 34 | #include "exec/cpu-common.h" 35 | +#include 36 | 37 | /* xen-machine.c */ 38 | enum xen_mode { 39 | @@ -31,5 +32,6 @@ qemu_irq *xen_interrupt_controller_init(void); 40 | void xenstore_store_pv_console_info(int i, Chardev *chr); 41 | 42 | void xen_register_framebuffer(struct MemoryRegion *mr); 43 | +void xenstore_record_dm_state(struct xs_handle *xs, const char *state); 44 | 45 | #endif /* QEMU_HW_XEN_H */ 46 | -- 47 | 2.17.1 48 | 49 | -------------------------------------------------------------------------------- /recipes-utils/archconfig/files/archconfig.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | eeprom=$(ls /sys/bus/i2c/devices/*50/eeprom 2> /dev/null) 4 | som=$(ipmi-fru --fru-file=${eeprom} --interpret-oem-data | awk -F": " '/^ *FRU Board Product*/ { print tolower ($2) }') 5 | eeprom=$(ls /sys/bus/i2c/devices/*51/eeprom 2> /dev/null) 6 | cc=$(ipmi-fru --fru-file=${eeprom} --interpret-oem-data | awk -F": " '/^ *FRU Board Product*/ { print tolower ($2) }') 7 | 8 | BOARD="$(echo "${som}" | awk -F'-' '{print $2"_"$1}')" 9 | BOARD_VARIANT="${BOARD}_$(echo "${cc}" | awk -F'-' '{print $2}')" 10 | 11 | #check if dnf configs already updated based off BOARD_VARIANT value 12 | if ! grep "${BOARD_VARIANT}" /etc/dnf/vars/arch > /dev/null 13 | then 14 | if grep "${BOARD}" /etc/dnf/vars/arch > /dev/null 15 | then 16 | #Add board_variant right after first level hiearchy which is MACHINE (Board is assumed to be present as SOM bsps are now built with BOARD defined) 17 | sed -i "s/:/:${BOARD_VARIANT}:/" /etc/dnf/vars/arch 18 | #Add board_variant arch to arch_compat (order doesnt matter here) 19 | sed -i "s/^arch_compat.*/& ${BOARD_VARIANT}/" /etc/rpmrc 20 | 21 | PACKAGE_FEED_URIS="@@PACKAGE_FEED_URIS@@" 22 | for URI in ${PACKAGE_FEED_URIS} 23 | do 24 | FILE_NAME=$(echo ${URI} | awk -F"petalinux.xilinx.com/" '{print $2}' | sed 's./.-.g') 25 | REPO_NAME=$(echo ${URI} | awk -F"petalinux.xilinx.com/" '{print $2}' | sed 's./. .g') 26 | echo -e "[oe-remote-repo-${FILE_NAME}-${BOARD_VARIANT}]\nname=OE Remote Repo: ${REPO_NAME} ${BOARD_VARIANT}\nbaseurl=${URI}/${BOARD_VARIANT}\ngpgcheck=0\n" | tee -a /etc/yum.repos.d/*${FILE_NAME}.repo >/dev/null 2>&1 27 | done 28 | else 29 | echo "Not adding board variant to config as board is not present" 30 | fi 31 | fi 32 | --------------------------------------------------------------------------------