History

Merge tag 'kbuild-fixes-v4.18-2' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild

Pull Kbuild fixes from Masahiro Yamada: - update Kbuild and Kconfig documents - sanitize -I compiler option handling - update extract-vmlinux script to recognize LZ4 and ZSTD - fix tools Makefiles - update tags.sh to handle __ro_after_init - suppress warnings in case getconf does not recognize LFS_* parameters * tag 'kbuild-fixes-v4.18-2' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild: kbuild: suppress warnings from 'getconf LFS_*' scripts/tags.sh: add __ro_after_init tools: build: Use HOSTLDFLAGS with fixdep tools: build: Fixup host c flags tools build: fix # escaping in .cmd files for future Make scripts: teach extract-vmlinux about LZ4 and ZSTD kbuild: remove duplicated comments about PHONY kbuild: .PHONY is not a variable, but PHONY is kbuild: do not drop -I without parameter kbuild: document the KBUILD_KCONFIG env. variable kconfig: update user kconfig tools doc. kbuild: delete INSTALL_FW_PATH from kbuild documentation kbuild: update ARCH alias info for sparc kbuild: update ARCH alias info for sh

Linus Torvalds committed 8 years ago

Commit 79facf32 parents 9d2e348 6d79a7b15 files · +63 −50Browse files

Showing the changes to scripts (9 of 15 files). Show all

Unified · Split

9 files
  1. scripts/Kbuild.include +1 −1
  2. scripts/Makefile.build +0 −3
  3. scripts/Makefile.clean +0 −3
  4. scripts/Makefile.modbuiltin +0 −4
  5. scripts/Makefile.modinst +0 −4
  6. scripts/Makefile.modpost +0 −4
  7. scripts/Makefile.modsign +0 −3
  8. scripts/extract-vmlinux +2 −0
  9. scripts/tags.sh +1 −1
scripts/Kbuild.include+1−1
@@ -214,7 +214,7 @@ hdr-inst := -f $(srctree)/scripts/Makefile.headersinst obj · 213 unmodified lines
214214 # Prefix -I with $(srctree) if it is not an absolute path.
215215 # skip if -I has no parameter
216216 addtree = $(if $(patsubst -I%,%,$(1)), \
217−$(if $(filter-out -I/% -I./% -I../%,$(1)),$(patsubst -I%,-I$(srctree)/%,$(1)),$(1)))
217+$(if $(filter-out -I/% -I./% -I../%,$(1)),$(patsubst -I%,-I$(srctree)/%,$(1)),$(1)),$(1))
218218
219219 # Find all -I options and call addtree
220220 flags = $(foreach o,$($(1)),$(if $(filter -I%,$(o)),$(call addtree,$(o)),$(o)))
scripts/Makefile.build+0−3
@@ -590,7 +590,4 @@ endif · 589 unmodified lines
590590 # We never want them to be removed automatically.
591591 .SECONDARY: $(targets)
592592
593−# Declare the contents of the .PHONY variable as phony. We keep that
594−# information in a variable se we can use it in if_changed and friends.
595−
596593 .PHONY: $(PHONY)
scripts/Makefile.clean+0−3
@@ -88,7 +88,4 @@ PHONY += $(subdir-ymn) · 87 unmodified lines
8888 $(subdir-ymn):
8989 $(Q)$(MAKE) $(clean)=$@
9090
91−# Declare the contents of the .PHONY variable as phony. We keep that
92−# information in a variable se we can use it in if_changed and friends.
93−
9491 .PHONY: $(PHONY)
scripts/Makefile.modbuiltin+0−4
@@ -54,8 +54,4 @@ PHONY += $(subdir-ym) · 53 unmodified lines
5454 $(subdir-ym):
5555 $(Q)$(MAKE) $(modbuiltin)=$@
5656
57−
58−# Declare the contents of the .PHONY variable as phony. We keep that
59−# information in a variable se we can use it in if_changed and friends.
60−
6157 .PHONY: $(PHONY)
scripts/Makefile.modinst+0−4
@@ -35,8 +35,4 @@ modinst_dir = $(if $(KBUILD_EXTMOD),$(ext-mod-dir),kernel/$(@D)) · 34 unmodified lines
3535 $(modules):
3636 $(call cmd,modules_install,$(MODLIB)/$(modinst_dir))
3737
38−
39−# Declare the contents of the .PHONY variable as phony. We keep that
40−# information in a variable so we can use it in if_changed and friends.
41−
4238 .PHONY: $(PHONY)
scripts/Makefile.modpost+0−4
@@ -149,8 +149,4 @@ ifneq ($(cmd_files),) · 148 unmodified lines
149149 include $(cmd_files)
150150 endif
151151
152−
153−# Declare the contents of the .PHONY variable as phony. We keep that
154−# information in a variable se we can use it in if_changed and friends.
155−
156152 .PHONY: $(PHONY)
scripts/Makefile.modsign+0−3
@@ -27,7 +27,4 @@ modinst_dir = $(if $(KBUILD_EXTMOD),$(ext-mod-dir),kernel/$(@D)) · 26 unmodified lines
2727 $(modules):
2828 $(call cmd,sign_ko,$(MODLIB)/$(modinst_dir))
2929
30−# Declare the contents of the .PHONY variable as phony. We keep that
31−# information in a variable se we can use it in if_changed and friends.
32−
3330 .PHONY: $(PHONY)
scripts/extract-vmlinux+2−0
@@ -57,6 +57,8 @@ try_decompress '\3757zXZ\000' abcde unxz · 56 unmodified lines
5757 try_decompress 'BZh' xy bunzip2
5858 try_decompress '\135\0\0\0' xxx unlzma
5959 try_decompress '\211\114\132' xy 'lzop -d'
60+try_decompress '\002!L\030' xxx 'lz4 -d'
61+try_decompress '(\265/\375' xxx unzstd
6062
6163 # Bail out:
6264 echo "$me: Cannot find vmlinux." >&2
scripts/tags.sh+1−1
@@ -245,7 +245,7 @@ exuberant() · 244 unmodified lines
245245 {
246246 setup_regex exuberant asm c
247247 all_target_sources | xargs $1 -a \
248− -I __initdata,__exitdata,__initconst, \
248+ -I __initdata,__exitdata,__initconst,__ro_after_init \
249249 -I __initdata_memblock \
250250 -I __refdata,__attribute,__maybe_unused,__always_unused \
251251 -I __acquires,__releases,__deprecated \

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t