@ -1,5 +1,6 @@
#
# Copyright (C) 2012-2016 OpenWrt.org
# Copyright (C) 2016 LEDE project
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
@ -8,18 +9,64 @@ include $(TOPDIR)/rules.mk
i n c l u d e $( INCLUDE_DIR ) / k e r n e l . m k
PKG_NAME := brcm2708-gpu-fw
PKG_REV := 30fe8178d61c1ff9bc168edaafdbcb101aa6245e
PKG_VERSION := 20160304
PKG_REV := 046effa13ebc4cc7601df4f06f4834bd0eebb0f8
PKG_RELEASE := 1
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)
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
RPI_FIRMWARE_URL := @GITHUB/raspberrypi/firmware/$( PKG_REV) /boot/
RPI_FIRMWARE_FILE := rpi-firmware-$( PKG_REV)
d e f i n e D o w n l o a d / L I C E N C E _ b r o a d c o m
FILE:= $( RPI_FIRMWARE_FILE) -LICENCE.broadcom
URL:= $( RPI_FIRMWARE_URL)
URL_FILE:= LICENCE.broadcom
MD5SUM:= 4a4d169737c0786fb9482bb6d30401d1
e n d e f
$( eval $ ( call Download ,LICENCE_broadcom ) )
d e f i n e D o w n l o a d / b o o t c o d e _ b i n
FILE:= $( RPI_FIRMWARE_FILE) -bootcode.bin
URL:= $( RPI_FIRMWARE_URL)
URL_FILE:= bootcode.bin
MD5SUM:= 84d279839c772d3a040b80187388975b
e n d e f
$( eval $ ( call Download ,bootcode_bin ) )
d e f i n e D o w n l o a d / f i x u p _ d a t
FILE:= $( RPI_FIRMWARE_FILE) -fixup.dat
URL:= $( RPI_FIRMWARE_URL)
URL_FILE:= fixup.dat
MD5SUM:= 70a8da83d2d1bbd27ec783db52ca076d
e n d e f
$( eval $ ( call Download ,fixup_dat ) )
d e f i n e D o w n l o a d / f i x u p _ c d _ d a t
FILE:= $( RPI_FIRMWARE_FILE) -fixup_cd.dat
URL:= $( RPI_FIRMWARE_URL)
URL_FILE:= fixup_cd.dat
MD5SUM:= 3da1bb858629729ef11860871bdc0169
e n d e f
$( eval $ ( call Download ,fixup_cd_dat ) )
d e f i n e D o w n l o a d / s t a r t _ e l f
FILE:= $( RPI_FIRMWARE_FILE) -start.elf
URL:= $( RPI_FIRMWARE_URL)
URL_FILE:= start.elf
MD5SUM:= b9e68841248012ddb2405504d8bd1070
e n d e f
$( eval $ ( call Download ,start_elf ) )
d e f i n e D o w n l o a d / s t a r t _ c d _ e l f
FILE:= $( RPI_FIRMWARE_FILE) -start_cd.elf
URL:= $( RPI_FIRMWARE_URL)
URL_FILE:= start_cd.elf
MD5SUM:= a0646b9e425febdad30d515b0480fd45
e n d e f
$( eval $ ( call Download ,start_cd_elf ) )
d e f i n e P a c k a g e / b r c m 2 7 0 8 - g p u - f w
SECTION:= boot
CATEGORY:= Boot Loaders
@ -32,6 +79,17 @@ define Package/brcm2708-gpu-fw/description
GPU and kernel boot firmware for brcm2708.
e n d e f
d e f i n e B u i l d / P r e p a r e
rm -rf $( PKG_BUILD_DIR)
mkdir -p $( PKG_BUILD_DIR)
cp $( DL_DIR) /$( RPI_FIRMWARE_FILE) -LICENCE.broadcom $( PKG_BUILD_DIR) /LICENCE.broadcom
cp $( DL_DIR) /$( RPI_FIRMWARE_FILE) -bootcode.bin $( PKG_BUILD_DIR) /bootcode.bin
cp $( DL_DIR) /$( RPI_FIRMWARE_FILE) -fixup.dat $( PKG_BUILD_DIR) /fixup.dat
cp $( DL_DIR) /$( RPI_FIRMWARE_FILE) -fixup_cd.dat $( PKG_BUILD_DIR) /fixup_cd.dat
cp $( DL_DIR) /$( RPI_FIRMWARE_FILE) -start.elf $( PKG_BUILD_DIR) /start.elf
cp $( DL_DIR) /$( RPI_FIRMWARE_FILE) -start_cd.elf $( PKG_BUILD_DIR) /start_cd.elf
e n d e f
d e f i n e B u i l d / C o m p i l e
true
e n d e f
@ -42,7 +100,6 @@ endef
d e f i n e B u i l d / I n s t a l l D e v
$( CP) $( PKG_BUILD_DIR) /bootcode.bin $( KERNEL_BUILD_DIR)
$( CP) $( PKG_BUILD_DIR) /COPYING.linux $( KERNEL_BUILD_DIR)
$( CP) $( PKG_BUILD_DIR) /LICENCE.broadcom $( KERNEL_BUILD_DIR)
$( CP) $( PKG_BUILD_DIR) /start.elf $( KERNEL_BUILD_DIR)
$( CP) $( PKG_BUILD_DIR) /start_cd.elf $( KERNEL_BUILD_DIR)