Advertisement
RobertBerger

raspi-device-tree-1

Aug 6th, 2020
322
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.62 KB | None | 0 0
  1. # --> add device trees
  2.  
  3. RPI_LINUX_KERNEL_REPO ?= "git://github.com/raspberrypi/linux.git"
  4. RPI_LINUX_KERNEL_BRANCH ?= "rpi-5.8.y"
  5. # it looks like arch/arm64 are just symlinks to arch/arm
  6. RPI_LINUX_KERNEL_ARM_32_SUBPATH ?= "arch/arm"
  7. RPI_LINUX_KERNEL_ARM_64_SUBPATH ?= "arch/arm64"
  8. #RPI_LINUX_KERNEL_OVERLAYS_SUBPATH ?= "arch/arm/boot/dts/overlays"
  9. #SRCREV = "ebc7c46eea5999e72dacdef07b2b2dd5c8517153"
  10. SRCREV_arm32dts = "ebc7c46eea5999e72dacdef07b2b2dd5c8517153"
  11. SRCREV_arm64dts = "ebc7c46eea5999e72dacdef07b2b2dd5c8517153"
  12. #SRCREV_rpidevicetreeoverlays = "ebc7c46eea5999e72dacdef07b2b2dd5c8517153"
  13.  
  14. #git://github.com/raspberrypi/linux.git;branch=${LINUX_RPI_BRANCH}
  15.  
  16. # device tree sources for the various machines
  17. #COMPATIBLE_MACHINE_raspberrypi4-64 = ".*"
  18.  
  19. SRC_URI += "${RPI_LINUX_KERNEL_REPO};branch=${RPI_LINUX_KERNEL_BRANCH};subpath=${RPI_LINUX_KERNEL_ARM_32_SUBPATH};name=arm32dts"
  20. SRC_URI += "${RPI_LINUX_KERNEL_REPO};branch=${RPI_LINUX_KERNEL_BRANCH};subpath=${RPI_LINUX_KERNEL_ARM_64_SUBPATH};name=arm64dts"
  21.  
  22. #SRC_URI += "${RPI_LINUX_KERNEL_REPO};branch=${RPI_LINUX_KERNEL_BRANCH};subpath=${RPI_LINUX_KERNEL_OVERLAYS_SUBPATH};name=rpidevicetreeoverlays"
  23.  
  24. SRC_URI += "file://1000-dtbo-support.patch"
  25.  
  26. DEPENDS += "rsync-native git-native"
  27.  
  28. do_configure_prepend() {
  29. bbwarn "--> S: ${S} <--"
  30. bbwarn "--> WORKDIR: ${WORKDIR}"
  31. #rsync -avp ${WORKDIR}/arm/boot/dts/overlays ${S}/arch/arm/boot/dts/
  32. #rsync -avp ${WORKDIR}/arm64/boot/dts/overlays ${S}/arch/arm64/boot/dts/
  33. # @@@TODO: this is a hack - only copy what's required
  34. rsync -avp ${WORKDIR}/arm/boot/dts/ ${S}/arch/arm/boot/dts/
  35. rsync -avp ${WORKDIR}/arm64/boot/dts/ ${S}/arch/arm64/boot/dts/
  36. HERE=$(pwd)
  37. cd ${S}
  38. git checkout arch/arm64/boot/dts/broadcom/bcm2711-rpi-4-b.dts
  39. git checkout arch/arm/boot/dts/bcm2711-rpi-4-b.dts
  40. git checkout arch/arm/boot/dts/bcm2711.dtsi
  41. git checkout arch/arm/boot/dts/bcm2835-rpi.dtsi
  42. git checkout arch/arm/boot/dts/bcm283x.dtsi
  43. cd ${HERE}
  44. # we need those Makefiles I guess (or parts of them)
  45. #cp ${WORKDIR}/arm/boot/dts/Makefile ${S}/arch/arm/boot/dts/
  46. #cp ${WORKDIR}/arm64/boot/dts/Makefile ${S}/arch/arm64/boot/dts/
  47. #cp ${WORKDIR}/arm64/boot/dts/broadcom/Makefile ${S}/arch/arm64/boot/dts/broadcom/
  48. #cp -r ${WORKDIR}/arm/dts/overlays ${S}/arch/
  49. #ln -sf ${WORKDIR}/arm/dts/overlays ${S}/arch/arm64/boot/dts/overlays
  50. #ln -sf ${WORKDIR}/arm64/dts/broadcom/bcm2711-rpi-4-b.dts ${S}/arch/arm64/boot/dts/broadcom/bcm2711-rpi-4-b.dts
  51. }
  52. # <-- add device trees
  53.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement