1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/linux-firmware/linux-firmware.conf
3 # Copyright (C) 2022 - 2024 The T2 SDE Project
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License version 2.
10 # --- T2-COPYRIGHT-NOTE-END ---
13 #makeinstopt="${makeinstopt/install/install-nodedup}"
16 [[ $arch = x86* ]] || hook_add premake 2 "rm -rvf amd-ucode"
18 # delete files shared w/ alsa-firmware, at that includes more we prefer that
19 hook_add premake 2 "sed -e '/ctefx.bin/d; /ctspeq.bin/d; /ess.maestro3_assp_kernel.fw/d; \
20 /ess.maestro3_assp_minisrc.fw/d; /korg.k1212.dsp/d; \
21 /sb16.alaw_main.csp/d; /sb16.ima_adpcm_capture.csp/d; /sb16.ima_adpcm_init.csp/d; \
22 /sb16.ima_adpcm_playback.csp/d; /sb16.mulaw_main.csp/d; /yamaha.ds1_ctrl.fw/d; \
23 /yamaha.ds1_dsp.fw/d; /yamaha.ds1e_ctrl.fw/d; /yamaha.yss225_registers.bin/d;' -i WHENCE"
26 find $root/lib/modules -name "*.ko" | while read f; do
27 ${archprefix}modinfo -F firmware $f
28 done | sort -u > INSTALLED
30 # add additional, dynamically string constructed firmware
31 find cirrus/ -type f >> INSTALLED
34 # only installed used is a bit tricky, as the kernel needs them for initrd 1st :-/
35 if ! atstage rebuild; then
36 hook_add premake 5 lf_find_used
39 hook_add premake 7 'if [ -s INSTALLED ]; then
40 [[ $arch = x86* ]] && ls amd-ucode/*.bin >> INSTALLED
41 patch -p1 < $confdir/*.diff; fi'