diff options
author | Kai Wohlfahrt <kai.wohlfahrt@gmail.com> | 2019-05-15 22:54:20 +0100 |
---|---|---|
committer | Kai Wohlfahrt <kai@prodo.ai> | 2019-08-07 13:51:22 +0100 |
commit | 766e0958b37402c62294872b6fd77b310d81cc38 (patch) | |
tree | d908cf506faac1ead0e94257838012dbf5af1352 /pkgs/os-specific/linux/device-tree | |
parent | 28cf80acf8ef2d1d3f1a3f12bd7a959450b8ec58 (diff) | |
download | nixpkgs-766e0958b37402c62294872b6fd77b310d81cc38.tar nixpkgs-766e0958b37402c62294872b6fd77b310d81cc38.tar.gz nixpkgs-766e0958b37402c62294872b6fd77b310d81cc38.tar.bz2 nixpkgs-766e0958b37402c62294872b6fd77b310d81cc38.tar.lz nixpkgs-766e0958b37402c62294872b6fd77b310d81cc38.tar.xz nixpkgs-766e0958b37402c62294872b6fd77b310d81cc38.tar.zst nixpkgs-766e0958b37402c62294872b6fd77b310d81cc38.zip |
device-tree_rpi: fixup dtb names
This is just as messy as it is for the kernel files. Maybe it should be done in the uboot boot-loader?
Diffstat (limited to 'pkgs/os-specific/linux/device-tree')
-rw-r--r-- | pkgs/os-specific/linux/device-tree/raspberrypi.nix | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/pkgs/os-specific/linux/device-tree/raspberrypi.nix b/pkgs/os-specific/linux/device-tree/raspberrypi.nix index aa6edefd74d..a77200a68f7 100644 --- a/pkgs/os-specific/linux/device-tree/raspberrypi.nix +++ b/pkgs/os-specific/linux/device-tree/raspberrypi.nix @@ -3,10 +3,28 @@ stdenvNoCC.mkDerivation { name = "raspberrypi-dtbs-${raspberrypifw.version}"; nativeBuildInputs = [ raspberrypifw ]; + + # Rename DTBs so u-boot finds them, like linux-rpi.nix buildCommand = '' mkdir -p $out/broadcom/ - cp ${raspberrypifw}/share/raspberrypi/boot/bcm*.dtb $out/broadcom + cd $out/broadcom/ + + cp ${raspberrypifw}/share/raspberrypi/boot/bcm*.dtb . + + cp bcm2708-rpi-0-w.dtb bcm2835-rpi-zero-w.dtb + cp bcm2708-rpi-b.dtb bcm2835-rpi-a.dtb + cp bcm2708-rpi-b.dtb bcm2835-rpi-b.dtb + cp bcm2708-rpi-b.dtb bcm2835-rpi-b-rev2.dtb + cp bcm2708-rpi-b-plus.dtb bcm2835-rpi-a-plus + cp bcm2708-rpi-b-plus.dtb bcm2835-rpi-b-plus + cp bcm2708-rpi-b-plus.dtb bcm2835-rpi-zero.dtb + cp bcm2708-rpi-cm.dtb bcm2835-rpi-cm.dtb + cp bcm2709-rpi-2-b.dtb bcm2836-rpi-2-b.dtb + cp bcm2710-rpi-3-b.dtb bcm2837-rpi-3-b.dtb + cp bcm2710-rpi-3-b-plus.dtb bcm2837-rpi-3-b-plus.dtb + cp bcm2710-rpi-cm3.dtb bcm2837-rpi-cm3.dtb ''; + passthru = { # Compatible overlays that may be used overlays = "${raspberrypifw}/share/raspberrypi/boot/overlays"; |