linux-hwe-6.17: add linux-hwe-6.17 to ecne
This commit is contained in:
parent
abda6d461c
commit
cd4156e593
338 changed files with 19427 additions and 0 deletions
2027
helpers/DATA/linux-hwe-6.17/000-silent-accept-firmware.patch
Normal file
2027
helpers/DATA/linux-hwe-6.17/000-silent-accept-firmware.patch
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,58 @@
|
||||||
|
reverts https://lore.kernel.org/all/iwlwifi.20211210110539.1f742f0eb58a.I1315f22f6aa632d94ae2069f85e1bca5e734dce0@changeid/
|
||||||
|
|
||||||
|
--- b/drivers/net/wireless/intel/iwlwifi/iwl-drv.c
|
||||||
|
+++ a/drivers/net/wireless/intel/iwlwifi/iwl-drv.c
|
||||||
|
@@ -130,9 +130,6 @@
|
||||||
|
|
||||||
|
for (i = 0; i < IWL_UCODE_TYPE_MAX; i++)
|
||||||
|
iwl_free_fw_img(drv, drv->fw.img + i);
|
||||||
|
-
|
||||||
|
- /* clear the data for the aborted load case */
|
||||||
|
- memset(&drv->fw, 0, sizeof(drv->fw));
|
||||||
|
}
|
||||||
|
|
||||||
|
static int iwl_alloc_fw_desc(struct iwl_drv *drv, struct fw_desc *desc,
|
||||||
|
@@ -1429,7 +1426,6 @@
|
||||||
|
int i;
|
||||||
|
bool load_module = false;
|
||||||
|
bool usniffer_images = false;
|
||||||
|
- bool failure = true;
|
||||||
|
|
||||||
|
fw->ucode_capa.max_probe_length = IWL_DEFAULT_MAX_PROBE_LENGTH;
|
||||||
|
fw->ucode_capa.standard_phy_calibration_size =
|
||||||
|
# this is change is related to patch "001" need review.
|
||||||
|
#@@ -1699,7 +1695,6 @@
|
||||||
|
# op->name, err);
|
||||||
|
# #endif
|
||||||
|
# }
|
||||||
|
#- failure = false;
|
||||||
|
# goto free;
|
||||||
|
#
|
||||||
|
# try_again:
|
||||||
|
|
||||||
|
diff --git a/drivers/net/wireless/intel/iwlwifi/iwl-drv.c b/drivers/net/wireless/intel/iwlwifi/iwl-drv.c
|
||||||
|
index 81d06847..9d13e812 100644
|
||||||
|
--- a/drivers/net/wireless/intel/iwlwifi/iwl-drv.c
|
||||||
|
+++ b/drivers/net/wireless/intel/iwlwifi/iwl-drv.c
|
||||||
|
@@ -1717,7 +1717,6 @@ static void iwl_req_fw_callback(const struct firmware *ucode_raw, void *context)
|
||||||
|
|
||||||
|
complete(&drv->request_firmware_complete);
|
||||||
|
|
||||||
|
- failure = false;
|
||||||
|
goto free;
|
||||||
|
|
||||||
|
try_again:
|
||||||
|
diff --git a/drivers/net/wireless/intel/iwlwifi/iwl-drv.c b/drivers/net/wireless/intel/iwlwifi/iwl-drv.c
|
||||||
|
index 81d06847..9d13e812 100644
|
||||||
|
--- a/drivers/net/wireless/intel/iwlwifi/iwl-drv.c
|
||||||
|
+++ b/drivers/net/wireless/intel/iwlwifi/iwl-drv.c
|
||||||
|
@@ -1715,9 +1710,6 @@
|
||||||
|
complete(&drv->request_firmware_complete);
|
||||||
|
device_release_driver(drv->trans->dev);
|
||||||
|
free:
|
||||||
|
- if (failure)
|
||||||
|
- iwl_dealloc_ucode(drv);
|
||||||
|
-
|
||||||
|
if (pieces) {
|
||||||
|
for (i = 0; i < ARRAY_SIZE(pieces->img); i++)
|
||||||
|
kfree(pieces->img[i].sec);
|
||||||
|
|
@ -0,0 +1,13 @@
|
||||||
|
reverts https://lore.kernel.org/all/iwlwifi.20211210110539.1f742f0eb58a.I1315f22f6aa632d94ae2069f85e1bca5e734dce0@changeid/
|
||||||
|
|
||||||
|
diff -ru source.orig/drivers/net/wireless/intel/iwlwifi/iwl-drv.c source/drivers/net/wireless/intel/iwlwifi/iwl-drv.c
|
||||||
|
--- source.orig/drivers/net/wireless/intel/iwlwifi/iwl-drv.c 2022-05-13 16:10:11.883295769 -0400
|
||||||
|
+++ source/drivers/net/wireless/intel/iwlwifi/iwl-drv.c 2022-05-13 20:13:06.568151229 -0400
|
||||||
|
@@ -1605,7 +1605,6 @@
|
||||||
|
complete(&drv->request_firmware_complete);
|
||||||
|
device_release_driver(drv->trans->dev);
|
||||||
|
/* drv has just been freed by the release */
|
||||||
|
- failure = false;
|
||||||
|
free:
|
||||||
|
if (pieces) {
|
||||||
|
for (i = 0; i < ARRAY_SIZE(pieces->img); i++)
|
||||||
|
|
@ -0,0 +1,228 @@
|
||||||
|
Based on https://libreplanet.org/wiki/Group:Hardware/research/gpu/radeon
|
||||||
|
|
||||||
|
diff -ru a/drivers/gpu/drm/radeon/btc_dpm.c b/drivers/gpu/drm/radeon/btc_dpm.c
|
||||||
|
--- a/drivers/gpu/drm/radeon/btc_dpm.c 2021-10-31 16:53:10.000000000 -0400
|
||||||
|
+++ b/drivers/gpu/drm/radeon/btc_dpm.c 2023-02-13 15:50:41.218608376 -0500
|
||||||
|
@@ -2437,7 +2437,6 @@
|
||||||
|
ret = rv770_upload_firmware(rdev);
|
||||||
|
if (ret) {
|
||||||
|
DRM_ERROR("rv770_upload_firmware failed\n");
|
||||||
|
- return ret;
|
||||||
|
}
|
||||||
|
ret = cypress_get_table_locations(rdev);
|
||||||
|
if (ret) {
|
||||||
|
diff -ru a/drivers/gpu/drm/radeon/ci_dpm.c b/drivers/gpu/drm/radeon/ci_dpm.c
|
||||||
|
--- a/drivers/gpu/drm/radeon/ci_dpm.c 2021-10-31 16:53:10.000000000 -0400
|
||||||
|
+++ b/drivers/gpu/drm/radeon/ci_dpm.c 2023-02-13 15:53:38.591724496 -0500
|
||||||
|
@@ -5157,7 +5157,6 @@
|
||||||
|
ret = ci_upload_firmware(rdev);
|
||||||
|
if (ret) {
|
||||||
|
DRM_ERROR("ci_upload_firmware failed\n");
|
||||||
|
- return ret;
|
||||||
|
}
|
||||||
|
ret = ci_process_firmware_header(rdev);
|
||||||
|
if (ret) {
|
||||||
|
diff -ru a/drivers/gpu/drm/radeon/cik.c b/drivers/gpu/drm/radeon/cik.c
|
||||||
|
--- a/drivers/gpu/drm/radeon/cik.c 2023-02-13 15:21:35.174999782 -0500
|
||||||
|
+++ b/drivers/gpu/drm/radeon/cik.c 2023-02-13 15:47:37.149601121 -0500
|
||||||
|
@@ -8285,7 +8285,6 @@
|
||||||
|
r = ci_mc_load_microcode(rdev);
|
||||||
|
if (r) {
|
||||||
|
DRM_ERROR("Failed to load MC firmware!\n");
|
||||||
|
- return r;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@@ -8591,7 +8590,6 @@
|
||||||
|
r = cik_init_microcode(rdev);
|
||||||
|
if (r) {
|
||||||
|
DRM_ERROR("Failed to load firmware!\n");
|
||||||
|
- return r;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
@@ -8601,7 +8599,6 @@
|
||||||
|
r = cik_init_microcode(rdev);
|
||||||
|
if (r) {
|
||||||
|
DRM_ERROR("Failed to load firmware!\n");
|
||||||
|
- return r;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@@ -8672,8 +8672,6 @@ int cik_init(struct radeon_device *rdev)
|
||||||
|
*/
|
||||||
|
if (!rdev->mc_fw && !(rdev->flags & RADEON_IS_IGP)) {
|
||||||
|
DRM_ERROR("radeon: MC ucode required for NI+.\n");
|
||||||
|
- r = -EINVAL;
|
||||||
|
- goto out;
|
||||||
|
}
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
diff -ru a/drivers/gpu/drm/radeon/cypress_dpm.c b/drivers/gpu/drm/radeon/cypress_dpm.c
|
||||||
|
--- a/drivers/gpu/drm/radeon/cypress_dpm.c 2021-10-31 16:53:10.000000000 -0400
|
||||||
|
+++ b/drivers/gpu/drm/radeon/cypress_dpm.c 2023-02-13 15:50:25.130869935 -0500
|
||||||
|
@@ -1862,7 +1862,6 @@
|
||||||
|
ret = rv770_upload_firmware(rdev);
|
||||||
|
if (ret) {
|
||||||
|
DRM_ERROR("rv770_upload_firmware failed\n");
|
||||||
|
- return ret;
|
||||||
|
}
|
||||||
|
|
||||||
|
ret = cypress_get_table_locations(rdev);
|
||||||
|
diff -ru a/drivers/gpu/drm/radeon/evergreen.c b/drivers/gpu/drm/radeon/evergreen.c
|
||||||
|
--- a/drivers/gpu/drm/radeon/evergreen.c 2021-10-31 16:53:10.000000000 -0400
|
||||||
|
+++ b/drivers/gpu/drm/radeon/evergreen.c 2023-02-13 15:47:50.457384749 -0500
|
||||||
|
@@ -5018,7 +5018,6 @@
|
||||||
|
r = ni_mc_load_microcode(rdev);
|
||||||
|
if (r) {
|
||||||
|
DRM_ERROR("Failed to load MC firmware!\n");
|
||||||
|
- return r;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@@ -5235,7 +5234,6 @@
|
||||||
|
r = ni_init_microcode(rdev);
|
||||||
|
if (r) {
|
||||||
|
DRM_ERROR("Failed to load firmware!\n");
|
||||||
|
- return r;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
@@ -5243,7 +5241,6 @@
|
||||||
|
r = r600_init_microcode(rdev);
|
||||||
|
if (r) {
|
||||||
|
DRM_ERROR("Failed to load firmware!\n");
|
||||||
|
- return r;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@@ -5289,7 +5286,6 @@
|
||||||
|
if (ASIC_IS_DCE5(rdev)) {
|
||||||
|
if (!rdev->mc_fw && !(rdev->flags & RADEON_IS_IGP)) {
|
||||||
|
DRM_ERROR("radeon: MC ucode required for NI+.\n");
|
||||||
|
- return -EINVAL;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
diff -ru a/drivers/gpu/drm/radeon/ni.c b/drivers/gpu/drm/radeon/ni.c
|
||||||
|
--- a/drivers/gpu/drm/radeon/ni.c 2021-10-31 16:53:10.000000000 -0400
|
||||||
|
+++ b/drivers/gpu/drm/radeon/ni.c 2023-02-13 15:46:45.402442454 -0500
|
||||||
|
@@ -2163,7 +2163,6 @@
|
||||||
|
r = ni_mc_load_microcode(rdev);
|
||||||
|
if (r) {
|
||||||
|
DRM_ERROR("Failed to load MC firmware!\n");
|
||||||
|
- return r;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@@ -2390,7 +2389,6 @@
|
||||||
|
r = ni_init_microcode(rdev);
|
||||||
|
if (r) {
|
||||||
|
DRM_ERROR("Failed to load firmware!\n");
|
||||||
|
- return r;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
@@ -2398,7 +2396,6 @@
|
||||||
|
r = ni_init_microcode(rdev);
|
||||||
|
if (r) {
|
||||||
|
DRM_ERROR("Failed to load firmware!\n");
|
||||||
|
- return r;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@@ -2453,7 +2450,6 @@
|
||||||
|
*/
|
||||||
|
if (!rdev->mc_fw && !(rdev->flags & RADEON_IS_IGP)) {
|
||||||
|
DRM_ERROR("radeon: MC ucode required for NI+.\n");
|
||||||
|
- return -EINVAL;
|
||||||
|
}
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
diff -ru a/drivers/gpu/drm/radeon/r100.c b/drivers/gpu/drm/radeon/r100.c
|
||||||
|
--- a/drivers/gpu/drm/radeon/r100.c 2023-02-13 15:21:35.174999782 -0500
|
||||||
|
+++ b/drivers/gpu/drm/radeon/r100.c 2023-02-13 15:49:15.548001277 -0500
|
||||||
|
@@ -1134,7 +1134,6 @@
|
||||||
|
r = r100_cp_init_microcode(rdev);
|
||||||
|
if (r) {
|
||||||
|
DRM_ERROR("Failed to load firmware!\n");
|
||||||
|
- return r;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
diff -ru a/drivers/gpu/drm/radeon/r600.c b/drivers/gpu/drm/radeon/r600.c
|
||||||
|
--- a/drivers/gpu/drm/radeon/r600.c 2023-02-13 15:21:35.174999782 -0500
|
||||||
|
+++ b/drivers/gpu/drm/radeon/r600.c 2023-02-13 15:46:07.291062125 -0500
|
||||||
|
@@ -3299,7 +3299,6 @@
|
||||||
|
r = r600_init_microcode(rdev);
|
||||||
|
if (r) {
|
||||||
|
DRM_ERROR("Failed to load firmware!\n");
|
||||||
|
- return r;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
diff -ru a/drivers/gpu/drm/radeon/rv770.c b/drivers/gpu/drm/radeon/rv770.c
|
||||||
|
--- a/drivers/gpu/drm/radeon/rv770.c 2021-10-31 16:53:10.000000000 -0400
|
||||||
|
+++ b/drivers/gpu/drm/radeon/rv770.c 2023-02-13 15:26:54.385808292 -0500
|
||||||
|
@@ -1966,7 +1966,6 @@
|
||||||
|
r = r600_init_microcode(rdev);
|
||||||
|
if (r) {
|
||||||
|
DRM_ERROR("Failed to load firmware!\n");
|
||||||
|
- return r;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
diff -ru a/drivers/gpu/drm/radeon/rv770_dpm.c b/drivers/gpu/drm/radeon/rv770_dpm.c
|
||||||
|
--- a/drivers/gpu/drm/radeon/rv770_dpm.c 2021-10-31 16:53:10.000000000 -0400
|
||||||
|
+++ b/drivers/gpu/drm/radeon/rv770_dpm.c 2023-02-13 15:50:13.591057564 -0500
|
||||||
|
@@ -1948,12 +1948,10 @@
|
||||||
|
ret = rv770_upload_firmware(rdev);
|
||||||
|
if (ret) {
|
||||||
|
DRM_ERROR("rv770_upload_firmware failed\n");
|
||||||
|
- return ret;
|
||||||
|
}
|
||||||
|
ret = rv770_init_smc_table(rdev, boot_ps);
|
||||||
|
if (ret) {
|
||||||
|
DRM_ERROR("rv770_init_smc_table failed\n");
|
||||||
|
- return ret;
|
||||||
|
}
|
||||||
|
|
||||||
|
rv770_program_response_times(rdev);
|
||||||
|
diff -ru a/drivers/gpu/drm/radeon/si.c b/drivers/gpu/drm/radeon/si.c
|
||||||
|
--- a/drivers/gpu/drm/radeon/si.c 2023-02-13 15:21:35.178999717 -0500
|
||||||
|
+++ b/drivers/gpu/drm/radeon/si.c 2023-02-13 15:47:00.042204445 -0500
|
||||||
|
@@ -6619,7 +6619,6 @@
|
||||||
|
r = si_mc_load_microcode(rdev);
|
||||||
|
if (r) {
|
||||||
|
DRM_ERROR("Failed to load MC firmware!\n");
|
||||||
|
- return r;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@@ -6867,7 +6866,6 @@
|
||||||
|
r = si_init_microcode(rdev);
|
||||||
|
if (r) {
|
||||||
|
DRM_ERROR("Failed to load firmware!\n");
|
||||||
|
- return r;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@@ -6926,7 +6924,6 @@
|
||||||
|
*/
|
||||||
|
if (!rdev->mc_fw) {
|
||||||
|
DRM_ERROR("radeon: MC ucode required for NI+.\n");
|
||||||
|
- return -EINVAL;
|
||||||
|
}
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
diff -ru a/drivers/gpu/drm/radeon/si_dpm.c b/drivers/gpu/drm/radeon/si_dpm.c
|
||||||
|
--- a/drivers/gpu/drm/radeon/si_dpm.c 2021-10-31 16:53:10.000000000 -0400
|
||||||
|
+++ b/drivers/gpu/drm/radeon/si_dpm.c 2023-02-13 15:53:00.844338238 -0500
|
||||||
|
@@ -6366,7 +6366,6 @@
|
||||||
|
ret = si_upload_firmware(rdev);
|
||||||
|
if (ret) {
|
||||||
|
DRM_ERROR("si_upload_firmware failed\n");
|
||||||
|
- return ret;
|
||||||
|
}
|
||||||
|
ret = si_process_firmware_header(rdev);
|
||||||
|
if (ret) {
|
||||||
|
|
@ -0,0 +1,34 @@
|
||||||
|
Removal of references to external repositories we can't manage what kind of firmware is pointed to.
|
||||||
|
The only firmware we can confirm to work with is the one contained on the packge source code.
|
||||||
|
|
||||||
|
Update: Linux-libre has debblobed the external URL, we remove the whole thing.
|
||||||
|
diff --git a/drivers/net/wireless/atmel/at76c50x-usb.c b/drivers/net/wireless/atmel/at76c50x-usb.c
|
||||||
|
index 447b51cf..898b83af 100644
|
||||||
|
--- a/drivers/net/wireless/atmel/at76c50x-usb.c
|
||||||
|
+++ b/drivers/net/wireless/atmel/at76c50x-usb.c
|
||||||
|
@@ -1619,8 +1619,6 @@ static struct fwentry *at76_load_firmware(struct usb_device *udev,
|
||||||
|
if (ret < 0) {
|
||||||
|
dev_err(&udev->dev, "firmware %s not found!\n",
|
||||||
|
fwe->fwname);
|
||||||
|
- dev_err(&udev->dev,
|
||||||
|
- "you may need to download the firmware from http://developer.berlios.de/projects/at76c503a/\n");
|
||||||
|
goto exit;
|
||||||
|
}
|
||||||
|
|
||||||
|
diff --git a/Documentation/admin-guide/media/ivtv.rst b/Documentation/admin-guide/media/ivtv.rst
|
||||||
|
index 101f16d0..2eb77c08 100644
|
||||||
|
--- a/Documentation/admin-guide/media/ivtv.rst
|
||||||
|
+++ b/Documentation/admin-guide/media/ivtv.rst
|
||||||
|
@@ -12,10 +12,7 @@ Hauppauge PVR-350.
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
|
||||||
|
- #) This driver requires the latest encoder firmware (version 2.06.039, size
|
||||||
|
- 376836 bytes). Get the firmware from here:
|
||||||
|
-
|
||||||
|
- https://linuxtv.org/downloads/firmware/#conexant
|
||||||
|
+ #) This driver requires the latest encoder firmware
|
||||||
|
|
||||||
|
#) 'normal' TV applications do not work with this driver, you need
|
||||||
|
an application that can handle MPEG input such as mplayer, xine, MythTV,
|
||||||
|
|
||||||
7
helpers/DATA/linux-hwe-6.17/check.sh
Normal file
7
helpers/DATA/linux-hwe-6.17/check.sh
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
files=`find -type f`
|
||||||
|
while read -r line
|
||||||
|
do
|
||||||
|
./deblob-check $line
|
||||||
|
done <<< "$files"
|
||||||
4535
helpers/DATA/linux-hwe-6.17/deblob-6.17
Normal file
4535
helpers/DATA/linux-hwe-6.17/deblob-6.17
Normal file
File diff suppressed because it is too large
Load diff
10018
helpers/DATA/linux-hwe-6.17/deblob-check
Normal file
10018
helpers/DATA/linux-hwe-6.17/deblob-check
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,21 @@
|
||||||
|
reverts https://lore.kernel.org/all/iwlwifi.20211210110539.1f742f0eb58a.I1315f22f6aa632d94ae2069f85e1bca5e734dce0@changeid/
|
||||||
|
|
||||||
|
--- b/drivers/net/wireless/intel/iwlwifi/iwl-drv.c
|
||||||
|
+++ a/drivers/net/wireless/intel/iwlwifi/iwl-drv.c
|
||||||
|
@@ -1597,8 +1597,15 @@
|
||||||
|
* else from proceeding if the module fails to load
|
||||||
|
* or hangs loading.
|
||||||
|
*/
|
||||||
|
+ if (load_module) {
|
||||||
|
- if (load_module)
|
||||||
|
request_module("%s", op->name);
|
||||||
|
+#ifdef CONFIG_IWLWIFI_OPMODE_MODULAR
|
||||||
|
+ if (err)
|
||||||
|
+ IWL_ERR(drv,
|
||||||
|
+ "failed to load module %s (error %d), is dynamic loading enabled?\n",
|
||||||
|
+ op->name, err);
|
||||||
|
+#endif
|
||||||
|
+ }
|
||||||
|
failure = false;
|
||||||
|
goto free;
|
||||||
|
|
||||||
|
|
@ -0,0 +1,20 @@
|
||||||
|
Debian doesn't use zstd compression for kernel modules by default, and
|
||||||
|
kernel-wedge does not currently support this compression. It is recommended
|
||||||
|
to continue using XZ compression to maintain compatibility with udeb
|
||||||
|
packages in Trisquel, at least while this changes.
|
||||||
|
|
||||||
|
diff --git a/debian/rules.d/0-common-vars.mk b/debian/rules.d/0-common-vars.mk
|
||||||
|
index d832106b..4afdd290 100644
|
||||||
|
--- a/debian/rules.d/0-common-vars.mk
|
||||||
|
+++ b/debian/rules.d/0-common-vars.mk
|
||||||
|
@@ -154,6 +154,10 @@ do_zstd_ko=true
|
||||||
|
ifeq ($(series),jammy)
|
||||||
|
do_zstd_ko=
|
||||||
|
endif
|
||||||
|
+# Trisquel use udebs, so it disable zstd by default.
|
||||||
|
+ifeq (yes,$(shell dpkg-vendor --is Trisquel && echo yes))
|
||||||
|
+do_zstd_ko=
|
||||||
|
+endif
|
||||||
|
|
||||||
|
# Support parallel=<n> in DEB_BUILD_OPTIONS (see #209008)
|
||||||
|
#
|
||||||
|
|
@ -0,0 +1,34 @@
|
||||||
|
diff --git a/debian/scripts/control-create b/debian/scripts/control-create
|
||||||
|
index 887f2863..faacf67f 100644
|
||||||
|
--- a/debian/scripts/control-create
|
||||||
|
+++ b/debian/scripts/control-create
|
||||||
|
@@ -70,23 +70,12 @@ gen_per_flavour () {
|
||||||
|
-e "s/TARGET/${target}/g"
|
||||||
|
)
|
||||||
|
|
||||||
|
- if [ "${#signed_arch[@]}" != 0 ]; then
|
||||||
|
- sed "${sed_common_patterns[@]}" \
|
||||||
|
- -e "s/ARCH/${signed_arch[*]}/g" \
|
||||||
|
- -e "s/=SIGN-ME-PKG=/-unsigned/g" \
|
||||||
|
- -e "s/=SIGN-ME-TXT=/ unsigned/g" \
|
||||||
|
- -e "s/=SIGN-PEER-PKG=//g" \
|
||||||
|
- "${DEBIAN}/control.d/flavour-signed-control.stub"
|
||||||
|
- fi
|
||||||
|
-
|
||||||
|
- if [ "${#unsigned_arch[@]}" != 0 ]; then
|
||||||
|
- sed "${sed_common_patterns[@]}" \
|
||||||
|
- -e "s/ARCH/${unsigned_arch[*]}/g" \
|
||||||
|
- -e "s/=SIGN-ME-PKG=//g" \
|
||||||
|
- -e "s/=SIGN-ME-TXT=//g" \
|
||||||
|
- -e "s/=SIGN-PEER-PKG=/-unsigned/g" \
|
||||||
|
- "${DEBIAN}/control.d/flavour-signed-control.stub"
|
||||||
|
- fi
|
||||||
|
+ sed "${sed_common_patterns[@]}" \
|
||||||
|
+ -e "s/ARCH/${arch}/g" \
|
||||||
|
+ -e "s/=SIGN-ME-PKG=//g" \
|
||||||
|
+ -e "s/=SIGN-ME-TXT=//g" \
|
||||||
|
+ -e "s/=SIGN-PEER-PKG=//g" \
|
||||||
|
+ "${DEBIAN}/control.d/flavour-signed-control.stub"
|
||||||
|
|
||||||
|
sed "${sed_common_patterns[@]}" \
|
||||||
|
-e "s/ARCH/${arch}/g" \
|
||||||
120
helpers/DATA/linux-hwe-6.17/udeb/5-udebs.mk
Normal file
120
helpers/DATA/linux-hwe-6.17/udeb/5-udebs.mk
Normal file
|
|
@ -0,0 +1,120 @@
|
||||||
|
# Do udebs if not disabled in the arch-specific makefile
|
||||||
|
binary-udebs: binary-debs
|
||||||
|
@echo Debug: $@
|
||||||
|
ifeq ($(disable_d_i),)
|
||||||
|
@$(MAKE) --no-print-directory -f debian/rules DEBIAN=$(DEBIAN) \
|
||||||
|
do-binary-udebs
|
||||||
|
endif
|
||||||
|
|
||||||
|
# Hook into Ubuntu's architecture build process without modifying their files
|
||||||
|
binary-arch: binary-udebs
|
||||||
|
|
||||||
|
# Prefer DEB_SOURCE when available; fallback to src_pkg_name; otherwise "linux"
|
||||||
|
do-binary-udebs: linux_udeb_name=$(if $(DEB_SOURCE),$(DEB_SOURCE),$(if $(src_pkg_name),$(src_pkg_name),linux))
|
||||||
|
do-binary-udebs: debian/control
|
||||||
|
@echo Debug: $@
|
||||||
|
dh_testdir
|
||||||
|
dh_testroot
|
||||||
|
|
||||||
|
# unpack the kernels into a temporary directory
|
||||||
|
mkdir -p debian/d-i-${arch}
|
||||||
|
|
||||||
|
outdir="$${DPKG_BUILDPACKAGE_OUTPUT_DIR:-..}" && \
|
||||||
|
imagelist=$$(cat $(CURDIR)/$(DEBIAN)/d-i/kernel-versions | grep ^${arch} | gawk '{print $$3}') && \
|
||||||
|
for flavour in $$imagelist; do \
|
||||||
|
i=$(DEB_VERSION_UPSTREAM)-$(abinum)-$$flavour; \
|
||||||
|
found=0; \
|
||||||
|
for deb in \
|
||||||
|
"$$outdir"/linux-image-$$i\_*_${arch}.deb \
|
||||||
|
"$$outdir"/linux-image-unsigned-$$i\_*_${arch}.deb \
|
||||||
|
"$$outdir"/linux-modules-$$i\_*_${arch}.deb \
|
||||||
|
"$$outdir"/linux-modules-extra-$$i\_*_${arch}.deb; \
|
||||||
|
do \
|
||||||
|
if [ -f "$$deb" ]; then \
|
||||||
|
found=1; \
|
||||||
|
dpkg -x "$$deb" debian/d-i-${arch}; \
|
||||||
|
fi; \
|
||||||
|
done; \
|
||||||
|
if [ "$$found" = 0 ]; then \
|
||||||
|
echo "E: missing .deb for $$i in $$outdir (DPKG_BUILDPACKAGE_OUTPUT_DIR)." >&2; \
|
||||||
|
ls -1 "$$outdir"/linux-image-$$i\_*_${arch}.deb \
|
||||||
|
"$$outdir"/linux-image-unsigned-$$i\_*_${arch}.deb \
|
||||||
|
"$$outdir"/linux-modules-$$i\_*_${arch}.deb \
|
||||||
|
"$$outdir"/linux-modules-extra-$$i\_*_${arch}.deb 2>/dev/null >&2 || true; \
|
||||||
|
exit 1; \
|
||||||
|
fi; \
|
||||||
|
rm -rf debian/d-i-${arch}/DEBIAN; \
|
||||||
|
if [ ! -e debian/d-i-${arch}/lib/modules ] && [ -d debian/d-i-${arch}/usr/lib/modules ]; then \
|
||||||
|
mkdir -p debian/d-i-${arch}/lib; \
|
||||||
|
ln -s ../usr/lib/modules debian/d-i-${arch}/lib/modules; \
|
||||||
|
fi; \
|
||||||
|
if [ ! -d debian/d-i-${arch}/lib/modules/$$i ]; then \
|
||||||
|
echo "E: missing debian/d-i-${arch}/lib/modules/$$i" >&2; \
|
||||||
|
exit 1; \
|
||||||
|
fi; \
|
||||||
|
/sbin/depmod -b debian/d-i-${arch} -- $$i; \
|
||||||
|
if [ "$(filter true,$(do_dtbs))" ]; then \
|
||||||
|
if [ -d debian/d-i-${arch}/lib/firmware/$$i/device-tree ]; then \
|
||||||
|
echo ">> Trisquel: Extracting dtbs for $$i..."; \
|
||||||
|
mkdir -p $(CURDIR)/$(DEBIAN)/d-i/firmware/${arch}; \
|
||||||
|
( cd debian/d-i-${arch}/lib/firmware/$$i/ && find device-tree -print 2>/dev/null || true ) | \
|
||||||
|
while read dtb_file; do \
|
||||||
|
echo "$$dtb_file ?" >> $(CURDIR)/$(DEBIAN)/d-i/firmware/${arch}/kernel-image; \
|
||||||
|
done; \
|
||||||
|
fi; \
|
||||||
|
fi; \
|
||||||
|
done
|
||||||
|
|
||||||
|
# kernel-wedge will error if no modules unless this is touched
|
||||||
|
touch $(DEBIAN)/d-i/no-modules
|
||||||
|
|
||||||
|
touch $(CURDIR)/$(DEBIAN)/d-i/ignore-dups
|
||||||
|
export KW_DEFCONFIG_DIR=$(CURDIR)/$(DEBIAN)/d-i && \
|
||||||
|
export KW_CONFIG_DIR=$(CURDIR)/$(DEBIAN)/d-i && \
|
||||||
|
export SOURCEDIR=$(CURDIR)/debian/d-i-${arch} && \
|
||||||
|
kernel-wedge install-files $(DEB_VERSION_UPSTREAM)-$(abinum) && \
|
||||||
|
kernel-wedge check
|
||||||
|
|
||||||
|
# Build just the udebs
|
||||||
|
dilist=$$(dh_listpackages -a | grep "\-di$$") && \
|
||||||
|
[ -z "$$dilist" ] || \
|
||||||
|
for i in $$dilist; do \
|
||||||
|
dh_fixperms -p$$i; \
|
||||||
|
$(lockme) dh_gencontrol -p$$i; \
|
||||||
|
dh_builddeb -p$$i; \
|
||||||
|
done
|
||||||
|
|
||||||
|
# Generate the meta-udeb dependancy lists.
|
||||||
|
mkdir -p $(builddir)
|
||||||
|
touch $(builddir)/udeb-meta-packages.list
|
||||||
|
@gawk ' \
|
||||||
|
/^Package:/ { \
|
||||||
|
package=$$2; flavour=""; match_arch=0 } \
|
||||||
|
(/Package-Type: udeb/ && package !~ /^$(linux_udeb_name)-udebs-/) { \
|
||||||
|
match(package, "$(DEB_VERSION_UPSTREAM)-$(abinum)-(.*)-di", bits); \
|
||||||
|
flavour = bits[1]; \
|
||||||
|
} \
|
||||||
|
/^Architecture:/ { \
|
||||||
|
match_arch=0; \
|
||||||
|
for (i=2; i<=NF; i++) if ($$i=="$(arch)") match_arch=1; \
|
||||||
|
} \
|
||||||
|
(flavour != "" && match_arch) { \
|
||||||
|
udebs[flavour] = udebs[flavour] package ", "; \
|
||||||
|
flavour=""; match_arch=0; \
|
||||||
|
} \
|
||||||
|
END { \
|
||||||
|
for (flavour in udebs) { \
|
||||||
|
package="$(linux_udeb_name)-udebs-" flavour; \
|
||||||
|
file="debian/" package ".substvars"; \
|
||||||
|
print("udeb:Depends=" udebs[flavour]) > file; \
|
||||||
|
metas="$(builddir)/udeb-meta-packages.list"; \
|
||||||
|
print(package) >>metas \
|
||||||
|
} \
|
||||||
|
} \
|
||||||
|
' <$(CURDIR)/debian/control
|
||||||
|
@while read i; do \
|
||||||
|
if [ -n "$$i" ]; then \
|
||||||
|
$(lockme) dh_gencontrol -p$$i; \
|
||||||
|
dh_builddeb -p$$i; \
|
||||||
|
fi; \
|
||||||
|
done <$(builddir)/udeb-meta-packages.list
|
||||||
4
helpers/DATA/linux-hwe-6.17/udeb/d-i/firmware/README.txt
Normal file
4
helpers/DATA/linux-hwe-6.17/udeb/d-i/firmware/README.txt
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
#
|
||||||
|
# Place the names of udeb modules into this directory that require
|
||||||
|
# runtime firmware.
|
||||||
|
#
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
#
|
||||||
|
# Place the names of udeb modules into this directory that require
|
||||||
|
# runtime firmware.
|
||||||
|
#
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
#include <nic-modules>
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
#include <scsi-modules>
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
#
|
||||||
|
# Place the names of udeb modules into this directory that require
|
||||||
|
# runtime firmware.
|
||||||
|
#
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
#include <nic-modules>
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
#include <scsi-modules>
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
#
|
||||||
|
# Place the names of udeb modules into this directory that require
|
||||||
|
# runtime firmware.
|
||||||
|
#
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
#
|
||||||
|
# Place the names of udeb modules into this directory that require
|
||||||
|
# runtime firmware.
|
||||||
|
#
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
#include <nic-modules>
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
#include <scsi-modules>
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
#
|
||||||
|
# Place the names of udeb modules into this directory that require
|
||||||
|
# runtime firmware.
|
||||||
|
#
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
#include <nic-modules>
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
#include <scsi-modules>
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
#
|
||||||
|
# Place the names of udeb modules into this directory that require
|
||||||
|
# runtime firmware.
|
||||||
|
#
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
#include <nic-modules>
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
#include <scsi-modules>
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
#
|
||||||
|
# Place the names of udeb modules into this directory that require
|
||||||
|
# runtime firmware.
|
||||||
|
#
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
#include <nic-modules>
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
#include <scsi-modules>
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
|
||||||
16
helpers/DATA/linux-hwe-6.17/udeb/d-i/kernel-versions
Normal file
16
helpers/DATA/linux-hwe-6.17/udeb/d-i/kernel-versions
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
# arch version flavour installedname suffix bdep
|
||||||
|
amd64 - generic - - -
|
||||||
|
|
||||||
|
i386 - generic - - -
|
||||||
|
|
||||||
|
armhf - generic - - -
|
||||||
|
#armhf - generic-lpae - - -
|
||||||
|
|
||||||
|
arm64 - generic - - -
|
||||||
|
|
||||||
|
ppc64el - generic - - -
|
||||||
|
|
||||||
|
s390x - generic - - -
|
||||||
|
|
||||||
|
# Ports
|
||||||
|
# arch version flavour installedname suffix bdep
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
#include <block-modules>
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
#include <crc-modules>
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
#include <crypto-modules>
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
#include <fat-modules>
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
#include <fb-modules>
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
#include <floppy-modules>
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
#include <fs-core-modules>
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
#include <fs-secondary-modules>
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
#include <isofs-modules>
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
#include <kernel-image>
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
#include <md-modules>
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
#include <message-modules>
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
#include <mouse-modules>
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
#include <multipath-modules>
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
#include <nic-modules>
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
#include <nic-shared-modules>
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
#include <nic-wireless-modules>
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
#include <parport-modules>
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
#include <scsi-core-modules>
|
||||||
|
|
||||||
|
# Needed by hv_storvsc in hyperv-modules as well as scsi-modules
|
||||||
|
scsi_transport_fc
|
||||||
|
|
@ -0,0 +1,2 @@
|
||||||
|
#include <scsi-modules>
|
||||||
|
ipr ?
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
#include <serial-modules>
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
#include <storage-core-modules>
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
#include <usb-storage-modules>
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
#include <virtio-modules>
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
#include <vlan-modules>
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
#include <block-modules>
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
#include <crc-modules>
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
#include <crypto-modules>
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
#include <fat-modules>
|
||||||
|
|
@ -0,0 +1,5 @@
|
||||||
|
#include <fb-modules>
|
||||||
|
|
||||||
|
vesafb ?
|
||||||
|
vga16fb
|
||||||
|
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
#include <firewire-core-modules>
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
#include <floppy-modules>
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
#include <fs-core-modules>
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
#include <fs-secondary-modules>
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
#include <i2c-modules>
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
#include <input-modules>
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
#include <ipmi-modules>
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
#include <isofs-modules>
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
#include <kernel-image>
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
#include <md-modules>
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
#include <message-modules>
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
#include <mouse-modules>
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
#include <mtd-core-modules>
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
#include <multipath-modules>
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
#include <nfs-modules>
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
#include <nic-modules>
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
#include <nic-pcmcia-modules>
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
#include <nic-shared-modules>
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
#include <nic-usb-modules>
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
#include <nic-wireless-modules>
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
#include <parport-modules>
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
#include <pata-modules>
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
#include <pcmcia-modules>
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
#include <pcmcia-storage-modules>
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
#include <plip-modules>
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
#include <ppp-modules>
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
#include <sata-modules>
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
#include <scsi-core-modules>
|
||||||
|
|
||||||
|
# Needed by hv_storvsc in hyperv-modules as well as scsi-modules
|
||||||
|
scsi_transport_fc
|
||||||
|
|
@ -0,0 +1,2 @@
|
||||||
|
#include <scsi-modules>
|
||||||
|
ipr ?
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
#include <serial-modules>
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
#include <speakup-modules>
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
#include <storage-core-modules>
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
#include <usb-modules>
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
#include <usb-storage-modules>
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
#include <virtio-modules>
|
||||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue