Skip to contentSkip to conversation

linux-next: build warnings after merge of the kbuild tree

DISCUSSION Stephen Rothwell 2 participants 5 messages Sep 4, 2019

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

Hi all,

After merging the kbuild tree, today's linux-next build (powerpc ppc64_defconfig) produced these warnings:

Presumably introduced by commit

  1267f9d3047d ("kbuild: add $(BASH) to run scripts with bash-extension")

and presumably arch/powerpc/tools/unrel_branch_check.sh (which has no #! line) is a bash script. Yeah, is uses '((' and '))'.

Signature · 2 lines
Cheers,
Stephen Rothwell
#1 lore raw

Hi Stephen,

Quoted 7 lines · Stephen Rothwell

Hi all,

After merging the kbuild tree, today's linux-next build (powerpc ppc64_defconfig) produced these warnings:

Quoted 6 lines

Presumably introduced by commit

  1267f9d3047d ("kbuild: add $(BASH) to run scripts with bash-extension")

and presumably arch/powerpc/tools/unrel_branch_check.sh (which has no #! line) is a bash script. Yeah, is uses '((' and '))'.

Thanks for catching this.

Could you fix it up as follows?
I will squash it for tomorrow's linux-next.

arch/powerpc/Makefile.postlink +0 -0
@@ -18,7 +18,7 @@ quiet_cmd_relocs_check = CHKREL  $@
 ifdef CONFIG_PPC_BOOK3S_64
       cmd_relocs_check =                                               \
        $(CONFIG_SHELL) $(srctree)/arch/powerpc/tools/relocs_check.sh

"$(OBJDUMP)" "$@" ; \
- $(CONFIG_SHELL)
$(srctree)/arch/powerpc/tools/unrel_branch_check.sh "$(OBJDUMP)" "$@"
+ $(BASH) $(srctree)/arch/powerpc/tools/unrel_branch_check.sh
"$(OBJDUMP)" "$@"
else

       cmd_relocs_check =                                               \
        $(CONFIG_SHELL) $(srctree)/arch/powerpc/tools/relocs_check.sh

"$(OBJDUMP)" "$@"

Quoted 3 lines

--
Cheers,
Stephen Rothwell

Signature · 2 lines
Best Regards
Masahiro Yamada
#2 lore raw
Quoted 5 lines · Masahiro Yamada

Hi Stephen,

Quoted 1 line · Stephen Rothwell

For today's linux-next, please squash the following too.

(This is my fault, since scripts/mkuboot.sh is a bash script)

scripts/Makefile.lib +1 -1
index 41c50f9461e5..2d72327417a9 100644
@@ -374,7 +374,7 @@ UIMAGE_ENTRYADDR ?= $(UIMAGE_LOADADDR)
 UIMAGE_NAME ?= 'Linux-$(KERNELRELEASE)'
 
 quiet_cmd_uimage = UIMAGE  $@
-      cmd_uimage = $(CONFIG_SHELL) $(MKIMAGE) -A $(UIMAGE_ARCH) -O linux \
+      cmd_uimage = $(BASE) $(MKIMAGE) -A $(UIMAGE_ARCH) -O linux \
                        -C $(UIMAGE_COMPRESSION) $(UIMAGE_OPTS-y) \
                        -T $(UIMAGE_TYPE) \
                        -a $(UIMAGE_LOADADDR) -e $(UIMAGE_ENTRYADDR) \
Signature · 2 lines
Best Regards
Masahiro Yamada
#4 lore raw
In reply to Masahiro Yamada

Hi Masahiro,

Quoted 17 lines · On Wed, 4 Sep 2019 10:00:30 +0900 Masahiro Yamada…

Could you fix it up as follows?
I will squash it for tomorrow's linux-next.

arch/powerpc/Makefile.postlink +0 -1
@@ -18,7 +18,7 @@ quiet_cmd_relocs_check = CHKREL  $@
 ifdef CONFIG_PPC_BOOK3S_64
       cmd_relocs_check =                                               \
        $(CONFIG_SHELL) $(srctree)/arch/powerpc/tools/relocs_check.sh
 "$(OBJDUMP)" "$@" ; \
-       $(CONFIG_SHELL)

$(srctree)/arch/powerpc/tools/unrel_branch_check.sh "$(OBJDUMP)" "$@"
+ $(BASH) $(srctree)/arch/powerpc/tools/unrel_branch_check.sh
"$(OBJDUMP)" "$@"
else

Quoted 3 lines
       cmd_relocs_check =                                               \
        $(CONFIG_SHELL) $(srctree)/arch/powerpc/tools/relocs_check.sh

"$(OBJDUMP)" "$@"

I added that in linux-next today.

Signature · 2 lines
Cheers,
Stephen Rothwell
#3 lore raw
In reply to Masahiro Yamada

Hi Masahiro,

Quoted 11 lines · On Wed, 4 Sep 2019 15:22:09 +0900 Masahiro Yamada…

For today's linux-next, please squash the following too.

(This is my fault, since scripts/mkuboot.sh is a bash script)

scripts/Makefile.lib +0 -0
index 41c50f9461e5..2d72327417a9 100644

scripts/Makefile.lib UIMAGE_ENTRYADDR ?= $(UIMAGE_LOADADDR) · line 380

Quoted 8 lines
scripts/Makefile.lib +1 -1
@@ -374,7 +374,7 @@ UIMAGE_ENTRYADDR ?= $(UIMAGE_LOADADDR)
 UIMAGE_NAME ?= 'Linux-$(KERNELRELEASE)'
 
 quiet_cmd_uimage = UIMAGE  $@
-      cmd_uimage = $(CONFIG_SHELL) $(MKIMAGE) -A $(UIMAGE_ARCH) -O linux \
+      cmd_uimage = $(BASE) $(MKIMAGE) -A $(UIMAGE_ARCH) -O linux \
                        -C $(UIMAGE_COMPRESSION) $(UIMAGE_OPTS-y) \
                        -T $(UIMAGE_TYPE) \
                        -a $(UIMAGE_LOADADDR) -e $(UIMAGE_ENTRYADDR) \

Umm, that seems to have already been done.

Signature · 2 lines
Cheers,
Stephen Rothwell