Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Mar 2018 13:52:57 +0000 (UTC)
From:      Emmanuel Vadot <manu@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r465175 - in head/sysutils/rpi-firmware: . files
Message-ID:  <201803211352.w2LDqvH4066347@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: manu (src committer)
Date: Wed Mar 21 13:52:57 2018
New Revision: 465175
URL: https://svnweb.freebsd.org/changeset/ports/465175

Log:
  sysutils/rpi-firmware: Add DTB and overlays
  
  We use DTB and some overlays for RPI3 release image so add them to the
  ports so we don't have to fetch them.
  
  Reviewed by:	bapt, imp (previous version), gonzo (previous version)
  Approved by:	bapt
  Differential Revision:	https://reviews.freebsd.org/D14299

Added:
  head/sysutils/rpi-firmware/files/config.txt
     - copied, changed from r465174, head/sysutils/rpi-firmware/files/patch-boot_config.txt
Deleted:
  head/sysutils/rpi-firmware/files/patch-boot_config.txt
Modified:
  head/sysutils/rpi-firmware/Makefile
  head/sysutils/rpi-firmware/pkg-plist

Modified: head/sysutils/rpi-firmware/Makefile
==============================================================================
--- head/sysutils/rpi-firmware/Makefile	Wed Mar 21 13:26:06 2018	(r465174)
+++ head/sysutils/rpi-firmware/Makefile	Wed Mar 21 13:52:57 2018	(r465175)
@@ -2,6 +2,7 @@
 
 PORTNAME=	rpi-firmware
 PORTVERSION=	1.20171029
+PORTREVISION=	1
 CATEGORIES=	sysutils
 
 MAINTAINER=	manu@freebsd.org
@@ -20,18 +21,15 @@ NO_BUILD=	yes
 
 INSTALL_DIR=	${PREFIX}/share/${PORTNAME}
 
+do-patch:
+	${CP} ${FILESDIR}/config.txt ${WRKSRC}/boot/
+
+post-patch:
+	${RM} ${WRKSRC}/boot/kernel.img
+	${RM} ${WRKSRC}/boot/kernel7.img
+
 do-install:
-	${MKDIR} ${STAGEDIR}/${INSTALL_DIR}
-	${INSTALL_DATA} ${LICENSE_FILE} ${STAGEDIR}/${INSTALL_DIR}/
-	${INSTALL_DATA} ${WRKSRC}/boot/bootcode.bin ${STAGEDIR}/${INSTALL_DIR}/
-	${INSTALL_DATA} ${WRKSRC}/boot/fixup_cd.dat ${STAGEDIR}/${INSTALL_DIR}/
-	${INSTALL_DATA} ${WRKSRC}/boot/fixup_db.dat ${STAGEDIR}/${INSTALL_DIR}/
-	${INSTALL_DATA} ${WRKSRC}/boot/fixup_x.dat ${STAGEDIR}/${INSTALL_DIR}/
-	${INSTALL_DATA} ${WRKSRC}/boot/fixup.dat ${STAGEDIR}/${INSTALL_DIR}/
-	${INSTALL_DATA} ${WRKSRC}/boot/start_cd.elf ${STAGEDIR}/${INSTALL_DIR}/
-	${INSTALL_DATA} ${WRKSRC}/boot/start_db.elf ${STAGEDIR}/${INSTALL_DIR}/
-	${INSTALL_DATA} ${WRKSRC}/boot/start_x.elf ${STAGEDIR}/${INSTALL_DIR}/
-	${INSTALL_DATA} ${WRKSRC}/boot/start.elf ${STAGEDIR}/${INSTALL_DIR}/
-	${INSTALL_DATA} ${WRKSRC}/boot/config.txt ${STAGEDIR}/${INSTALL_DIR}/
+	${MKDIR} -p ${STAGEDIR}/${INSTALL_DIR}
+	cd ${WRKSRC}/boot && ${COPYTREE_SHARE} . ${STAGEDIR}/${INSTALL_DIR}/
 
 .include <bsd.port.mk>

Copied and modified: head/sysutils/rpi-firmware/files/config.txt (from r465174, head/sysutils/rpi-firmware/files/patch-boot_config.txt)
==============================================================================
--- head/sysutils/rpi-firmware/files/patch-boot_config.txt	Wed Mar 21 13:26:06 2018	(r465174, copy source)
+++ head/sysutils/rpi-firmware/files/config.txt	Wed Mar 21 13:52:57 2018	(r465175)
@@ -1,7 +1,4 @@
---- boot/config.txt.orig	2017-08-19 16:23:10 UTC
-+++ boot/config.txt
-@@ -0,0 +1,4 @@
-+init_uart_clock=3000000
-+enable_uart=1
-+kernel=u-boot.bin
-+kernel7=u-boot.bin
+init_uart_clock=3000000
+enable_uart=1
+kernel=u-boot.bin
+kernel7=u-boot.bin

Modified: head/sysutils/rpi-firmware/pkg-plist
==============================================================================
--- head/sysutils/rpi-firmware/pkg-plist	Wed Mar 21 13:26:06 2018	(r465174)
+++ head/sysutils/rpi-firmware/pkg-plist	Wed Mar 21 13:52:57 2018	(r465175)
@@ -1,11 +1,137 @@
+%%DATADIR%%/COPYING.linux
+%%DATADIR%%/LICENCE.broadcom
+%%DATADIR%%/bcm2708-rpi-0-w.dtb
+%%DATADIR%%/bcm2708-rpi-b-plus.dtb
+%%DATADIR%%/bcm2708-rpi-b.dtb
+%%DATADIR%%/bcm2708-rpi-cm.dtb
+%%DATADIR%%/bcm2709-rpi-2-b.dtb
+%%DATADIR%%/bcm2710-rpi-3-b.dtb
+%%DATADIR%%/bcm2710-rpi-cm3.dtb
 %%DATADIR%%/bootcode.bin
+%%DATADIR%%/config.txt
 %%DATADIR%%/fixup.dat
 %%DATADIR%%/fixup_cd.dat
 %%DATADIR%%/fixup_db.dat
 %%DATADIR%%/fixup_x.dat
+%%DATADIR%%/overlays/README
+%%DATADIR%%/overlays/adau1977-adc.dtbo
+%%DATADIR%%/overlays/adau7002-simple.dtbo
+%%DATADIR%%/overlays/ads1015.dtbo
+%%DATADIR%%/overlays/ads1115.dtbo
+%%DATADIR%%/overlays/ads7846.dtbo
+%%DATADIR%%/overlays/akkordion-iqdacplus.dtbo
+%%DATADIR%%/overlays/allo-boss-dac-pcm512x-audio.dtbo
+%%DATADIR%%/overlays/allo-digione.dtbo
+%%DATADIR%%/overlays/allo-piano-dac-pcm512x-audio.dtbo
+%%DATADIR%%/overlays/allo-piano-dac-plus-pcm512x-audio.dtbo
+%%DATADIR%%/overlays/at86rf233.dtbo
+%%DATADIR%%/overlays/audioinjector-addons.dtbo
+%%DATADIR%%/overlays/audioinjector-wm8731-audio.dtbo
+%%DATADIR%%/overlays/audremap.dtbo
+%%DATADIR%%/overlays/bmp085_i2c-sensor.dtbo
+%%DATADIR%%/overlays/dht11.dtbo
+%%DATADIR%%/overlays/dionaudio-loco-v2.dtbo
+%%DATADIR%%/overlays/dionaudio-loco.dtbo
+%%DATADIR%%/overlays/dpi18.dtbo
+%%DATADIR%%/overlays/dpi24.dtbo
+%%DATADIR%%/overlays/dwc-otg.dtbo
+%%DATADIR%%/overlays/dwc2.dtbo
+%%DATADIR%%/overlays/enc28j60-spi2.dtbo
+%%DATADIR%%/overlays/enc28j60.dtbo
+%%DATADIR%%/overlays/fe-pi-audio.dtbo
+%%DATADIR%%/overlays/goodix.dtbo
+%%DATADIR%%/overlays/googlevoicehat-soundcard.dtbo
+%%DATADIR%%/overlays/gpio-ir.dtbo
+%%DATADIR%%/overlays/gpio-poweroff.dtbo
+%%DATADIR%%/overlays/gpio-shutdown.dtbo
+%%DATADIR%%/overlays/hifiberry-amp.dtbo
+%%DATADIR%%/overlays/hifiberry-dac.dtbo
+%%DATADIR%%/overlays/hifiberry-dacplus.dtbo
+%%DATADIR%%/overlays/hifiberry-digi-pro.dtbo
+%%DATADIR%%/overlays/hifiberry-digi.dtbo
+%%DATADIR%%/overlays/hy28a.dtbo
+%%DATADIR%%/overlays/hy28b.dtbo
+%%DATADIR%%/overlays/i2c-bcm2708.dtbo
+%%DATADIR%%/overlays/i2c-gpio.dtbo
+%%DATADIR%%/overlays/i2c-mux.dtbo
+%%DATADIR%%/overlays/i2c-pwm-pca9685a.dtbo
+%%DATADIR%%/overlays/i2c-rtc-gpio.dtbo
+%%DATADIR%%/overlays/i2c-rtc.dtbo
+%%DATADIR%%/overlays/i2c-sensor.dtbo
+%%DATADIR%%/overlays/i2c0-bcm2708.dtbo
+%%DATADIR%%/overlays/i2c1-bcm2708.dtbo
+%%DATADIR%%/overlays/i2s-gpio28-31.dtbo
+%%DATADIR%%/overlays/iqaudio-dac.dtbo
+%%DATADIR%%/overlays/iqaudio-dacplus.dtbo
+%%DATADIR%%/overlays/iqaudio-digi-wm8804-audio.dtbo
+%%DATADIR%%/overlays/justboom-dac.dtbo
+%%DATADIR%%/overlays/justboom-digi.dtbo
+%%DATADIR%%/overlays/lirc-rpi.dtbo
+%%DATADIR%%/overlays/mcp23017.dtbo
+%%DATADIR%%/overlays/mcp23s17.dtbo
+%%DATADIR%%/overlays/mcp2515-can0.dtbo
+%%DATADIR%%/overlays/mcp2515-can1.dtbo
+%%DATADIR%%/overlays/mcp3008.dtbo
+%%DATADIR%%/overlays/midi-uart0.dtbo
+%%DATADIR%%/overlays/midi-uart1.dtbo
+%%DATADIR%%/overlays/mmc.dtbo
+%%DATADIR%%/overlays/mpu6050.dtbo
+%%DATADIR%%/overlays/mz61581.dtbo
+%%DATADIR%%/overlays/papirus.dtbo
+%%DATADIR%%/overlays/pi3-act-led.dtbo
+%%DATADIR%%/overlays/pi3-disable-bt.dtbo
+%%DATADIR%%/overlays/pi3-disable-wifi.dtbo
+%%DATADIR%%/overlays/pi3-miniuart-bt.dtbo
+%%DATADIR%%/overlays/piscreen.dtbo
+%%DATADIR%%/overlays/piscreen2r.dtbo
+%%DATADIR%%/overlays/pisound.dtbo
+%%DATADIR%%/overlays/pitft22.dtbo
+%%DATADIR%%/overlays/pitft28-capacitive.dtbo
+%%DATADIR%%/overlays/pitft28-resistive.dtbo
+%%DATADIR%%/overlays/pitft35-resistive.dtbo
+%%DATADIR%%/overlays/pps-gpio.dtbo
+%%DATADIR%%/overlays/pwm-2chan.dtbo
+%%DATADIR%%/overlays/pwm.dtbo
+%%DATADIR%%/overlays/qca7000.dtbo
+%%DATADIR%%/overlays/raspidac3.dtbo
+%%DATADIR%%/overlays/rotary-encoder.dtbo
+%%DATADIR%%/overlays/rpi-backlight.dtbo
+%%DATADIR%%/overlays/rpi-cirrus-wm5102.dtbo
+%%DATADIR%%/overlays/rpi-dac.dtbo
+%%DATADIR%%/overlays/rpi-display.dtbo
+%%DATADIR%%/overlays/rpi-ft5406.dtbo
+%%DATADIR%%/overlays/rpi-proto.dtbo
+%%DATADIR%%/overlays/rpi-sense.dtbo
+%%DATADIR%%/overlays/rpi-tv.dtbo
+%%DATADIR%%/overlays/rra-digidac1-wm8741-audio.dtbo
+%%DATADIR%%/overlays/sc16is750-i2c.dtbo
+%%DATADIR%%/overlays/sc16is752-spi1.dtbo
+%%DATADIR%%/overlays/sdhost.dtbo
+%%DATADIR%%/overlays/sdio-1bit.dtbo
+%%DATADIR%%/overlays/sdio.dtbo
+%%DATADIR%%/overlays/sdtweak.dtbo
+%%DATADIR%%/overlays/smi-dev.dtbo
+%%DATADIR%%/overlays/smi-nand.dtbo
+%%DATADIR%%/overlays/smi.dtbo
+%%DATADIR%%/overlays/spi-gpio35-39.dtbo
+%%DATADIR%%/overlays/spi-rtc.dtbo
+%%DATADIR%%/overlays/spi0-cs.dtbo
+%%DATADIR%%/overlays/spi0-hw-cs.dtbo
+%%DATADIR%%/overlays/spi1-1cs.dtbo
+%%DATADIR%%/overlays/spi1-2cs.dtbo
+%%DATADIR%%/overlays/spi1-3cs.dtbo
+%%DATADIR%%/overlays/spi2-1cs.dtbo
+%%DATADIR%%/overlays/spi2-2cs.dtbo
+%%DATADIR%%/overlays/spi2-3cs.dtbo
+%%DATADIR%%/overlays/tinylcd35.dtbo
+%%DATADIR%%/overlays/uart1.dtbo
+%%DATADIR%%/overlays/vc4-fkms-v3d.dtbo
+%%DATADIR%%/overlays/vc4-kms-v3d.dtbo
+%%DATADIR%%/overlays/vga666.dtbo
+%%DATADIR%%/overlays/w1-gpio-pullup.dtbo
+%%DATADIR%%/overlays/w1-gpio.dtbo
+%%DATADIR%%/overlays/wittypi.dtbo
 %%DATADIR%%/start.elf
 %%DATADIR%%/start_cd.elf
 %%DATADIR%%/start_db.elf
 %%DATADIR%%/start_x.elf
-%%DATADIR%%/config.txt
-%%DATADIR%%/LICENCE.broadcom



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201803211352.w2LDqvH4066347>