aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZoltan HERPAI <wigyori@uid0.hu>2016-06-22 15:04:56 +0200
committerZoltan HERPAI <wigyori@uid0.hu>2016-06-22 15:04:56 +0200
commit1c225aa2bf9f64ad53db90cbebc5e1d45818655c (patch)
tree52acf727faa385a935a12ac1fb08afedc78777b1
parentb6baab7f565bf1bcae8eee9a0b1b4105f8b992f8 (diff)
downloadmaster-187ad058-1c225aa2bf9f64ad53db90cbebc5e1d45818655c.tar.gz
master-187ad058-1c225aa2bf9f64ad53db90cbebc5e1d45818655c.tar.bz2
master-187ad058-1c225aa2bf9f64ad53db90cbebc5e1d45818655c.zip
brcm2708-gpu-fw: update to latest version, backport changes
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
-rw-r--r--package/kernel/brcm2708-gpu-fw/Makefile62
-rw-r--r--target/linux/brcm2708/image/Makefile2
2 files changed, 55 insertions, 9 deletions
diff --git a/package/kernel/brcm2708-gpu-fw/Makefile b/package/kernel/brcm2708-gpu-fw/Makefile
index 9ef0eedf27..30622a5e80 100644
--- a/package/kernel/brcm2708-gpu-fw/Makefile
+++ b/package/kernel/brcm2708-gpu-fw/Makefile
@@ -8,20 +8,66 @@ include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/kernel.mk
PKG_NAME:=brcm2708-gpu-fw
-PKG_REV:=30fe8178d61c1ff9bc168edaafdbcb101aa6245e
-PKG_VERSION:=20160304
-PKG_RELEASE:=1
+PKG_VERSION:=2016-06-08
+PKG_RELEASE:=70143fe9d371cd6486a80d6765e93b5574212b64
-PKG_SOURCE:=$(PKG_REV).tar.gz
-PKG_SOURCE_URL:=https://github.com/Hexxeh/rpi-firmware/archive/
-PKG_MD5SUM:=5707f4d9ffd8d10018c68ecb8b363308
-
-PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/$(PKG_NAME)/rpi-firmware-$(PKG_REV)
+PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/$(PKG_NAME)/rpi-firmware-$(PKG_RELEASE)
PKG_FLAGS:=nonshared
include $(INCLUDE_DIR)/package.mk
+RPI_FIRMWARE_URL:=@GITHUB/raspberrypi/firmware/$(PKG_RELEASE)/boot/
+RPI_FIRMWARE_FILE:=rpi-firmware-$(PKG_RELEASE)
+
+define Download/LICENCE_broadcom
+ FILE:=$(RPI_FIRMWARE_FILE)-LICENCE.broadcom
+ URL:=$(RPI_FIRMWARE_URL)
+ URL_FILE:=LICENCE.broadcom
+ MD5SUM:=4a4d169737c0786fb9482bb6d30401d1
+endef
+$(eval $(call Download,LICENCE_broadcom))
+
+define Download/bootcode_bin
+ FILE:=$(RPI_FIRMWARE_FILE)-bootcode.bin
+ URL:=$(RPI_FIRMWARE_URL)
+ URL_FILE:=bootcode.bin
+ MD5SUM:=5bbb5f25dfe16f2871d5defcc48ac9ff
+endef
+$(eval $(call Download,bootcode_bin))
+
+define Download/fixup_dat
+ FILE:=$(RPI_FIRMWARE_FILE)-fixup.dat
+ URL:=$(RPI_FIRMWARE_URL)
+ URL_FILE:=fixup.dat
+ MD5SUM:=c85a8a7fd6f1012dedb979d5a5350135
+endef
+$(eval $(call Download,fixup_dat))
+
+define Download/fixup_cd_dat
+ FILE:=$(RPI_FIRMWARE_FILE)-fixup_cd.dat
+ URL:=$(RPI_FIRMWARE_URL)
+ URL_FILE:=fixup_cd.dat
+ MD5SUM:=1e6c0d6c576956282b498f255eb12d3b
+endef
+$(eval $(call Download,fixup_cd_dat))
+
+define Download/start_elf
+ FILE:=$(RPI_FIRMWARE_FILE)-start.elf
+ URL:=$(RPI_FIRMWARE_URL)
+ URL_FILE:=start.elf
+ MD5SUM:=94f8e421d6e46e89a60aa001af63844e
+endef
+$(eval $(call Download,start_elf))
+
+define Download/start_cd_elf
+ FILE:=$(RPI_FIRMWARE_FILE)-start_cd.elf
+ URL:=$(RPI_FIRMWARE_URL)
+ URL_FILE:=start_cd.elf
+ MD5SUM:=0a9082c25af181cbf16338de2362d5d6
+endef
+$(eval $(call Download,start_cd_elf))
+
define Package/brcm2708-gpu-fw
SECTION:=boot
CATEGORY:=Boot Loaders
diff --git a/target/linux/brcm2708/image/Makefile b/target/linux/brcm2708/image/Makefile
index e9cbd85270..94a9b3e0e7 100644
--- a/target/linux/brcm2708/image/Makefile
+++ b/target/linux/brcm2708/image/Makefile
@@ -20,8 +20,8 @@ endef
define Build/boot-img
rm -f $@.boot
mkfs.fat -C $@.boot $(FAT32_BLOCKS)
+ mcopy -i $@.boot $(LINUX_DIR)/COPYING ::COPYING.linux
mcopy -i $@.boot $(KDIR)/bootcode.bin ::
- mcopy -i $@.boot $(KDIR)/COPYING.linux ::
mcopy -i $@.boot $(KDIR)/LICENCE.broadcom ::
mcopy -i $@.boot $(KDIR)/start.elf ::
mcopy -i $@.boot $(KDIR)/start_cd.elf ::