summaryrefslogtreecommitdiff
path: root/pcr/crosstool-ng-git/ctng-libre.patch
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-04-04 11:13:26 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-04-04 11:13:26 -0300
commitb3d2f2a260ef2388c96371c3e0df5b45f4914997 (patch)
treec3b7b4f0c24e432d8437013aef44a457ccc6cb40 /pcr/crosstool-ng-git/ctng-libre.patch
parent3be0c9fb1845c3a3987d26a8ff6587efef3f1095 (diff)
crosstool-ng-git-1.22.0.r21.g2d3c70d-1.parabola2: fix compiling process for the toolchain when attempting to patch the kernel -> https://lists.parabola.nu/pipermail/dev/2016-March/003869.html
Diffstat (limited to 'pcr/crosstool-ng-git/ctng-libre.patch')
-rw-r--r--pcr/crosstool-ng-git/ctng-libre.patch30
1 files changed, 26 insertions, 4 deletions
diff --git a/pcr/crosstool-ng-git/ctng-libre.patch b/pcr/crosstool-ng-git/ctng-libre.patch
index 4c9c85435..f0e92ecad 100644
--- a/pcr/crosstool-ng-git/ctng-libre.patch
+++ b/pcr/crosstool-ng-git/ctng-libre.patch
@@ -1,7 +1,8 @@
-diff -Nur crosstool-ng-1.21.0.orig/scripts/build/kernel/linux.sh crosstool-ng-1.21.0/scripts/build/kernel/linux.sh
---- crosstool-ng-1.21.0.orig/scripts/build/kernel/linux.sh 2015-05-25 16:47:17.000000000 -0300
-+++ crosstool-ng-1.21.0/scripts/build/kernel/linux.sh 2015-07-07 04:00:33.900903515 -0300
-@@ -45,13 +45,8 @@
+diff --git a/scripts/build/kernel/linux.sh b/scripts/build/kernel/linux.sh
+index 49fe613..957f369 100644
+--- a/scripts/build/kernel/linux.sh
++++ b/scripts/build/kernel/linux.sh
+@@ -44,13 +44,8 @@ do_kernel_get() {
k_ver="${CT_KERNEL_VERSION}"
;;
esac
@@ -17,3 +18,24 @@ diff -Nur crosstool-ng-1.21.0.orig/scripts/build/kernel/linux.sh crosstool-ng-1.
"${korg_base}" \
"${korg_base}/longterm/v${k_ver}" \
"${korg_base}/longterm"
+@@ -66,13 +61,18 @@ do_kernel_extract() {
+
+ # If using a custom directory location, nothing to do
+ if [ "${CT_KERNEL_LINUX_CUSTOM}" = "y" \
+- -a -d "${CT_SRC_DIR}/linux-${CT_KERNEL_VERSION}" ]; then
++ -a -d "${CT_SRC_DIR}/linux-libre-${CT_KERNEL_VERSION}-gnu" ]; then
+ return 0
+ fi
+
+ # Otherwise, we're using either a mainstream tarball, or a custom
+ # tarball; in either case, we need to extract
+- CT_Extract "linux-${CT_KERNEL_VERSION}"
++ CT_Extract "linux-libre-${CT_KERNEL_VERSION}-gnu"
++
++ # The following IF statement is a hack, it renames the source directory so that CT_Patch will work on the libre kernel.
++ if [ -d "${CT_SRC_DIR}/linux-libre-${CT_KERNEL_VERSION}-gnu" ]; then
++ mv "${CT_SRC_DIR}/linux-libre-${CT_KERNEL_VERSION}-gnu" "${CT_SRC_DIR}/linux-${CT_KERNEL_VERSION}"
++ fi
+
+ # If using a custom tarball, no need to patch
+ if [ "${CT_KERNEL_LINUX_CUSTOM}" = "y" ]; then