44 lines
1.9 KiB
Makefile
44 lines
1.9 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
|
|
# Copyright (C) 2017-present Team LibreELEC (https://libreelec.tv)
|
|
|
|
PKG_NAME="bcm2835-bootloader"
|
|
|
|
# use latest master firmware on RPi4 and latest pre-common
|
|
# firmware on RPi0-3
|
|
if [ "$DEVICE" = "RPi4" ]; then
|
|
PKG_VERSION="66fc5eaac3d0af1d5a7ffa616086cbfaefd72e98"
|
|
PKG_SHA256="fe7fe713409120768c37dbbe02a7a06c0e808b0e60dad09ea054d7006947b76d"
|
|
else
|
|
PKG_VERSION="9e3c23ce779e8cf44c33d6a25bba249319207f68"
|
|
PKG_SHA256="7ab85b6d7082be87556bc02353b97f97bb1d4af304e4004a3d7ad2a17bb8a696"
|
|
fi
|
|
|
|
PKG_ARCH="arm"
|
|
PKG_LICENSE="nonfree"
|
|
PKG_SITE="http://www.broadcom.com"
|
|
PKG_URL="$DISTRO_SRC/$PKG_NAME-$PKG_VERSION.tar.xz"
|
|
PKG_DEPENDS_TARGET="toolchain linux bcmstat"
|
|
PKG_LONGDESC="bcm2835-bootloader: Tool to create a bootable kernel for RaspberryPi"
|
|
PKG_TOOLCHAIN="manual"
|
|
|
|
makeinstall_target() {
|
|
mkdir -p $INSTALL/usr/share/bootloader
|
|
cp -PRv LICENCE* $INSTALL/usr/share/bootloader
|
|
cp -PRv bootcode.bin $INSTALL/usr/share/bootloader
|
|
if [ "$DEVICE" = "RPi4" ]; then
|
|
cp -PRv fixup4x.dat $INSTALL/usr/share/bootloader/fixup.dat
|
|
cp -PRv start4x.elf $INSTALL/usr/share/bootloader/start.elf
|
|
else
|
|
cp -PRv fixup_x.dat $INSTALL/usr/share/bootloader/fixup.dat
|
|
cp -PRv start_x.elf $INSTALL/usr/share/bootloader/start.elf
|
|
fi
|
|
|
|
find_file_path config/dt-blob.bin && cp -PRv $FOUND_PATH $INSTALL/usr/share/bootloader
|
|
|
|
find_file_path bootloader/update.sh && cp -PRv $FOUND_PATH $INSTALL/usr/share/bootloader
|
|
find_file_path bootloader/canupdate.sh && cp -PRv $FOUND_PATH $INSTALL/usr/share/bootloader
|
|
|
|
find_file_path config/distroconfig.txt $PKG_DIR/files/3rdparty/bootloader/distroconfig.txt && cp -PRv ${FOUND_PATH} $INSTALL/usr/share/bootloader
|
|
find_file_path config/config.txt $PKG_DIR/files/3rdparty/bootloader/config.txt && cp -PRv ${FOUND_PATH} $INSTALL/usr/share/bootloader
|
|
}
|