3
0
mirror of https://github.com/ffrgb/site-ffrgb.git synced 2024-11-13 06:35:24 +01:00

v2023.2.4 and dockerized build

This commit is contained in:
Bastian 2024-11-07 11:57:10 +01:00
parent 527059ce72
commit 1abf64c76c
4 changed files with 73 additions and 1 deletions

View File

@ -1,6 +1,6 @@
GLUON_BUILD_DIR := gluon-build
GLUON_GIT_URL := https://github.com/freifunk-gluon/gluon
GLUON_GIT_REF := 4e2bd01d5f7ee1677d522e75c3818719e513eb01
GLUON_GIT_REF := v2023.2.4
PATCH_DIR := ./patches

6
dockerfile_build Normal file
View File

@ -0,0 +1,6 @@
FROM ubuntu:22.04
ADD ./scripts/install_build_dependencies.sh /
RUN /install_build_dependencies.sh \
&& apt-get clean \
&& rm -r /var/lib/apt/lists/*

View File

@ -0,0 +1,26 @@
diff --git a/targets/bcm27xx-bcm2711 b/targets/bcm27xx-bcm2711
new file mode 100644
index 00000000..ba631911
--- /dev/null
+++ b/targets/bcm27xx-bcm2711
@@ -0,0 +1,9 @@
+include 'bcm27xx.inc'
+
+device('raspberry-pi-4-model-b', 'rpi-4', {
+ manifest_aliases = {
+ 'raspberry-pi-4-model-b-rev-1.1',
+ 'raspberry-pi-4-model-b-rev-1.2',
+ 'raspberry-pi-4-model-b-rev-1.4',
+ },
+})
diff --git a/targets/targets.mk b/targets/targets.mk
index d5f605aa..d27865b0 100644
--- a/targets/targets.mk
+++ b/targets/targets.mk
@@ -25,5 +25,6 @@ $(eval $(call GluonTarget,x86,64))
ifeq ($(BROKEN),1)
$(eval $(call GluonTarget,bcm27xx,bcm2710)) # BROKEN: Untested
+$(eval $(call GluonTarget,bcm27xx,bcm2711)) # BROKEN: Untested
$(eval $(call GluonTarget,mvebu,cortexa9)) # BROKEN: No 11s support
endif

View File

@ -0,0 +1,40 @@
#!/usr/bin/env sh
set -eux
# Verify that the script is running in Ubuntu
. /etc/lsb-release
if [ "$DISTRIB_ID" != "Ubuntu" ]; then
echo "Error: This script only works in Ubuntu"
exit 1
fi
# Avoid tzdata from asking which timezone to choose
export DEBIAN_FRONTEND=noninteractive
apt-get update
# ca-certificates required for Github git cloning
apt-get -y --no-install-recommends install ca-certificates
# Install build environment
apt-get -y --no-install-recommends install \
bash \
bzip2 \
curl \
diffutils \
file \
g++ \
gawk \
gcc \
git \
libncurses5-dev \
make \
patch \
perl \
python3 \
qemu-utils \
rsync \
tar \
unzip \
wget