Author: blogic
Date: 2015-10-05 12:27:41 +0200 (Mon, 05 Oct 2015)
New Revision: 47125

Modified:
   trunk/target/linux/brcm2708/image/Makefile
   trunk/target/linux/brcm2708/image/config.txt
Log:
brcm2708: add support for device tree overlays

Signed-off-by: ?\195?\129lvaro Fern?\195?\161ndez Rojas <[email protected]>

Modified: trunk/target/linux/brcm2708/image/Makefile
===================================================================
--- trunk/target/linux/brcm2708/image/Makefile  2015-10-05 10:27:34 UTC (rev 
47124)
+++ trunk/target/linux/brcm2708/image/Makefile  2015-10-05 10:27:41 UTC (rev 
47125)
@@ -21,6 +21,12 @@
   endef
 endif
 
+define Image/Prepare
+       rm -rf $(KDIR)/overlays
+       mkdir -p $(KDIR)/overlays
+       $(CP) $(DTS_DIR)/overlays/*.dtb $(KDIR)/overlays/
+endef
+
 ### Image scripts ###
 define Build/gen-cfg
        cat config.txt > [email protected]
@@ -41,6 +47,7 @@
        mcopy -i [email protected] [email protected] ::config.txt
        mcopy -i [email protected] $(word 1,$^) ::kernel.img
        mcopy -i [email protected] $(DTS_DIR)/$(DEVICE_DTS).dtb ::$(DEVICE_DTS).dtb
+       mcopy -s -i [email protected] $(KDIR)/overlays ::
 endef
 
 define Build/sdcard-img

Modified: trunk/target/linux/brcm2708/image/config.txt
===================================================================
--- trunk/target/linux/brcm2708/image/config.txt        2015-10-05 10:27:34 UTC 
(rev 47124)
+++ trunk/target/linux/brcm2708/image/config.txt        2015-10-05 10:27:41 UTC 
(rev 47125)
@@ -927,3 +927,12 @@
 
################################################################################
 
 dtparam=random=on,watchdog=on,audio=on,i2c0=on,i2c1=on,spi=on
+
+#dtoverlay=hifiberry-amp-overlay
+#dtoverlay=hifiberry-dac-overlay
+#dtoverlay=hifiberry-dacplus-overlay
+#dtoverlay=hifiberry-digi-overlay
+#dtoverlay=iqaudio-dac-overlay
+#dtoverlay=iqaudio-dacplus-overlay
+#dtoverlay=raspidac3-overlay
+#dtoverlay=rpi-proto-overlay
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to