summaryrefslogtreecommitdiff
path: root/repo/alsa-firmware
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-05-31 11:05:19 +0100
committerdavidovski <david@davidovski.xyz>2022-05-31 11:05:19 +0100
commit48ca75555522716f0f686dcae3dd6cf3d8ad714d (patch)
tree00c0f58550ba4661e87376f2f02c8001c69bae44 /repo/alsa-firmware
parent871b2b573f01c1b3176a0f65458b3d281b41c437 (diff)
removed idea of repos
Diffstat (limited to 'repo/alsa-firmware')
-rw-r--r--repo/alsa-firmware/alsa-firmware.xibuild25
-rw-r--r--repo/alsa-firmware/use-uint32_t-instead-u_int32_t.patch52
2 files changed, 77 insertions, 0 deletions
diff --git a/repo/alsa-firmware/alsa-firmware.xibuild b/repo/alsa-firmware/alsa-firmware.xibuild
new file mode 100644
index 0000000..d6311a9
--- /dev/null
+++ b/repo/alsa-firmware/alsa-firmware.xibuild
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+MAKEDEPS="make xmlto"
+DEPS="alsa-tools"
+
+DESC="Firmware binaries for loader programs in alsa-tools and hotplug firmware loader"
+
+PKG_VER=1.2.4
+SOURCE=https://www.alsa-project.org/files/pub/firmware/alsa-firmware-$PKG_VER.tar.bz2
+ADDITIONAL="
+ use-uint32_t-instead-u_int32_t.patch
+"
+
+prepare () {
+ apply_patches
+}
+
+build () {
+ ./configure --prefix=/usr &&
+ make
+}
+
+package () {
+ make DESTDIR=$PKG_DEST install
+}
diff --git a/repo/alsa-firmware/use-uint32_t-instead-u_int32_t.patch b/repo/alsa-firmware/use-uint32_t-instead-u_int32_t.patch
new file mode 100644
index 0000000..70112fd
--- /dev/null
+++ b/repo/alsa-firmware/use-uint32_t-instead-u_int32_t.patch
@@ -0,0 +1,52 @@
+diff -rNu a/hdsploader/digiface_firmware.dat b/hdsploader/digiface_firmware.dat
+--- a/hdsploader/digiface_firmware.dat 2020-10-20 12:28:42.000000000 +0100
++++ b/hdsploader/digiface_firmware.dat 2022-03-09 18:13:56.491133428 +0000
+@@ -1,5 +1,5 @@
+ /* stored in little-endian */
+-static u_int32_t digiface_firmware[24413] = {
++static uint32_t digiface_firmware[24413] = {
+ 0xffffffff, 0x66aa9955, 0x8001000c, 0xe0000000, 0x8006800c, 0xb0000000,
+ 0x8004800c, 0xb4fc0100, 0x8003000c, 0x00000000, 0x8001000c, 0x90000000,
+ 0x8004000c, 0x00000000, 0x8001000c, 0x80000000, 0x0002000c, 0x581a000a,
+diff -rNu a/hdsploader/digiface_firmware_rev11.dat b/hdsploader/digiface_firmware_rev11.dat
+--- a/hdsploader/digiface_firmware_rev11.dat 2020-10-20 12:28:42.000000000 +0100
++++ b/hdsploader/digiface_firmware_rev11.dat 2022-03-09 18:13:56.491133428 +0000
+@@ -1,5 +1,5 @@
+ /* stored in little-endian */
+-static u_int32_t digiface_firmware_rev11[24413] = {
++static uint32_t digiface_firmware_rev11[24413] = {
+ 0xffffffff, 0x66aa9955, 0x8001000c, 0xe0000000, 0x8006800c, 0xb0000000,
+ 0x8004800c, 0xb4fc0100, 0x8003000c, 0x00000000, 0x8001000c, 0x90000000,
+ 0x8004000c, 0x00000000, 0x8001000c, 0x80000000, 0x0002000c, 0x581a000a,
+diff -rNu a/hdsploader/multiface_firmware.dat b/hdsploader/multiface_firmware.dat
+--- a/hdsploader/multiface_firmware.dat 2020-10-20 12:28:42.000000000 +0100
++++ b/hdsploader/multiface_firmware.dat 2022-03-09 18:13:56.491133428 +0000
+@@ -1,5 +1,5 @@
+ /* stored in little-endian */
+-static u_int32_t multiface_firmware[24413] = {
++static uint32_t multiface_firmware[24413] = {
+ 0xffffffff, 0x66aa9955, 0x8001000c, 0xe0000000, 0x8006800c, 0xb0000000,
+ 0x8004800c, 0xb4fc0100, 0x8003000c, 0x00000000, 0x8001000c, 0x90000000,
+ 0x8004000c, 0x00000000, 0x8001000c, 0x80000000, 0x0002000c, 0x581a000a,
+diff -rNu a/hdsploader/multiface_firmware_rev11.dat b/hdsploader/multiface_firmware_rev11.dat
+--- a/hdsploader/multiface_firmware_rev11.dat 2020-10-20 12:28:42.000000000 +0100
++++ b/hdsploader/multiface_firmware_rev11.dat 2022-03-09 18:13:56.491133428 +0000
+@@ -1,5 +1,5 @@
+ /* stored in little-endian */
+-static u_int32_t multiface_firmware_rev11[24413] = {
++static uint32_t multiface_firmware_rev11[24413] = {
+ 0xffffffff, 0x66aa9955, 0x8001000c, 0xe0000000, 0x8006800c, 0xb0000000,
+ 0x8004800c, 0xb4fc0100, 0x8003000c, 0x00000000, 0x8001000c, 0x90000000,
+ 0x8004000c, 0x00000000, 0x8001000c, 0x80000000, 0x0002000c, 0x581a000a,
+diff -rNu a/hdsploader/tobin.c b/hdsploader/tobin.c
+--- a/hdsploader/tobin.c 2020-10-20 12:28:42.000000000 +0100
++++ b/hdsploader/tobin.c 2022-03-09 18:13:56.491133428 +0000
+@@ -8,7 +8,7 @@
+ #include "multiface_firmware.dat"
+ #include "multiface_firmware_rev11.dat"
+
+-int write_bin_file(u_int32_t *array, const char *filename)
++int write_bin_file(uint32_t *array, const char *filename)
+ {
+ FILE *out;
+