###############################################################################
# #
# IPFire.org - A linux based firewall #
-# Copyright (C) 2007-2018 IPFire Team <info@ipfire.org> #
+# Copyright (C) 2007-2021 IPFire Team <info@ipfire.org> #
# #
# This program is free software: you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published by #
include Config
-VER = 20180316
+VER = 20211127
THISAPP = rpi-firmware-$(VER)
DL_FILE = $(THISAPP).tar.xz
DL_FROM = $(URL_IPFIRE)
TARGET = $(DIR_INFO)/$(THISAPP)
-SUP_ARCH = armv5tel aarch64
+SUP_ARCH = armv6l aarch64
###############################################################################
# Top-level Rules
$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
-$(DL_FILE)_MD5 = e09ff543280f6138d12ea334d550fbd6
+$(DL_FILE)_BLAKE2 = 1395f0d0a43212e9d40bcc17be4ec0625019cebfc4947815caf7cadd42ebf1d2093850f90ed6eca11c3df162fc3f29e6c427c3baf9dcc5229d16ce433886d0d9
install : $(TARGET)
download :$(patsubst %,$(DIR_DL)/%,$(objects))
-md5 : $(subst %,%_MD5,$(objects))
+b2 : $(subst %,%_BLAKE2,$(objects))
###############################################################################
-# Downloading, checking, md5sum
+# Downloading, checking, b2sum
###############################################################################
$(patsubst %,$(DIR_CHK)/%,$(objects)) :
$(patsubst %,$(DIR_DL)/%,$(objects)) :
@$(LOAD)
-$(subst %,%_MD5,$(objects)) :
- @$(MD5)
+$(subst %,%_BLAKE2,$(objects)) :
+ @$(B2SUM)
###############################################################################
# Installation Details
$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
@$(PREBUILD)
- @cd / && tar axf $(DIR_DL)/$(DL_FILE)
- cp -f /lib/firmware/brcm/brcmfmac43430-sdio.txt \
- /lib/firmware/brcm/brcmfmac43430-sdio.RPI3.txt
+ @cd / && tar axf $(DIR_DL)/$(DL_FILE) --no-same-owner
cp -f $(DIR_SRC)/config/rpi-firmware/config.txt /boot
+ifeq "${BUILD_ARCH}" "armv6l"
+ echo arm_64bit=0 >> /boot/config.txt
+else
+ echo arm_64bit=1 >> /boot/config.txt
+endif
@$(POSTBUILD)