Comments (11)
Well,
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.
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.
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.
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.
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.
P.S.: Why plural
kernels
- AFAICS it is asingle
Linux-kernel build?
Isn't it one kernel per selected architecture?
from tc-build.
P.S.: Why plural
kernels
- AFAICS it is asingle
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.
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.
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.
Friendly ping.
from tc-build.
#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)
- Kernel building script not working for ARM64 HOT 2
- question: how to find out why a linking error happens? HOT 2
- [BOLT] Minimum hardware requirements? HOT 10
- download llvm from tarball's rather than shallow clone? HOT 1
- Ability to specify llvm sha HOT 1
- Building kernels: Show Linux version (when passing -L option) HOT 3
- Use sccache to speed up builds HOT 5
- Bump binutils to version 2.39
- Good revision broken on arm64 HOT 4
- Display total build-time HOT 6
- build-binutils.py: Do not build texinfo docs HOT 3
- Print total disc-usage in MiB HOT 4
- Alpine/Musl segfault when building BOLT in stage 3 HOT 7
- ld.gold and ld.bfd HOT 1
- ld.bfd ld.gold missing and build_binutils problem HOT 22
- build-binutils.py: don't assume -mtune == -march HOT 2
- Could not find LLVM_VERSION_MAJOR in CMakeLists.txt HOT 3
- objtool warning HOT 1
- Cross toolchain question HOT 6
- BOLT's stage system requirements HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tc-build.