Skip to content

Commit faf68e3

Browse files
committed
Merge tag 'kbuild-fixes-v6.1-4' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild
Pull Kbuild fixes from Masahiro Yamada: - Fix CC_HAS_ASM_GOTO_TIED_OUTPUT test in Kconfig - Fix noisy "No such file or directory" message when KBUILD_BUILD_VERSION is passed - Include rust/ in source tarballs - Fix missing FORCE for ARCH=nios2 builds * tag 'kbuild-fixes-v6.1-4' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild: nios2: add FORCE for vmlinuz.gz scripts: add rust in scripts/Makefile.package kbuild: fix "cat: .version: No such file or directory" init/Kconfig: fix CC_HAS_ASM_GOTO_TIED_OUTPUT test with dash
2 parents e5f3ec3 + 869e4ae commit faf68e3

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

arch/microblaze/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,12 @@ linux.bin.ub linux.bin.gz: linux.bin
6767
linux.bin: vmlinux
6868
linux.bin linux.bin.gz linux.bin.ub:
6969
$(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
70-
@echo 'Kernel: $(boot)/$@ is ready' ' (#'`cat .version`')'
70+
@echo 'Kernel: $(boot)/$@ is ready' ' (#'$(or $(KBUILD_BUILD_VERSION),`cat .version`)')'
7171

7272
PHONY += simpleImage.$(DTB)
7373
simpleImage.$(DTB): vmlinux
7474
$(Q)$(MAKE) $(build)=$(boot) $(addprefix $(boot)/$@., ub unstrip strip)
75-
@echo 'Kernel: $(boot)/$@ is ready' ' (#'`cat .version`')'
75+
@echo 'Kernel: $(boot)/$@ is ready' ' (#'$(or $(KBUILD_BUILD_VERSION),`cat .version`)')'
7676

7777
define archhelp
7878
echo '* linux.bin - Create raw binary'

arch/nios2/boot/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ $(obj)/vmlinux.bin: vmlinux FORCE
2020
$(obj)/vmlinux.gz: $(obj)/vmlinux.bin FORCE
2121
$(call if_changed,gzip)
2222

23-
$(obj)/vmImage: $(obj)/vmlinux.gz
23+
$(obj)/vmImage: $(obj)/vmlinux.gz FORCE
2424
$(call if_changed,uimage)
2525
@$(kecho) 'Kernel: $@ is ready'
2626

arch/x86/boot/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ cmd_image = $(obj)/tools/build $(obj)/setup.bin $(obj)/vmlinux.bin \
8383

8484
$(obj)/bzImage: $(obj)/setup.bin $(obj)/vmlinux.bin $(obj)/tools/build FORCE
8585
$(call if_changed,image)
86-
@$(kecho) 'Kernel: $@ is ready' ' (#'`cat .version`')'
86+
@$(kecho) 'Kernel: $@ is ready' ' (#'$(or $(KBUILD_BUILD_VERSION),`cat .version`)')'
8787

8888
OBJCOPYFLAGS_vmlinux.bin := -O binary -R .note -R .comment -S
8989
$(obj)/vmlinux.bin: $(obj)/compressed/vmlinux FORCE

init/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ config CC_HAS_ASM_GOTO_OUTPUT
8787
config CC_HAS_ASM_GOTO_TIED_OUTPUT
8888
depends on CC_HAS_ASM_GOTO_OUTPUT
8989
# Detect buggy gcc and clang, fixed in gcc-11 clang-14.
90-
def_bool $(success,echo 'int foo(int *x) { asm goto (".long (%l[bar]) - .\n": "+m"(*x) ::: bar); return *x; bar: return 0; }' | $CC -x c - -c -o /dev/null)
90+
def_bool $(success,echo 'int foo(int *x) { asm goto (".long (%l[bar]) - .": "+m"(*x) ::: bar); return *x; bar: return 0; }' | $CC -x c - -c -o /dev/null)
9191

9292
config TOOLS_SUPPORT_RELR
9393
def_bool $(success,env "CC=$(CC)" "LD=$(LD)" "NM=$(NM)" "OBJCOPY=$(OBJCOPY)" $(srctree)/scripts/tools-support-relr.sh)

scripts/Makefile.package

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ KBUILD_PKG_ROOTCMD ?="fakeroot -u"
3030
export KDEB_SOURCENAME
3131
# Include only those top-level files that are needed by make, plus the GPL copy
3232
TAR_CONTENT := Documentation LICENSES arch block certs crypto drivers fs \
33-
include init io_uring ipc kernel lib mm net samples scripts \
34-
security sound tools usr virt \
33+
include init io_uring ipc kernel lib mm net rust \
34+
samples scripts security sound tools usr virt \
3535
.config .scmversion Makefile \
3636
Kbuild Kconfig COPYING $(wildcard localversion*)
3737
MKSPEC := $(srctree)/scripts/package/mkspec

0 commit comments

Comments
 (0)