Make multicore support on headers making and don't stop in case of new features (#2422)
This commit is contained in:
parent
2094ecd21b
commit
788e628ef0
@ -33,7 +33,7 @@ index 8c4bc5a2c..30bc0cffb 100644
|
||||
+
|
||||
+ # Create postinstall script for headers
|
||||
+ if [[ "$1" == *headers* ]]; then
|
||||
+ echo "cd /usr/src/linux-headers-$version; echo \"Compiling headers - please wait ...\"; find -type f -exec touch {} +;make -s scripts >/dev/null; make -s M=scripts/mod/ >/dev/null" >> $pdir/DEBIAN/postinst
|
||||
+ echo "cd /usr/src/linux-headers-$version; echo \"Compiling headers - please wait ...\"; find -type f -exec touch {} +;yes "" | make oldconfig >/dev/null;make -j\$(grep -c 'processor' /proc/cpuinfo) -s scripts >/dev/null; make -s M=scripts/mod/ >/dev/null" >> $pdir/DEBIAN/postinst
|
||||
+ echo "exit 0" >> $pdir/DEBIAN/postinst
|
||||
+ chmod 775 $pdir/DEBIAN/postinst
|
||||
+ fi
|
||||
|
||||
@ -23,7 +23,7 @@ index 6c3b038e..f4166fbe 100755
|
||||
+
|
||||
+ # Create postinstall script for headers
|
||||
+ if [[ "$1" == *headers* ]]; then
|
||||
+ echo "cd /usr/src/linux-headers-$version; echo \"Compiling headers - please wait ...\"; find -type f -exec touch {} +;make -s scripts >/dev/null; make -s M=scripts/mod/ >/dev/null" >> $pdir/DEBIAN/postinst
|
||||
+ echo "cd /usr/src/linux-headers-$version; echo \"Compiling headers - please wait ...\"; find -type f -exec touch {} +;yes "" | make oldconfig >/dev/null;make -j\$(grep -c 'processor' /proc/cpuinfo) -s scripts >/dev/null; make -s M=scripts/mod/ >/dev/null" >> $pdir/DEBIAN/postinst
|
||||
+ echo "exit 0" >> $pdir/DEBIAN/postinst
|
||||
+ chmod 775 $pdir/DEBIAN/postinst
|
||||
+ fi
|
||||
|
||||
@ -23,7 +23,7 @@ index 6c3b038e..f4166fbe 100755
|
||||
+
|
||||
+ # Create postinstall script for headers
|
||||
+ if [[ "$1" == *headers* ]]; then
|
||||
+ echo "cd /usr/src/linux-headers-$version; echo \"Compiling headers - please wait ...\"; find -type f -exec touch {} +;make -s scripts >/dev/null; make -s M=scripts/mod/ >/dev/null" >> $pdir/DEBIAN/postinst
|
||||
+ echo "cd /usr/src/linux-headers-$version; echo \"Compiling headers - please wait ...\"; find -type f -exec touch {} +;yes "" | make oldconfig >/dev/null;make -j\$(grep -c 'processor' /proc/cpuinfo) -s scripts >/dev/null; make -s M=scripts/mod/ >/dev/null" >> $pdir/DEBIAN/postinst
|
||||
+ echo "exit 0" >> $pdir/DEBIAN/postinst
|
||||
+ chmod 775 $pdir/DEBIAN/postinst
|
||||
+ fi
|
||||
|
||||
@ -23,7 +23,7 @@ index 6c3b038e..977a0624 100755
|
||||
+
|
||||
+ # Create postinstall script for headers
|
||||
+ if [[ "$1" == *headers* ]]; then
|
||||
+ echo "cd /usr/src/linux-headers-$version; echo \"Compiling headers - please wait ...\"; find -type f -exec touch {} +;make -s scripts >/dev/null; make -s M=scripts/mod/ >/dev/null" >> $pdir/DEBIAN/postinst
|
||||
+ echo "cd /usr/src/linux-headers-$version; echo \"Compiling headers - please wait ...\"; find -type f -exec touch {} +;yes "" | make oldconfig >/dev/null;make -j\$(grep -c 'processor' /proc/cpuinfo) -s scripts >/dev/null; make -s M=scripts/mod/ >/dev/null" >> $pdir/DEBIAN/postinst
|
||||
+ echo "exit 0" >> $pdir/DEBIAN/postinst
|
||||
+ chmod 775 $pdir/DEBIAN/postinst
|
||||
+ fi
|
||||
|
||||
@ -23,7 +23,7 @@ index 0a2a7372..87edac65 100755
|
||||
+
|
||||
+ # Create postinstall script for headers
|
||||
+ if [[ "$1" == *headers* ]]; then
|
||||
+ echo "cd /usr/src/linux-headers-$version; echo \"Compiling headers - please wait ...\"; find -type f -exec touch {} +;make -s scripts >/dev/null; make -s M=scripts/mod/ >/dev/null" >> $pdir/DEBIAN/postinst
|
||||
+ echo "cd /usr/src/linux-headers-$version; echo \"Compiling headers - please wait ...\"; find -type f -exec touch {} +;yes "" | make oldconfig >/dev/null;make -j\$(grep -c 'processor' /proc/cpuinfo) -s scripts >/dev/null; make -s M=scripts/mod/ >/dev/null" >> $pdir/DEBIAN/postinst
|
||||
+ echo "exit 0" >> $pdir/DEBIAN/postinst
|
||||
+ chmod 775 $pdir/DEBIAN/postinst
|
||||
+ fi
|
||||
|
||||
@ -15,7 +15,7 @@ diff --git a/scripts/package/builddeb b/scripts/package/builddeb
|
||||
index 1b11f8993..c21d931ea 100755
|
||||
--- a/scripts/package/builddeb
|
||||
+++ b/scripts/package/builddeb
|
||||
@@ -26,31 +26,61 @@
|
||||
@@ -26,31 +26,62 @@
|
||||
|
||||
create_package() {
|
||||
local pname="$1" pdir="$2"
|
||||
@ -67,6 +67,7 @@ index 1b11f8993..c21d931ea 100755
|
||||
+cd /usr/src/linux-headers-$version
|
||||
+echo "Compiling headers - please wait ..."
|
||||
+find -type f -exec touch {} +
|
||||
+yes "" | make oldconfig >/dev/null
|
||||
+make -j\$(grep -c 'processor' /proc/cpuinfo) -s scripts >/dev/null
|
||||
+make -j\$(grep -c 'processor' /proc/cpuinfo) -s M=scripts/mod/ >/dev/null
|
||||
+exit 0
|
||||
|
||||
@ -26,7 +26,7 @@ diff --git a/scripts/package/builddeb b/scripts/package/builddeb
|
||||
index c4c580f547ef..2be8a687f878 100755
|
||||
--- a/scripts/package/builddeb
|
||||
+++ b/scripts/package/builddeb
|
||||
@@ -41,6 +41,43 @@ create_package() {
|
||||
@@ -41,6 +41,44 @@ create_package() {
|
||||
# in case we are in a restrictive umask environment like 0077
|
||||
chmod -R a+rX "$pdir"
|
||||
|
||||
@ -54,6 +54,7 @@ index c4c580f547ef..2be8a687f878 100755
|
||||
+cd /usr/src/linux-headers-$version
|
||||
+echo "Compiling headers - please wait ..."
|
||||
+find -type f -exec touch {} +
|
||||
+yes "" | make oldconfig >/dev/null
|
||||
+make -j\$(grep -c 'processor' /proc/cpuinfo) -s scripts >/dev/null
|
||||
+make -j\$(grep -c 'processor' /proc/cpuinfo) -s M=scripts/mod/ >/dev/null
|
||||
+exit 0
|
||||
|
||||
@ -15,7 +15,7 @@ diff --git a/scripts/package/builddeb b/scripts/package/builddeb
|
||||
index 6df3c9f..d33e1f3 100755
|
||||
--- a/scripts/package/builddeb
|
||||
+++ b/scripts/package/builddeb
|
||||
@@ -41,9 +41,46 @@ create_package() {
|
||||
@@ -41,9 +41,47 @@ create_package() {
|
||||
# in case we are in a restrictive umask environment like 0077
|
||||
chmod -R a+rX "$pdir"
|
||||
|
||||
@ -42,6 +42,7 @@ index 6df3c9f..d33e1f3 100755
|
||||
+cat >> $pdir/DEBIAN/postinst << EOT
|
||||
+cd /usr/src/linux-headers-$version
|
||||
+echo "Compiling headers - please wait ..."
|
||||
+yes "" | make oldconfig >/dev/null
|
||||
+find -type f -exec touch {} +
|
||||
+make -j\$(grep -c 'processor' /proc/cpuinfo) -s scripts >/dev/null
|
||||
+make -j\$(grep -c 'processor' /proc/cpuinfo) -s M=scripts/mod/ >/dev/null
|
||||
|
||||
@ -15,7 +15,7 @@ diff --git a/scripts/package/builddeb b/scripts/package/builddeb
|
||||
index 6df3c9f..d33e1f3 100755
|
||||
--- a/scripts/package/builddeb
|
||||
+++ b/scripts/package/builddeb
|
||||
@@ -41,9 +41,46 @@ create_package() {
|
||||
@@ -41,9 +41,47 @@ create_package() {
|
||||
# in case we are in a restrictive umask environment like 0077
|
||||
chmod -R a+rX "$pdir"
|
||||
|
||||
@ -43,6 +43,7 @@ index 6df3c9f..d33e1f3 100755
|
||||
+cd /usr/src/linux-headers-$version
|
||||
+echo "Compiling headers - please wait ..."
|
||||
+find -type f -exec touch {} +
|
||||
+yes "" | make oldconfig >/dev/null
|
||||
+make -j\$(grep -c 'processor' /proc/cpuinfo) -s scripts >/dev/null
|
||||
+make -j\$(grep -c 'processor' /proc/cpuinfo) -s M=scripts/mod/ >/dev/null
|
||||
+exit 0
|
||||
|
||||
Loading…
Reference in New Issue
Block a user