Skip to content

Commit

Permalink
Merge branch 'master' into jansa/unpackdir
Browse files Browse the repository at this point in the history
  • Loading branch information
agherzan authored May 28, 2024
2 parents 270dc6d + ee5ae72 commit f752456
Show file tree
Hide file tree
Showing 15 changed files with 23 additions and 104 deletions.
3 changes: 3 additions & 0 deletions conf/layer.conf
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ BBFILE_PRIORITY_raspberrypi = "9"

LAYERSERIES_COMPAT_raspberrypi = "styhead"
LAYERDEPENDS_raspberrypi = "core"
# Recommended for u-boot support for raspberrypi5
# https://git.yoctoproject.org/meta-lts-mixins 'scarthgap/u-boot' branch
LAYERRECOMMENDS_raspberrypi = "lts-u-boot-mixin"

# Additional license directories.
LICENSE_PATH += "${LAYERDIR}/files/custom-licenses"
Expand Down
6 changes: 6 additions & 0 deletions conf/machine/raspberrypi5.conf
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,11 @@ SERIAL_CONSOLES ?= "115200;ttyAMA10"

VC4DTBO ?= "vc4-kms-v3d"

# When u-boot is enabled we need to use the "Image" format and the "booti"
# command to load the kernel
KERNEL_IMAGETYPE_UBOOT ?= "Image"
# "zImage" not supported on arm64 and ".gz" images not supported by bootloader yet
KERNEL_IMAGETYPE_DIRECT ?= "Image"
KERNEL_BOOTCMD ?= "booti"

UBOOT_MACHINE = "rpi_arm64_config"
4 changes: 4 additions & 0 deletions recipes-bsp/bootfiles/rpi-cmdline.bb
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ CMDLINE_ISOL_CPUS ?= "${@setup_isolcpus(d)}"
# if the MAC addresses are omitted, random values will be used
CMDLINE_RNDIS ?= ""

# That allows to keep the traditional network interface names
CMDLINE_IFNAMES ?= "net.ifnames=0"

CMDLINE = " \
${CMDLINE_ISOL_CPUS} \
${CMDLINE_DWC_OTG} \
Expand All @@ -57,6 +60,7 @@ CMDLINE = " \
${CMDLINE_PITFT} \
${CMDLINE_DEBUG} \
${CMDLINE_RNDIS} \
${CMDLINE_IFNAMES} \
"

do_compile() {
Expand Down
4 changes: 2 additions & 2 deletions recipes-bsp/gpio-shutdown/gpio-shutdown.bb
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ do_install() {
${D}${sysconfdir}/inittab.d \
${D}${sysconfdir}/init.d

install -m 0755 ${WORKDIR}/gpio-shutdown-keymap.sh ${D}${sysconfdir}/init.d/
install -m 0755 ${WORKDIR}/bind_gpio_shutdown.tab ${D}${sysconfdir}/inittab.d/
install -m 0755 ${UNPACKDIR}/gpio-shutdown-keymap.sh ${D}${sysconfdir}/init.d/
install -m 0755 ${UNPACKDIR}/bind_gpio_shutdown.tab ${D}${sysconfdir}/inittab.d/
elif ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
# Systemd init does not require any configuration.
# Note: cannot have an empty branch, hence the redundant dir install.
Expand Down
5 changes: 1 addition & 4 deletions recipes-bsp/u-boot/u-boot_%.bbappend
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,5 @@ DEPENDS:append:rpi = " u-boot-default-script"

do_install:append:rpi () {
install -d ${D}${sysconfdir}
install -m 0644 ${WORKDIR}/fw_env.config ${D}${sysconfdir}/fw_env.config
install -m 0644 ${UNPACKDIR}/fw_env.config ${D}${sysconfdir}/fw_env.config
}

# Temporary avoid Raspberry Pi 5 because U-Boot has not been ported yet
COMPATIBLE_MACHINE:raspberrypi5 = "(-)"
2 changes: 1 addition & 1 deletion recipes-core/psplash/psplash_%.bbappend
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ SRC_URI:append:rpi = " file://framebuf.conf"

do_install:append:rpi() {
if [ "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" ]; then
install -Dm 0644 ${WORKDIR}/framebuf.conf ${D}${systemd_system_unitdir}/psplash-start.service.d/framebuf.conf
install -Dm 0644 ${UNPACKDIR}/framebuf.conf ${D}${systemd_system_unitdir}/psplash-start.service.d/framebuf.conf
fi
}

Expand Down
2 changes: 1 addition & 1 deletion recipes-core/udev/udev-rules-rpi.bb
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ INHIBIT_DEFAULT_DEPS = "1"
do_install () {
install -d ${D}${sysconfdir}/udev/rules.d
install -m 0644 ${S}/etc.armhf/udev/rules.d/99-com.rules ${D}${sysconfdir}/udev/rules.d/
install -m 0644 ${WORKDIR}/can.rules ${D}${sysconfdir}/udev/rules.d/
install -m 0644 ${UNPACKDIR}/can.rules ${D}${sysconfdir}/udev/rules.d/
}
2 changes: 1 addition & 1 deletion recipes-core/udev/udev-rules-udisks-rpi_1.0.bb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ INHIBIT_DEFAULT_DEPS = "1"

do_install () {
install -d ${D}${base_libdir}/udev/rules.d
install -m 644 ${WORKDIR}/80-udisks-rpi.rules ${D}${base_libdir}/udev/rules.d
install -m 644 ${UNPACKDIR}/80-udisks-rpi.rules ${D}${base_libdir}/udev/rules.d
}

FILES:${PN} = "${base_libdir}/udev/rules.d"
4 changes: 2 additions & 2 deletions recipes-graphics/vc-graphics/vc-graphics.inc
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ do_install () {
cp -R include/* ${D}${includedir}

install -d ${D}${libdir}/pkgconfig
install -m 0644 ${WORKDIR}/egl.pc ${D}${libdir}/pkgconfig/
install -m 0644 ${UNPACKDIR}/egl.pc ${D}${libdir}/pkgconfig/

install -d ${D}/${sysconfdir}/init.d
install -m 0755 ${WORKDIR}/vchiq.sh ${D}${sysconfdir}/init.d/
install -m 0755 ${UNPACKDIR}/vchiq.sh ${D}${sysconfdir}/init.d/
}

# These are proprietary binaries generated elsewhere so don't check ldflags
Expand Down
4 changes: 2 additions & 2 deletions recipes-graphics/xorg-xserver/xserver-xf86-config_%.bbappend
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ do_install:append:rpi () {
PITFT="${@bb.utils.contains("MACHINE_FEATURES", "pitft", "1", "0", d)}"
if [ "${PITFT}" = "1" ]; then
install -d ${D}/${sysconfdir}/X11/xorg.conf.d/
install -m 0644 ${WORKDIR}/xorg.conf.d/98-pitft.conf ${D}/${sysconfdir}/X11/xorg.conf.d/
install -m 0644 ${WORKDIR}/xorg.conf.d/99-calibration.conf ${D}/${sysconfdir}/X11/xorg.conf.d/
install -m 0644 ${UNPACKDIR}/xorg.conf.d/98-pitft.conf ${D}/${sysconfdir}/X11/xorg.conf.d/
install -m 0644 ${UNPACKDIR}/xorg.conf.d/99-calibration.conf ${D}/${sysconfdir}/X11/xorg.conf.d/
fi
}

Expand Down

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion recipes-kernel/linux/files/rpi.scc

This file was deleted.

6 changes: 0 additions & 6 deletions recipes-kernel/linux/linux-raspberrypi-v7_5.15.bb

This file was deleted.

32 changes: 0 additions & 32 deletions recipes-kernel/linux/linux-raspberrypi_5.15.bb

This file was deleted.

0 comments on commit f752456

Please sign in to comment.