Giter Club home page Giter Club logo

Comments (11)

msfjarvis avatar msfjarvis commented on July 26, 2024 1

Well,

Short answer

image

Longer answer: Building the kernel is a profiling task, and what goes on during the actual build is inconsequential in the grand scheme of things: building a Clang compiler. I can't answer for your psychological requirements, but to keep track of what's happening in the kernel build you can simply use htop to monitor make calls. What you're looking for is an extremely niche requirement that's not useful to other tc-build users so I'd recommend simply carrying a local patch for make V=1 if its important to you. I'll look into the formatting issues.

from tc-build.

dileks avatar dileks commented on July 26, 2024

A tc-build option is much appreciated - it's up to the user to use/set it or not.
I do not like carrying local patches if not necessarily needed.

P.S.: I was thinking of... when a LLVM or Linux build breaks somewhere.

from tc-build.

msfjarvis avatar msfjarvis commented on July 26, 2024

A tc-build option is much appreciated - it's up to the user to use/set it or not.
I do not like carrying local patches if not necessarily needed.

Adding options upstream for every requirement from every user is not tenable, we're not cURL and can't be shipping 200+ command line flags. A line has to be drawn somewhere.

P.S.: I was thinking of... when a LLVM or Linux build breaks somewhere.

Then a manual rebuild of the kernel to fully triage the problem for filing an issue will be required regardless, so that doesn't really convince me of its utility. When LLVM build breaks you'll be able to see it because those logs are not filtered out.

from tc-build.

nathanchance avatar nathanchance commented on July 26, 2024

There comes a point where options become too niche or not useful for the general population. I believe that this request is at that point. Others are free to disagree with me and push a patch for review though.

make -s still shows warnings and errors, so does just regular cmake + ninja. I do not see any real tangible benefits to a --debug, especially given I have used the script for a LOT of stuff and never felt I was missing that option.

from tc-build.

dileks avatar dileks commented on July 26, 2024

What a pity... I can carry a make V=1 patch when not favoured.

Formatting/Renaming of == Building kernels == would be nice.

P.S.: Why plural kernels - AFAICS it is a single Linux-kernel build?

from tc-build.

msfjarvis avatar msfjarvis commented on July 26, 2024

P.S.: Why plural kernels - AFAICS it is a single Linux-kernel build?

Isn't it one kernel per selected architecture?

from tc-build.

dileks avatar dileks commented on July 26, 2024

P.S.: Why plural kernels - AFAICS it is a single Linux-kernel build?

Isn't it one kernel per selected architecture?

Good point. I have a single x86 target, so I dunno.

from tc-build.

dileks avatar dileks commented on July 26, 2024

That should address all my comments...

diff --git a/build-llvm.py b/build-llvm.py
index fa3dcac09a22..4794d40db8c2 100755
--- a/build-llvm.py
+++ b/build-llvm.py
@@ -981,7 +981,7 @@ def generate_pgo_profiles(args, dirs):
     :return:
     """
 
-    utils.print_header("Building PGO profiles")
+    utils.print_header("Generating PGO profiles")
 
     # Run kernel/build.sh
     build_sh = [
diff --git a/kernel/build.sh b/kernel/build.sh
index f4cf62a6f4d5..5a06b0efa090 100755
--- a/kernel/build.sh
+++ b/kernel/build.sh
@@ -6,7 +6,7 @@ TC_BLD=$(cd "$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")"/.. && pwd)
 
 function header() {
     BORDER="====$(for _ in $(seq ${#1}); do printf '='; done)===="
-    printf '\033[1m\n%s\n%s\n%s\n\n\033[0m' "${BORDER}" "==  ${1}  ==" "${BORDER}"
+    printf '\033[1m\n%s\n%s\n%s\n\n\033[0m' "${BORDER}" "== ${1} ==" "${BORDER}"
 }
 
 # Parse parameters
@@ -126,7 +126,7 @@ done
 # shellcheck disable=SC2191
 MAKE=(make -skj"$(nproc)" O=out)
 
-header "Building kernels"
+header "Building Linux"
 
 set -x

As reported in [1] I only see a single out directory for the Linux build here in the PGO profiles stage, so I used singular in my diff:

[ disc-space ]
540     /home/dileks/src/linux-kernel/git/out

[1] #109 (comment)

from tc-build.

dileks avatar dileks commented on July 26, 2024

For make verbosity in the Linux building stage:

[ kernel/build.sh ]

125 # SC2191: The = here is literal. To assign by index, use ( [index]=value ) with no spaces. To keep as literal, quote it.
126 # shellcheck disable=SC2191
-127 MAKE=(make -skj"$(nproc)" O=out)
+127 MAKE=(make V=1 -skj"$(nproc)" O=out)

from tc-build.

dileks avatar dileks commented on July 26, 2024

Friendly ping.

from tc-build.

msfjarvis avatar msfjarvis commented on July 26, 2024

#115 has been filed for the formatting fixes, there is not going to be a debug option in the scripts so I'm closing this issue as resolved.

from tc-build.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.