Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # --> add device trees
- RPI_LINUX_KERNEL_REPO ?= "git://github.com/raspberrypi/linux.git"
- RPI_LINUX_KERNEL_BRANCH ?= "rpi-5.8.y"
- # it looks like arch/arm64 are just symlinks to arch/arm
- RPI_LINUX_KERNEL_ARM_32_SUBPATH ?= "arch/arm"
- RPI_LINUX_KERNEL_ARM_64_SUBPATH ?= "arch/arm64"
- #RPI_LINUX_KERNEL_OVERLAYS_SUBPATH ?= "arch/arm/boot/dts/overlays"
- #SRCREV = "ebc7c46eea5999e72dacdef07b2b2dd5c8517153"
- SRCREV_arm32dts = "ebc7c46eea5999e72dacdef07b2b2dd5c8517153"
- SRCREV_arm64dts = "ebc7c46eea5999e72dacdef07b2b2dd5c8517153"
- #SRCREV_rpidevicetreeoverlays = "ebc7c46eea5999e72dacdef07b2b2dd5c8517153"
- #git://github.com/raspberrypi/linux.git;branch=${LINUX_RPI_BRANCH}
- # device tree sources for the various machines
- #COMPATIBLE_MACHINE_raspberrypi4-64 = ".*"
- SRC_URI += "${RPI_LINUX_KERNEL_REPO};branch=${RPI_LINUX_KERNEL_BRANCH};subpath=${RPI_LINUX_KERNEL_ARM_32_SUBPATH};name=arm32dts"
- SRC_URI += "${RPI_LINUX_KERNEL_REPO};branch=${RPI_LINUX_KERNEL_BRANCH};subpath=${RPI_LINUX_KERNEL_ARM_64_SUBPATH};name=arm64dts"
- #SRC_URI += "${RPI_LINUX_KERNEL_REPO};branch=${RPI_LINUX_KERNEL_BRANCH};subpath=${RPI_LINUX_KERNEL_OVERLAYS_SUBPATH};name=rpidevicetreeoverlays"
- SRC_URI += "file://1000-dtbo-support.patch"
- DEPENDS += "rsync-native git-native"
- do_configure_prepend() {
- bbwarn "--> S: ${S} <--"
- bbwarn "--> WORKDIR: ${WORKDIR}"
- #rsync -avp ${WORKDIR}/arm/boot/dts/overlays ${S}/arch/arm/boot/dts/
- #rsync -avp ${WORKDIR}/arm64/boot/dts/overlays ${S}/arch/arm64/boot/dts/
- # @@@TODO: this is a hack - only copy what's required
- rsync -avp ${WORKDIR}/arm/boot/dts/ ${S}/arch/arm/boot/dts/
- rsync -avp ${WORKDIR}/arm64/boot/dts/ ${S}/arch/arm64/boot/dts/
- HERE=$(pwd)
- cd ${S}
- git checkout arch/arm64/boot/dts/broadcom/bcm2711-rpi-4-b.dts
- git checkout arch/arm/boot/dts/bcm2711-rpi-4-b.dts
- git checkout arch/arm/boot/dts/bcm2711.dtsi
- git checkout arch/arm/boot/dts/bcm2835-rpi.dtsi
- git checkout arch/arm/boot/dts/bcm283x.dtsi
- cd ${HERE}
- # we need those Makefiles I guess (or parts of them)
- #cp ${WORKDIR}/arm/boot/dts/Makefile ${S}/arch/arm/boot/dts/
- #cp ${WORKDIR}/arm64/boot/dts/Makefile ${S}/arch/arm64/boot/dts/
- #cp ${WORKDIR}/arm64/boot/dts/broadcom/Makefile ${S}/arch/arm64/boot/dts/broadcom/
- #cp -r ${WORKDIR}/arm/dts/overlays ${S}/arch/
- #ln -sf ${WORKDIR}/arm/dts/overlays ${S}/arch/arm64/boot/dts/overlays
- #ln -sf ${WORKDIR}/arm64/dts/broadcom/bcm2711-rpi-4-b.dts ${S}/arch/arm64/boot/dts/broadcom/bcm2711-rpi-4-b.dts
- }
- # <-- add device trees
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement