public inbox for ipfire-scm@lists.ipfire.org
 help / color / mirror / Atom feed
From: Michael Tremer <git@ipfire.org>
To: ipfire-scm@lists.ipfire.org
Subject: [git.ipfire.org] IPFire 2.x development tree branch, next, updated. 0e54ca260288079e008393a1d2fc5cc8b9cdb7e7
Date: Wed, 03 Apr 2019 10:37:31 +0100	[thread overview]
Message-ID: <20190403093732.17FD684FDB0@people01.i.ipfire.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 15569 bytes --]

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "IPFire 2.x development tree".

The branch, next has been updated
       via  0e54ca260288079e008393a1d2fc5cc8b9cdb7e7 (commit)
       via  2aca6aa061c2f680b46aea2dbeb36e4678ed57a3 (commit)
       via  82d176d33bc2839ea31028b9f7dfb6d60f3860af (commit)
      from  48d3cde9cec7add38fb3c62dd66079c5b2fec5aa (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 0e54ca260288079e008393a1d2fc5cc8b9cdb7e7
Author: Michael Tremer <michael.tremer(a)ipfire.org>
Date:   Wed Apr 3 00:42:19 2019 +0100

    pcengines-apu-firmware: New package
    
    This package ships the latest BIOS for PC Engines APU boards.
    
    With help of the firmware-update package, this can be very easily
    updated when running IPFire.
    
    Signed-off-by: Michael Tremer <michael.tremer(a)ipfire.org>

commit 2aca6aa061c2f680b46aea2dbeb36e4678ed57a3
Author: Michael Tremer <michael.tremer(a)ipfire.org>
Date:   Wed Apr 3 00:33:44 2019 +0100

    firmware-update: New package
    
    This is a script that can update firmware on PC Engines APU systems
    
    Signed-off-by: Michael Tremer <michael.tremer(a)ipfire.org>

commit 82d176d33bc2839ea31028b9f7dfb6d60f3860af
Author: Michael Tremer <michael.tremer(a)ipfire.org>
Date:   Wed Apr 3 00:26:13 2019 +0100

    flashrom: New package
    
    This is required to flash firmware
    
    Signed-off-by: Michael Tremer <michael.tremer(a)ipfire.org>

-----------------------------------------------------------------------

Summary of changes:
 config/rootfiles/packages/firmware-update        |  1 +
 config/rootfiles/packages/flashrom               |  2 +
 config/rootfiles/packages/pcengines-apu-firmware |  7 +++
 lfs/{libedit => firmware-update}                 | 20 ++++-----
 lfs/{batctl => flashrom}                         | 14 +++---
 lfs/{amavisd => pcengines-apu-firmware}          | 55 +++++++++++++-----------
 make.sh                                          |  3 ++
 7 files changed, 61 insertions(+), 41 deletions(-)
 create mode 100644 config/rootfiles/packages/firmware-update
 create mode 100644 config/rootfiles/packages/flashrom
 create mode 100644 config/rootfiles/packages/pcengines-apu-firmware
 copy lfs/{libedit => firmware-update} (89%)
 copy lfs/{batctl => flashrom} (92%)
 copy lfs/{amavisd => pcengines-apu-firmware} (74%)

Difference in files:
diff --git a/config/rootfiles/packages/firmware-update b/config/rootfiles/packages/firmware-update
new file mode 100644
index 000000000..92bb977e1
--- /dev/null
+++ b/config/rootfiles/packages/firmware-update
@@ -0,0 +1 @@
+usr/sbin/firmware-update
diff --git a/config/rootfiles/packages/flashrom b/config/rootfiles/packages/flashrom
new file mode 100644
index 000000000..1b224cbe9
--- /dev/null
+++ b/config/rootfiles/packages/flashrom
@@ -0,0 +1,2 @@
+usr/sbin/flashrom
+#usr/share/man/man8/flashrom.8
diff --git a/config/rootfiles/packages/pcengines-apu-firmware b/config/rootfiles/packages/pcengines-apu-firmware
new file mode 100644
index 000000000..271d6df32
--- /dev/null
+++ b/config/rootfiles/packages/pcengines-apu-firmware
@@ -0,0 +1,7 @@
+#lib/firmware/pcengines
+#lib/firmware/pcengines/apu
+lib/firmware/pcengines/apu/apu1_v4.9.0.3.rom
+lib/firmware/pcengines/apu/apu2_v4.9.0.3.rom
+lib/firmware/pcengines/apu/apu3_v4.9.0.3.rom
+lib/firmware/pcengines/apu/apu4_v4.9.0.3.rom
+lib/firmware/pcengines/apu/apu5_v4.9.0.3.rom
diff --git a/lfs/firmware-update b/lfs/firmware-update
new file mode 100644
index 000000000..53e8f039f
--- /dev/null
+++ b/lfs/firmware-update
@@ -0,0 +1,85 @@
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2019  IPFire Team  <info(a)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        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
+
+###############################################################################
+# Definitions
+###############################################################################
+
+include Config
+
+VER        = 20190329
+
+THISAPP    = firmware-update-$(VER)
+DL_FILE    = $(THISAPP).tar.gz
+DL_FROM    = https://source.ipfire.org/releases/firmware-update/
+DIR_APP    = $(DIR_SRC)/$(THISAPP)
+TARGET     = $(DIR_INFO)/$(THISAPP)
+PROG       = firmware-update
+PAK_VER    = 1
+
+DEPS       = "flashrom"
+
+###############################################################################
+# Top-level Rules
+###############################################################################
+
+objects = $(DL_FILE)
+
+$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
+
+$(DL_FILE)_MD5 = 493f6d678bd9d3c7f35b25256e423ad2
+
+install : $(TARGET)
+
+check : $(patsubst %,$(DIR_CHK)/%,$(objects))
+
+download :$(patsubst %,$(DIR_DL)/%,$(objects))
+
+md5 : $(subst %,%_MD5,$(objects))
+
+dist: 
+	@$(PAK)
+
+###############################################################################
+# Downloading, checking, md5sum
+###############################################################################
+
+$(patsubst %,$(DIR_CHK)/%,$(objects)) :
+	@$(CHECK)
+
+$(patsubst %,$(DIR_DL)/%,$(objects)) :
+	@$(LOAD)
+
+$(subst %,%_MD5,$(objects)) :
+	@$(MD5)
+
+###############################################################################
+# Installation Details
+###############################################################################
+
+$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
+	@$(PREBUILD)
+	@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
+	cd $(DIR_APP) && [ -x "configure" ] || sh ./autogen.sh
+	cd $(DIR_APP) && ./configure --prefix=/usr
+	cd $(DIR_APP) && make $(MAKETUNING)
+	cd $(DIR_APP) && make install
+	@rm -rf $(DIR_APP)
+	@$(POSTBUILD)
diff --git a/lfs/flashrom b/lfs/flashrom
new file mode 100644
index 000000000..5d1753591
--- /dev/null
+++ b/lfs/flashrom
@@ -0,0 +1,83 @@
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2019  IPFire Team  <info(a)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        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
+
+###############################################################################
+# Definitions
+###############################################################################
+
+include Config
+
+VER        = 1.0.1
+
+THISAPP    = flashrom-v$(VER)
+DL_FILE    = $(THISAPP).tar.bz2
+DL_FROM    = $(URL_IPFIRE)
+DIR_APP    = $(DIR_SRC)/$(THISAPP)
+TARGET     = $(DIR_INFO)/$(THISAPP)
+PROG       = flashrom
+PAK_VER    = 1
+
+DEPS       = ""
+
+###############################################################################
+# Top-level Rules
+###############################################################################
+
+objects = $(DL_FILE)
+
+$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
+
+$(DL_FILE)_MD5 = 6a108a81db229016abd7f5397da39255
+
+install : $(TARGET)
+
+check : $(patsubst %,$(DIR_CHK)/%,$(objects))
+
+download :$(patsubst %,$(DIR_DL)/%,$(objects))
+
+md5 : $(subst %,%_MD5,$(objects))
+
+dist: 
+	@$(PAK)
+
+###############################################################################
+# Downloading, checking, md5sum
+###############################################################################
+
+$(patsubst %,$(DIR_CHK)/%,$(objects)) :
+	@$(CHECK)
+
+$(patsubst %,$(DIR_DL)/%,$(objects)) :
+	@$(LOAD)
+
+$(subst %,%_MD5,$(objects)) :
+	@$(MD5)
+
+###############################################################################
+# Installation Details
+###############################################################################
+
+$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
+	@$(PREBUILD)
+	@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE)
+	cd $(DIR_APP) && make $(MAKETUNING)
+	cd $(DIR_APP) && make install PREFIX=/usr
+	@rm -rf $(DIR_APP)
+	@$(POSTBUILD)
diff --git a/lfs/pcengines-apu-firmware b/lfs/pcengines-apu-firmware
new file mode 100644
index 000000000..f318a60a6
--- /dev/null
+++ b/lfs/pcengines-apu-firmware
@@ -0,0 +1,97 @@
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2019  IPFire Team  <info(a)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        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
+
+###############################################################################
+# Definitions
+###############################################################################
+
+include Config
+
+VER        = 4.9.0.3
+
+THISAPP    = pcengines-apu-firmware-$(VER)
+DL_FROM    = $(URL_IPFIRE)
+DIR_APP    = $(DIR_SRC)/$(THISAPP)
+TARGET     = $(DIR_INFO)/$(THISAPP)
+PROG       = pcengines-apu-firmware
+PAK_VER    = 1
+
+DEPS       = "firmware-update"
+
+###############################################################################
+# Top-level Rules
+###############################################################################
+
+objects = \
+	apu1_v$(VER).rom \
+	apu2_v$(VER).rom \
+	apu3_v$(VER).rom \
+	apu4_v$(VER).rom \
+	apu5_v$(VER).rom
+
+apu1_v$(VER).rom = $(DL_FROM)/apu1_v$(VER).rom
+apu2_v$(VER).rom = $(DL_FROM)/apu2_v$(VER).rom
+apu3_v$(VER).rom = $(DL_FROM)/apu3_v$(VER).rom
+apu4_v$(VER).rom = $(DL_FROM)/apu4_v$(VER).rom
+apu5_v$(VER).rom = $(DL_FROM)/apu5_v$(VER).rom
+
+apu1_v$(VER).rom_MD5 = eb446600520f9abc3704cd806cbf160f
+apu2_v$(VER).rom_MD5 = c61e10a6b2f76c8ada4e81f9e654decd
+apu3_v$(VER).rom_MD5 = d1390d76d0ee18912825fd95b08e3f26
+apu4_v$(VER).rom_MD5 = c36cc13a1ba196b33eb85592bd44fad7
+apu5_v$(VER).rom_MD5 = da69300aed63e89e827f1e3ee3adc06d
+
+install : $(TARGET)
+
+check : $(patsubst %,$(DIR_CHK)/%,$(objects))
+
+download :$(patsubst %,$(DIR_DL)/%,$(objects))
+
+md5 : $(subst %,%_MD5,$(objects))
+
+dist: 
+	@$(PAK)
+
+###############################################################################
+# Downloading, checking, md5sum
+###############################################################################
+
+$(patsubst %,$(DIR_CHK)/%,$(objects)) :
+	@$(CHECK)
+
+$(patsubst %,$(DIR_DL)/%,$(objects)) :
+	@$(LOAD)
+
+$(subst %,%_MD5,$(objects)) :
+	@$(MD5)
+
+###############################################################################
+# Installation Details
+###############################################################################
+
+$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
+	@$(PREBUILD)
+
+	# Install firmware to /lib/firmware
+	mkdir -pv /lib/firmware/pcengines/apu
+	cd $(DIR_DL) && install -v -m 644 $(objects) \
+		/lib/firmware/pcengines/apu
+
+	@$(POSTBUILD)
diff --git a/make.sh b/make.sh
index c05e4b590..de973c69c 100755
--- a/make.sh
+++ b/make.sh
@@ -1098,6 +1098,7 @@ buildipfire() {
   lfsmake2 zd1211-firmware
   lfsmake2 rpi-firmware
   lfsmake2 intel-microcode
+  lfsmake2 pcengines-apu-firmware
   lfsmake2 bc
   lfsmake2 u-boot MKIMAGE=1
   lfsmake2 cpio
@@ -1591,6 +1592,8 @@ buildipfire() {
   lfsmake2 knot
   lfsmake2 spectre-meltdown-checker
   lfsmake2 zabbix_agentd
+  lfsmake2 flashrom
+  lfsmake2 firmware-update
 }
 
 buildinstaller() {


hooks/post-receive
--
IPFire 2.x development tree

                 reply	other threads:[~2019-04-03  9:37 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190403093732.17FD684FDB0@people01.i.ipfire.org \
    --to=git@ipfire.org \
    --cc=ipfire-scm@lists.ipfire.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox