On Sat, Mar 13, 2021 at 9:03 PM Masahiro Yamada wrote:
>
> On Sat, Mar 13, 2021 at 5:57 PM Max Filippov wrote:
> >
> > On Fri, Mar 12, 2021 at 7:14 AM Masahiro Yamada
> > wrote:
> > >
> > > Move the definition of CONFIG_CPU_*_ENDIAN to Kconfi
On Sat, Mar 13, 2021 at 5:57 PM Max Filippov wrote:
>
> On Fri, Mar 12, 2021 at 7:14 AM Masahiro Yamada wrote:
> >
> > Move the definition of CONFIG_CPU_*_ENDIAN to Kconfig, the best place
> > for CONFIG options.
> >
> > I slightly simplified the test code. Y
Bernhard Rosenkränzer (1):
kbuild: Fix ld-version.sh script if LLD was built with LLD_VENDOR
Jiri Slaby (2):
kbuild: dummy-tools: fix inverted tests for gcc
kbuild: dummy-tools: support MPROFILE_KERNEL checks for ppc
Masahiro Yamada (7
BFD linker case.
Add LC_ALL=C to override the user's locale.
BTW, setting LC_MESSAGES=C (or LANG=C) is not enough because it is
ineffective if LC_ALL is set on the user's environment.
Link: https://bugzilla.kernel.org/show_bug.cgi?id=212105
Reported-by: Marco Scardovi
Signed-off-by: Masah
On Thu, Mar 4, 2021 at 9:11 AM Nathan Chancellor wrote:
>
> On Thu, Mar 04, 2021 at 03:33:31AM +0900, Masahiro Yamada wrote:
> > The kernel build uses various tools, many of which are provided by the
> > same software suite, for example, LLVM and Binutils.
> >
>
On Thu, Mar 4, 2021 at 5:44 AM 'Nick Desaulniers' via Clang Built
Linux wrote:
>
> On Wed, Mar 3, 2021 at 10:34 AM Masahiro Yamada wrote:
> >
> > The test code in scripts/test_dwarf5_support.sh is somewhat difficult
> > to understand, but after all, we want to
1 ""
# 1 ""
# 1 ""
1
$ echo __XTENSA_EB__ | xtensa-linux-gcc -E -P -
1
Signed-off-by: Masahiro Yamada
---
If I understood correctly, xtensa compilers can support either
big-endian or little-endian. We cannot change it via a command option.
Actually, it does not un
to know
why we do it this way.
--
Best Regards
Masahiro Yamada
m.
Then, I checked out 14b26b127c098bba
and rebuilt.
I did not see such an error.
I also checked the Kbuild code,
and it looks good too.
Please let me know if you find steps
to reproduce it.
--
Best Regards
Masahiro Yamada
On Thu, Mar 11, 2021 at 7:18 PM Miguel Ojeda
wrote:
>
> On Thu, Mar 11, 2021 at 10:47 AM Masahiro Yamada wrote:
> >
> > +# When you raise the minimum version, please update
> > +# Documentation/process/changes.rst as well.
> > +min_gcc_version=4.9.
.
$ scripts/min-tool-version.sh gcc
4.9.0
$ scripts/min-tool-version.sh llvm
10.0.1
$ scripts/min-tool-version.sh binutils
2.23.0
$ scripts/min-tool-version.sh foo
foo: unknown tool
Signed-off-by: Masahiro Yamada
Reviewed-by: Nathan Chancellor
---
scripts/cc-version.sh
This is a remnant of commit 78046fabe6e7 ("kbuild: determine the output
format of DTC by the target suffix").
The parameter "yaml" is meaningless because cmd_dtc no loner takes $(2).
Reported-by: Rob Herring
Signed-off-by: Masahiro Yamada
---
scripts/Makefile.lib | 2 +
KEEP more tables, and add the function/data section wildcard to more
> > section selections.
> >
> > This is a little ad-hoc at the moment, but kernel code should be moved
> > to consistently use .text..x (note: double dots) for explicit sections
> > and all
On Wed, Mar 10, 2021 at 11:47 PM Viresh Kumar wrote:
>
> On 10-03-21, 20:24, Masahiro Yamada wrote:
> > On Wed, Mar 10, 2021 at 2:35 PM Viresh Kumar
> > wrote:
> > > diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib
> > > index bc045a54a34e..59e
On Wed, Mar 10, 2021 at 11:48 PM Viresh Kumar wrote:
>
> On 10-03-21, 20:29, Masahiro Yamada wrote:
> > BTW, is the attached patch good for DTC?
> >
> > I do not know when '-O dtbo' is useful,
> > unless I am missing something.
>
> It is useful if we are sendin
ld be able to enable Clang LTO.
Signed-off-by: Masahiro Yamada
Reviewed-by: Nathan Chancellor
---
arch/Kconfig | 1 -
1 file changed, 1 deletion(-)
diff --git a/arch/Kconfig b/arch/Kconfig
index 2e7139b39e8f..ecfd3520b676 100644
--- a/arch/Kconfig
+++ b/arch/Kconfig
@@ -632,7 +632,6
approach for building GCC plugins in the
> external module directory?
I am not sure if building GCC plugins in the external module directory
is the right approach.
--
Best Regards
Masahiro Yamada
On Wed, Mar 10, 2021 at 1:54 PM Jiri Slaby wrote:
>
> On 09. 03. 21, 17:25, Masahiro Yamada wrote:
> > Commit aec6c60a01d3 ("kbuild: check the minimum compiler version in
> > Kconfig") changed how the script detects the compiler version.
> >
> > Get 'make
On Wed, Mar 10, 2021 at 8:24 PM Masahiro Yamada wrote:
>
> On Wed, Mar 10, 2021 at 2:35 PM Viresh Kumar wrote:
> >
> > Since the overlays dtb files are now named as .dtbo, there is a lot of
> > interest in similarly naming the overlay source dts files as .dtso.
l if_changed_rule,dtc,yaml)
>
> +$(obj)/%.dt.yaml: $(src)/%.dtso $(DTC) $(DT_TMP_SCHEMA) FORCE
> + $(call if_changed_rule,dtc,yaml)
> +
> dtc-tmp = $(subst $(comma),_,$(dot-target).dts.tmp)
>
> # Bzip2
> --
> 2.25.0.rc1.19.g042ed3e048af
>
--
Best Regards
Masahiro Yamada
ng schema checks"),
and now does ".dtbo" as well.
Makefile does not need to duplicate the same logic. Let's leave it
to dtc.
Signed-off-by: Masahiro Yamada
---
scripts/Makefile.lib | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/Makefile.lib b/scripts/Makefi
On Wed, Mar 10, 2021 at 4:55 AM Masahiro Yamada wrote:
>
> On Wed, Mar 3, 2021 at 6:07 AM Nathan Chancellor wrote:
> >
> > When building with LLVM_IAS=1, there is no point to specifying
> > '--prefix=' because that flag is only used to find the cross assembler,
> &
elfedit))
> CLANG_FLAGS+= --prefix=$(GCC_TOOLCHAIN_DIR)$(notdir $(CROSS_COMPILE))
> -endif
> -ifneq ($(LLVM_IAS),1)
> CLANG_FLAGS+= -no-integrated-as
> endif
> +endif
> CLANG_FLAGS+= -Werror=unknown-warning-option
> KBUILD_CFLAGS += $(CLANG_FLAGS)
> KBUILD_AFLAGS += $(CLANG_FLAGS)
> --
> 2.31.0.rc0.75.gec125d1bc1
>
--
Best Regards
Masahiro Yamada
On Wed, Mar 10, 2021 at 12:10 AM Michal Suchánek wrote:
>
> On Tue, Mar 09, 2021 at 11:53:21PM +0900, Masahiro Yamada wrote:
> > On Tue, Mar 9, 2021 at 10:35 PM Michal Suchánek wrote:
> > >
> > > On Tue, Mar 09, 2021 at 10:22:36PM +0900, Masahiro Yamada wrote:
>
On Wed, Mar 10, 2021 at 2:36 AM Nicolas Pitre wrote:
>
> On Wed, 10 Mar 2021, Masahiro Yamada wrote:
>
> > Commit a555bdd0c58c ("Kbuild: enable TRIM_UNUSED_KSYMS again, with some
> > guarding") re-enabled this feature, but Linus is still unhappy about
> &g
N_HW_TAGS to be selected together with HAS_LTO_CLANG.
> >
> > Reported-by: Alistair Delva
> > Signed-off-by: Sami Tolvanen
>
> Reviewed-by: Kees Cook
>
> --
> Kees Cook
Applied to linux-kbuild/fixes. Thanks.
--
Best Regards
Masahiro Yamada
On Thu, Mar 4, 2021 at 12:34 PM Masahiro Yamada wrote:
>
> On Thu, Mar 4, 2021 at 9:18 AM Bernhard Rosenkränzer wrote:
> >
> > If LLD was built with -DLLD_VENDOR="xyz", ld.lld --version output
> > will prefix LLD_VENDOR. Since LLD_VENDOR can contain sp
> Signed-off-by: Rob Herring
> Co-developed-by: Viresh Kumar
> Signed-off-by: Viresh Kumar
Acked-by: Masahiro Yamada
> ---
> scripts/Makefile.lib | 26 --
> 1 file changed, 24 insertions(+), 2 deletions(-)
>
> diff --git a/scripts/Makefile.lib b
ig")
Signed-off-by: Masahiro Yamada
---
Perhaps, Jiri may have already noticed this issue, and have a similar patch.
I just checked ML, but I did not find a patch to fix this.
scripts/dummy-tools/gcc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/scripts/dummy-tools/gcc b/scr
ontain "_mcount"
> 2) build with -mprofile-kernel with a function marked as "notrace"
>should not produce "_mcount"
>
> So support this in dummy-tools' gcc, so that we have MPROFILE_KERNEL
> always true.
>
> Signed-off-by: Jiri Sl
On Sat, Mar 6, 2021 at 3:11 PM Masahiro Yamada wrote:
>
> I think multi-obj-* is clearer, and more consisten with real-obj-*.
>
> Rename as follows:
>
> multi-used-y -> multi-obj-y
> multi-used-m -> multi-obj-m
> multi-used-> multi-obj-ym
>
>
On Tue, Mar 2, 2021 at 11:26 PM Masahiro Yamada wrote:
>
> Since commit 7ecaf069da52 ("kbuild: move headers_check rule to
> usr/include/Makefile"), the headers_check target is no-op.
>
> This stub target is remaining here in case some scripts still invoke
> 'm
s the list of necessary sections to vmlinus.lds.S
and modules.lds.S. The other sections fall into /DISCARD/.
Signed-off-by: Masahiro Yamada
---
Changes in v2:
- Fix build errors
- Add LC_ALL=C so the script will not be affected by the user's locale
Makefile
8233b6aa r __kstrtabns_LZ4_decompress_fast_continue
8233b6aa r __kstrtabns_LZ4_decompress_fast_usingDict
...
I confirmed no size change in vmlinux.
Signed-off-by: Masahiro Yamada
---
(no changes since v1)
include/asm-generic/export.h | 2 +-
include/asm-generic/vmlinux.l
Now CONFIG_TRIM_UNUSED_KSYMS is revived, but Linus is still unhappy
about the build speed.
I re-implemented this feature, and the build time cost is now
almost unnoticeable level.
(no changes since v1)
Masahiro Yamada (4):
export.h: make __ksymtab_strings per-symbol section
kbuild
, vmlinux.lds.S could be moved to a
different directory, but I am just doing less-invasive changes for now.
Signed-off-by: Masahiro Yamada
---
(no changes since v1)
Makefile| 8 ++--
arch/alpha/kernel/Makefile | 3 ++-
arch/arc/kernel/Makefile| 3 ++-
arch/arm
Now that the build time cost of this option is unnoticeable level,
revert the following two:
a555bdd0c58c ("Kbuild: enable TRIM_UNUSED_KSYMS again, with some guarding")
5cf0fd591f2e ("Kbuild: disable TRIM_UNUSED_KSYMS option")
Signed-off-by: Masahiro Yamada
---
Changes
On Tue, Mar 9, 2021 at 10:35 PM Michal Suchánek wrote:
>
> On Tue, Mar 09, 2021 at 10:22:36PM +0900, Masahiro Yamada wrote:
> > On Tue, Mar 9, 2021 at 9:35 PM Michal Suchanek wrote:
> > >
> > > When using dummy-tools STACKPROTECTOR_PER_TASK is unconditionall
On Tue, Mar 9, 2021 at 9:35 PM Michal Suchanek wrote:
>
> When using dummy-tools STACKPROTECTOR_PER_TASK is unconditionally
> selected. This defeats the purpose of the all-enabled tool.
>
> Description copied from arm
>
> Cc: Masahiro Yamada
> Signed-off-by: Michal Sucha
On Fri, Feb 26, 2021 at 4:24 AM Nicolas Pitre wrote:
>
> On Fri, 26 Feb 2021, Masahiro Yamada wrote:
>
> > On Fri, Feb 26, 2021 at 2:20 AM Nicolas Pitre wrote:
> > >
> > > On Fri, 26 Feb 2021, Masahiro Yamada wrote:
> > >
> > > >
>
On Tue, Mar 9, 2021 at 5:49 AM Helge Deller wrote:
>
> On 3/1/21 3:58 PM, Masahiro Yamada wrote:
> > Many architectures duplicate similar shell scripts.
> >
> > This commit converts parisc to use scripts/syscalltbl.sh. This also
> > unifies syscall_tabl
On Sun, Feb 28, 2021 at 3:10 PM Masahiro Yamada wrote:
>
> 'make image_name' needs include/config/auto.conf to show the correct
> output because KBUILD_IMAGE depends on CONFIG options, but should not
> attempt to resync the configuration.
>
> Signed-off-by: Masahiro Yamada
On Thu, Mar 4, 2021 at 8:07 AM Fangrui Song wrote:
>
>
> On 2021-03-03, Masahiro Yamada wrote:
> >Hi.
> >
> >On Wed, Mar 3, 2021 at 6:44 AM Fangrui Song wrote:
> >>
> >> Reviewed-by: Fangrui Song
> >>
> >> Thanks for the clean
uper-config generated by
> dummy-tools. So take this into account in the gcc script.
>
> Signed-off-by: Jiri Slaby
> Cc: Masahiro Yamada
> ---
Applied to linux-kbuild/fixes.
Thanks.
We could fix init/Kconfig to use the positive logic as follows,
but I guess (hope) this conditional wi
Move $(strip ...) to the callee from the callers of suffix-search. It
shortens the code slightly. Adding a space after a comma will not be
a matter. I also dropped parentheses from single character variables.
Signed-off-by: Masahiro Yamada
---
scripts/Makefile.lib | 6 +++---
1 file changed, 3
I think multi-obj-* is clearer, and more consisten with real-obj-*.
Rename as follows:
multi-used-y -> multi-obj-y
multi-used-m -> multi-obj-m
multi-used-> multi-obj-ym
Signed-off-by: Masahiro Yamada
---
scripts/Makefile.build | 6 +++---
scripts/Makefile.l
blobs are built
-dtb-$(CONFIG_OF_ALL_DTBS) += $(dtb-)
-
always-y += $(dtb-y)
ifneq ($(CHECK_DTBS),)
--
Best Regards
Masahiro Yamada
BUILD_EXTMOD)/$(obj)
> +endif
> +
> +$(obj)/randomize_layout_plugin.so: $(objtree)/$(src)/randomize_layout_seed.h
> quiet_cmd_create_randomize_layout_seed = GENSEED $@
> cmd_create_randomize_layout_seed = \
>$(CONFIG_SHELL) $(srctree)/$(src)/gen-random-seed.sh $@
> $(objtree)/include/generated/randomize_layout_hash.h
> -$(objtree)/$(obj)/randomize_layout_seed.h: FORCE
> +$(objtree)/$(src)/randomize_layout_seed.h: FORCE
> $(call if_changed,create_randomize_layout_seed)
> targets += randomize_layout_seed.h randomize_layout_hash.h
>
> --
> 2.29.2
>
--
Best Regards
Masahiro Yamada
On Fri, Mar 5, 2021 at 10:26 AM Nick Desaulniers
wrote:
>
> On Wed, Mar 3, 2021 at 10:34 AM Masahiro Yamada wrote:
> >
> > Documentation/process/changes.rst defines the minimum assembler version
> > (binutils version), but we have never checked it in the build time.
>
dt.yaml, $(dtb-))
> endif
>
> # Add subdir path
> --
> 2.25.0.rc1.19.g042ed3e048af
>
--
Best Regards
Masahiro Yamada
On Tue, Feb 2, 2021 at 6:13 AM Josh Poimboeuf wrote:
>
> On Fri, Jan 29, 2021 at 08:17:51AM +0900, Masahiro Yamada wrote:
> > [3]
> > Peterz already pointed out asm-goto as an example of ABI mismatch.
> >
> > I remember a trouble reported in the past due
> >
On Fri, Mar 5, 2021 at 11:41 AM Josh Poimboeuf wrote:
>
> On Thu, Mar 04, 2021 at 11:12:42AM -0800, Linus Torvalds wrote:
> > On Thu, Mar 4, 2021 at 7:36 AM Masahiro Yamada wrote:
> > >
> > > All the kernel-space objects are rebuilt
> > > when the compiler
On Fri, Mar 5, 2021 at 4:13 AM Linus Torvalds
wrote:
>
> On Thu, Mar 4, 2021 at 7:36 AM Masahiro Yamada wrote:
> >
> > All the kernel-space objects are rebuilt
> > when the compiler is upgraded.
>
> I very much NAK'ed that one. Why did that go in?
When the com
On Fri, Mar 5, 2021 at 7:04 PM Linus Walleij wrote:
>
> On Mon, Mar 1, 2021 at 3:29 PM Masahiro Yamada wrote:
>
> > Many architectures duplicate similar shell scripts.
> >
> > This commit converts ARM to use scripts/syscalltbl.sh.
> >
> > Signed-off-by: Mas
On Fri, Mar 5, 2021 at 11:15 PM Vladimir Murzin wrote:
>
> On 3/4/21 5:24 PM, Masahiro Yamada wrote:
> > On Fri, Mar 5, 2021 at 1:21 AM Vladimir Murzin
> > wrote:
> > [ snip long description ]
> >
> >>
> >> Does that make sense? What I'm missing?
On Fri, Mar 5, 2021 at 10:50 PM Masahiro Yamada wrote:
>
> On Fri, Mar 5, 2021 at 7:02 PM Rasmus Villemoes
> wrote:
> >
> > The patch adding CONFIG_VMLINUX_MAP revealed a small defect in the
> > build system: link-vmlinux.sh takes decisions based on CONFIG_*
&g
t; }
>
> on_exit()
> @@ -421,6 +422,7 @@ if [ -n "${CONFIG_KALLSYMS}" ]; then
> fi
>
> vmlinux_link vmlinux "${kallsymso}" ${btf_vmlinux_bin_o}
> +echo "vmlinux: $0" > .vmlinux.d
>
> # fill in BTF IDs
> if [ -n "${CONFIG_DEBUG_INFO_BTF}" -a -n "${CONFIG_BPF}" ]; then
> --
> 2.29.2
>
--
Best Regards
Masahiro Yamada
\
> -o ${output}\
> + ${map_option:+-Wl,${map_option}} \
> -Wl,-T,${lds} \
> ${objects} \
> -lutil -lrt -lpthread
> @@ -303,6 +310,7 @@ cleanup()
> rm -f .tmp_vmlinux*
> rm -f System.map
> rm -f vmlinux
> + rm -f vmlinux.map
> rm -f vmlinux.o
> }
>
> --
> 2.29.2
>
--
Best Regards
Masahiro Yamada
On Fri, Mar 5, 2021 at 7:10 AM Nicolas Pitre wrote:
>
> On Thu, 4 Mar 2021, Masahiro Yamada wrote:
>
> > The kernel build uses various tools, many of which are provided by the
> > same software suite, for example, LLVM and Binutils.
> >
> > When we raise the minim
On Thu, Mar 4, 2021 at 9:11 AM Nathan Chancellor wrote:
>
> On Thu, Mar 04, 2021 at 03:33:31AM +0900, Masahiro Yamada wrote:
> > The kernel build uses various tools, many of which are provided by the
> > same software suite, for example, LLVM and Binutils.
> >
>
On Thu, Mar 4, 2021 at 5:47 AM 'Nick Desaulniers' via Clang Built
Linux wrote:
>
> + Sami
>
> On Wed, Mar 3, 2021 at 10:34 AM Masahiro Yamada wrote:
> >
> > This guarding is wrong. As Documentation/kbuild/llvm.rst notes, LLVM=1
> > switches the default of tools, but
${strip_debug} \
> -o ${output}\
> + ${map_option:+-Wl,${map_option}} \
> -Wl,-T,${lds} \
> ${objects} \
> -lutil -lrt -lpthread
> @@ -303,6 +311,7 @@ cleanup()
> rm -f .tmp_vmlinux*
> rm -f System.map
> rm -f vmlinux
> + rm -f vmlinux.map
> rm -f vmlinux.o
> }
>
> --
> 2.29.2
>
--
Best Regards
Masahiro Yamada
DULES=n)
That is why you cannot build external modules.
> Cheers
> Vladimir
--
Best Regards
Masahiro Yamada
On Fri, Mar 5, 2021 at 12:08 AM Josh Poimboeuf wrote:
>
> On Thu, Mar 04, 2021 at 09:27:28PM +0900, Masahiro Yamada wrote:
> > I agree with rebuilding GCC plugins when the compiler is upgraded
> > for *in-tree* building.
> > Linus had reported it a couple of month
easy fix.
Rebuilding plugins for external modules is not easy;
plugins are placed in the read-only directory,
/usr/src/linux-headers-$(uname -r)/scripts/gcc-plugins/.
The external modules must not (cannot) update in-tree
build artifacts. "Rebuild" means creating copies in a different
writable directory.
Doing that requires a lot of design changes.
--
Best Regards
Masahiro Yamada
On Thu, Mar 4, 2021 at 4:15 AM Josh Poimboeuf wrote:
>
> On Thu, Mar 04, 2021 at 03:49:35AM +0900, Masahiro Yamada wrote:
> > > This problem is becoming more prevalent. We will need to fix it one way
> > > or another, if we want to support distro adoption of these GCC
>
1]:
https://lore.kernel.org/lkml/CAHk-=wieoN5ttOy7SnsGwZv+Fni3R6m-Ut=oxih6bbz28g+...@mail.gmail.com/
Reported-by: Linus Torvalds
Signed-off-by: Masahiro Yamada
---
Makefile | 1 +
include/linux/compiler-version.h | 14 ++
include/linux/kconfig.h |
on't know the exact position of "LLD" and the version info
> + # at this point
> + while [ "$1" != "LLD" ]; do
> + shift
> + done
> + version=$2
> + min_version=$lld_min_version
> + name=LLD
> + disp_name=LLD
> else
> echo "$orig_args: unknown linker" >&2
> exit 1
> --
> 2.30.1
>
--
Best Regards
Masahiro Yamada
sed for building the kernel.
That is a problem on the distribution side.
In my ubuntu.
$ grep CC_VERSION_TEXT /lib/modules/$(uname -r)/build/.config
CONFIG_CC_VERSION_TEXT="gcc (Ubuntu 10.2.0-13ubuntu1) 10.2.0"
$ gcc --version | head -n1
gcc (Ubuntu 10.2.0-13ubuntu1) 10.2.0
> What do you think?
NACK.
> Any suggestions on how to
> implement that? Otherwise I can try to hack something together.
>
> --
> Josh
>
--
Best Regards
Masahiro Yamada
option 'Wa,'
With all this in my mind, I implemented scripts/as-version.sh.
$ scripts/as-version.sh gcc
GNU 23501
$ scripts/as-version.sh clang -no-integrated-as
GNU 23501
$ scripts/as-version.sh clang -integrated-as
LLVM 0
Signed-off-by: Masahiro Yamada
---
arch/Kconfig|
for full support)
- clang + binutils as -> requires binutils 2.35.2+
- clang + integrated as -> OK
Signed-off-by: Masahiro Yamada
---
lib/Kconfig.debug | 3 +--
scripts/test_dwarf5_support.sh | 8
2 files changed, 1 insertion(+), 10 deletions(-)
delete mode
of the given tool.
$ scripts/tool-version.sh gcc
4.9.0
$ scripts/tool-version.sh llvm
10.0.1
$ scripts/tool-version.sh binutils
2.23.0
$ scripts/tool-version.sh foo
foo: unknown tool
Signed-off-by: Masahiro Yamada
---
scripts/cc-version.sh | 20 +---
scripts/ld
$ test "${LLVM}" -eq 1
bash: test: : integer expression expected
$ echo $?
2
$ test "${LLVM}" = 1
echo $?
1
$ test -n "${LLVM}"
$ echo $?
1
Signed-off-by: Masahiro Yamada
---
arch/Kconfig | 1 -
1 file changed, 1 deletion(-)
diff -
exit 1
> -elif [ "$1" = LLD ]; then
> +elif echo "$*" | grep -q LLD; then
> + while [ "$1" != "LLD" ]; do
> + shift
> + done
> version=$2
> min_version=$lld_min_version
> name=LLD
You do not need to use grep.
How about this?
...
else
while [ $# -gt 1 -a "$1" != "LLD" ]; do
shift
done
if [ "$1" = LLD ]; then
version=$2
min_version=$lld_min_version
name=LLD
disp_name=LLD
else
echo "$orig_args: unknown linker" >&2
exit 1
fi
fi
--
Best Regards
Masahiro Yamada
e Groups
> >"Clang Built Linux" group.
> >To unsubscribe from this group and stop receiving emails from it, send an
> >email to clang-built-linux+unsubscr...@googlegroups.com.
> >To view this discussion on the web visit
> >https://groups.google.com/d/msgid/clang-built-linux/20210302210646.3044738-1-nathan%40kernel.org.
--
Best Regards
Masahiro Yamada
ge if used. The stub will be really removed
after the Linux 5.15 release.
Signed-off-by: Masahiro Yamada
---
Makefile | 6 +-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index f9b54da2fca0..a3336d9b4a22 100644
--- a/Makefile
+++ b/Makefile
@@ -1339,
Commit 1a63f9cce7b7 ("docs: Remove make headers_check from checklist")
fixed only the English version.
Let's fix the translated variants too.
Signed-off-by: Masahiro Yamada
---
.../it_IT/process/submit-checklist.rst | 14 ++
Documentation/translat
this_file_md5"
> ]; then
> exit
> fi
>
> --
> The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
> a Linux Foundation Collaborative Project
>
--
Best Regards
Masahiro Yamada
Many architectures duplicate similar shell scripts.
This commit converts xtensa to use scripts/syscallhdr.sh.
Signed-off-by: Masahiro Yamada
---
arch/xtensa/kernel/syscalls/Makefile | 7 ++---
arch/xtensa/kernel/syscalls/syscallhdr.sh | 36 ---
2 files changed, 2
Many architectures duplicate similar shell scripts.
This commit converts xtensa to use scripts/syscalltbl.sh.
Signed-off-by: Masahiro Yamada
---
arch/xtensa/kernel/syscall.c | 3 +--
arch/xtensa/kernel/syscalls/Makefile | 7 ++---
arch/xtensa/kernel/syscalls/syscalltbl.sh
__SYSCALL() macros is the same as __NR_syscalls
(this is 442 as of v5.11).
Hence, the array size, [__NR_syscalls] is unneeded.
The designated initializer, '[nr] =', is also unneeded.
This file does not need to know __NR_syscalls. Drop the unneeded
include directive.
Signed-off-by: Masahiro Yamada
Many architectures duplicate similar shell scripts.
This commit converts powerpc to use scripts/syscalltbl.sh. This also
unifies syscall_table_32.h and syscall_table_c32.h.
Signed-off-by: Masahiro Yamada
---
arch/powerpc/include/asm/Kbuild | 1 -
arch/powerpc/kernel/syscalls
Many architectures duplicate similar shell scripts.
This commit converts powerpc to use scripts/syscallhdr.sh.
Signed-off-by: Masahiro Yamada
---
arch/powerpc/kernel/syscalls/Makefile | 11 +++
arch/powerpc/kernel/syscalls/syscallhdr.sh | 36 --
2 files changed, 4
Many architectures duplicate similar shell scripts.
This commit converts parisc to use scripts/syscalltbl.sh. This also
unifies syscall_table_64.h and syscall_table_c32.h.
Signed-off-by: Masahiro Yamada
---
arch/parisc/include/asm/Kbuild| 1 -
arch/parisc/kernel/syscall.S
Many architectures duplicate similar shell scripts.
This commit converts parisc to use scripts/syscallhdr.sh.
Signed-off-by: Masahiro Yamada
---
arch/parisc/kernel/syscalls/Makefile | 11 +++
arch/parisc/kernel/syscalls/syscallhdr.sh | 36 ---
2 files changed, 4
Many architectures duplicate similar shell scripts.
This commit converts sparc to use scripts/syscalltbl.sh. This also
unifies syscall_table_64.h and syscall_table_c32.h.
Signed-off-by: Masahiro Yamada
---
arch/sparc/include/asm/Kbuild| 1 -
arch/sparc/kernel/syscalls/Makefile
Many architectures duplicate similar shell scripts.
This commit converts sparc to use scripts/syscallhdr.sh.
Signed-off-by: Masahiro Yamada
---
arch/sparc/kernel/syscalls/Makefile | 11 +++-
arch/sparc/kernel/syscalls/syscallhdr.sh | 36
2 files changed, 4
Many architectures duplicate similar shell scripts.
This commit converts sh to use scripts/syscallhdr.sh.
Signed-off-by: Masahiro Yamada
---
arch/sh/kernel/syscalls/Makefile | 7 ++
arch/sh/kernel/syscalls/syscallhdr.sh | 36 ---
2 files changed, 2 insertions
ble_o32.h
Then, the abi parameters are also unneeded.
Signed-off-by: Masahiro Yamada
---
arch/mips/include/asm/Kbuild| 7 +++--
arch/mips/kernel/scall32-o32.S | 4 +--
arch/mips/kernel/scall64-n32.S | 3 +--
arch/mips/kernel/scall64-n64.S | 3 +--
Many architectures duplicate similar shell scripts.
This commit converts sh to use scripts/syscalltbl.sh.
Signed-off-by: Masahiro Yamada
---
arch/sh/kernel/syscalls/Makefile | 7 ++
arch/sh/kernel/syscalls/syscalltbl.sh | 32 ---
2 files changed, 2 insertions
Many architectures duplicate similar shell scripts.
This commit converts mips to use scripts/syscallhdr.sh.
Signed-off-by: Masahiro Yamada
---
arch/mips/kernel/syscalls/Makefile | 10 ++-
arch/mips/kernel/syscalls/syscallhdr.sh | 36 -
2 files changed, 2
Many architectures duplicate similar shell scripts.
This commit converts ARM to use scripts/syscalltbl.sh.
Signed-off-by: Masahiro Yamada
---
KernelVersion: v5.12-rc1
arch/arm/kernel/entry-common.S | 8
arch/arm/tools/Makefile| 9 -
arch/arm/tools/syscalltbl.sh
Many architectures duplicate similar shell scripts.
This commit converts ARM to use scripts/syscallhdr.sh, and also
collects OABI/OEBI syscalls into unistd-eabi.h/unistd-oabi.h,
removing unistd-common.h.
Signed-off-by: Masahiro Yamada
---
KernelVersion: v5.12-rc1
arch/arm/include/uapi/asm
Many architectures duplicate similar shell scripts.
This commit converts microblaze to use scripts/syscallhdr.sh.
Signed-off-by: Masahiro Yamada
---
arch/microblaze/kernel/syscalls/Makefile | 7 ++--
arch/microblaze/kernel/syscalls/syscallhdr.sh | 36 ---
2 files changed
Many architectures duplicate similar shell scripts.
This commit converts microblaze to use scripts/syscalltbl.sh.
Signed-off-by: Masahiro Yamada
---
arch/microblaze/kernel/syscall_table.S| 3 +-
arch/microblaze/kernel/syscalls/Makefile | 7 ++--
arch/microblaze/kernel/syscalls
Many architectures duplicate similar shell scripts.
This commit converts m68k to use scripts/syscalltbl.sh.
Signed-off-by: Masahiro Yamada
---
arch/m68k/kernel/syscalls/Makefile | 7 ++
arch/m68k/kernel/syscalls/syscalltbl.sh | 32 -
arch/m68k/kernel
Many architectures duplicate similar shell scripts.
This commit converts m68k to use scripts/syscallhdr.sh.
Signed-off-by: Masahiro Yamada
---
arch/m68k/kernel/syscalls/Makefile | 7 ++---
arch/m68k/kernel/syscalls/syscallhdr.sh | 36 -
2 files changed, 2
Many architectures duplicate similar shell scripts.
This commit converts ia64 to use scripts/syscallhdr.sh.
Signed-off-by: Masahiro Yamada
---
arch/ia64/kernel/syscalls/Makefile | 8 ++
arch/ia64/kernel/syscalls/syscallhdr.sh | 36 -
2 files changed, 2
Many architectures duplicate similar shell scripts.
This commit converts ia64 to use scripts/syscalltbl.sh.
Signed-off-by: Masahiro Yamada
---
arch/ia64/kernel/entry.S| 3 +--
arch/ia64/kernel/syscalls/Makefile | 8 ++-
arch/ia64/kernel/syscalls/syscalltbl.sh | 32
Many architectures duplicate similar shell scripts.
This commit converts alpha to use scripts/syscalltbl.sh.
Signed-off-by: Masahiro Yamada
---
arch/alpha/kernel/syscalls/Makefile | 7 ++
arch/alpha/kernel/syscalls/syscalltbl.sh | 32
arch/alpha/kernel
201 - 300 of 11880 matches
Mail list logo